/******/ (function() { // webpackBootstrap
/******/ 	var __webpack_modules__ = ({

/***/ 5572:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  gV: function() { return /* reexport */ App; },
  GI: function() { return /* reexport */ Popup; },
  zt: function() { return /* reexport */ provider_Provider; }
});

// UNUSED EXPORTS: CaptionContainer, LoginPanel, MainPanel, RecordControl, StartPanel, TransContainer, isMac, sourceLanguageMap

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7921);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(2171);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/taggedTemplateLiteral.js
var taggedTemplateLiteral = __webpack_require__(9008);
// EXTERNAL MODULE: ./node_modules/_styled-components@5.3.11@styled-components/dist/styled-components.browser.esm.js + 4 modules
var styled_components_browser_esm = __webpack_require__(2010);
;// CONCATENATED MODULE: ./src/components/popup/styled.tsx
var _templateObject,_templateObject2;var GlobalStyle=(0,styled_components_browser_esm/* createGlobalStyle */.vJ)(_templateObject||(_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  body {\n    width: 300px;\n    height: 300px;\n  }\n"])));var Wrapper=styled_components_browser_esm/* default */.ZP.div(_templateObject2||(_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n\n"])));
// EXTERNAL MODULE: ./src/services/index.ts + 6 modules
var services = __webpack_require__(0);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/switch/index.js + 1 modules
var es_switch = __webpack_require__(1610);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(9386);
;// CONCATENATED MODULE: ./src/components/popup/popup.tsx
var Popup=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var addElement=props.addElement,startRecord=props.startRecord;var _useState=(0,_react_18_2_0_react.useState)(true),_useState2=(0,slicedToArray/* default */.Z)(_useState,2),enableMicphone=_useState2[0],setEnableMicphone=_useState2[1];var _useState3=(0,_react_18_2_0_react.useState)([]),_useState4=(0,slicedToArray/* default */.Z)(_useState3,2),folders=_useState4[0],setFolders=_useState4[1];(0,_react_18_2_0_react.useEffect)(function(){(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(){var response;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return services/* service */.X.getDirList();case 2:response=_context.sent;setFolders(response.data||[]);case 4:case"end":return _context.stop();}},_callee);}))();},[]);var handleStartRecord=(0,_react_18_2_0_react.useCallback)(function(){startRecord(enableMicphone);},[startRecord,enableMicphone]);return/*#__PURE__*/(0,jsx_runtime.jsxs)(Wrapper,{children:[/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{children:["\u5F00\u542F\u9EA6\u514B\u98CE ",/*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z,{checked:enableMicphone,onChange:setEnableMicphone})]}),/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{cursor:'pointer'},onClick:addElement,children:"\u63D2\u5165\u5143\u7D20"}),/*#__PURE__*/(0,jsx_runtime.jsx)("div",{children:"\u4FDD\u5B58\u81F3\uFF1A"}),folders.map(function(folder){return/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{children:["\u6587\u4EF6\u5939\uFF1A",folder.dirName]});}),/*#__PURE__*/(0,jsx_runtime.jsx)("div",{onClick:function onClick(){chrome.windows.create({focused:true,url:'https://www.baidu.com',type:"panel",width:400,height:800});},children:"test"}),/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{cursor:'pointer'},onClick:handleStartRecord,children:"\u5F00\u542F\u5B9E\u65F6\u8BB0\u5F55"})]});});
;// CONCATENATED MODULE: ./src/components/popup/index.ts

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inheritsLoose.js
var inheritsLoose = __webpack_require__(2918);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/translateController.js
var translateController = __webpack_require__(8674);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/extensions/baseExtension.js
var BaseExtension = function BaseExtension() {};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tagControlBar/styled.js

var styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;align-items:center;z-index:1;"]);
var Title = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["font-size:12px;color:rgba(39,38,77,0.65);line-height:20px;white-space:nowrap;cursor:default;"]);
var Content = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["grid-template-columns:repeat(4,1fr);display:grid;gap:", "px;align-items:center;& .tingwu-icon{position:relative;&:after{content:'';display:block;top:-5px;left:-5px;right:-5px;bottom:-5px;}}"], function (props) {
  return props.gap || 8;
});
var BaseButton = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["width:16px;height:16px;cursor:pointer;"])));
var NailButton = /*#__PURE__*/(/* unused pure expression or super */ null && (styled(BaseButton)(["background:url('https://img.alicdn.com/imgextra/i2/O1CN014J4tmL1IydoI9zCMb_!!6000000000962-2-tps-200-200.png') 0 0 no-repeat;background-size:contain;width:16px;height:16px;"])));
var QuestionButton = /*#__PURE__*/(/* unused pure expression or super */ null && (styled(BaseButton)(["background:url('https://img.alicdn.com/imgextra/i3/O1CN01kn6xGP27kwMhrpPqo_!!6000000007836-2-tps-200-200.png') 0 0 no-repeat;background-size:contain;width:16px;height:16px;"])));
var TodoButton = /*#__PURE__*/(/* unused pure expression or super */ null && (styled(BaseButton)(["background:url('https://img.alicdn.com/imgextra/i4/O1CN01DO5d6820cyA2dZeQp_!!6000000006871-2-tps-200-200.png') 0 0 no-repeat;background-size:contain;width:16px;height:16px;"])));
var ResetButton = /*#__PURE__*/(/* unused pure expression or super */ null && (styled(BaseButton)(["background:url('https://img.alicdn.com/imgextra/i2/O1CN01p3JzB01h8IwbBRomW_!!6000000004232-2-tps-200-200.png') 0 0 no-repeat;width:16px;height:16px;background-size:contain;"])));
var TagControlBarUseHoverContainer = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;cursor:pointer;&:hover{transform:scale(1.2);}"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tagControlBar/tagControlBarUseHover.js

var _createElement = /*#__PURE__*/_react_18_2_0_react.createElement;

var TagControlBarUseHover = function TagControlBarUseHover(_ref) {
  var tagControlBar = _ref.tagControlBar;
  return /*#__PURE__*/_createElement(TagControlBarUseHoverContainer, null, tagControlBar);
};
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(7258);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(2782);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(9686);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(4816);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(5292);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/assertThisInitialized.js
var assertThisInitialized = __webpack_require__(2901);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(8863);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(8271);
// EXTERNAL MODULE: ./node_modules/_react-dom@18.2.0@react-dom/index.js
var _react_dom_18_2_0_react_dom = __webpack_require__(1162);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/raf.js
var raf = __webpack_require__(9906);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/contains.js
var contains = __webpack_require__(9424);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/findDOMNode.js
var findDOMNode = __webpack_require__(331);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/ref.js
var es_ref = __webpack_require__(1212);
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/addEventListener.js

function addEventListenerWrap(target, eventType, cb, option) {
  /* eslint camelcase: 2 */
  var callback = _react_dom_18_2_0_react_dom.unstable_batchedUpdates ? function run(e) {
    _react_dom_18_2_0_react_dom.unstable_batchedUpdates(cb, e);
  } : cb;
  if (target !== null && target !== void 0 && target.addEventListener) {
    target.addEventListener(eventType, callback, option);
  }
  return {
    remove: function remove() {
      if (target !== null && target !== void 0 && target.removeEventListener) {
        target.removeEventListener(eventType, callback, option);
      }
    }
  };
}
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/canUseDom.js
var canUseDom = __webpack_require__(6665);
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Portal.js



var Portal = /*#__PURE__*/(0,_react_18_2_0_react.forwardRef)(function (props, ref) {
  var didUpdate = props.didUpdate,
    getContainer = props.getContainer,
    children = props.children;
  var parentRef = (0,_react_18_2_0_react.useRef)();
  var containerRef = (0,_react_18_2_0_react.useRef)();

  // Ref return nothing, only for wrapper check exist
  (0,_react_18_2_0_react.useImperativeHandle)(ref, function () {
    return {};
  });

  // Create container in client side with sync to avoid useEffect not get ref
  var initRef = (0,_react_18_2_0_react.useRef)(false);
  if (!initRef.current && (0,canUseDom/* default */.Z)()) {
    containerRef.current = getContainer();
    parentRef.current = containerRef.current.parentNode;
    initRef.current = true;
  }

  // [Legacy] Used by `rc-trigger`
  (0,_react_18_2_0_react.useEffect)(function () {
    didUpdate === null || didUpdate === void 0 ? void 0 : didUpdate(props);
  });
  (0,_react_18_2_0_react.useEffect)(function () {
    // Restore container to original place
    // React 18 StrictMode will unmount first and mount back for effect test:
    // https://reactjs.org/blog/2022/03/29/react-v18.html#new-strict-mode-behaviors
    if (containerRef.current.parentNode === null && parentRef.current !== null) {
      parentRef.current.appendChild(containerRef.current);
    }
    return function () {
      var _containerRef$current, _containerRef$current2;
      // [Legacy] This should not be handle by Portal but parent PortalWrapper instead.
      // Since some component use `Portal` directly, we have to keep the logic here.
      (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : (_containerRef$current2 = _containerRef$current.parentNode) === null || _containerRef$current2 === void 0 ? void 0 : _containerRef$current2.removeChild(containerRef.current);
    };
  }, []);
  return containerRef.current ? /*#__PURE__*/_react_dom_18_2_0_react_dom.createPortal(children, containerRef.current) : null;
});
/* harmony default export */ var es_Portal = (Portal);
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/utils/alignUtil.js

function isPointsEq(a1, a2, isAlignPoint) {
  if (isAlignPoint) {
    return a1[0] === a2[0];
  }
  return a1[0] === a2[0] && a1[1] === a2[1];
}
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
  var baseAlign = builtinPlacements[placementStr] || {};
  return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, baseAlign), align);
}
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
  var points = align.points;
  var placements = Object.keys(builtinPlacements);
  for (var i = 0; i < placements.length; i += 1) {
    var placement = placements[i];
    if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {
      return "".concat(prefixCls, "-placement-").concat(placement);
    }
  }
  return '';
}
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/isMobile.js
/* harmony default export */ var isMobile = (function () {
  if (typeof navigator === 'undefined' || typeof window === 'undefined') {
    return false;
  }
  var agent = 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(agent) || /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(agent === null || agent === void 0 ? void 0 : agent.substr(0, 4));
});
// EXTERNAL MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/index.js + 12 modules
var es = __webpack_require__(158);
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/utils/legacyUtil.js
function getMotion(_ref) {
  var prefixCls = _ref.prefixCls,
    motion = _ref.motion,
    animation = _ref.animation,
    transitionName = _ref.transitionName;
  if (motion) {
    return motion;
  }
  if (animation) {
    return {
      motionName: "".concat(prefixCls, "-").concat(animation)
    };
  }
  if (transitionName) {
    return {
      motionName: transitionName
    };
  }
  return null;
}
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/Popup/Mask.js






function Mask(props) {
  var prefixCls = props.prefixCls,
    visible = props.visible,
    zIndex = props.zIndex,
    mask = props.mask,
    maskMotion = props.maskMotion,
    maskAnimation = props.maskAnimation,
    maskTransitionName = props.maskTransitionName;
  if (!mask) {
    return null;
  }
  var motion = {};
  if (maskMotion || maskTransitionName || maskAnimation) {
    motion = (0,objectSpread2/* default */.Z)({
      motionAppear: true
    }, getMotion({
      motion: maskMotion,
      prefixCls: prefixCls,
      transitionName: maskTransitionName,
      animation: maskAnimation
    }));
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(es/* default */.ZP, (0,esm_extends/* default */.Z)({}, motion, {
    visible: visible,
    removeOnLeave: true
  }), function (_ref) {
    var className = _ref.className;
    return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      style: {
        zIndex: zIndex
      },
      className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-mask"), className)
    });
  });
}
;// CONCATENATED MODULE: ./node_modules/_dom-align@1.12.4@dom-align/dist-web/index.js
function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);
  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    enumerableOnly && (symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    })), keys.push.apply(keys, symbols);
  }
  return keys;
}
function _objectSpread2(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = null != arguments[i] ? arguments[i] : {};
    i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
      dist_web_defineProperty(target, key, source[key]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
    });
  }
  return target;
}
function dist_web_typeof(obj) {
  "@babel/helpers - typeof";

  return dist_web_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  }, dist_web_typeof(obj);
}
function dist_web_defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}
var vendorPrefix;
var jsCssMap = {
  Webkit: '-webkit-',
  Moz: '-moz-',
  // IE did it wrong again ...
  ms: '-ms-',
  O: '-o-'
};
function getVendorPrefix() {
  if (vendorPrefix !== undefined) {
    return vendorPrefix;
  }
  vendorPrefix = '';
  var style = document.createElement('p').style;
  var testProp = 'Transform';
  for (var key in jsCssMap) {
    if (key + testProp in style) {
      vendorPrefix = key;
    }
  }
  return vendorPrefix;
}
function getTransitionName() {
  return getVendorPrefix() ? "".concat(getVendorPrefix(), "TransitionProperty") : 'transitionProperty';
}
function getTransformName() {
  return getVendorPrefix() ? "".concat(getVendorPrefix(), "Transform") : 'transform';
}
function setTransitionProperty(node, value) {
  var name = getTransitionName();
  if (name) {
    node.style[name] = value;
    if (name !== 'transitionProperty') {
      node.style.transitionProperty = value;
    }
  }
}
function setTransform(node, value) {
  var name = getTransformName();
  if (name) {
    node.style[name] = value;
    if (name !== 'transform') {
      node.style.transform = value;
    }
  }
}
function getTransitionProperty(node) {
  return node.style.transitionProperty || node.style[getTransitionName()];
}
function getTransformXY(node) {
  var style = window.getComputedStyle(node, null);
  var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
  if (transform && transform !== 'none') {
    var matrix = transform.replace(/[^0-9\-.,]/g, '').split(',');
    return {
      x: parseFloat(matrix[12] || matrix[4], 0),
      y: parseFloat(matrix[13] || matrix[5], 0)
    };
  }
  return {
    x: 0,
    y: 0
  };
}
var matrix2d = /matrix\((.*)\)/;
var matrix3d = /matrix3d\((.*)\)/;
function setTransformXY(node, xy) {
  var style = window.getComputedStyle(node, null);
  var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
  if (transform && transform !== 'none') {
    var arr;
    var match2d = transform.match(matrix2d);
    if (match2d) {
      match2d = match2d[1];
      arr = match2d.split(',').map(function (item) {
        return parseFloat(item, 10);
      });
      arr[4] = xy.x;
      arr[5] = xy.y;
      setTransform(node, "matrix(".concat(arr.join(','), ")"));
    } else {
      var match3d = transform.match(matrix3d)[1];
      arr = match3d.split(',').map(function (item) {
        return parseFloat(item, 10);
      });
      arr[12] = xy.x;
      arr[13] = xy.y;
      setTransform(node, "matrix3d(".concat(arr.join(','), ")"));
    }
  } else {
    setTransform(node, "translateX(".concat(xy.x, "px) translateY(").concat(xy.y, "px) translateZ(0)"));
  }
}
var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
var getComputedStyleX;

// https://stackoverflow.com/a/3485654/3040605
function forceRelayout(elem) {
  var originalStyle = elem.style.display;
  elem.style.display = 'none';
  elem.offsetHeight; // eslint-disable-line
  elem.style.display = originalStyle;
}
function css(el, name, v) {
  var value = v;
  if (dist_web_typeof(name) === 'object') {
    for (var i in name) {
      if (name.hasOwnProperty(i)) {
        css(el, i, name[i]);
      }
    }
    return undefined;
  }
  if (typeof value !== 'undefined') {
    if (typeof value === 'number') {
      value = "".concat(value, "px");
    }
    el.style[name] = value;
    return undefined;
  }
  return getComputedStyleX(el, name);
}
function getClientPosition(elem) {
  var box;
  var x;
  var y;
  var doc = elem.ownerDocument;
  var body = doc.body;
  var docElem = doc && doc.documentElement;
  // 根据 GBS 最新数据，A-Grade Browsers 都已支持 getBoundingClientRect 方法，不用再考虑传统的实现方式
  box = elem.getBoundingClientRect();

  // 注：jQuery 还考虑减去 docElem.clientLeft/clientTop
  // 但测试发现，这样反而会导致当 html 和 body 有边距/边框样式时，获取的值不正确
  // 此外，ie6 会忽略 html 的 margin 值，幸运地是没有谁会去设置 html 的 margin

  x = Math.floor(box.left);
  y = Math.floor(box.top);

  // In IE, most of the time, 2 extra pixels are added to the top and left
  // due to the implicit 2-pixel inset border.  In IE6/7 quirks mode and
  // IE6 standards mode, this border can be overridden by setting the
  // document element's border to zero -- thus, we cannot rely on the
  // offset always being 2 pixels.

  // In quirks mode, the offset can be determined by querying the body's
  // clientLeft/clientTop, but in standards mode, it is found by querying
  // the document element's clientLeft/clientTop.  Since we already called
  // getClientBoundingRect we have already forced a reflow, so it is not
  // too expensive just to query them all.

  // ie 下应该减去窗口的边框吧，毕竟默认 absolute 都是相对窗口定位的
  // 窗口边框标准是设 documentElement ,quirks 时设置 body
  // 最好禁止在 body 和 html 上边框 ，但 ie < 9 html 默认有 2px ，减去
  // 但是非 ie 不可能设置窗口边框，body html 也不是窗口 ,ie 可以通过 html,body 设置
  // 标准 ie 下 docElem.clientTop 就是 border-top
  // ie7 html 即窗口边框改变不了。永远为 2
  // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框，即使设了 border-top 也为 0

  x -= docElem.clientLeft || body.clientLeft || 0;
  y -= docElem.clientTop || body.clientTop || 0;
  return {
    left: x,
    top: y
  };
}
function getScroll(w, top) {
  var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
  var method = "scroll".concat(top ? 'Top' : 'Left');
  if (typeof ret !== 'number') {
    var d = w.document;
    // ie6,7,8 standard mode
    ret = d.documentElement[method];
    if (typeof ret !== 'number') {
      // quirks mode
      ret = d.body[method];
    }
  }
  return ret;
}
function getScrollLeft(w) {
  return getScroll(w);
}
function getScrollTop(w) {
  return getScroll(w, true);
}
function getOffset(el) {
  var pos = getClientPosition(el);
  var doc = el.ownerDocument;
  var w = doc.defaultView || doc.parentWindow;
  pos.left += getScrollLeft(w);
  pos.top += getScrollTop(w);
  return pos;
}

/**
 * A crude way of determining if an object is a window
 * @member util
 */
function isWindow(obj) {
  // must use == for ie8
  /* eslint eqeqeq:0 */
  return obj !== null && obj !== undefined && obj == obj.window;
}
function getDocument(node) {
  if (isWindow(node)) {
    return node.document;
  }
  if (node.nodeType === 9) {
    return node;
  }
  return node.ownerDocument;
}
function _getComputedStyle(elem, name, cs) {
  var computedStyle = cs;
  var val = '';
  var d = getDocument(elem);
  computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null);

  // https://github.com/kissyteam/kissy/issues/61
  if (computedStyle) {
    val = computedStyle.getPropertyValue(name) || computedStyle[name];
  }
  return val;
}
var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i');
var RE_POS = /^(top|right|bottom|left)$/;
var CURRENT_STYLE = 'currentStyle';
var RUNTIME_STYLE = 'runtimeStyle';
var LEFT = 'left';
var PX = 'px';
function _getComputedStyleIE(elem, name) {
  // currentStyle maybe null
  // http://msdn.microsoft.com/en-us/library/ms535231.aspx
  var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];

  // 当 width/height 设置为百分比时，通过 pixelLeft 方式转换的 width/height 值
  // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
  // 在 ie 下不对，需要直接用 offset 方式
  // borderWidth 等值也有问题，但考虑到 borderWidth 设为百分比的概率很小，这里就不考虑了

  // From the awesome hack by Dean Edwards
  // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
  // If we're not dealing with a regular pixel number
  // but a number that has a weird ending, we need to convert it to pixels
  // exclude left right for relativity
  if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
    // Remember the original values
    var style = elem.style;
    var left = style[LEFT];
    var rsLeft = elem[RUNTIME_STYLE][LEFT];

    // prevent flashing of content
    elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT];

    // Put in the new values to get a computed value out
    style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
    ret = style.pixelLeft + PX;

    // Revert the changed values
    style[LEFT] = left;
    elem[RUNTIME_STYLE][LEFT] = rsLeft;
  }
  return ret === '' ? 'auto' : ret;
}
if (typeof window !== 'undefined') {
  getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
}
function getOffsetDirection(dir, option) {
  if (dir === 'left') {
    return option.useCssRight ? 'right' : dir;
  }
  return option.useCssBottom ? 'bottom' : dir;
}
function oppositeOffsetDirection(dir) {
  if (dir === 'left') {
    return 'right';
  } else if (dir === 'right') {
    return 'left';
  } else if (dir === 'top') {
    return 'bottom';
  } else if (dir === 'bottom') {
    return 'top';
  }
}

// 设置 elem 相对 elem.ownerDocument 的坐标
function setLeftTop(elem, offset, option) {
  // set position first, in-case top/left are set even on static elem
  if (css(elem, 'position') === 'static') {
    elem.style.position = 'relative';
  }
  var presetH = -999;
  var presetV = -999;
  var horizontalProperty = getOffsetDirection('left', option);
  var verticalProperty = getOffsetDirection('top', option);
  var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty);
  var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);
  if (horizontalProperty !== 'left') {
    presetH = 999;
  }
  if (verticalProperty !== 'top') {
    presetV = 999;
  }
  var originalTransition = '';
  var originalOffset = getOffset(elem);
  if ('left' in offset || 'top' in offset) {
    originalTransition = getTransitionProperty(elem) || '';
    setTransitionProperty(elem, 'none');
  }
  if ('left' in offset) {
    elem.style[oppositeHorizontalProperty] = '';
    elem.style[horizontalProperty] = "".concat(presetH, "px");
  }
  if ('top' in offset) {
    elem.style[oppositeVerticalProperty] = '';
    elem.style[verticalProperty] = "".concat(presetV, "px");
  }
  // force relayout
  forceRelayout(elem);
  var old = getOffset(elem);
  var originalStyle = {};
  for (var key in offset) {
    if (offset.hasOwnProperty(key)) {
      var dir = getOffsetDirection(key, option);
      var preset = key === 'left' ? presetH : presetV;
      var off = originalOffset[key] - old[key];
      if (dir === key) {
        originalStyle[dir] = preset + off;
      } else {
        originalStyle[dir] = preset - off;
      }
    }
  }
  css(elem, originalStyle);
  // force relayout
  forceRelayout(elem);
  if ('left' in offset || 'top' in offset) {
    setTransitionProperty(elem, originalTransition);
  }
  var ret = {};
  for (var _key in offset) {
    if (offset.hasOwnProperty(_key)) {
      var _dir = getOffsetDirection(_key, option);
      var _off = offset[_key] - originalOffset[_key];
      if (_key === _dir) {
        ret[_dir] = originalStyle[_dir] + _off;
      } else {
        ret[_dir] = originalStyle[_dir] - _off;
      }
    }
  }
  css(elem, ret);
}
function setTransform$1(elem, offset) {
  var originalOffset = getOffset(elem);
  var originalXY = getTransformXY(elem);
  var resultXY = {
    x: originalXY.x,
    y: originalXY.y
  };
  if ('left' in offset) {
    resultXY.x = originalXY.x + offset.left - originalOffset.left;
  }
  if ('top' in offset) {
    resultXY.y = originalXY.y + offset.top - originalOffset.top;
  }
  setTransformXY(elem, resultXY);
}
function setOffset(elem, offset, option) {
  if (option.ignoreShake) {
    var oriOffset = getOffset(elem);
    var oLeft = oriOffset.left.toFixed(0);
    var oTop = oriOffset.top.toFixed(0);
    var tLeft = offset.left.toFixed(0);
    var tTop = offset.top.toFixed(0);
    if (oLeft === tLeft && oTop === tTop) {
      return;
    }
  }
  if (option.useCssRight || option.useCssBottom) {
    setLeftTop(elem, offset, option);
  } else if (option.useCssTransform && getTransformName() in document.body.style) {
    setTransform$1(elem, offset);
  } else {
    setLeftTop(elem, offset, option);
  }
}
function each(arr, fn) {
  for (var i = 0; i < arr.length; i++) {
    fn(arr[i]);
  }
}
function isBorderBoxFn(elem) {
  return getComputedStyleX(elem, 'boxSizing') === 'border-box';
}
var BOX_MODELS = ['margin', 'border', 'padding'];
var CONTENT_INDEX = -1;
var PADDING_INDEX = 2;
var BORDER_INDEX = 1;
var MARGIN_INDEX = 0;
function swap(elem, options, callback) {
  var old = {};
  var style = elem.style;
  var name;

  // Remember the old values, and insert the new ones
  for (name in options) {
    if (options.hasOwnProperty(name)) {
      old[name] = style[name];
      style[name] = options[name];
    }
  }
  callback.call(elem);

  // Revert the old values
  for (name in options) {
    if (options.hasOwnProperty(name)) {
      style[name] = old[name];
    }
  }
}
function getPBMWidth(elem, props, which) {
  var value = 0;
  var prop;
  var j;
  var i;
  for (j = 0; j < props.length; j++) {
    prop = props[j];
    if (prop) {
      for (i = 0; i < which.length; i++) {
        var cssProp = void 0;
        if (prop === 'border') {
          cssProp = "".concat(prop).concat(which[i], "Width");
        } else {
          cssProp = prop + which[i];
        }
        value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
      }
    }
  }
  return value;
}
var domUtils = {
  getParent: function getParent(element) {
    var parent = element;
    do {
      if (parent.nodeType === 11 && parent.host) {
        parent = parent.host;
      } else {
        parent = parent.parentNode;
      }
    } while (parent && parent.nodeType !== 1 && parent.nodeType !== 9);
    return parent;
  }
};
each(['Width', 'Height'], function (name) {
  domUtils["doc".concat(name)] = function (refWin) {
    var d = refWin.document;
    return Math.max(
    // firefox chrome documentElement.scrollHeight< body.scrollHeight
    // ie standard mode : documentElement.scrollHeight> body.scrollHeight
    d.documentElement["scroll".concat(name)],
    // quirks : documentElement.scrollHeight 最大等于可视窗口多一点？
    d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d));
  };
  domUtils["viewport".concat(name)] = function (win) {
    // pc browser includes scrollbar in window.innerWidth
    var prop = "client".concat(name);
    var doc = win.document;
    var body = doc.body;
    var documentElement = doc.documentElement;
    var documentElementProp = documentElement[prop];
    // 标准模式取 documentElement
    // backcompat 取 body
    return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
  };
});

/*
 得到元素的大小信息
 @param elem
 @param name
 @param {String} [extra]  'padding' : (css width) + padding
 'border' : (css width) + padding + border
 'margin' : (css width) + padding + border + margin
 */
function getWH(elem, name, ex) {
  var extra = ex;
  if (isWindow(elem)) {
    return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
  } else if (elem.nodeType === 9) {
    return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
  }
  var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
  var borderBoxValue = name === 'width' ? Math.floor(elem.getBoundingClientRect().width) : Math.floor(elem.getBoundingClientRect().height);
  var isBorderBox = isBorderBoxFn(elem);
  var cssBoxValue = 0;
  if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) {
    borderBoxValue = undefined;
    // Fall back to computed then un computed css if necessary
    cssBoxValue = getComputedStyleX(elem, name);
    if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) {
      cssBoxValue = elem.style[name] || 0;
    }
    // Normalize '', auto, and prepare for extra
    cssBoxValue = Math.floor(parseFloat(cssBoxValue)) || 0;
  }
  if (extra === undefined) {
    extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
  }
  var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
  var val = borderBoxValue || cssBoxValue;
  if (extra === CONTENT_INDEX) {
    if (borderBoxValueOrIsBorderBox) {
      return val - getPBMWidth(elem, ['border', 'padding'], which);
    }
    return cssBoxValue;
  } else if (borderBoxValueOrIsBorderBox) {
    if (extra === BORDER_INDEX) {
      return val;
    }
    return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which));
  }
  return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);
}
var cssShow = {
  position: 'absolute',
  visibility: 'hidden',
  display: 'block'
};

// fix #119 : https://github.com/kissyteam/kissy/issues/119
function getWHIgnoreDisplay() {
  for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
    args[_key2] = arguments[_key2];
  }
  var val;
  var elem = args[0];
  // in case elem is window
  // elem.offsetWidth === undefined
  if (elem.offsetWidth !== 0) {
    val = getWH.apply(undefined, args);
  } else {
    swap(elem, cssShow, function () {
      val = getWH.apply(undefined, args);
    });
  }
  return val;
}
each(['width', 'height'], function (name) {
  var first = name.charAt(0).toUpperCase() + name.slice(1);
  domUtils["outer".concat(first)] = function (el, includeMargin) {
    return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
  };
  var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
  domUtils[name] = function (elem, v) {
    var val = v;
    if (val !== undefined) {
      if (elem) {
        var isBorderBox = isBorderBoxFn(elem);
        if (isBorderBox) {
          val += getPBMWidth(elem, ['padding', 'border'], which);
        }
        return css(elem, name, val);
      }
      return undefined;
    }
    return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
  };
});
function mix(to, from) {
  for (var i in from) {
    if (from.hasOwnProperty(i)) {
      to[i] = from[i];
    }
  }
  return to;
}
var utils = {
  getWindow: function getWindow(node) {
    if (node && node.document && node.setTimeout) {
      return node;
    }
    var doc = node.ownerDocument || node;
    return doc.defaultView || doc.parentWindow;
  },
  getDocument: getDocument,
  offset: function offset(el, value, option) {
    if (typeof value !== 'undefined') {
      setOffset(el, value, option || {});
    } else {
      return getOffset(el);
    }
  },
  isWindow: isWindow,
  each: each,
  css: css,
  clone: function clone(obj) {
    var i;
    var ret = {};
    for (i in obj) {
      if (obj.hasOwnProperty(i)) {
        ret[i] = obj[i];
      }
    }
    var overflow = obj.overflow;
    if (overflow) {
      for (i in obj) {
        if (obj.hasOwnProperty(i)) {
          ret.overflow[i] = obj.overflow[i];
        }
      }
    }
    return ret;
  },
  mix: mix,
  getWindowScrollLeft: function getWindowScrollLeft(w) {
    return getScrollLeft(w);
  },
  getWindowScrollTop: function getWindowScrollTop(w) {
    return getScrollTop(w);
  },
  merge: function merge() {
    var ret = {};
    for (var i = 0; i < arguments.length; i++) {
      utils.mix(ret, i < 0 || arguments.length <= i ? undefined : arguments[i]);
    }
    return ret;
  },
  viewportWidth: 0,
  viewportHeight: 0
};
mix(utils, domUtils);

/**
 * 得到会导致元素显示不全的祖先元素
 */
var getParent = utils.getParent;
function getOffsetParent(element) {
  if (utils.isWindow(element) || element.nodeType === 9) {
    return null;
  }
  // ie 这个也不是完全可行
  /*
   <div style="width: 50px;height: 100px;overflow: hidden">
   <div style="width: 50px;height: 100px;position: relative;" id="d6">
   元素 6 高 100px 宽 50px<br/>
   </div>
   </div>
   */
  // element.offsetParent does the right thing in ie7 and below. Return parent with layout!
  //  In other browsers it only includes elements with position absolute, relative or
  // fixed, not elements with overflow set to auto or scroll.
  //        if (UA.ie && ieMode < 8) {
  //            return element.offsetParent;
  //        }
  // 统一的 offsetParent 方法
  var doc = utils.getDocument(element);
  var body = doc.body;
  var parent;
  var positionStyle = utils.css(element, 'position');
  var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';
  if (!skipStatic) {
    return element.nodeName.toLowerCase() === 'html' ? null : getParent(element);
  }
  for (parent = getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = getParent(parent)) {
    positionStyle = utils.css(parent, 'position');
    if (positionStyle !== 'static') {
      return parent;
    }
  }
  return null;
}
var getParent$1 = utils.getParent;
function isAncestorFixed(element) {
  if (utils.isWindow(element) || element.nodeType === 9) {
    return false;
  }
  var doc = utils.getDocument(element);
  var body = doc.body;
  var parent = null;
  for (parent = getParent$1(element);
  // 修复元素位于 document.documentElement 下导致崩溃问题
  parent && parent !== body && parent !== doc; parent = getParent$1(parent)) {
    var positionStyle = utils.css(parent, 'position');
    if (positionStyle === 'fixed') {
      return true;
    }
  }
  return false;
}

/**
 * 获得元素的显示部分的区域
 */
function getVisibleRectForElement(element, alwaysByViewport) {
  var visibleRect = {
    left: 0,
    right: Infinity,
    top: 0,
    bottom: Infinity
  };
  var el = getOffsetParent(element);
  var doc = utils.getDocument(element);
  var win = doc.defaultView || doc.parentWindow;
  var body = doc.body;
  var documentElement = doc.documentElement;

  // Determine the size of the visible rect by climbing the dom accounting for
  // all scrollable containers.
  while (el) {
    // clientWidth is zero for inline block elements in ie.
    if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) &&
    // body may have overflow set on it, yet we still get the entire
    // viewport. In some browsers, el.offsetParent may be
    // document.documentElement, so check for that too.
    el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') {
      var pos = utils.offset(el);
      // add border
      pos.left += el.clientLeft;
      pos.top += el.clientTop;
      visibleRect.top = Math.max(visibleRect.top, pos.top);
      visibleRect.right = Math.min(visibleRect.right,
      // consider area without scrollBar
      pos.left + el.clientWidth);
      visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight);
      visibleRect.left = Math.max(visibleRect.left, pos.left);
    } else if (el === body || el === documentElement) {
      break;
    }
    el = getOffsetParent(el);
  }

  // Set element position to fixed
  // make sure absolute element itself don't affect it's visible area
  // https://github.com/ant-design/ant-design/issues/7601
  var originalPosition = null;
  if (!utils.isWindow(element) && element.nodeType !== 9) {
    originalPosition = element.style.position;
    var position = utils.css(element, 'position');
    if (position === 'absolute') {
      element.style.position = 'fixed';
    }
  }
  var scrollX = utils.getWindowScrollLeft(win);
  var scrollY = utils.getWindowScrollTop(win);
  var viewportWidth = utils.viewportWidth(win);
  var viewportHeight = utils.viewportHeight(win);
  var documentWidth = documentElement.scrollWidth;
  var documentHeight = documentElement.scrollHeight;

  // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX.
  // We should cut this ourself.
  var bodyStyle = window.getComputedStyle(body);
  if (bodyStyle.overflowX === 'hidden') {
    documentWidth = win.innerWidth;
  }
  if (bodyStyle.overflowY === 'hidden') {
    documentHeight = win.innerHeight;
  }

  // Reset element position after calculate the visible area
  if (element.style) {
    element.style.position = originalPosition;
  }
  if (alwaysByViewport || isAncestorFixed(element)) {
    // Clip by viewport's size.
    visibleRect.left = Math.max(visibleRect.left, scrollX);
    visibleRect.top = Math.max(visibleRect.top, scrollY);
    visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);
    visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);
  } else {
    // Clip by document's size.
    var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);
    visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);
    var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);
    visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);
  }
  return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null;
}
function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {
  var pos = utils.clone(elFuturePos);
  var size = {
    width: elRegion.width,
    height: elRegion.height
  };
  if (overflow.adjustX && pos.left < visibleRect.left) {
    pos.left = visibleRect.left;
  }

  // Left edge inside and right edge outside viewport, try to resize it.
  if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {
    size.width -= pos.left + size.width - visibleRect.right;
  }

  // Right edge outside viewport, try to move it.
  if (overflow.adjustX && pos.left + size.width > visibleRect.right) {
    // 保证左边界和可视区域左边界对齐
    pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);
  }

  // Top edge outside viewport, try to move it.
  if (overflow.adjustY && pos.top < visibleRect.top) {
    pos.top = visibleRect.top;
  }

  // Top edge inside and bottom edge outside viewport, try to resize it.
  if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {
    size.height -= pos.top + size.height - visibleRect.bottom;
  }

  // Bottom edge outside viewport, try to move it.
  if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {
    // 保证上边界和可视区域上边界对齐
    pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);
  }
  return utils.mix(pos, size);
}
function getRegion(node) {
  var offset;
  var w;
  var h;
  if (!utils.isWindow(node) && node.nodeType !== 9) {
    offset = utils.offset(node);
    w = utils.outerWidth(node);
    h = utils.outerHeight(node);
  } else {
    var win = utils.getWindow(node);
    offset = {
      left: utils.getWindowScrollLeft(win),
      top: utils.getWindowScrollTop(win)
    };
    w = utils.viewportWidth(win);
    h = utils.viewportHeight(win);
  }
  offset.width = w;
  offset.height = h;
  return offset;
}

/**
 * 获取 node 上的 align 对齐点 相对于页面的坐标
 */

function getAlignOffset(region, align) {
  var V = align.charAt(0);
  var H = align.charAt(1);
  var w = region.width;
  var h = region.height;
  var x = region.left;
  var y = region.top;
  if (V === 'c') {
    y += h / 2;
  } else if (V === 'b') {
    y += h;
  }
  if (H === 'c') {
    x += w / 2;
  } else if (H === 'r') {
    x += w;
  }
  return {
    left: x,
    top: y
  };
}
function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {
  var p1 = getAlignOffset(refNodeRegion, points[1]);
  var p2 = getAlignOffset(elRegion, points[0]);
  var diff = [p2.left - p1.left, p2.top - p1.top];
  return {
    left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]),
    top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1])
  };
}

/**
 * align dom node flexibly
 * @author yiminghe@gmail.com
 */

// http://yiminghe.iteye.com/blog/1124720

function isFailX(elFuturePos, elRegion, visibleRect) {
  return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;
}
function isFailY(elFuturePos, elRegion, visibleRect) {
  return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom;
}
function isCompleteFailX(elFuturePos, elRegion, visibleRect) {
  return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left;
}
function isCompleteFailY(elFuturePos, elRegion, visibleRect) {
  return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top;
}
function flip(points, reg, map) {
  var ret = [];
  utils.each(points, function (p) {
    ret.push(p.replace(reg, function (m) {
      return map[m];
    }));
  });
  return ret;
}
function flipOffset(offset, index) {
  offset[index] = -offset[index];
  return offset;
}
function convertOffset(str, offsetLen) {
  var n;
  if (/%$/.test(str)) {
    n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen;
  } else {
    n = parseInt(str, 10);
  }
  return n || 0;
}
function normalizeOffset(offset, el) {
  offset[0] = convertOffset(offset[0], el.width);
  offset[1] = convertOffset(offset[1], el.height);
}

/**
 * @param el
 * @param tgtRegion 参照节点所占的区域: { left, top, width, height }
 * @param align
 */
function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
  var points = align.points;
  var offset = align.offset || [0, 0];
  var targetOffset = align.targetOffset || [0, 0];
  var overflow = align.overflow;
  var source = align.source || el;
  offset = [].concat(offset);
  targetOffset = [].concat(targetOffset);
  overflow = overflow || {};
  var newOverflowCfg = {};
  var fail = 0;
  var alwaysByViewport = !!(overflow && overflow.alwaysByViewport);
  // 当前节点可以被放置的显示区域
  var visibleRect = getVisibleRectForElement(source, alwaysByViewport);
  // 当前节点所占的区域, left/top/width/height
  var elRegion = getRegion(source);
  // 将 offset 转换成数值，支持百分比
  normalizeOffset(offset, elRegion);
  normalizeOffset(targetOffset, tgtRegion);
  // 当前节点将要被放置的位置
  var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
  // 当前节点将要所处的区域
  var newElRegion = utils.merge(elRegion, elFuturePos);

  // 如果可视区域不能完全放置当前节点时允许调整
  if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) {
    if (overflow.adjustX) {
      // 如果横向不能放下
      if (isFailX(elFuturePos, elRegion, visibleRect)) {
        // 对齐位置反下
        var newPoints = flip(points, /[lr]/gi, {
          l: 'r',
          r: 'l'
        });
        // 偏移量也反下
        var newOffset = flipOffset(offset, 0);
        var newTargetOffset = flipOffset(targetOffset, 0);
        var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset);
        if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {
          fail = 1;
          points = newPoints;
          offset = newOffset;
          targetOffset = newTargetOffset;
        }
      }
    }
    if (overflow.adjustY) {
      // 如果纵向不能放下
      if (isFailY(elFuturePos, elRegion, visibleRect)) {
        // 对齐位置反下
        var _newPoints = flip(points, /[tb]/gi, {
          t: 'b',
          b: 't'
        });
        // 偏移量也反下
        var _newOffset = flipOffset(offset, 1);
        var _newTargetOffset = flipOffset(targetOffset, 1);
        var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset);
        if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) {
          fail = 1;
          points = _newPoints;
          offset = _newOffset;
          targetOffset = _newTargetOffset;
        }
      }
    }

    // 如果失败，重新计算当前节点将要被放置的位置
    if (fail) {
      elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
      utils.mix(newElRegion, elFuturePos);
    }
    var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);
    var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect);
    // 检查反下后的位置是否可以放下了，如果仍然放不下：
    // 1. 复原修改过的定位参数
    if (isStillFailX || isStillFailY) {
      var _newPoints2 = points;

      // 重置对应部分的翻转逻辑
      if (isStillFailX) {
        _newPoints2 = flip(points, /[lr]/gi, {
          l: 'r',
          r: 'l'
        });
      }
      if (isStillFailY) {
        _newPoints2 = flip(points, /[tb]/gi, {
          t: 'b',
          b: 't'
        });
      }
      points = _newPoints2;
      offset = align.offset || [0, 0];
      targetOffset = align.targetOffset || [0, 0];
    }
    // 2. 只有指定了可以调整当前方向才调整
    newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;
    newOverflowCfg.adjustY = overflow.adjustY && isStillFailY;

    // 确实要调整，甚至可能会调整高度宽度
    if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {
      newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg);
    }
  }

  // need judge to in case set fixed with in css on height auto element
  if (newElRegion.width !== elRegion.width) {
    utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width);
  }
  if (newElRegion.height !== elRegion.height) {
    utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height);
  }

  // https://github.com/kissyteam/kissy/issues/190
  // 相对于屏幕位置没变，而 left/top 变了
  // 例如 <div 'relative'><el absolute></div>
  utils.offset(source, {
    left: newElRegion.left,
    top: newElRegion.top
  }, {
    useCssRight: align.useCssRight,
    useCssBottom: align.useCssBottom,
    useCssTransform: align.useCssTransform,
    ignoreShake: align.ignoreShake
  });
  return {
    points: points,
    offset: offset,
    targetOffset: targetOffset,
    overflow: newOverflowCfg
  };
}
/**
 *  2012-04-26 yiminghe@gmail.com
 *   - 优化智能对齐算法
 *   - 慎用 resizeXX
 *
 *  2011-07-13 yiminghe@gmail.com note:
 *   - 增加智能对齐，以及大小调整选项
 **/

function isOutOfVisibleRect(target, alwaysByViewport) {
  var visibleRect = getVisibleRectForElement(target, alwaysByViewport);
  var targetRegion = getRegion(target);
  return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom;
}
function alignElement(el, refNode, align) {
  var target = align.target || refNode;
  var refNodeRegion = getRegion(target);
  var isTargetNotOutOfVisible = !isOutOfVisibleRect(target, align.overflow && align.overflow.alwaysByViewport);
  return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible);
}
alignElement.__getOffsetParent = getOffsetParent;
alignElement.__getVisibleRectForElement = getVisibleRectForElement;

/**
 * `tgtPoint`: { pageX, pageY } or { clientX, clientY }.
 * If client position provided, will internal convert to page position.
 */

function alignPoint(el, tgtPoint, align) {
  var pageX;
  var pageY;
  var doc = utils.getDocument(el);
  var win = doc.defaultView || doc.parentWindow;
  var scrollX = utils.getWindowScrollLeft(win);
  var scrollY = utils.getWindowScrollTop(win);
  var viewportWidth = utils.viewportWidth(win);
  var viewportHeight = utils.viewportHeight(win);
  if ('pageX' in tgtPoint) {
    pageX = tgtPoint.pageX;
  } else {
    pageX = scrollX + tgtPoint.clientX;
  }
  if ('pageY' in tgtPoint) {
    pageY = tgtPoint.pageY;
  } else {
    pageY = scrollY + tgtPoint.clientY;
  }
  var tgtRegion = {
    left: pageX,
    top: pageY,
    width: 0,
    height: 0
  };
  var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight;

  // Provide default target point
  var points = [align.points[0], 'cc'];
  return doAlign(el, tgtRegion, _objectSpread2(_objectSpread2({}, align), {}, {
    points: points
  }), pointInView);
}
/* harmony default export */ var dist_web = ((/* unused pure expression or super */ null && (alignElement)));

// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/warning.js
var es_warning = __webpack_require__(8575);
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/isEqual.js



/**
 * Deeply compares two object literals.
 * @param obj1 object 1
 * @param obj2 object 2
 * @param shallow shallow compare
 * @returns
 */
function isEqual(obj1, obj2) {
  var shallow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  // https://github.com/mapbox/mapbox-gl-js/pull/5979/files#diff-fde7145050c47cc3a306856efd5f9c3016e86e859de9afbd02c879be5067e58f
  var refSet = new Set();
  function deepEqual(a, b) {
    var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
    var circular = refSet.has(a);
    (0,es_warning/* default */.ZP)(!circular, 'Warning: There may be circular references');
    if (circular) {
      return false;
    }
    if (a === b) {
      return true;
    }
    if (shallow && level > 1) {
      return false;
    }
    refSet.add(a);
    var newLevel = level + 1;
    if (Array.isArray(a)) {
      if (!Array.isArray(b) || a.length !== b.length) {
        return false;
      }
      for (var i = 0; i < a.length; i++) {
        if (!deepEqual(a[i], b[i], newLevel)) {
          return false;
        }
      }
      return true;
    }
    if (a && b && (0,esm_typeof/* default */.Z)(a) === 'object' && (0,esm_typeof/* default */.Z)(b) === 'object') {
      var keys = Object.keys(a);
      if (keys.length !== Object.keys(b).length) {
        return false;
      }
      return keys.every(function (key) {
        return deepEqual(a[key], b[key], newLevel);
      });
    }
    // other
    return false;
  }
  return deepEqual(obj1, obj2);
}
/* harmony default export */ var es_isEqual = (isEqual);
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/isVisible.js
/* harmony default export */ var isVisible = (function (element) {
  if (!element) {
    return false;
  }
  if (element instanceof Element) {
    if (element.offsetParent) {
      return true;
    }
    if (element.getBBox) {
      var _getBBox = element.getBBox(),
        width = _getBBox.width,
        height = _getBBox.height;
      if (width || height) {
        return true;
      }
    }
    if (element.getBoundingClientRect) {
      var _element$getBoundingC = element.getBoundingClientRect(),
        _width = _element$getBoundingC.width,
        _height = _element$getBoundingC.height;
      if (_width || _height) {
        return true;
      }
    }
  }
  return false;
});
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useLayoutEffect.js
var useLayoutEffect = __webpack_require__(3616);
;// CONCATENATED MODULE: ./node_modules/_rc-align@4.0.15@rc-align/es/hooks/useBuffer.js

/* harmony default export */ var useBuffer = (function (callback, buffer) {
  var calledRef = _react_18_2_0_react.useRef(false);
  var timeoutRef = _react_18_2_0_react.useRef(null);
  function cancelTrigger() {
    window.clearTimeout(timeoutRef.current);
  }
  function trigger(force) {
    cancelTrigger();
    if (!calledRef.current || force === true) {
      if (callback(force) === false) {
        // Not delay since callback cancelled self
        return;
      }
      calledRef.current = true;
      timeoutRef.current = window.setTimeout(function () {
        calledRef.current = false;
      }, buffer);
    } else {
      timeoutRef.current = window.setTimeout(function () {
        calledRef.current = false;
        trigger();
      }, buffer);
    }
  }
  return [trigger, function () {
    calledRef.current = false;
    cancelTrigger();
  }];
});
;// CONCATENATED MODULE: ./node_modules/_resize-observer-polyfill@1.5.1@resize-observer-polyfill/dist/ResizeObserver.es.js
/**
 * A collection of shims that provide minimal functionality of the ES6 collections.
 *
 * These implementations are not meant to be used outside of the ResizeObserver
 * modules as they cover only a limited range of use cases.
 */
/* eslint-disable require-jsdoc, valid-jsdoc */
var MapShim = function () {
  if (typeof Map !== 'undefined') {
    return Map;
  }
  /**
   * Returns index in provided array that matches the specified key.
   *
   * @param {Array<Array>} arr
   * @param {*} key
   * @returns {number}
   */
  function getIndex(arr, key) {
    var result = -1;
    arr.some(function (entry, index) {
      if (entry[0] === key) {
        result = index;
        return true;
      }
      return false;
    });
    return result;
  }
  return (/** @class */function () {
      function class_1() {
        this.__entries__ = [];
      }
      Object.defineProperty(class_1.prototype, "size", {
        /**
         * @returns {boolean}
         */
        get: function get() {
          return this.__entries__.length;
        },
        enumerable: true,
        configurable: true
      });
      /**
       * @param {*} key
       * @returns {*}
       */
      class_1.prototype.get = function (key) {
        var index = getIndex(this.__entries__, key);
        var entry = this.__entries__[index];
        return entry && entry[1];
      };
      /**
       * @param {*} key
       * @param {*} value
       * @returns {void}
       */
      class_1.prototype.set = function (key, value) {
        var index = getIndex(this.__entries__, key);
        if (~index) {
          this.__entries__[index][1] = value;
        } else {
          this.__entries__.push([key, value]);
        }
      };
      /**
       * @param {*} key
       * @returns {void}
       */
      class_1.prototype.delete = function (key) {
        var entries = this.__entries__;
        var index = getIndex(entries, key);
        if (~index) {
          entries.splice(index, 1);
        }
      };
      /**
       * @param {*} key
       * @returns {void}
       */
      class_1.prototype.has = function (key) {
        return !!~getIndex(this.__entries__, key);
      };
      /**
       * @returns {void}
       */
      class_1.prototype.clear = function () {
        this.__entries__.splice(0);
      };
      /**
       * @param {Function} callback
       * @param {*} [ctx=null]
       * @returns {void}
       */
      class_1.prototype.forEach = function (callback, ctx) {
        if (ctx === void 0) {
          ctx = null;
        }
        for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
          var entry = _a[_i];
          callback.call(ctx, entry[1], entry[0]);
        }
      };
      return class_1;
    }()
  );
}();

/**
 * Detects whether window and document objects are available in current environment.
 */
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;

// Returns global object of a current environment.
var global$1 = function () {
  if (typeof __webpack_require__.g !== 'undefined' && __webpack_require__.g.Math === Math) {
    return __webpack_require__.g;
  }
  if (typeof self !== 'undefined' && self.Math === Math) {
    return self;
  }
  if (typeof window !== 'undefined' && window.Math === Math) {
    return window;
  }
  // eslint-disable-next-line no-new-func
  return Function('return this')();
}();

/**
 * A shim for the requestAnimationFrame which falls back to the setTimeout if
 * first one is not supported.
 *
 * @returns {number} Requests' identifier.
 */
var requestAnimationFrame$1 = function () {
  if (typeof requestAnimationFrame === 'function') {
    // It's required to use a bounded function because IE sometimes throws
    // an "Invalid calling object" error if rAF is invoked without the global
    // object on the left hand side.
    return requestAnimationFrame.bind(global$1);
  }
  return function (callback) {
    return setTimeout(function () {
      return callback(Date.now());
    }, 1000 / 60);
  };
}();

// Defines minimum timeout before adding a trailing call.
var trailingTimeout = 2;
/**
 * Creates a wrapper function which ensures that provided callback will be
 * invoked only once during the specified delay period.
 *
 * @param {Function} callback - Function to be invoked after the delay period.
 * @param {number} delay - Delay after which to invoke callback.
 * @returns {Function}
 */
function throttle(callback, delay) {
  var leadingCall = false,
    trailingCall = false,
    lastCallTime = 0;
  /**
   * Invokes the original callback function and schedules new invocation if
   * the "proxy" was called during current request.
   *
   * @returns {void}
   */
  function resolvePending() {
    if (leadingCall) {
      leadingCall = false;
      callback();
    }
    if (trailingCall) {
      proxy();
    }
  }
  /**
   * Callback invoked after the specified delay. It will further postpone
   * invocation of the original function delegating it to the
   * requestAnimationFrame.
   *
   * @returns {void}
   */
  function timeoutCallback() {
    requestAnimationFrame$1(resolvePending);
  }
  /**
   * Schedules invocation of the original function.
   *
   * @returns {void}
   */
  function proxy() {
    var timeStamp = Date.now();
    if (leadingCall) {
      // Reject immediately following calls.
      if (timeStamp - lastCallTime < trailingTimeout) {
        return;
      }
      // Schedule new call to be in invoked when the pending one is resolved.
      // This is important for "transitions" which never actually start
      // immediately so there is a chance that we might miss one if change
      // happens amids the pending invocation.
      trailingCall = true;
    } else {
      leadingCall = true;
      trailingCall = false;
      setTimeout(timeoutCallback, delay);
    }
    lastCallTime = timeStamp;
  }
  return proxy;
}

// Minimum delay before invoking the update of observers.
var REFRESH_DELAY = 20;
// A list of substrings of CSS properties used to find transition events that
// might affect dimensions of observed elements.
var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
// Check if MutationObserver is available.
var mutationObserverSupported = typeof MutationObserver !== 'undefined';
/**
 * Singleton controller class which handles updates of ResizeObserver instances.
 */
var ResizeObserverController = /** @class */function () {
  /**
   * Creates a new instance of ResizeObserverController.
   *
   * @private
   */
  function ResizeObserverController() {
    /**
     * Indicates whether DOM listeners have been added.
     *
     * @private {boolean}
     */
    this.connected_ = false;
    /**
     * Tells that controller has subscribed for Mutation Events.
     *
     * @private {boolean}
     */
    this.mutationEventsAdded_ = false;
    /**
     * Keeps reference to the instance of MutationObserver.
     *
     * @private {MutationObserver}
     */
    this.mutationsObserver_ = null;
    /**
     * A list of connected observers.
     *
     * @private {Array<ResizeObserverSPI>}
     */
    this.observers_ = [];
    this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
    this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
  }
  /**
   * Adds observer to observers list.
   *
   * @param {ResizeObserverSPI} observer - Observer to be added.
   * @returns {void}
   */
  ResizeObserverController.prototype.addObserver = function (observer) {
    if (!~this.observers_.indexOf(observer)) {
      this.observers_.push(observer);
    }
    // Add listeners if they haven't been added yet.
    if (!this.connected_) {
      this.connect_();
    }
  };
  /**
   * Removes observer from observers list.
   *
   * @param {ResizeObserverSPI} observer - Observer to be removed.
   * @returns {void}
   */
  ResizeObserverController.prototype.removeObserver = function (observer) {
    var observers = this.observers_;
    var index = observers.indexOf(observer);
    // Remove observer if it's present in registry.
    if (~index) {
      observers.splice(index, 1);
    }
    // Remove listeners if controller has no connected observers.
    if (!observers.length && this.connected_) {
      this.disconnect_();
    }
  };
  /**
   * Invokes the update of observers. It will continue running updates insofar
   * it detects changes.
   *
   * @returns {void}
   */
  ResizeObserverController.prototype.refresh = function () {
    var changesDetected = this.updateObservers_();
    // Continue running updates if changes have been detected as there might
    // be future ones caused by CSS transitions.
    if (changesDetected) {
      this.refresh();
    }
  };
  /**
   * Updates every observer from observers list and notifies them of queued
   * entries.
   *
   * @private
   * @returns {boolean} Returns "true" if any observer has detected changes in
   *      dimensions of it's elements.
   */
  ResizeObserverController.prototype.updateObservers_ = function () {
    // Collect observers that have active observations.
    var activeObservers = this.observers_.filter(function (observer) {
      return observer.gatherActive(), observer.hasActive();
    });
    // Deliver notifications in a separate cycle in order to avoid any
    // collisions between observers, e.g. when multiple instances of
    // ResizeObserver are tracking the same element and the callback of one
    // of them changes content dimensions of the observed target. Sometimes
    // this may result in notifications being blocked for the rest of observers.
    activeObservers.forEach(function (observer) {
      return observer.broadcastActive();
    });
    return activeObservers.length > 0;
  };
  /**
   * Initializes DOM listeners.
   *
   * @private
   * @returns {void}
   */
  ResizeObserverController.prototype.connect_ = function () {
    // Do nothing if running in a non-browser environment or if listeners
    // have been already added.
    if (!isBrowser || this.connected_) {
      return;
    }
    // Subscription to the "Transitionend" event is used as a workaround for
    // delayed transitions. This way it's possible to capture at least the
    // final state of an element.
    document.addEventListener('transitionend', this.onTransitionEnd_);
    window.addEventListener('resize', this.refresh);
    if (mutationObserverSupported) {
      this.mutationsObserver_ = new MutationObserver(this.refresh);
      this.mutationsObserver_.observe(document, {
        attributes: true,
        childList: true,
        characterData: true,
        subtree: true
      });
    } else {
      document.addEventListener('DOMSubtreeModified', this.refresh);
      this.mutationEventsAdded_ = true;
    }
    this.connected_ = true;
  };
  /**
   * Removes DOM listeners.
   *
   * @private
   * @returns {void}
   */
  ResizeObserverController.prototype.disconnect_ = function () {
    // Do nothing if running in a non-browser environment or if listeners
    // have been already removed.
    if (!isBrowser || !this.connected_) {
      return;
    }
    document.removeEventListener('transitionend', this.onTransitionEnd_);
    window.removeEventListener('resize', this.refresh);
    if (this.mutationsObserver_) {
      this.mutationsObserver_.disconnect();
    }
    if (this.mutationEventsAdded_) {
      document.removeEventListener('DOMSubtreeModified', this.refresh);
    }
    this.mutationsObserver_ = null;
    this.mutationEventsAdded_ = false;
    this.connected_ = false;
  };
  /**
   * "Transitionend" event handler.
   *
   * @private
   * @param {TransitionEvent} event
   * @returns {void}
   */
  ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
    var _b = _a.propertyName,
      propertyName = _b === void 0 ? '' : _b;
    // Detect whether transition may affect dimensions of an element.
    var isReflowProperty = transitionKeys.some(function (key) {
      return !!~propertyName.indexOf(key);
    });
    if (isReflowProperty) {
      this.refresh();
    }
  };
  /**
   * Returns instance of the ResizeObserverController.
   *
   * @returns {ResizeObserverController}
   */
  ResizeObserverController.getInstance = function () {
    if (!this.instance_) {
      this.instance_ = new ResizeObserverController();
    }
    return this.instance_;
  };
  /**
   * Holds reference to the controller's instance.
   *
   * @private {ResizeObserverController}
   */
  ResizeObserverController.instance_ = null;
  return ResizeObserverController;
}();

/**
 * Defines non-writable/enumerable properties of the provided target object.
 *
 * @param {Object} target - Object for which to define properties.
 * @param {Object} props - Properties to be defined.
 * @returns {Object} Target object.
 */
var defineConfigurable = function defineConfigurable(target, props) {
  for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
    var key = _a[_i];
    Object.defineProperty(target, key, {
      value: props[key],
      enumerable: false,
      writable: false,
      configurable: true
    });
  }
  return target;
};

/**
 * Returns the global object associated with provided element.
 *
 * @param {Object} target
 * @returns {Object}
 */
var getWindowOf = function getWindowOf(target) {
  // Assume that the element is an instance of Node, which means that it
  // has the "ownerDocument" property from which we can retrieve a
  // corresponding global object.
  var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
  // Return the local global object if it's not possible extract one from
  // provided element.
  return ownerGlobal || global$1;
};

// Placeholder of an empty content rectangle.
var emptyRect = createRectInit(0, 0, 0, 0);
/**
 * Converts provided string to a number.
 *
 * @param {number|string} value
 * @returns {number}
 */
function toFloat(value) {
  return parseFloat(value) || 0;
}
/**
 * Extracts borders size from provided styles.
 *
 * @param {CSSStyleDeclaration} styles
 * @param {...string} positions - Borders positions (top, right, ...)
 * @returns {number}
 */
function getBordersSize(styles) {
  var positions = [];
  for (var _i = 1; _i < arguments.length; _i++) {
    positions[_i - 1] = arguments[_i];
  }
  return positions.reduce(function (size, position) {
    var value = styles['border-' + position + '-width'];
    return size + toFloat(value);
  }, 0);
}
/**
 * Extracts paddings sizes from provided styles.
 *
 * @param {CSSStyleDeclaration} styles
 * @returns {Object} Paddings box.
 */
function getPaddings(styles) {
  var positions = ['top', 'right', 'bottom', 'left'];
  var paddings = {};
  for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
    var position = positions_1[_i];
    var value = styles['padding-' + position];
    paddings[position] = toFloat(value);
  }
  return paddings;
}
/**
 * Calculates content rectangle of provided SVG element.
 *
 * @param {SVGGraphicsElement} target - Element content rectangle of which needs
 *      to be calculated.
 * @returns {DOMRectInit}
 */
function getSVGContentRect(target) {
  var bbox = target.getBBox();
  return createRectInit(0, 0, bbox.width, bbox.height);
}
/**
 * Calculates content rectangle of provided HTMLElement.
 *
 * @param {HTMLElement} target - Element for which to calculate the content rectangle.
 * @returns {DOMRectInit}
 */
function getHTMLElementContentRect(target) {
  // Client width & height properties can't be
  // used exclusively as they provide rounded values.
  var clientWidth = target.clientWidth,
    clientHeight = target.clientHeight;
  // By this condition we can catch all non-replaced inline, hidden and
  // detached elements. Though elements with width & height properties less
  // than 0.5 will be discarded as well.
  //
  // Without it we would need to implement separate methods for each of
  // those cases and it's not possible to perform a precise and performance
  // effective test for hidden elements. E.g. even jQuery's ':visible' filter
  // gives wrong results for elements with width & height less than 0.5.
  if (!clientWidth && !clientHeight) {
    return emptyRect;
  }
  var styles = getWindowOf(target).getComputedStyle(target);
  var paddings = getPaddings(styles);
  var horizPad = paddings.left + paddings.right;
  var vertPad = paddings.top + paddings.bottom;
  // Computed styles of width & height are being used because they are the
  // only dimensions available to JS that contain non-rounded values. It could
  // be possible to utilize the getBoundingClientRect if only it's data wasn't
  // affected by CSS transformations let alone paddings, borders and scroll bars.
  var width = toFloat(styles.width),
    height = toFloat(styles.height);
  // Width & height include paddings and borders when the 'border-box' box
  // model is applied (except for IE).
  if (styles.boxSizing === 'border-box') {
    // Following conditions are required to handle Internet Explorer which
    // doesn't include paddings and borders to computed CSS dimensions.
    //
    // We can say that if CSS dimensions + paddings are equal to the "client"
    // properties then it's either IE, and thus we don't need to subtract
    // anything, or an element merely doesn't have paddings/borders styles.
    if (Math.round(width + horizPad) !== clientWidth) {
      width -= getBordersSize(styles, 'left', 'right') + horizPad;
    }
    if (Math.round(height + vertPad) !== clientHeight) {
      height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
    }
  }
  // Following steps can't be applied to the document's root element as its
  // client[Width/Height] properties represent viewport area of the window.
  // Besides, it's as well not necessary as the <html> itself neither has
  // rendered scroll bars nor it can be clipped.
  if (!isDocumentElement(target)) {
    // In some browsers (only in Firefox, actually) CSS width & height
    // include scroll bars size which can be removed at this step as scroll
    // bars are the only difference between rounded dimensions + paddings
    // and "client" properties, though that is not always true in Chrome.
    var vertScrollbar = Math.round(width + horizPad) - clientWidth;
    var horizScrollbar = Math.round(height + vertPad) - clientHeight;
    // Chrome has a rather weird rounding of "client" properties.
    // E.g. for an element with content width of 314.2px it sometimes gives
    // the client width of 315px and for the width of 314.7px it may give
    // 314px. And it doesn't happen all the time. So just ignore this delta
    // as a non-relevant.
    if (Math.abs(vertScrollbar) !== 1) {
      width -= vertScrollbar;
    }
    if (Math.abs(horizScrollbar) !== 1) {
      height -= horizScrollbar;
    }
  }
  return createRectInit(paddings.left, paddings.top, width, height);
}
/**
 * Checks whether provided element is an instance of the SVGGraphicsElement.
 *
 * @param {Element} target - Element to be checked.
 * @returns {boolean}
 */
var isSVGGraphicsElement = function () {
  // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
  // interface.
  if (typeof SVGGraphicsElement !== 'undefined') {
    return function (target) {
      return target instanceof getWindowOf(target).SVGGraphicsElement;
    };
  }
  // If it's so, then check that element is at least an instance of the
  // SVGElement and that it has the "getBBox" method.
  // eslint-disable-next-line no-extra-parens
  return function (target) {
    return target instanceof getWindowOf(target).SVGElement && typeof target.getBBox === 'function';
  };
}();
/**
 * Checks whether provided element is a document element (<html>).
 *
 * @param {Element} target - Element to be checked.
 * @returns {boolean}
 */
function isDocumentElement(target) {
  return target === getWindowOf(target).document.documentElement;
}
/**
 * Calculates an appropriate content rectangle for provided html or svg element.
 *
 * @param {Element} target - Element content rectangle of which needs to be calculated.
 * @returns {DOMRectInit}
 */
function getContentRect(target) {
  if (!isBrowser) {
    return emptyRect;
  }
  if (isSVGGraphicsElement(target)) {
    return getSVGContentRect(target);
  }
  return getHTMLElementContentRect(target);
}
/**
 * Creates rectangle with an interface of the DOMRectReadOnly.
 * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
 *
 * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
 * @returns {DOMRectReadOnly}
 */
function createReadOnlyRect(_a) {
  var x = _a.x,
    y = _a.y,
    width = _a.width,
    height = _a.height;
  // If DOMRectReadOnly is available use it as a prototype for the rectangle.
  var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
  var rect = Object.create(Constr.prototype);
  // Rectangle's properties are not writable and non-enumerable.
  defineConfigurable(rect, {
    x: x,
    y: y,
    width: width,
    height: height,
    top: y,
    right: x + width,
    bottom: height + y,
    left: x
  });
  return rect;
}
/**
 * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
 * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
 *
 * @param {number} x - X coordinate.
 * @param {number} y - Y coordinate.
 * @param {number} width - Rectangle's width.
 * @param {number} height - Rectangle's height.
 * @returns {DOMRectInit}
 */
function createRectInit(x, y, width, height) {
  return {
    x: x,
    y: y,
    width: width,
    height: height
  };
}

/**
 * Class that is responsible for computations of the content rectangle of
 * provided DOM element and for keeping track of it's changes.
 */
var ResizeObservation = /** @class */function () {
  /**
   * Creates an instance of ResizeObservation.
   *
   * @param {Element} target - Element to be observed.
   */
  function ResizeObservation(target) {
    /**
     * Broadcasted width of content rectangle.
     *
     * @type {number}
     */
    this.broadcastWidth = 0;
    /**
     * Broadcasted height of content rectangle.
     *
     * @type {number}
     */
    this.broadcastHeight = 0;
    /**
     * Reference to the last observed content rectangle.
     *
     * @private {DOMRectInit}
     */
    this.contentRect_ = createRectInit(0, 0, 0, 0);
    this.target = target;
  }
  /**
   * Updates content rectangle and tells whether it's width or height properties
   * have changed since the last broadcast.
   *
   * @returns {boolean}
   */
  ResizeObservation.prototype.isActive = function () {
    var rect = getContentRect(this.target);
    this.contentRect_ = rect;
    return rect.width !== this.broadcastWidth || rect.height !== this.broadcastHeight;
  };
  /**
   * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
   * from the corresponding properties of the last observed content rectangle.
   *
   * @returns {DOMRectInit} Last observed content rectangle.
   */
  ResizeObservation.prototype.broadcastRect = function () {
    var rect = this.contentRect_;
    this.broadcastWidth = rect.width;
    this.broadcastHeight = rect.height;
    return rect;
  };
  return ResizeObservation;
}();
var ResizeObserverEntry = /** @class */function () {
  /**
   * Creates an instance of ResizeObserverEntry.
   *
   * @param {Element} target - Element that is being observed.
   * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
   */
  function ResizeObserverEntry(target, rectInit) {
    var contentRect = createReadOnlyRect(rectInit);
    // According to the specification following properties are not writable
    // and are also not enumerable in the native implementation.
    //
    // Property accessors are not being used as they'd require to define a
    // private WeakMap storage which may cause memory leaks in browsers that
    // don't support this type of collections.
    defineConfigurable(this, {
      target: target,
      contentRect: contentRect
    });
  }
  return ResizeObserverEntry;
}();
var ResizeObserverSPI = /** @class */function () {
  /**
   * Creates a new instance of ResizeObserver.
   *
   * @param {ResizeObserverCallback} callback - Callback function that is invoked
   *      when one of the observed elements changes it's content dimensions.
   * @param {ResizeObserverController} controller - Controller instance which
   *      is responsible for the updates of observer.
   * @param {ResizeObserver} callbackCtx - Reference to the public
   *      ResizeObserver instance which will be passed to callback function.
   */
  function ResizeObserverSPI(callback, controller, callbackCtx) {
    /**
     * Collection of resize observations that have detected changes in dimensions
     * of elements.
     *
     * @private {Array<ResizeObservation>}
     */
    this.activeObservations_ = [];
    /**
     * Registry of the ResizeObservation instances.
     *
     * @private {Map<Element, ResizeObservation>}
     */
    this.observations_ = new MapShim();
    if (typeof callback !== 'function') {
      throw new TypeError('The callback provided as parameter 1 is not a function.');
    }
    this.callback_ = callback;
    this.controller_ = controller;
    this.callbackCtx_ = callbackCtx;
  }
  /**
   * Starts observing provided element.
   *
   * @param {Element} target - Element to be observed.
   * @returns {void}
   */
  ResizeObserverSPI.prototype.observe = function (target) {
    if (!arguments.length) {
      throw new TypeError('1 argument required, but only 0 present.');
    }
    // Do nothing if current environment doesn't have the Element interface.
    if (typeof Element === 'undefined' || !(Element instanceof Object)) {
      return;
    }
    if (!(target instanceof getWindowOf(target).Element)) {
      throw new TypeError('parameter 1 is not of type "Element".');
    }
    var observations = this.observations_;
    // Do nothing if element is already being observed.
    if (observations.has(target)) {
      return;
    }
    observations.set(target, new ResizeObservation(target));
    this.controller_.addObserver(this);
    // Force the update of observations.
    this.controller_.refresh();
  };
  /**
   * Stops observing provided element.
   *
   * @param {Element} target - Element to stop observing.
   * @returns {void}
   */
  ResizeObserverSPI.prototype.unobserve = function (target) {
    if (!arguments.length) {
      throw new TypeError('1 argument required, but only 0 present.');
    }
    // Do nothing if current environment doesn't have the Element interface.
    if (typeof Element === 'undefined' || !(Element instanceof Object)) {
      return;
    }
    if (!(target instanceof getWindowOf(target).Element)) {
      throw new TypeError('parameter 1 is not of type "Element".');
    }
    var observations = this.observations_;
    // Do nothing if element is not being observed.
    if (!observations.has(target)) {
      return;
    }
    observations.delete(target);
    if (!observations.size) {
      this.controller_.removeObserver(this);
    }
  };
  /**
   * Stops observing all elements.
   *
   * @returns {void}
   */
  ResizeObserverSPI.prototype.disconnect = function () {
    this.clearActive();
    this.observations_.clear();
    this.controller_.removeObserver(this);
  };
  /**
   * Collects observation instances the associated element of which has changed
   * it's content rectangle.
   *
   * @returns {void}
   */
  ResizeObserverSPI.prototype.gatherActive = function () {
    var _this = this;
    this.clearActive();
    this.observations_.forEach(function (observation) {
      if (observation.isActive()) {
        _this.activeObservations_.push(observation);
      }
    });
  };
  /**
   * Invokes initial callback function with a list of ResizeObserverEntry
   * instances collected from active resize observations.
   *
   * @returns {void}
   */
  ResizeObserverSPI.prototype.broadcastActive = function () {
    // Do nothing if observer doesn't have active observations.
    if (!this.hasActive()) {
      return;
    }
    var ctx = this.callbackCtx_;
    // Create ResizeObserverEntry instance for every active observation.
    var entries = this.activeObservations_.map(function (observation) {
      return new ResizeObserverEntry(observation.target, observation.broadcastRect());
    });
    this.callback_.call(ctx, entries, ctx);
    this.clearActive();
  };
  /**
   * Clears the collection of active observations.
   *
   * @returns {void}
   */
  ResizeObserverSPI.prototype.clearActive = function () {
    this.activeObservations_.splice(0);
  };
  /**
   * Tells whether observer has active observations.
   *
   * @returns {boolean}
   */
  ResizeObserverSPI.prototype.hasActive = function () {
    return this.activeObservations_.length > 0;
  };
  return ResizeObserverSPI;
}();

// Registry of internal observers. If WeakMap is not available use current shim
// for the Map collection as it has all required methods and because WeakMap
// can't be fully polyfilled anyway.
var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
/**
 * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
 * exposing only those methods and properties that are defined in the spec.
 */
var ResizeObserver_es_ResizeObserver = /** @class */function () {
  /**
   * Creates a new instance of ResizeObserver.
   *
   * @param {ResizeObserverCallback} callback - Callback that is invoked when
   *      dimensions of the observed elements change.
   */
  function ResizeObserver(callback) {
    if (!(this instanceof ResizeObserver)) {
      throw new TypeError('Cannot call a class as a function.');
    }
    if (!arguments.length) {
      throw new TypeError('1 argument required, but only 0 present.');
    }
    var controller = ResizeObserverController.getInstance();
    var observer = new ResizeObserverSPI(callback, controller, this);
    observers.set(this, observer);
  }
  return ResizeObserver;
}();
// Expose public methods of ResizeObserver.
['observe', 'unobserve', 'disconnect'].forEach(function (method) {
  ResizeObserver_es_ResizeObserver.prototype[method] = function () {
    var _a;
    return (_a = observers.get(this))[method].apply(_a, arguments);
  };
});
var index = function () {
  // Export existing implementation if available.
  if (typeof global$1.ResizeObserver !== 'undefined') {
    return global$1.ResizeObserver;
  }
  return ResizeObserver_es_ResizeObserver;
}();
/* harmony default export */ var ResizeObserver_es = (index);
;// CONCATENATED MODULE: ./node_modules/_rc-align@4.0.15@rc-align/es/util.js



function isSamePoint(prev, next) {
  if (prev === next) return true;
  if (!prev || !next) return false;
  if ('pageX' in next && 'pageY' in next) {
    return prev.pageX === next.pageX && prev.pageY === next.pageY;
  }
  if ('clientX' in next && 'clientY' in next) {
    return prev.clientX === next.clientX && prev.clientY === next.clientY;
  }
  return false;
}
function restoreFocus(activeElement, container) {
  // Focus back if is in the container
  if (activeElement !== document.activeElement && (0,contains/* default */.Z)(container, activeElement) && typeof activeElement.focus === 'function') {
    activeElement.focus();
  }
}
function monitorResize(element, callback) {
  var prevWidth = null;
  var prevHeight = null;
  function onResize(_ref) {
    var _ref2 = (0,slicedToArray/* default */.Z)(_ref, 1),
      target = _ref2[0].target;
    if (!document.documentElement.contains(target)) return;
    var _target$getBoundingCl = target.getBoundingClientRect(),
      width = _target$getBoundingCl.width,
      height = _target$getBoundingCl.height;
    var fixedWidth = Math.floor(width);
    var fixedHeight = Math.floor(height);
    if (prevWidth !== fixedWidth || prevHeight !== fixedHeight) {
      // https://webkit.org/blog/9997/resizeobserver-in-webkit/
      Promise.resolve().then(function () {
        callback({
          width: fixedWidth,
          height: fixedHeight
        });
      });
    }
    prevWidth = fixedWidth;
    prevHeight = fixedHeight;
  }
  var resizeObserver = new ResizeObserver_es(onResize);
  if (element) {
    resizeObserver.observe(element);
  }
  return function () {
    resizeObserver.disconnect();
  };
}
;// CONCATENATED MODULE: ./node_modules/_rc-align@4.0.15@rc-align/es/Align.js



/**
 * Removed props:
 *  - childrenProps
 */









function getElement(func) {
  if (typeof func !== 'function') return null;
  return func();
}
function getPoint(point) {
  if ((0,esm_typeof/* default */.Z)(point) !== 'object' || !point) return null;
  return point;
}
var Align = function Align(_ref, ref) {
  var children = _ref.children,
    disabled = _ref.disabled,
    target = _ref.target,
    align = _ref.align,
    onAlign = _ref.onAlign,
    monitorWindowResize = _ref.monitorWindowResize,
    _ref$monitorBufferTim = _ref.monitorBufferTime,
    monitorBufferTime = _ref$monitorBufferTim === void 0 ? 0 : _ref$monitorBufferTim;
  var cacheRef = _react_18_2_0_react.useRef({});
  /** Popup node ref */

  var nodeRef = _react_18_2_0_react.useRef();
  var childNode = _react_18_2_0_react.Children.only(children); // ===================== Align ======================
  // We save the props here to avoid closure makes props ood

  var forceAlignPropsRef = _react_18_2_0_react.useRef({});
  forceAlignPropsRef.current.disabled = disabled;
  forceAlignPropsRef.current.target = target;
  forceAlignPropsRef.current.align = align;
  forceAlignPropsRef.current.onAlign = onAlign;
  var _useBuffer = useBuffer(function () {
      var _forceAlignPropsRef$c = forceAlignPropsRef.current,
        latestDisabled = _forceAlignPropsRef$c.disabled,
        latestTarget = _forceAlignPropsRef$c.target,
        latestAlign = _forceAlignPropsRef$c.align,
        latestOnAlign = _forceAlignPropsRef$c.onAlign;
      var source = nodeRef.current;
      if (!latestDisabled && latestTarget && source) {
        var _result;
        var _element = getElement(latestTarget);
        var _point = getPoint(latestTarget);
        cacheRef.current.element = _element;
        cacheRef.current.point = _point;
        cacheRef.current.align = latestAlign; // IE lose focus after element realign
        // We should record activeElement and restore later

        var _document = document,
          activeElement = _document.activeElement; // We only align when element is visible

        if (_element && isVisible(_element)) {
          _result = alignElement(source, _element, latestAlign);
        } else if (_point) {
          _result = alignPoint(source, _point, latestAlign);
        }
        restoreFocus(activeElement, source);
        if (latestOnAlign && _result) {
          latestOnAlign(source, _result);
        }
        return true;
      }
      return false;
    }, monitorBufferTime),
    _useBuffer2 = (0,slicedToArray/* default */.Z)(_useBuffer, 2),
    _forceAlign = _useBuffer2[0],
    cancelForceAlign = _useBuffer2[1]; // ===================== Effect =====================
  // Handle props change

  var _React$useState = _react_18_2_0_react.useState(),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    element = _React$useState2[0],
    setElement = _React$useState2[1];
  var _React$useState3 = _react_18_2_0_react.useState(),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    point = _React$useState4[0],
    setPoint = _React$useState4[1];
  (0,useLayoutEffect/* default */.Z)(function () {
    setElement(getElement(target));
    setPoint(getPoint(target));
  });
  _react_18_2_0_react.useEffect(function () {
    if (cacheRef.current.element !== element || !isSamePoint(cacheRef.current.point, point) || !es_isEqual(cacheRef.current.align, align)) {
      _forceAlign();
    }
  }); // Watch popup element resize

  _react_18_2_0_react.useEffect(function () {
    var cancelFn = monitorResize(nodeRef.current, _forceAlign);
    return cancelFn;
  }, [nodeRef.current]); // Watch target element resize

  _react_18_2_0_react.useEffect(function () {
    var cancelFn = monitorResize(element, _forceAlign);
    return cancelFn;
  }, [element]); // Listen for disabled change

  _react_18_2_0_react.useEffect(function () {
    if (!disabled) {
      _forceAlign();
    } else {
      cancelForceAlign();
    }
  }, [disabled]); // Listen for window resize

  _react_18_2_0_react.useEffect(function () {
    if (monitorWindowResize) {
      var cancelFn = addEventListenerWrap(window, 'resize', _forceAlign);
      return cancelFn.remove;
    }
  }, [monitorWindowResize]); // Clear all if unmount

  _react_18_2_0_react.useEffect(function () {
    return function () {
      cancelForceAlign();
    };
  }, []); // ====================== Ref =======================

  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      forceAlign: function forceAlign() {
        return _forceAlign(true);
      }
    };
  }); // ===================== Render =====================

  if ( /*#__PURE__*/_react_18_2_0_react.isValidElement(childNode)) {
    childNode = /*#__PURE__*/_react_18_2_0_react.cloneElement(childNode, {
      ref: (0,es_ref/* composeRef */.sQ)(childNode.ref, nodeRef)
    });
  }
  return childNode;
};
var RcAlign = /*#__PURE__*/_react_18_2_0_react.forwardRef(Align);
RcAlign.displayName = 'Align';
/* harmony default export */ var es_Align = (RcAlign);
;// CONCATENATED MODULE: ./node_modules/_rc-align@4.0.15@rc-align/es/index.js
// export this package's api

/* harmony default export */ var _rc_align_4_0_15_rc_align_es = (es_Align);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useState.js
var hooks_useState = __webpack_require__(5458);
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/Popup/useVisibleStatus.js






/**
 * Popup should follow the steps for each component work correctly:
 * measure - check for the current stretch size
 * align - let component align the position
 * aligned - re-align again in case additional className changed the size
 * afterAlign - choice next step is trigger motion or finished
 * beforeMotion - should reset motion to invisible so that CSSMotion can do normal motion
 * motion - play the motion
 * stable - everything is done
 */

var StatusQueue = ['measure', 'alignPre', 'align', null, 'motion'];
/* harmony default export */ var useVisibleStatus = (function (visible, doMeasure) {
  var _useState = (0,hooks_useState/* default */.Z)(null),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    status = _useState2[0],
    setInternalStatus = _useState2[1];
  var rafRef = (0,_react_18_2_0_react.useRef)();
  function setStatus(nextStatus) {
    setInternalStatus(nextStatus, true);
  }
  function cancelRaf() {
    raf/* default */.Z.cancel(rafRef.current);
  }
  function goNextStatus(callback) {
    cancelRaf();
    rafRef.current = (0,raf/* default */.Z)(function () {
      // Only align should be manually trigger
      setStatus(function (prev) {
        switch (status) {
          case 'align':
            return 'motion';
          case 'motion':
            return 'stable';
          default:
        }
        return prev;
      });
      callback === null || callback === void 0 ? void 0 : callback();
    });
  } // Init status

  (0,_react_18_2_0_react.useEffect)(function () {
    setStatus('measure');
  }, [visible]); // Go next status

  (0,_react_18_2_0_react.useEffect)(function () {
    switch (status) {
      case 'measure':
        doMeasure();
        break;
      default:
    }
    if (status) {
      rafRef.current = (0,raf/* default */.Z)( /*#__PURE__*/(0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
        var index, nextStatus;
        return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                index = StatusQueue.indexOf(status);
                nextStatus = StatusQueue[index + 1];
                if (nextStatus && index !== -1) {
                  setStatus(nextStatus);
                }
              case 3:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      })));
    }
  }, [status]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return function () {
      cancelRaf();
    };
  }, []);
  return [status, goNextStatus];
});
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/Popup/useStretchStyle.js


/* harmony default export */ var useStretchStyle = (function (stretch) {
  var _React$useState = _react_18_2_0_react.useState({
      width: 0,
      height: 0
    }),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    targetSize = _React$useState2[0],
    setTargetSize = _React$useState2[1];
  function measureStretch(element) {
    var tgtWidth = element.offsetWidth,
      tgtHeight = element.offsetHeight;
    var _element$getBoundingC = element.getBoundingClientRect(),
      width = _element$getBoundingC.width,
      height = _element$getBoundingC.height; // Rect is more accurate than offset, use if near

    if (Math.abs(tgtWidth - width) < 1 && Math.abs(tgtHeight - height) < 1) {
      tgtWidth = width;
      tgtHeight = height;
    }
    setTargetSize({
      width: tgtWidth,
      height: tgtHeight
    });
  } // Merge stretch style

  var style = _react_18_2_0_react.useMemo(function () {
    var sizeStyle = {};
    if (stretch) {
      var width = targetSize.width,
        height = targetSize.height; // Stretch with target

      if (stretch.indexOf('height') !== -1 && height) {
        sizeStyle.height = height;
      } else if (stretch.indexOf('minHeight') !== -1 && height) {
        sizeStyle.minHeight = height;
      }
      if (stretch.indexOf('width') !== -1 && width) {
        sizeStyle.width = width;
      } else if (stretch.indexOf('minWidth') !== -1 && width) {
        sizeStyle.minWidth = width;
      }
    }
    return sizeStyle;
  }, [stretch, targetSize]);
  return [style, measureStretch];
});
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/Popup/PopupInner.js












var PopupInner = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var visible = props.visible,
    prefixCls = props.prefixCls,
    className = props.className,
    style = props.style,
    children = props.children,
    zIndex = props.zIndex,
    stretch = props.stretch,
    destroyPopupOnHide = props.destroyPopupOnHide,
    forceRender = props.forceRender,
    align = props.align,
    point = props.point,
    getRootDomNode = props.getRootDomNode,
    getClassNameFromAlign = props.getClassNameFromAlign,
    onAlign = props.onAlign,
    onMouseEnter = props.onMouseEnter,
    onMouseLeave = props.onMouseLeave,
    onMouseDown = props.onMouseDown,
    onTouchStart = props.onTouchStart,
    onClick = props.onClick;
  var alignRef = (0,_react_18_2_0_react.useRef)();
  var elementRef = (0,_react_18_2_0_react.useRef)();
  var _useState = (0,_react_18_2_0_react.useState)(),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    alignedClassName = _useState2[0],
    setAlignedClassName = _useState2[1]; // ======================= Measure ========================

  var _useStretchStyle = useStretchStyle(stretch),
    _useStretchStyle2 = (0,slicedToArray/* default */.Z)(_useStretchStyle, 2),
    stretchStyle = _useStretchStyle2[0],
    measureStretchStyle = _useStretchStyle2[1];
  function doMeasure() {
    if (stretch) {
      measureStretchStyle(getRootDomNode());
    }
  } // ======================== Status ========================

  var _useVisibleStatus = useVisibleStatus(visible, doMeasure),
    _useVisibleStatus2 = (0,slicedToArray/* default */.Z)(_useVisibleStatus, 2),
    status = _useVisibleStatus2[0],
    goNextStatus = _useVisibleStatus2[1]; // ======================== Aligns ========================

  /**
   * `alignedClassName` may modify `source` size,
   * which means one time align may not move to the correct position at once.
   *
   * We will reset `alignTimes` for each status switch to `alignPre`
   * and let `rc-align` to align for multiple times to ensure get final stable place.
   * Currently we mark `alignTimes < 2` repeat align, it will increase if user report for align issue.
   * 
   * Update:
   * In React 18. `rc-align` effect of align may faster than ref called trigger `forceAlign`.
   * We adjust this to `alignTimes < 2`.
   * We need refactor `rc-align` to support mark of `forceAlign` call if this still happen.
   */

  var _useState3 = (0,_react_18_2_0_react.useState)(0),
    _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2),
    alignTimes = _useState4[0],
    setAlignTimes = _useState4[1];
  var prepareResolveRef = (0,_react_18_2_0_react.useRef)();
  (0,useLayoutEffect/* default */.Z)(function () {
    if (status === 'alignPre') {
      setAlignTimes(0);
    }
  }, [status]); // `target` on `rc-align` can accept as a function to get the bind element or a point.
  // ref: https://www.npmjs.com/package/rc-align

  function getAlignTarget() {
    if (point) {
      return point;
    }
    return getRootDomNode;
  }
  function forceAlign() {
    var _alignRef$current;
    (_alignRef$current = alignRef.current) === null || _alignRef$current === void 0 ? void 0 : _alignRef$current.forceAlign();
  }
  function onInternalAlign(popupDomNode, matchAlign) {
    var nextAlignedClassName = getClassNameFromAlign(matchAlign);
    if (alignedClassName !== nextAlignedClassName) {
      setAlignedClassName(nextAlignedClassName);
    } // We will retry multi times to make sure that the element has been align in the right position.

    setAlignTimes(function (val) {
      return val + 1;
    });
    if (status === 'align') {
      onAlign === null || onAlign === void 0 ? void 0 : onAlign(popupDomNode, matchAlign);
    }
  } // Delay to go to next status

  (0,useLayoutEffect/* default */.Z)(function () {
    if (status === 'align') {
      // Repeat until not more align needed
      if (alignTimes < 3) {
        forceAlign();
      } else {
        goNextStatus(function () {
          var _prepareResolveRef$cu;
          (_prepareResolveRef$cu = prepareResolveRef.current) === null || _prepareResolveRef$cu === void 0 ? void 0 : _prepareResolveRef$cu.call(prepareResolveRef);
        });
      }
    }
  }, [alignTimes]); // ======================== Motion ========================

  var motion = (0,objectSpread2/* default */.Z)({}, getMotion(props));
  ['onAppearEnd', 'onEnterEnd', 'onLeaveEnd'].forEach(function (eventName) {
    var originHandler = motion[eventName];
    motion[eventName] = function (element, event) {
      goNextStatus();
      return originHandler === null || originHandler === void 0 ? void 0 : originHandler(element, event);
    };
  });
  function onShowPrepare() {
    return new Promise(function (resolve) {
      prepareResolveRef.current = resolve;
    });
  } // Go to stable directly when motion not provided

  _react_18_2_0_react.useEffect(function () {
    if (!motion.motionName && status === 'motion') {
      goNextStatus();
    }
  }, [motion.motionName, status]); // ========================= Refs =========================

  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      forceAlign: forceAlign,
      getElement: function getElement() {
        return elementRef.current;
      }
    };
  }); // ======================== Render ========================

  var mergedStyle = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, stretchStyle), {}, {
    zIndex: zIndex,
    opacity: status === 'motion' || status === 'stable' || !visible ? undefined : 0,
    // Cannot interact with disappearing elements
    // https://github.com/ant-design/ant-design/issues/35051#issuecomment-1101340714
    pointerEvents: !visible && status !== 'stable' ? 'none' : undefined
  }, style); // Align status

  var alignDisabled = true;
  if (align !== null && align !== void 0 && align.points && (status === 'align' || status === 'stable')) {
    alignDisabled = false;
  }
  var childNode = children; // Wrapper when multiple children

  if (_react_18_2_0_react.Children.count(children) > 1) {
    childNode = /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-content")
    }, children);
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(es/* default */.ZP, (0,esm_extends/* default */.Z)({
    visible: visible,
    ref: elementRef,
    leavedClassName: "".concat(prefixCls, "-hidden")
  }, motion, {
    onAppearPrepare: onShowPrepare,
    onEnterPrepare: onShowPrepare,
    removeOnLeave: destroyPopupOnHide,
    forceRender: forceRender
  }), function (_ref, motionRef) {
    var motionClassName = _ref.className,
      motionStyle = _ref.style;
    var mergedClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, alignedClassName, motionClassName);
    return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_align_4_0_15_rc_align_es, {
      target: getAlignTarget(),
      key: "popup",
      ref: alignRef,
      monitorWindowResize: true,
      disabled: alignDisabled,
      align: align,
      onAlign: onInternalAlign
    }, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      ref: motionRef,
      className: mergedClassName,
      onMouseEnter: onMouseEnter,
      onMouseLeave: onMouseLeave,
      onMouseDownCapture: onMouseDown,
      onTouchStartCapture: onTouchStart,
      onClick: onClick,
      style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, motionStyle), mergedStyle)
    }, childNode));
  });
});
PopupInner.displayName = 'PopupInner';
/* harmony default export */ var Popup_PopupInner = (PopupInner);
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/Popup/MobilePopupInner.js





var MobilePopupInner = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var prefixCls = props.prefixCls,
    visible = props.visible,
    zIndex = props.zIndex,
    children = props.children,
    _props$mobile = props.mobile;
  _props$mobile = _props$mobile === void 0 ? {} : _props$mobile;
  var popupClassName = _props$mobile.popupClassName,
    popupStyle = _props$mobile.popupStyle,
    _props$mobile$popupMo = _props$mobile.popupMotion,
    popupMotion = _props$mobile$popupMo === void 0 ? {} : _props$mobile$popupMo,
    popupRender = _props$mobile.popupRender,
    onClick = props.onClick;
  var elementRef = _react_18_2_0_react.useRef(); // ========================= Refs =========================

  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      forceAlign: function forceAlign() {},
      getElement: function getElement() {
        return elementRef.current;
      }
    };
  }); // ======================== Render ========================

  var mergedStyle = (0,objectSpread2/* default */.Z)({
    zIndex: zIndex
  }, popupStyle);
  var childNode = children; // Wrapper when multiple children

  if (_react_18_2_0_react.Children.count(children) > 1) {
    childNode = /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-content")
    }, children);
  } // Mobile support additional render

  if (popupRender) {
    childNode = popupRender(childNode);
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(es/* default */.ZP, (0,esm_extends/* default */.Z)({
    visible: visible,
    ref: elementRef,
    removeOnLeave: true
  }, popupMotion), function (_ref, motionRef) {
    var motionClassName = _ref.className,
      motionStyle = _ref.style;
    var mergedClassName = _classnames_2_3_2_classnames_default()(prefixCls, popupClassName, motionClassName);
    return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      ref: motionRef,
      className: mergedClassName,
      onClick: onClick,
      style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, motionStyle), mergedStyle)
    }, childNode);
  });
});
MobilePopupInner.displayName = 'MobilePopupInner';
/* harmony default export */ var Popup_MobilePopupInner = (MobilePopupInner);
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/Popup/index.js




var _excluded = ["visible", "mobile"];






var Popup_Popup = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (_ref, ref) {
  var visible = _ref.visible,
    mobile = _ref.mobile,
    props = (0,objectWithoutProperties/* default */.Z)(_ref, _excluded);
  var _useState = (0,_react_18_2_0_react.useState)(visible),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    innerVisible = _useState2[0],
    serInnerVisible = _useState2[1];
  var _useState3 = (0,_react_18_2_0_react.useState)(false),
    _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2),
    inMobile = _useState4[0],
    setInMobile = _useState4[1];
  var cloneProps = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    visible: innerVisible
  }); // We check mobile in visible changed here.
  // And this also delay set `innerVisible` to avoid popup component render flash

  (0,_react_18_2_0_react.useEffect)(function () {
    serInnerVisible(visible);
    if (visible && mobile) {
      setInMobile(isMobile());
    }
  }, [visible, mobile]);
  var popupNode = inMobile ? /*#__PURE__*/_react_18_2_0_react.createElement(Popup_MobilePopupInner, (0,esm_extends/* default */.Z)({}, cloneProps, {
    mobile: mobile,
    ref: ref
  })) : /*#__PURE__*/_react_18_2_0_react.createElement(Popup_PopupInner, (0,esm_extends/* default */.Z)({}, cloneProps, {
    ref: ref
  })); // We can use fragment directly but this may failed some selector usage. Keep as origin logic

  return /*#__PURE__*/_react_18_2_0_react.createElement("div", null, /*#__PURE__*/_react_18_2_0_react.createElement(Mask, cloneProps), popupNode);
});
Popup_Popup.displayName = 'Popup';
/* harmony default export */ var es_Popup = (Popup_Popup);
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/context.js

var TriggerContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
/* harmony default export */ var context = (TriggerContext);
;// CONCATENATED MODULE: ./node_modules/_rc-trigger@5.3.4@rc-trigger/es/index.js




















function noop() {}
function returnEmptyString() {
  return '';
}
function returnDocument(element) {
  if (element) {
    return element.ownerDocument;
  }
  return window.document;
}
var ALL_HANDLERS = ['onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', 'onContextMenu'];

/**
 * Internal usage. Do not use in your code since this will be removed.
 */
function generateTrigger(PortalComponent) {
  var Trigger = /*#__PURE__*/function (_React$Component) {
    (0,inherits/* default */.Z)(Trigger, _React$Component);
    var _super = (0,createSuper/* default */.Z)(Trigger);

    // ensure `getContainer` will be called only once
    function Trigger(props) {
      var _this;
      (0,classCallCheck/* default */.Z)(this, Trigger);
      _this = _super.call(this, props);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "popupRef", /*#__PURE__*/_react_18_2_0_react.createRef());
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "triggerRef", /*#__PURE__*/_react_18_2_0_react.createRef());
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "portalContainer", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "attachId", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "clickOutsideHandler", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "touchOutsideHandler", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "contextMenuOutsideHandler1", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "contextMenuOutsideHandler2", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "mouseDownTimeout", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "focusTime", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "preClickTime", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "preTouchTime", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "delayTimer", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "hasPopupMouseDown", void 0);
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onMouseEnter", function (e) {
        var mouseEnterDelay = _this.props.mouseEnterDelay;
        _this.fireEvents('onMouseEnter', e);
        _this.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onMouseMove", function (e) {
        _this.fireEvents('onMouseMove', e);
        _this.setPoint(e);
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onMouseLeave", function (e) {
        _this.fireEvents('onMouseLeave', e);
        _this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onPopupMouseEnter", function () {
        _this.clearDelayTimer();
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onPopupMouseLeave", function (e) {
        var _this$popupRef$curren;

        // https://github.com/react-component/trigger/pull/13
        // react bug?
        if (e.relatedTarget && !e.relatedTarget.setTimeout && (0,contains/* default */.Z)((_this$popupRef$curren = _this.popupRef.current) === null || _this$popupRef$curren === void 0 ? void 0 : _this$popupRef$curren.getElement(), e.relatedTarget)) {
          return;
        }
        _this.delaySetPopupVisible(false, _this.props.mouseLeaveDelay);
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onFocus", function (e) {
        _this.fireEvents('onFocus', e); // incase focusin and focusout

        _this.clearDelayTimer();
        if (_this.isFocusToShow()) {
          _this.focusTime = Date.now();
          _this.delaySetPopupVisible(true, _this.props.focusDelay);
        }
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onMouseDown", function (e) {
        _this.fireEvents('onMouseDown', e);
        _this.preClickTime = Date.now();
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onTouchStart", function (e) {
        _this.fireEvents('onTouchStart', e);
        _this.preTouchTime = Date.now();
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onBlur", function (e) {
        _this.fireEvents('onBlur', e);
        _this.clearDelayTimer();
        if (_this.isBlurToHide()) {
          _this.delaySetPopupVisible(false, _this.props.blurDelay);
        }
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onContextMenu", function (e) {
        e.preventDefault();
        _this.fireEvents('onContextMenu', e);
        _this.setPopupVisible(true, e);
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onContextMenuClose", function () {
        if (_this.isContextMenuToShow()) {
          _this.close();
        }
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onClick", function (event) {
        _this.fireEvents('onClick', event); // focus will trigger click

        if (_this.focusTime) {
          var preTime;
          if (_this.preClickTime && _this.preTouchTime) {
            preTime = Math.min(_this.preClickTime, _this.preTouchTime);
          } else if (_this.preClickTime) {
            preTime = _this.preClickTime;
          } else if (_this.preTouchTime) {
            preTime = _this.preTouchTime;
          }
          if (Math.abs(preTime - _this.focusTime) < 20) {
            return;
          }
          _this.focusTime = 0;
        }
        _this.preClickTime = 0;
        _this.preTouchTime = 0; // Only prevent default when all the action is click.
        // https://github.com/ant-design/ant-design/issues/17043
        // https://github.com/ant-design/ant-design/issues/17291

        if (_this.isClickToShow() && (_this.isClickToHide() || _this.isBlurToHide()) && event && event.preventDefault) {
          event.preventDefault();
        }
        var nextVisible = !_this.state.popupVisible;
        if (_this.isClickToHide() && !nextVisible || nextVisible && _this.isClickToShow()) {
          _this.setPopupVisible(!_this.state.popupVisible, event);
        }
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onPopupMouseDown", function () {
        _this.hasPopupMouseDown = true;
        clearTimeout(_this.mouseDownTimeout);
        _this.mouseDownTimeout = window.setTimeout(function () {
          _this.hasPopupMouseDown = false;
        }, 0);
        if (_this.context) {
          var _this$context;
          (_this$context = _this.context).onPopupMouseDown.apply(_this$context, arguments);
        }
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "onDocumentClick", function (event) {
        if (_this.props.mask && !_this.props.maskClosable) {
          return;
        }
        var target = event.target;
        var root = _this.getRootDomNode();
        var popupNode = _this.getPopupDomNode();
        if (
        // mousedown on the target should also close popup when action is contextMenu.
        // https://github.com/ant-design/ant-design/issues/29853
        (!(0,contains/* default */.Z)(root, target) || _this.isContextMenuOnly()) && !(0,contains/* default */.Z)(popupNode, target) && !_this.hasPopupMouseDown) {
          _this.close();
        }
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "getRootDomNode", function () {
        var getTriggerDOMNode = _this.props.getTriggerDOMNode;
        if (getTriggerDOMNode) {
          return getTriggerDOMNode(_this.triggerRef.current);
        }
        try {
          var domNode = (0,findDOMNode/* default */.Z)(_this.triggerRef.current);
          if (domNode) {
            return domNode;
          }
        } catch (err) {// Do nothing
        }
        return _react_dom_18_2_0_react_dom.findDOMNode((0,assertThisInitialized/* default */.Z)(_this));
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "getPopupClassNameFromAlign", function (align) {
        var className = [];
        var _this$props = _this.props,
          popupPlacement = _this$props.popupPlacement,
          builtinPlacements = _this$props.builtinPlacements,
          prefixCls = _this$props.prefixCls,
          alignPoint = _this$props.alignPoint,
          getPopupClassNameFromAlign = _this$props.getPopupClassNameFromAlign;
        if (popupPlacement && builtinPlacements) {
          className.push(getAlignPopupClassName(builtinPlacements, prefixCls, align, alignPoint));
        }
        if (getPopupClassNameFromAlign) {
          className.push(getPopupClassNameFromAlign(align));
        }
        return className.join(' ');
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "getComponent", function () {
        var _this$props2 = _this.props,
          prefixCls = _this$props2.prefixCls,
          destroyPopupOnHide = _this$props2.destroyPopupOnHide,
          popupClassName = _this$props2.popupClassName,
          onPopupAlign = _this$props2.onPopupAlign,
          popupMotion = _this$props2.popupMotion,
          popupAnimation = _this$props2.popupAnimation,
          popupTransitionName = _this$props2.popupTransitionName,
          popupStyle = _this$props2.popupStyle,
          mask = _this$props2.mask,
          maskAnimation = _this$props2.maskAnimation,
          maskTransitionName = _this$props2.maskTransitionName,
          maskMotion = _this$props2.maskMotion,
          zIndex = _this$props2.zIndex,
          popup = _this$props2.popup,
          stretch = _this$props2.stretch,
          alignPoint = _this$props2.alignPoint,
          mobile = _this$props2.mobile,
          forceRender = _this$props2.forceRender,
          onPopupClick = _this$props2.onPopupClick;
        var _this$state = _this.state,
          popupVisible = _this$state.popupVisible,
          point = _this$state.point;
        var align = _this.getPopupAlign();
        var mouseProps = {};
        if (_this.isMouseEnterToShow()) {
          mouseProps.onMouseEnter = _this.onPopupMouseEnter;
        }
        if (_this.isMouseLeaveToHide()) {
          mouseProps.onMouseLeave = _this.onPopupMouseLeave;
        }
        mouseProps.onMouseDown = _this.onPopupMouseDown;
        mouseProps.onTouchStart = _this.onPopupMouseDown;
        return /*#__PURE__*/_react_18_2_0_react.createElement(es_Popup, (0,esm_extends/* default */.Z)({
          prefixCls: prefixCls,
          destroyPopupOnHide: destroyPopupOnHide,
          visible: popupVisible,
          point: alignPoint && point,
          className: popupClassName,
          align: align,
          onAlign: onPopupAlign,
          animation: popupAnimation,
          getClassNameFromAlign: _this.getPopupClassNameFromAlign
        }, mouseProps, {
          stretch: stretch,
          getRootDomNode: _this.getRootDomNode,
          style: popupStyle,
          mask: mask,
          zIndex: zIndex,
          transitionName: popupTransitionName,
          maskAnimation: maskAnimation,
          maskTransitionName: maskTransitionName,
          maskMotion: maskMotion,
          ref: _this.popupRef,
          motion: popupMotion,
          mobile: mobile,
          forceRender: forceRender,
          onClick: onPopupClick
        }), typeof popup === 'function' ? popup() : popup);
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "attachParent", function (popupContainer) {
        raf/* default */.Z.cancel(_this.attachId);
        var _this$props3 = _this.props,
          getPopupContainer = _this$props3.getPopupContainer,
          getDocument = _this$props3.getDocument;
        var domNode = _this.getRootDomNode();
        var mountNode;
        if (!getPopupContainer) {
          mountNode = getDocument(_this.getRootDomNode()).body;
        } else if (domNode || getPopupContainer.length === 0) {
          // Compatible for legacy getPopupContainer with domNode argument.
          // If no need `domNode` argument, will call directly.
          // https://codesandbox.io/s/eloquent-mclean-ss93m?file=/src/App.js
          mountNode = getPopupContainer(domNode);
        }
        if (mountNode) {
          mountNode.appendChild(popupContainer);
        } else {
          // Retry after frame render in case parent not ready
          _this.attachId = (0,raf/* default */.Z)(function () {
            _this.attachParent(popupContainer);
          });
        }
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "getContainer", function () {
        if (!_this.portalContainer) {
          // In React.StrictMode component will call render multiple time in first mount.
          // When you want to refactor with FC, useRef will also init multiple time and
          // point to different useRef instance which will create multiple element
          // (This multiple render will not trigger effect so you can not clean up this
          // in effect). But this is safe with class component since it always point to same class instance.
          var getDocument = _this.props.getDocument;
          var popupContainer = getDocument(_this.getRootDomNode()).createElement('div'); // Make sure default popup container will never cause scrollbar appearing
          // https://github.com/react-component/trigger/issues/41

          popupContainer.style.position = 'absolute';
          popupContainer.style.top = '0';
          popupContainer.style.left = '0';
          popupContainer.style.width = '100%';
          _this.portalContainer = popupContainer;
        }
        _this.attachParent(_this.portalContainer);
        return _this.portalContainer;
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "setPoint", function (point) {
        var alignPoint = _this.props.alignPoint;
        if (!alignPoint || !point) return;
        _this.setState({
          point: {
            pageX: point.pageX,
            pageY: point.pageY
          }
        });
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "handlePortalUpdate", function () {
        if (_this.state.prevPopupVisible !== _this.state.popupVisible) {
          _this.props.afterPopupVisibleChange(_this.state.popupVisible);
        }
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "triggerContextValue", {
        onPopupMouseDown: _this.onPopupMouseDown
      });
      var _popupVisible;
      if ('popupVisible' in props) {
        _popupVisible = !!props.popupVisible;
      } else {
        _popupVisible = !!props.defaultPopupVisible;
      }
      _this.state = {
        prevPopupVisible: _popupVisible,
        popupVisible: _popupVisible
      };
      ALL_HANDLERS.forEach(function (h) {
        _this["fire".concat(h)] = function (e) {
          _this.fireEvents(h, e);
        };
      });
      return _this;
    }
    (0,createClass/* default */.Z)(Trigger, [{
      key: "componentDidMount",
      value: function componentDidMount() {
        this.componentDidUpdate();
      }
    }, {
      key: "componentDidUpdate",
      value: function componentDidUpdate() {
        var props = this.props;
        var state = this.state; // We must listen to `mousedown` or `touchstart`, edge case:
        // https://github.com/ant-design/ant-design/issues/5804
        // https://github.com/react-component/calendar/issues/250
        // https://github.com/react-component/trigger/issues/50

        if (state.popupVisible) {
          var currentDocument;
          if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextMenuToShow())) {
            currentDocument = props.getDocument(this.getRootDomNode());
            this.clickOutsideHandler = addEventListenerWrap(currentDocument, 'mousedown', this.onDocumentClick);
          } // always hide on mobile

          if (!this.touchOutsideHandler) {
            currentDocument = currentDocument || props.getDocument(this.getRootDomNode());
            this.touchOutsideHandler = addEventListenerWrap(currentDocument, 'touchstart', this.onDocumentClick);
          } // close popup when trigger type contains 'onContextMenu' and document is scrolling.

          if (!this.contextMenuOutsideHandler1 && this.isContextMenuToShow()) {
            currentDocument = currentDocument || props.getDocument(this.getRootDomNode());
            this.contextMenuOutsideHandler1 = addEventListenerWrap(currentDocument, 'scroll', this.onContextMenuClose);
          } // close popup when trigger type contains 'onContextMenu' and window is blur.

          if (!this.contextMenuOutsideHandler2 && this.isContextMenuToShow()) {
            this.contextMenuOutsideHandler2 = addEventListenerWrap(window, 'blur', this.onContextMenuClose);
          }
          return;
        }
        this.clearOutsideHandler();
      }
    }, {
      key: "componentWillUnmount",
      value: function componentWillUnmount() {
        this.clearDelayTimer();
        this.clearOutsideHandler();
        clearTimeout(this.mouseDownTimeout);
        raf/* default */.Z.cancel(this.attachId);
      }
    }, {
      key: "getPopupDomNode",
      value: function getPopupDomNode() {
        var _this$popupRef$curren2;

        // for test
        return ((_this$popupRef$curren2 = this.popupRef.current) === null || _this$popupRef$curren2 === void 0 ? void 0 : _this$popupRef$curren2.getElement()) || null;
      }
    }, {
      key: "getPopupAlign",
      value: function getPopupAlign() {
        var props = this.props;
        var popupPlacement = props.popupPlacement,
          popupAlign = props.popupAlign,
          builtinPlacements = props.builtinPlacements;
        if (popupPlacement && builtinPlacements) {
          return getAlignFromPlacement(builtinPlacements, popupPlacement, popupAlign);
        }
        return popupAlign;
      }
    }, {
      key: "setPopupVisible",
      value:
      /**
       * @param popupVisible    Show or not the popup element
       * @param event           SyntheticEvent, used for `pointAlign`
       */
      function setPopupVisible(popupVisible, event) {
        var alignPoint = this.props.alignPoint;
        var prevPopupVisible = this.state.popupVisible;
        this.clearDelayTimer();
        if (prevPopupVisible !== popupVisible) {
          if (!('popupVisible' in this.props)) {
            this.setState({
              popupVisible: popupVisible,
              prevPopupVisible: prevPopupVisible
            });
          }
          this.props.onPopupVisibleChange(popupVisible);
        } // Always record the point position since mouseEnterDelay will delay the show

        if (alignPoint && event && popupVisible) {
          this.setPoint(event);
        }
      }
    }, {
      key: "delaySetPopupVisible",
      value: function delaySetPopupVisible(visible, delayS, event) {
        var _this2 = this;
        var delay = delayS * 1000;
        this.clearDelayTimer();
        if (delay) {
          var point = event ? {
            pageX: event.pageX,
            pageY: event.pageY
          } : null;
          this.delayTimer = window.setTimeout(function () {
            _this2.setPopupVisible(visible, point);
            _this2.clearDelayTimer();
          }, delay);
        } else {
          this.setPopupVisible(visible, event);
        }
      }
    }, {
      key: "clearDelayTimer",
      value: function clearDelayTimer() {
        if (this.delayTimer) {
          clearTimeout(this.delayTimer);
          this.delayTimer = null;
        }
      }
    }, {
      key: "clearOutsideHandler",
      value: function clearOutsideHandler() {
        if (this.clickOutsideHandler) {
          this.clickOutsideHandler.remove();
          this.clickOutsideHandler = null;
        }
        if (this.contextMenuOutsideHandler1) {
          this.contextMenuOutsideHandler1.remove();
          this.contextMenuOutsideHandler1 = null;
        }
        if (this.contextMenuOutsideHandler2) {
          this.contextMenuOutsideHandler2.remove();
          this.contextMenuOutsideHandler2 = null;
        }
        if (this.touchOutsideHandler) {
          this.touchOutsideHandler.remove();
          this.touchOutsideHandler = null;
        }
      }
    }, {
      key: "createTwoChains",
      value: function createTwoChains(event) {
        var childPros = this.props.children.props;
        var props = this.props;
        if (childPros[event] && props[event]) {
          return this["fire".concat(event)];
        }
        return childPros[event] || props[event];
      }
    }, {
      key: "isClickToShow",
      value: function isClickToShow() {
        var _this$props4 = this.props,
          action = _this$props4.action,
          showAction = _this$props4.showAction;
        return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;
      }
    }, {
      key: "isContextMenuOnly",
      value: function isContextMenuOnly() {
        var action = this.props.action;
        return action === 'contextMenu' || action.length === 1 && action[0] === 'contextMenu';
      }
    }, {
      key: "isContextMenuToShow",
      value: function isContextMenuToShow() {
        var _this$props5 = this.props,
          action = _this$props5.action,
          showAction = _this$props5.showAction;
        return action.indexOf('contextMenu') !== -1 || showAction.indexOf('contextMenu') !== -1;
      }
    }, {
      key: "isClickToHide",
      value: function isClickToHide() {
        var _this$props6 = this.props,
          action = _this$props6.action,
          hideAction = _this$props6.hideAction;
        return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;
      }
    }, {
      key: "isMouseEnterToShow",
      value: function isMouseEnterToShow() {
        var _this$props7 = this.props,
          action = _this$props7.action,
          showAction = _this$props7.showAction;
        return action.indexOf('hover') !== -1 || showAction.indexOf('mouseEnter') !== -1;
      }
    }, {
      key: "isMouseLeaveToHide",
      value: function isMouseLeaveToHide() {
        var _this$props8 = this.props,
          action = _this$props8.action,
          hideAction = _this$props8.hideAction;
        return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseLeave') !== -1;
      }
    }, {
      key: "isFocusToShow",
      value: function isFocusToShow() {
        var _this$props9 = this.props,
          action = _this$props9.action,
          showAction = _this$props9.showAction;
        return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;
      }
    }, {
      key: "isBlurToHide",
      value: function isBlurToHide() {
        var _this$props10 = this.props,
          action = _this$props10.action,
          hideAction = _this$props10.hideAction;
        return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
      }
    }, {
      key: "forcePopupAlign",
      value: function forcePopupAlign() {
        if (this.state.popupVisible) {
          var _this$popupRef$curren3;
          (_this$popupRef$curren3 = this.popupRef.current) === null || _this$popupRef$curren3 === void 0 ? void 0 : _this$popupRef$curren3.forceAlign();
        }
      }
    }, {
      key: "fireEvents",
      value: function fireEvents(type, e) {
        var childCallback = this.props.children.props[type];
        if (childCallback) {
          childCallback(e);
        }
        var callback = this.props[type];
        if (callback) {
          callback(e);
        }
      }
    }, {
      key: "close",
      value: function close() {
        this.setPopupVisible(false);
      }
    }, {
      key: "render",
      value: function render() {
        var popupVisible = this.state.popupVisible;
        var _this$props11 = this.props,
          children = _this$props11.children,
          forceRender = _this$props11.forceRender,
          alignPoint = _this$props11.alignPoint,
          className = _this$props11.className,
          autoDestroy = _this$props11.autoDestroy;
        var child = _react_18_2_0_react.Children.only(children);
        var newChildProps = {
          key: 'trigger'
        }; // ============================== Visible Handlers ==============================
        // >>> ContextMenu

        if (this.isContextMenuToShow()) {
          newChildProps.onContextMenu = this.onContextMenu;
        } else {
          newChildProps.onContextMenu = this.createTwoChains('onContextMenu');
        } // >>> Click

        if (this.isClickToHide() || this.isClickToShow()) {
          newChildProps.onClick = this.onClick;
          newChildProps.onMouseDown = this.onMouseDown;
          newChildProps.onTouchStart = this.onTouchStart;
        } else {
          newChildProps.onClick = this.createTwoChains('onClick');
          newChildProps.onMouseDown = this.createTwoChains('onMouseDown');
          newChildProps.onTouchStart = this.createTwoChains('onTouchStart');
        } // >>> Hover(enter)

        if (this.isMouseEnterToShow()) {
          newChildProps.onMouseEnter = this.onMouseEnter; // Point align

          if (alignPoint) {
            newChildProps.onMouseMove = this.onMouseMove;
          }
        } else {
          newChildProps.onMouseEnter = this.createTwoChains('onMouseEnter');
        } // >>> Hover(leave)

        if (this.isMouseLeaveToHide()) {
          newChildProps.onMouseLeave = this.onMouseLeave;
        } else {
          newChildProps.onMouseLeave = this.createTwoChains('onMouseLeave');
        } // >>> Focus

        if (this.isFocusToShow() || this.isBlurToHide()) {
          newChildProps.onFocus = this.onFocus;
          newChildProps.onBlur = this.onBlur;
        } else {
          newChildProps.onFocus = this.createTwoChains('onFocus');
          newChildProps.onBlur = this.createTwoChains('onBlur');
        } // =================================== Render ===================================

        var childrenClassName = _classnames_2_3_2_classnames_default()(child && child.props && child.props.className, className);
        if (childrenClassName) {
          newChildProps.className = childrenClassName;
        }
        var cloneProps = (0,objectSpread2/* default */.Z)({}, newChildProps);
        if ((0,es_ref/* supportRef */.Yr)(child)) {
          cloneProps.ref = (0,es_ref/* composeRef */.sQ)(this.triggerRef, child.ref);
        }
        var trigger = /*#__PURE__*/_react_18_2_0_react.cloneElement(child, cloneProps);
        var portal; // prevent unmounting after it's rendered

        if (popupVisible || this.popupRef.current || forceRender) {
          portal = /*#__PURE__*/_react_18_2_0_react.createElement(PortalComponent, {
            key: "portal",
            getContainer: this.getContainer,
            didUpdate: this.handlePortalUpdate
          }, this.getComponent());
        }
        if (!popupVisible && autoDestroy) {
          portal = null;
        }
        return /*#__PURE__*/_react_18_2_0_react.createElement(context.Provider, {
          value: this.triggerContextValue
        }, trigger, portal);
      }
    }], [{
      key: "getDerivedStateFromProps",
      value: function getDerivedStateFromProps(_ref, prevState) {
        var popupVisible = _ref.popupVisible;
        var newState = {};
        if (popupVisible !== undefined && prevState.popupVisible !== popupVisible) {
          newState.popupVisible = popupVisible;
          newState.prevPopupVisible = prevState.popupVisible;
        }
        return newState;
      }
    }]);
    return Trigger;
  }(_react_18_2_0_react.Component);
  (0,defineProperty/* default */.Z)(Trigger, "contextType", context);
  (0,defineProperty/* default */.Z)(Trigger, "defaultProps", {
    prefixCls: 'rc-trigger-popup',
    getPopupClassNameFromAlign: returnEmptyString,
    getDocument: returnDocument,
    onPopupVisibleChange: noop,
    afterPopupVisibleChange: noop,
    onPopupAlign: noop,
    popupClassName: '',
    mouseEnterDelay: 0,
    mouseLeaveDelay: 0.1,
    focusDelay: 0,
    blurDelay: 0.15,
    popupStyle: {},
    destroyPopupOnHide: false,
    popupAlign: {},
    defaultPopupVisible: false,
    mask: false,
    maskClosable: true,
    action: [],
    showAction: [],
    hideAction: [],
    autoDestroy: false
  });
  return Trigger;
}
/* harmony default export */ var _rc_trigger_5_3_4_rc_trigger_es = (generateTrigger(es_Portal));
;// CONCATENATED MODULE: ./node_modules/_rc-tooltip@5.2.2@rc-tooltip/es/placements.js
var autoAdjustOverflow = {
  adjustX: 1,
  adjustY: 1
};
var targetOffset = [0, 0];
var placements = {
  left: {
    points: ['cr', 'cl'],
    overflow: autoAdjustOverflow,
    offset: [-4, 0],
    targetOffset: targetOffset
  },
  right: {
    points: ['cl', 'cr'],
    overflow: autoAdjustOverflow,
    offset: [4, 0],
    targetOffset: targetOffset
  },
  top: {
    points: ['bc', 'tc'],
    overflow: autoAdjustOverflow,
    offset: [0, -4],
    targetOffset: targetOffset
  },
  bottom: {
    points: ['tc', 'bc'],
    overflow: autoAdjustOverflow,
    offset: [0, 4],
    targetOffset: targetOffset
  },
  topLeft: {
    points: ['bl', 'tl'],
    overflow: autoAdjustOverflow,
    offset: [0, -4],
    targetOffset: targetOffset
  },
  leftTop: {
    points: ['tr', 'tl'],
    overflow: autoAdjustOverflow,
    offset: [-4, 0],
    targetOffset: targetOffset
  },
  topRight: {
    points: ['br', 'tr'],
    overflow: autoAdjustOverflow,
    offset: [0, -4],
    targetOffset: targetOffset
  },
  rightTop: {
    points: ['tl', 'tr'],
    overflow: autoAdjustOverflow,
    offset: [4, 0],
    targetOffset: targetOffset
  },
  bottomRight: {
    points: ['tr', 'br'],
    overflow: autoAdjustOverflow,
    offset: [0, 4],
    targetOffset: targetOffset
  },
  rightBottom: {
    points: ['bl', 'br'],
    overflow: autoAdjustOverflow,
    offset: [4, 0],
    targetOffset: targetOffset
  },
  bottomLeft: {
    points: ['tl', 'bl'],
    overflow: autoAdjustOverflow,
    offset: [0, 4],
    targetOffset: targetOffset
  },
  leftBottom: {
    points: ['br', 'bl'],
    overflow: autoAdjustOverflow,
    offset: [-4, 0],
    targetOffset: targetOffset
  }
};
/* harmony default export */ var es_placements = ((/* unused pure expression or super */ null && (placements)));
;// CONCATENATED MODULE: ./node_modules/_rc-tooltip@5.2.2@rc-tooltip/es/Popup.js


function es_Popup_Popup(props) {
  var showArrow = props.showArrow,
    arrowContent = props.arrowContent,
    children = props.children,
    prefixCls = props.prefixCls,
    id = props.id,
    overlayInnerStyle = props.overlayInnerStyle,
    className = props.className,
    style = props.style;
  return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-content"), className),
    style: style
  }, showArrow !== false && /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(prefixCls, "-arrow"),
    key: "arrow"
  }, arrowContent), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(prefixCls, "-inner"),
    id: id,
    role: "tooltip",
    style: overlayInnerStyle
  }, typeof children === 'function' ? children() : children));
}
;// CONCATENATED MODULE: ./node_modules/_rc-tooltip@5.2.2@rc-tooltip/es/Tooltip.js









var Tooltip = function Tooltip(props, ref) {
  var overlayClassName = props.overlayClassName,
    _props$trigger = props.trigger,
    trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
    _props$mouseEnterDela = props.mouseEnterDelay,
    mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0 : _props$mouseEnterDela,
    _props$mouseLeaveDela = props.mouseLeaveDelay,
    mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,
    overlayStyle = props.overlayStyle,
    _props$prefixCls = props.prefixCls,
    prefixCls = _props$prefixCls === void 0 ? 'rc-tooltip' : _props$prefixCls,
    children = props.children,
    onVisibleChange = props.onVisibleChange,
    afterVisibleChange = props.afterVisibleChange,
    transitionName = props.transitionName,
    animation = props.animation,
    motion = props.motion,
    _props$placement = props.placement,
    placement = _props$placement === void 0 ? 'right' : _props$placement,
    _props$align = props.align,
    align = _props$align === void 0 ? {} : _props$align,
    _props$destroyTooltip = props.destroyTooltipOnHide,
    destroyTooltipOnHide = _props$destroyTooltip === void 0 ? false : _props$destroyTooltip,
    defaultVisible = props.defaultVisible,
    getTooltipContainer = props.getTooltipContainer,
    overlayInnerStyle = props.overlayInnerStyle,
    arrowContent = props.arrowContent,
    overlay = props.overlay,
    id = props.id,
    showArrow = props.showArrow,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow"]);
  var domRef = (0,_react_18_2_0_react.useRef)(null);
  (0,_react_18_2_0_react.useImperativeHandle)(ref, function () {
    return domRef.current;
  });
  var extraProps = (0,objectSpread2/* default */.Z)({}, restProps);
  if ('visible' in props) {
    extraProps.popupVisible = props.visible;
  }
  var getPopupElement = function getPopupElement() {
    return /*#__PURE__*/_react_18_2_0_react.createElement(es_Popup_Popup, {
      showArrow: showArrow,
      arrowContent: arrowContent,
      key: "content",
      prefixCls: prefixCls,
      id: id,
      overlayInnerStyle: overlayInnerStyle
    }, overlay);
  };
  var destroyTooltip = false;
  var autoDestroy = false;
  if (typeof destroyTooltipOnHide === 'boolean') {
    destroyTooltip = destroyTooltipOnHide;
  } else if (destroyTooltipOnHide && (0,esm_typeof/* default */.Z)(destroyTooltipOnHide) === 'object') {
    var keepParent = destroyTooltipOnHide.keepParent;
    destroyTooltip = keepParent === true;
    autoDestroy = keepParent === false;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_trigger_5_3_4_rc_trigger_es, (0,esm_extends/* default */.Z)({
    popupClassName: overlayClassName,
    prefixCls: prefixCls,
    popup: getPopupElement,
    action: trigger,
    builtinPlacements: placements,
    popupPlacement: placement,
    ref: domRef,
    popupAlign: align,
    getPopupContainer: getTooltipContainer,
    onPopupVisibleChange: onVisibleChange,
    afterPopupVisibleChange: afterVisibleChange,
    popupTransitionName: transitionName,
    popupAnimation: animation,
    popupMotion: motion,
    defaultPopupVisible: defaultVisible,
    destroyPopupOnHide: destroyTooltip,
    autoDestroy: autoDestroy,
    mouseLeaveDelay: mouseLeaveDelay,
    popupStyle: overlayStyle,
    mouseEnterDelay: mouseEnterDelay
  }, extraProps), children);
};
/* harmony default export */ var es_Tooltip = (/*#__PURE__*/(0,_react_18_2_0_react.forwardRef)(Tooltip));
;// CONCATENATED MODULE: ./node_modules/_rc-tooltip@5.2.2@rc-tooltip/es/index.js



/* harmony default export */ var _rc_tooltip_5_2_2_rc_tooltip_es = (es_Tooltip);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useMergedState.js
var useMergedState = __webpack_require__(5117);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/context.js
var config_provider_context = __webpack_require__(6563);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/type.js
var type = __webpack_require__(8186);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/colors.js

var PresetStatusColorTypes = (0,type/* tuple */.b)('success', 'processing', 'error', 'default', 'warning');
// eslint-disable-next-line import/prefer-default-export
var PresetColorTypes = (0,type/* tuple */.b)('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/motion.js
var motion = __webpack_require__(1175);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/placements.js


var autoAdjustOverflowEnabled = {
  adjustX: 1,
  adjustY: 1
};
var autoAdjustOverflowDisabled = {
  adjustX: 0,
  adjustY: 0
};
var placements_targetOffset = [0, 0];
function getOverflowOptions(autoAdjustOverflow) {
  if (typeof autoAdjustOverflow === 'boolean') {
    return autoAdjustOverflow ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;
  }
  return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, autoAdjustOverflowDisabled), autoAdjustOverflow);
}
function getPlacements(config) {
  var _config$arrowWidth = config.arrowWidth,
    arrowWidth = _config$arrowWidth === void 0 ? 4 : _config$arrowWidth,
    _config$horizontalArr = config.horizontalArrowShift,
    horizontalArrowShift = _config$horizontalArr === void 0 ? 16 : _config$horizontalArr,
    _config$verticalArrow = config.verticalArrowShift,
    verticalArrowShift = _config$verticalArrow === void 0 ? 8 : _config$verticalArrow,
    autoAdjustOverflow = config.autoAdjustOverflow,
    arrowPointAtCenter = config.arrowPointAtCenter;
  var placementMap = {
    left: {
      points: ['cr', 'cl'],
      offset: [-4, 0]
    },
    right: {
      points: ['cl', 'cr'],
      offset: [4, 0]
    },
    top: {
      points: ['bc', 'tc'],
      offset: [0, -4]
    },
    bottom: {
      points: ['tc', 'bc'],
      offset: [0, 4]
    },
    topLeft: {
      points: ['bl', 'tc'],
      offset: [-(horizontalArrowShift + arrowWidth), -4]
    },
    leftTop: {
      points: ['tr', 'cl'],
      offset: [-4, -(verticalArrowShift + arrowWidth)]
    },
    topRight: {
      points: ['br', 'tc'],
      offset: [horizontalArrowShift + arrowWidth, -4]
    },
    rightTop: {
      points: ['tl', 'cr'],
      offset: [4, -(verticalArrowShift + arrowWidth)]
    },
    bottomRight: {
      points: ['tr', 'bc'],
      offset: [horizontalArrowShift + arrowWidth, 4]
    },
    rightBottom: {
      points: ['bl', 'cr'],
      offset: [4, verticalArrowShift + arrowWidth]
    },
    bottomLeft: {
      points: ['tl', 'bc'],
      offset: [-(horizontalArrowShift + arrowWidth), 4]
    },
    leftBottom: {
      points: ['br', 'cl'],
      offset: [-4, verticalArrowShift + arrowWidth]
    }
  };
  Object.keys(placementMap).forEach(function (key) {
    placementMap[key] = arrowPointAtCenter ? (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, placementMap[key]), {
      overflow: getOverflowOptions(autoAdjustOverflow),
      targetOffset: placements_targetOffset
    }) : (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, placements[key]), {
      overflow: getOverflowOptions(autoAdjustOverflow)
    });
    placementMap[key].ignoreShake = true;
  });
  return placementMap;
}
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(5390);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/tooltip/index.js



var __rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};










var splitObject = function splitObject(obj, keys) {
  var picked = {};
  var omitted = (0,esm_extends/* default */.Z)({}, obj);
  keys.forEach(function (key) {
    if (obj && key in obj) {
      picked[key] = obj[key];
      delete omitted[key];
    }
  });
  return {
    picked: picked,
    omitted: omitted
  };
};
var PresetColorRegex = new RegExp("^(".concat(PresetColorTypes.join('|'), ")(-inverse)?$"));
// Fix Tooltip won't hide at disabled button
// mouse events don't trigger at disabled button in Chrome
// https://github.com/react-component/tooltip/issues/18
function getDisabledCompatibleChildren(element, prefixCls) {
  var elementType = element.type;
  if ((elementType.__ANT_BUTTON === true || element.type === 'button') && element.props.disabled || elementType.__ANT_SWITCH === true && (element.props.disabled || element.props.loading) || elementType.__ANT_RADIO === true && element.props.disabled) {
    // Pick some layout related style properties up to span
    // Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254
    var _splitObject = splitObject(element.props.style, ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),
      picked = _splitObject.picked,
      omitted = _splitObject.omitted;
    var spanStyle = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
      display: 'inline-block'
    }, picked), {
      cursor: 'not-allowed',
      width: element.props.block ? '100%' : undefined
    });
    var buttonStyle = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, omitted), {
      pointerEvents: 'none'
    });
    var child = (0,reactNode/* cloneElement */.Tm)(element, {
      style: buttonStyle,
      className: null
    });
    return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      style: spanStyle,
      className: _classnames_2_3_2_classnames_default()(element.props.className, "".concat(prefixCls, "-disabled-compatible-wrapper"))
    }, child);
  }
  return element;
}
var tooltip_Tooltip = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var _classNames2;
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getContextPopupContainer = _React$useContext.getPopupContainer,
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  // Warning for deprecated usage
  if (false) {}
  var _useMergedState = (0,useMergedState/* default */.Z)(false, {
      value: props.open !== undefined ? props.open : props.visible,
      defaultValue: props.defaultOpen !== undefined ? props.defaultOpen : props.defaultVisible
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    open = _useMergedState2[0],
    setOpen = _useMergedState2[1];
  var isNoTitle = function isNoTitle() {
    var title = props.title,
      overlay = props.overlay;
    return !title && !overlay && title !== 0; // overlay for old version compatibility
  };

  var onOpenChange = function onOpenChange(vis) {
    var _a, _b;
    setOpen(isNoTitle() ? false : vis);
    if (!isNoTitle()) {
      (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);
      (_b = props.onVisibleChange) === null || _b === void 0 ? void 0 : _b.call(props, vis);
    }
  };
  var getTooltipPlacements = function getTooltipPlacements() {
    var builtinPlacements = props.builtinPlacements,
      _props$arrowPointAtCe = props.arrowPointAtCenter,
      arrowPointAtCenter = _props$arrowPointAtCe === void 0 ? false : _props$arrowPointAtCe,
      _props$autoAdjustOver = props.autoAdjustOverflow,
      autoAdjustOverflow = _props$autoAdjustOver === void 0 ? true : _props$autoAdjustOver;
    return builtinPlacements || getPlacements({
      arrowPointAtCenter: arrowPointAtCenter,
      autoAdjustOverflow: autoAdjustOverflow
    });
  };
  // 动态设置动画点
  var onPopupAlign = function onPopupAlign(domNode, align) {
    var placements = getTooltipPlacements();
    // 当前返回的位置
    var placement = Object.keys(placements).find(function (key) {
      var _a, _b;
      return placements[key].points[0] === ((_a = align.points) === null || _a === void 0 ? void 0 : _a[0]) && placements[key].points[1] === ((_b = align.points) === null || _b === void 0 ? void 0 : _b[1]);
    });
    if (!placement) {
      return;
    }
    // 根据当前坐标设置动画点
    var rect = domNode.getBoundingClientRect();
    var transformOrigin = {
      top: '50%',
      left: '50%'
    };
    if (/top|Bottom/.test(placement)) {
      transformOrigin.top = "".concat(rect.height - align.offset[1], "px");
    } else if (/Top|bottom/.test(placement)) {
      transformOrigin.top = "".concat(-align.offset[1], "px");
    }
    if (/left|Right/.test(placement)) {
      transformOrigin.left = "".concat(rect.width - align.offset[0], "px");
    } else if (/right|Left/.test(placement)) {
      transformOrigin.left = "".concat(-align.offset[0], "px");
    }
    domNode.style.transformOrigin = "".concat(transformOrigin.left, " ").concat(transformOrigin.top);
  };
  var getOverlay = function getOverlay() {
    var title = props.title,
      overlay = props.overlay;
    if (title === 0) {
      return title;
    }
    return overlay || title || '';
  };
  var getPopupContainer = props.getPopupContainer,
    _props$placement = props.placement,
    placement = _props$placement === void 0 ? 'top' : _props$placement,
    _props$mouseEnterDela = props.mouseEnterDelay,
    mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0.1 : _props$mouseEnterDela,
    _props$mouseLeaveDela = props.mouseLeaveDelay,
    mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,
    otherProps = __rest(props, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay"]);
  var customizePrefixCls = props.prefixCls,
    openClassName = props.openClassName,
    getTooltipContainer = props.getTooltipContainer,
    overlayClassName = props.overlayClassName,
    color = props.color,
    overlayInnerStyle = props.overlayInnerStyle,
    children = props.children;
  var prefixCls = getPrefixCls('tooltip', customizePrefixCls);
  var rootPrefixCls = getPrefixCls();
  var tempOpen = open;
  // Hide tooltip when there is no title
  if (!('open' in props) && !('visible' in props) && isNoTitle()) {
    tempOpen = false;
  }
  var child = getDisabledCompatibleChildren((0,reactNode/* isValidElement */.l$)(children) && !(0,reactNode/* isFragment */.M2)(children) ? children : /*#__PURE__*/_react_18_2_0_react.createElement("span", null, children), prefixCls);
  var childProps = child.props;
  var childCls = !childProps.className || typeof childProps.className === 'string' ? _classnames_2_3_2_classnames_default()(childProps.className, (0,defineProperty/* default */.Z)({}, openClassName || "".concat(prefixCls, "-open"), true)) : childProps.className;
  var customOverlayClassName = _classnames_2_3_2_classnames_default()(overlayClassName, (_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-").concat(color), color && PresetColorRegex.test(color)), _classNames2));
  var formattedOverlayInnerStyle = overlayInnerStyle;
  var arrowContentStyle = {};
  if (color && !PresetColorRegex.test(color)) {
    formattedOverlayInnerStyle = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, overlayInnerStyle), {
      background: color
    });
    // @ts-ignore
    arrowContentStyle = {
      '--antd-arrow-background-color': color
    };
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_tooltip_5_2_2_rc_tooltip_es, (0,esm_extends/* default */.Z)({}, otherProps, {
    placement: placement,
    mouseEnterDelay: mouseEnterDelay,
    mouseLeaveDelay: mouseLeaveDelay,
    prefixCls: prefixCls,
    overlayClassName: customOverlayClassName,
    getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,
    ref: ref,
    builtinPlacements: getTooltipPlacements(),
    overlay: getOverlay(),
    visible: tempOpen,
    onVisibleChange: onOpenChange,
    onPopupAlign: onPopupAlign,
    overlayInnerStyle: formattedOverlayInnerStyle,
    arrowContent: /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-arrow-content"),
      style: arrowContentStyle
    }),
    motion: {
      motionName: (0,motion/* getTransitionName */.mL)(rootPrefixCls, 'zoom-big-fast', props.transitionName),
      motionDeadline: 1000
    }
  }), tempOpen ? (0,reactNode/* cloneElement */.Tm)(child, {
    className: childCls
  }) : child);
});
if (false) {}
/* harmony default export */ var tooltip = (tooltip_Tooltip);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
var objectWithoutPropertiesLoose = __webpack_require__(3108);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-icon@0.3.71@@ali/tingwu-icon/dist-web/styled.js

var loadingCircle = /*#__PURE__*/(0,styled_components_browser_esm/* keyframes */.F4)(["100%{transform:rotate(360deg);}"]);
var IconContainer = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.span(["display:inline-flex;width:", ";height:", ";.tingwu-icon-spin{animation:", " 1s infinite linear;}"], function (_ref) {
  var size = _ref.size;
  return size ? size + "px" : '16px';
}, function (_ref2) {
  var size = _ref2.size;
  return size ? size + "px" : '16px';
}, loadingCircle);
var IconSvg = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.svg(["width:100%;height:100%;transform:", ";"], function (_ref3) {
  var rotate = _ref3.rotate;
  return "rotate(" + rotate + "deg)";
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-icon@0.3.71@@ali/tingwu-icon/dist-web/iconfont.js
var isLoaded = false;
var loadIcon = function loadIcon() {
  if (isLoaded) return;
  isLoaded = true;
  /* eslint-disable */

  /* @ts-ignore */

  window._iconfont_svg_string_3888402 = '<svg><symbol id="tingwu-tishixinxi" viewBox="0 0 1024 1024"><path d="M512 48.786286a463.213714 463.213714 0 1 1 0 926.427428A463.213714 463.213714 0 0 1 512 48.786286z m0 73.142857a390.070857 390.070857 0 1 0 0 780.141714A390.070857 390.070857 0 0 0 512 121.929143z m42.642286 560.713143V768H469.357714V682.642286h85.284572zM512 256a170.642286 170.642286 0 0 1 42.642286 335.945143v27.282286H469.357714V512H512a85.357714 85.357714 0 1 0-85.357714-85.357714H341.357714A170.642286 170.642286 0 0 1 512 256z"  ></path></symbol><symbol id="tingwu-checkbox-disabled" viewBox="0 0 1024 1024"><path d="M144.497778 144.497778h723.057778v723.057778H196.096a51.655111 51.655111 0 0 1-51.655111-51.655112V144.497778z" fill="#27264D" fill-opacity=".06" ></path><path d="M919.210667 41.187556c26.453333 0 48.355556 19.911111 51.313777 45.624888l0.341334 6.030223v826.368c0 26.453333-19.911111 48.355556-45.624889 51.313777l-6.030222 0.341334H196.152889a154.965333 154.965333 0 0 1-154.737778-145.521778l-0.227555-9.443556V92.842667c0-26.510222 19.911111-48.355556 45.624888-51.313778l6.030223-0.341333h826.368z m-51.655111 103.253333H144.497778v671.459555l0.341333 6.030223a51.655111 51.655111 0 0 0 51.256889 45.624889H867.555556V144.497778z" fill="#27264D" fill-opacity=".12" ></path></symbol><symbol id="tingwu-image-placeholder" viewBox="0 0 1280 1024"><path d="M1280 0v1024H256a256 256 0 0 1-256-256V0h1280z m-128.085333 128H128v640c0 57.173333 37.546667 105.642667 89.258667 122.026667L814.72 385.877333a12.8 12.8 0 0 1 16.298667-0.170666l320.896 259.754666V128zM384 256a128 128 0 1 1 0 256 128 128 0 0 1 0-256z"  ></path></symbol><symbol id="tingwu-good" viewBox="0 0 1024 1024"><path d="M880 28.8A112 112 0 0 1 992 140.8v748a112 112 0 0 1-112 112h-736a112 112 0 0 1-112-112V140.8A112 112 0 0 1 144 28.8h736z m-311.168 226.816c-44.48 0.544-71.072 27.552-70.976 86.144 0.096 56.896-52.544 115.968-113.856 115.424h-13.088l-2.112 0.064a28.64 28.64 0 0 0-28 28.8l0.544 259.296c0.096 15.84 12.8 28.64 28.448 28.64l285.12-0.256c38.144 0 74.08-30.464 80.768-68.608l30.784-175.168c9.824-55.808-28.48-101.856-84.48-101.44l-5.856 0.064a8171.2 8171.2 0 0 1-45.376 0.288c5.472-23.104 9.824-54.592 9.664-72.544-0.48-60.48-30.08-101.216-71.584-100.704z m-270.528 201.44h-28a14.08 14.08 0 0 0-10.112 4.192 14.464 14.464 0 0 0-4.16 10.24L256 759.552c0 3.84 1.504 7.552 4.192 10.24a14.144 14.144 0 0 0 10.176 4.192h28.16a14.112 14.112 0 0 0 10.176-4.16 14.496 14.496 0 0 0 4.192-10.24l-0.32-288.096a14.432 14.432 0 0 0-14.272-14.432z"  ></path></symbol><symbol id="tingwu-light" viewBox="0 0 1024 1024"><path d="M904.533333 0A119.466667 119.466667 0 0 1 1024 119.466667v785.066666a119.466667 119.466667 0 0 1-119.466667 119.466667h-785.066666A119.466667 119.466667 0 0 1 0 904.533333v-785.066666A119.466667 119.466667 0 0 1 119.466667 0h785.066666z m-337.237333 731.716267h-56.285867c-19.387733 0-39.150933 0-58.504533 0.4096-13.687467 0-22.4256 9.216-22.801067 23.005866-0.4096 11.127467-0.4096 22.254933 0 33.348267 0.750933 31.061333 23.9616 58.6752 54.6816 62.907733 15.633067 2.116267 31.402667 2.491733 47.104 1.160534A64.512 64.512 0 0 0 590.506667 797.696c1.877333-13.448533 1.501867-27.2384 1.501866-41.0624 0-16.110933-8.738133-24.917333-24.6784-24.917333z m-246.5792-47.172267c-2.628267 1.160533-8.362667 2.730667-11.3664 6.144-13.7216 12.663467-26.624 25.668267-39.150933 39.150933-8.362667 8.8064-7.236267 21.845333 0.785066 30.276267 7.918933 8.055467 20.855467 9.591467 29.252267 1.501867 13.653333-13.0048 27.3408-26.487467 40.209067-40.618667 6.109867-6.519467 6.485333-14.9504 2.696533-23.381333-4.1984-8.465067-11.025067-12.288-22.4256-13.073067z m383.317333 0c-11.776 0.785067-18.978133 5.0176-23.176533 13.448533-4.096 8.192-2.389333 18.1248 4.1984 24.507734l36.488533 36.829866c9.454933 9.216 22.766933 9.557333 31.470934 0.785067 9.147733-8.840533 9.147733-22.254933-0.375467-32.221867-11.810133-11.912533-23.517867-24.132267-35.703467-35.669333-3.7888-3.7888-9.8304-5.7344-12.9024-7.68zM475.716267 321.3312c-79.7696 15.36-140.9024 77.073067-157.252267 158.378667-15.223467 76.6976 19.012267 157.627733 85.8112 201.728 4.983467 3.413333 11.810133 5.393067 17.851733 5.393066 29.252267 0.375467 58.914133 0.375467 88.1664 0.375467 29.252267 0 58.914133 0.341333 88.098134 0 5.7344 0 12.219733-1.160533 16.725333-4.232533 65.7408-44.8512 96.529067-106.973867 89.7024-186.368-9.966933-114.619733-117.76-196.334933-229.102933-175.274667z m-232.106667 172.987733h-50.176c-13.243733 0-22.766933 9.557333-22.766933 22.254934 0 12.288 9.898667 21.504 22.766933 21.879466h25.463467c8.3968 0 16.725333 0 24.712533 0.375467 13.312-0.375467 23.176533-9.591467 23.176533-22.254933 0-12.629333-9.864533-22.254933-23.176533-22.254934z m561.493333-0.648533l-25.463466 0.273067a22.254933 22.254933 0 1 0 0 44.509866h50.926933c13.243733-0.375467 22.766933-9.9328 22.766933-22.6304 0-12.288-9.898667-21.879467-22.766933-21.879466-17.134933-0.341333-33.860267-0.341333-50.926933 0zM735.573333 265.4208c-2.628267 1.092267-7.9872 2.286933-11.400533 5.7344-13.653333 13.0048-26.965333 26.4192-39.901867 40.277333-7.953067 8.430933-6.826667 21.060267 1.1264 29.4912 7.2704 7.68 20.514133 9.6256 28.4672 1.9456 14.506667-13.448533 28.16-27.204267 41.472-41.813333 6.075733-6.5536 6.075733-15.325867 1.877334-23.415467-3.7888-8.055467-10.615467-11.502933-21.640534-12.219733z m-449.2288 0a21.504 21.504 0 0 0-15.36 6.485333 21.7088 21.7088 0 0 0-0.4096 31.061334c12.253867 12.834133 24.7808 25.361067 37.614934 37.546666 4.164267 3.8912 9.898667 5.393067 12.9024 6.9632 11.400533-0.785067 18.2272-4.983467 21.640533-13.073066 4.1984-9.181867 3.037867-17.646933-3.7888-24.4736a1099.434667 1099.434667 0 0 0-37.239467-38.024534 21.504 21.504 0 0 0-15.36-6.485333zM511.863467 170.666667c-12.526933 0.375467-21.674667 9.9328-21.674667 23.790933v24.917333c0 8.430933 0 16.861867-0.375467 24.917334 0.375467 13.789867 9.5232 23.790933 22.050134 23.790933s22.016-9.591467 22.016-23.415467V194.082133c0-13.824-9.489067-23.415467-22.016-23.415466z"  ></path></symbol><symbol id="tingwu-upgrade" viewBox="0 0 1024 1024"><path d="M904.533333 0A119.466667 119.466667 0 0 1 1024 119.466667v785.066666a119.466667 119.466667 0 0 1-119.466667 119.466667h-785.066666A119.466667 119.466667 0 0 1 0 904.533333v-785.066666A119.466667 119.466667 0 0 1 119.466667 0h785.066666z m-224.290133 238.933333l-324.266667 128.136534 154.385067 80.110933S375.876267 758.5792 170.666667 767.522133c0 0 302.353067 117.589333 494.114133-256.273066L819.2 591.325867 680.2432 238.933333z"  ></path></symbol><symbol id="tingwu-love" viewBox="0 0 1024 1024"><path d="M904.533333 0A119.466667 119.466667 0 0 1 1024 119.466667v785.066666a119.466667 119.466667 0 0 1-119.466667 119.466667h-785.066666A119.466667 119.466667 0 0 1 0 904.533333v-785.066666A119.466667 119.466667 0 0 1 119.466667 0h785.066666z m-236.066133 307.2a150.869333 150.869333 0 0 0-131.106133 76.117333 2.184533 2.184533 0 0 1-3.822934 0A150.698667 150.698667 0 0 0 402.432 307.2a150.596267 150.596267 0 0 0-150.7328 150.4256c0 186.948267 283.7504 327.441067 283.7504 327.441067S819.2 644.027733 819.2 457.6256A150.596267 150.596267 0 0 0 668.4672 307.2z"  ></path></symbol><symbol id="tingwu-arrow-btn" viewBox="0 0 1024 1024"><path d="M1024 530.432L560.872727 64.139636l-90.763636 92.811637 315.298909 316.043636-95.418182-10.984727H0l1.582545 135.261091h688.407273l95.418182-10.24L470.109091 903.074909l90.763636 91.973818z"  ></path></symbol><symbol id="tingwu-search1" viewBox="0 0 1024 1024"><path d="M1010.092614 941.340375l-190.533724-186.733281a449.329241 449.329241 0 0 0-23.533509-621.153094 473.593605 473.593605 0 0 0-659.230605 0 449.475412 449.475412 0 0 0 0 645.7098 474.689887 474.689887 0 0 0 611.067305 39.393048l192.580115 188.779673a51.232888 51.232888 0 0 0 32.81536 15.859539 51.232888 51.232888 0 0 0 34.788666-13.813147 48.090215 48.090215 0 0 0 2.046392-68.042538zM98.424924 456.345443a364.477054 364.477054 0 0 1 368.277496-358.118621 364.477054 364.477054 0 0 1 367.765899 358.118621 364.477054 364.477054 0 0 1-367.765899 358.118621 364.477054 364.477054 0 0 1-368.350581-358.118621z"  ></path></symbol><symbol id="tingwu-next4" viewBox="0 0 1024 1024"><path d="M504.6256 9.088l190.336 132.544 2.24 1.92 1.92 2.304c7.04 9.28 5.12 22.4-4.16 29.376l-190.336 132.48V199.488l-4.16 0.128a362.688 362.688 0 1 0 285.248 125.248l-27.904-32.256 64.512-55.808 27.904 32.256 6.528 7.68 6.336 7.872a448 448 0 1 1-358.528-170.432V9.088z m51.584 389.44v362.496h-72.96V510.976H398.0016v-48.448c22.464-1.024 38.208-2.56 47.232-4.48 14.336-3.2 25.984-9.6 35.008-19.072a62.528 62.528 0 0 0 14.016-25.984 59.712 59.712 0 0 0 2.752-14.464h59.2z"  ></path></symbol><symbol id="tingwu-yingyongxiazai" viewBox="0 0 1024 1024"><path d="M102.4 102.4h358.4v358.4H102.4zM102.4 537.6h358.4v358.4H256a153.6 153.6 0 0 1-153.6-153.6v-204.8zM537.6 102.4h358.4v358.4h-358.4zM537.6 537.6h358.4v358.4h-358.4z"  ></path></symbol><symbol id="tingwu-huazhonghua" viewBox="0 0 1024 1024"><path d="M372.693333 201.813333v85.333334H170.794667v426.666666c0 40.746667 28.629333 75.093333 66.218666 83.370667l6.357334 1.152 6.485333 0.64 6.272 0.170667h576v-210.944h85.333333v296.277333H254.890667l-8.746667-0.256a170.666667 170.666667 0 0 1-160.426667-161.706667l-0.256-8.704v-512h287.232z"  ></path><path d="M948.736 204.245333v213.333334a64 64 0 0 1-64 64h-327.125333a64 64 0 0 1-64-64v-213.333334a64 64 0 0 1 64-64h327.125333a64 64 0 0 1 64 64z"  ></path></symbol><symbol id="tingwu-tuichuhuazhonghua" viewBox="0 0 1024 1024"><path d="M888.96 144.32l-0.128 285.568h-85.312V229.632H142.272v426.688c0 40.704 28.608 75.008 66.176 83.328l6.4 1.152 6.4 0.64 6.336 0.192H398.72v85.312H226.368l-8.768-0.256a170.688 170.688 0 0 1-160.448-161.664l-0.256-8.704v-512h832z"  ></path><path d="M221.248 295.04l253.44 36.224L257.408 548.48z"  ></path><path d="M463.936 492.8l-45.248 45.248L310.08 429.44l45.248-45.248zM961.408 636.864v149.376a96 96 0 0 1-96 96h-263.04a96 96 0 0 1-96-96V636.8a96 96 0 0 1 96-96h263.04a96 96 0 0 1 96 96z"  ></path></symbol><symbol id="tingwu-wechat" viewBox="0 0 1024 1024"><path d="M513.137778 30.606222a483.555556 483.555556 0 1 1 0 967.111111 483.555556 483.555556 0 0 1 0-967.111111z m120.490666 399.36c-101.831111 0-181.987556 68.494222-181.987555 152.462222 0 84.195556 80.213333 152.462222 181.987555 152.462223 21.276444 0 42.780444-5.233778 64.170667-10.524445l58.709333 31.573334-16.099555-52.508445c42.951111-31.630222 74.922667-73.614222 74.922667-121.002667 0-83.968-85.617778-152.462222-181.703112-152.462222z m-208.782222-157.582222c-117.646222 0-213.959111 78.734222-213.959111 178.688 0 57.685333 32.085333 105.073778 85.617778 141.824l-21.390222 63.203556 74.752-36.807112c26.737778 5.176889 48.241778 10.524444 74.979555 10.524445 6.712889 0 13.312-0.284444 19.911111-0.853333a153.656889 153.656889 0 0 1-6.599111-43.975112c0-91.818667 80.270222-166.286222 181.930667-166.286222 6.940444 0 13.767111 0.512 20.593778 1.194667-18.545778-84.593778-110.648889-147.512889-215.836445-147.512889z m149.788445 241.777778c16.156444 0 26.737778 10.524444 26.737777 20.992 0 10.581333-10.581333 21.048889-26.737777 21.048889-10.638222 0-21.390222-10.467556-21.390223-21.048889 0-10.467556 10.752-21.048889 21.390223-21.048889z m117.646222 0c16.042667 0 26.737778 10.524444 26.737778 20.992 0 10.581333-10.695111 21.048889-26.737778 21.048889-10.581333 0-21.219556-10.467556-21.219556-21.048889 0-10.467556 10.638222-21.048889 21.219556-21.048889z m-187.221333-152.462222c16.099556 0 26.737778 10.410667 26.737777 26.225777 0 15.758222-10.638222 26.339556-26.737777 26.339556-16.042667 0-32.142222-10.581333-32.142223-26.339556 0-15.815111 16.099556-26.168889 32.142223-26.168889z m-149.731556 0c16.042667 0 26.737778 10.410667 26.737778 26.225777 0 15.758222-10.695111 26.339556-26.737778 26.339556s-32.199111-10.581333-32.199111-26.339556c0-15.815111 16.156444-26.168889 32.199111-26.168889z"  ></path></symbol><symbol id="tingwu-cancel1" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m43.456 227.712a198.4 198.4 0 0 0-198.4 198.4v212.288L286.72 568.192l-54.336 54.272 162.944 162.944 162.88-162.944-54.272-54.272-70.144 70.08V426.112l0.32-9.536a121.6 121.6 0 0 1 242.88 9.536v352h76.8v-352l-0.32-11.264a198.4 198.4 0 0 0-198.08-187.136z"  ></path></symbol><symbol id="tingwu-todo" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m12.928 224.192H263.04a38.4 38.4 0 0 0-38.4 38.4v371.2a166.4 166.4 0 0 0 166.4 166.4h371.2l6.208-0.448a38.4 38.4 0 0 0 32.192-37.888V545.088h-76.8v178.304h-332.8a89.6 89.6 0 0 1-89.6-89.6v-332.8h223.488v-76.8z m202.88 57.024L502.08 499.072l-84.48-87.424-55.232 53.312 137.856 142.72 280.832-271.168-53.376-55.296z"  ></path></symbol><symbol id="tingwu-important" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m-58.816 207.232A101.568 101.568 0 0 0 357.888 344.96l22.272 63.808-99.2 151.424c-9.344 14.208-14.336 30.72-14.464 47.68l0.448 8.96c4.16 44.48 41.408 79.36 87.04 79.68l119.04 0.832v174.016h76.8l-0.064-173.44 127.104 0.832 7.68-0.32c15.232-1.536 27.904-5.824 39.104-12.736l7.04-4.8c35.84-27.072 45.76-77.44 21.76-116.48L657.472 410.24l22.72-69.376 2.176-8a101.952 101.952 0 0 0-97.664-125.44z m-0.32 76.8l131.2 0.32a25.024 25.024 0 0 1 23.808 30.4l-1.216 4.224-27.648 84.48a38.4 38.4 0 0 0 3.84 32l104.192 169.28a11.328 11.328 0 0 1-8.384 17.28l-3.456 0.064-320.704-2.304a11.264 11.264 0 0 1-9.28-17.536l109.632-167.168a38.4 38.4 0 0 0 4.16-33.792l-28.992-82.688a24.96 24.96 0 0 1 22.848-34.56z"  ></path></symbol><symbol id="tingwu-person-unknown" viewBox="0 0 1024 1024"><path d="M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024zM343.808 518.144c31.36 20.224 67.2 36.928 107.392 50.048-12.736 29.632-19.84 62.336-19.84 96.64 0 72.576 31.552 137.792 81.728 182.656-16.256 0.64-32.832 0.896-49.664 0.896-129.408 0-244.928-16.768-320.64-78.976 25.92-115.328 101.888-208.832 201.024-251.264z m119.68-412.8c90.688 0 164.224 88.32 164.224 197.12 0 52.864-17.28 100.864-45.568 136.32-31.104 12.8-58.88 32-81.92 55.872a137.216 137.216 0 0 1-36.8 4.992c-90.688 0-164.288-88.32-164.288-197.12 0-108.928 73.6-197.12 164.288-197.12z m212.928 358.4a201.152 201.152 0 1 1 0 402.24 201.152 201.152 0 0 1 0-402.24z m-4.672 281.6a28.992 28.992 0 1 0 0 57.984 28.992 28.992 0 0 0 0-57.984z m4.928-208.256c-24.832 0-44.608 7.808-58.816 23.424-12.16 12.8-18.944 29.568-20.352 50.048l-0.256 7.616 0.256 3.008 1.024 3.776 1.408 2.944a20.608 20.608 0 0 0 18.048 10.752c10.88 0 19.84-8.448 20.672-19.328l0.192-5.952 0.512-5.312 0.832-4.736a38.336 38.336 0 0 1 7.04-15.424c5.952-8.256 14.976-12.16 28.16-12.16 11.328 0 19.328 2.816 24.704 8.32 5.504 5.568 8.32 13.312 8.32 23.424a30.592 30.592 0 0 1-7.552 19.52l-2.944 3.392-7.168 7.232-5.312 4.8-5.76 5.568c-11.072 10.88-18.368 20.16-22.144 28.288a67.2 67.2 0 0 0-6.208 24.128l-0.256 6.4 0.32 3.584 0.896 3.392 1.344 3.072a20.736 20.736 0 0 0 18.368 11.136c11.52 0 20.864-9.344 20.864-20.928 0-7.04 1.536-13.12 4.8-18.56a51.584 51.584 0 0 1 9.6-12.096l15.552-14.08 8.576-8.192 3.904-4.032 1.536-1.728 3.776-5.376 3.136-5.632c4.736-9.472 7.04-19.84 7.04-31.168 0-20.928-6.784-37.952-20.224-50.304-13.632-12.608-31.552-18.816-53.888-18.816z"  ></path></symbol><symbol id="tingwu-success-filled" viewBox="0 0 1024 1024"><path d="M487.905882 6.023529a481.882353 481.882353 0 1 1 0 963.764706 481.882353 481.882353 0 0 1 0-963.764706z m219.617883 323.885177a45.176471 45.176471 0 0 0-54.211765-0.361412l-5.059765 4.457412-223.653647 223.593412-95.774117-95.834353-4.638118-4.035765a45.176471 45.176471 0 0 0-63.668706 62.825412l4.397177 5.12 127.759058 127.698823 4.638118 4.096a45.176471 45.176471 0 0 0 54.151529 0.361412l5.12-4.397176 255.578353-255.578353 4.035765-4.638118a45.176471 45.176471 0 0 0 0.361412-54.151529l-4.397177-5.059765-4.638117-4.096z"  ></path></symbol><symbol id="tingwu-upload-default" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#D8D8D8" fill-opacity="0" ></path><path d="M85.333 512a426.667 426.667 0 1 0 853.334 0 426.667 426.667 0 1 0-853.334 0z" fill="#605CE5" opacity=".2" ></path><path d="M647.765 562.347l-89.642-89.856v284.842h-95.83V472.491l-89.685 89.856-67.755-68.054 205.355-206.336 205.355 206.336" fill="#605CE5" ></path></symbol><symbol id="tingwu-upload-waiting" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#D8D8D8" fill-opacity="0" ></path><path d="M85.333 512a426.667 426.667 0 1 0 853.334 0 426.667 426.667 0 1 0-853.334 0z" fill="#605CE5" opacity=".2" ></path><path d="M554.667 323.115v384h-85.334v-384h85.334zM384 408.448v213.333h-85.333V408.448H384z m341.333 0v213.333H640V408.448h85.333z" fill="#605CE5" ></path></symbol><symbol id="tingwu-error" viewBox="0 0 1024 1024"><path d="M509.23921533 27.35686233a481.882353 481.882353 0 1 1 0 963.764706 481.882353 481.882353 0 0 1 0-963.764706zM411.65803933 347.32674533a45.176471 45.176471 0 0 0-63.247059 63.247059l4.397177 5.059764 95.834352 95.774118-95.774117 95.894588-4.397177 5.059765A45.176471 45.176471 0 0 0 411.65803933 675.48862733l5.059765-4.397176 95.774117-95.834353 95.894588 95.834353 5.059765 4.397176a45.176471 45.176471 0 0 0 63.247059-63.247059l-4.397176-4.999529-95.894589-95.894588 95.894589-95.774118 4.336941-5.12A45.176471 45.176471 0 0 0 613.44627433 347.26650933l-5.059765 4.397177-95.894588 95.774118-95.774117-95.774118-5.059765-4.397177v0.060236z"  ></path></symbol><symbol id="tingwu-tip" viewBox="0 0 1024 1024"><path d="M506.240693 0.033278a511.967042 511.967042 0 1 1 11.519258 1023.934084 511.967042 511.967042 0 0 1-11.519258-1023.934084z m80.826797 431.076249H371.529365v107.833059H479.362423v269.422655h107.769063V431.173523z m0-215.538124H479.362423v107.833058h107.769063V215.571403z"  ></path></symbol><symbol id="tingwu-scroll-to-bottom" viewBox="0 0 1024 1024"><path d="M479.573333 794.4192l411.374934-411.306667-96.4608-96.529066L547.84 533.162667V0h-136.533333v533.162667L164.727467 286.583467 68.266667 383.112533l411.306666 411.306667z m379.835734 184.9344v-136.465067H93.252267v136.465067h766.1568z"  ></path></symbol><symbol id="tingwu-return-down1" viewBox="0 0 1024 1024"><path d="M809.117538 463.478154l132.804924 121.462154-353.910154 353.516307-1.496616 1.496616a92.868923 92.868923 0 0 1-131.623384-0.393846L99.485538 584.940308 236.307692 463.478154l245.602462 250.564923a55.611077 55.611077 0 0 0 78.060308 0.078769l249.147076-250.643692zM809.038769 4.017231l132.883693 121.462154-353.988924 353.516307-1.417846 1.496616a92.868923 92.868923 0 0 1-131.702154-0.393846L99.406769 125.479385 236.307692 4.017231l245.602462 250.564923a55.611077 55.611077 0 0 0 78.060308 0.078769L809.038769 4.017231z"  ></path></symbol><symbol id="tingwu-refresh1" viewBox="0 0 1024 1024"><path d="M511.998081 102.395264V0a511.976321 511.976321 0 1 1-373.61472 161.912512H26.900517V59.517247H334.08631v307.185793h-102.395265V213.302135A409.581057 409.581057 0 1 0 511.998081 102.459261v-0.127994z"  ></path></symbol><symbol id="tingwu-play-filled" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0zM431.616 326.4a22.08 22.08 0 0 0-22.016 22.016v327.488l0.384 4.224a22.144 22.144 0 0 0 33.792 14.144L448 691.52l268.8-179.392L448.128 332.8l-4.16-2.816a22.08 22.08 0 0 0-12.288-3.648z"  ></path></symbol><symbol id="tingwu-AI" viewBox="0 0 1024 1024"><path d="M546.112 85.312a51.2 51.2 0 0 1 51.2 51.2v76.8h256v213.376h76.8a51.2 51.2 0 0 1 51.2 51.2v196.224a51.2 51.2 0 0 1-51.2 51.2h-76.8v213.376h-256v-76.8a51.2 51.2 0 0 0-51.2-51.2H349.696a51.2 51.2 0 0 0-51.2 51.2v76.8H85.312v-213.312h76.8a51.2 51.2 0 0 0 50.816-45.248l0.32-6.016V477.888a51.2 51.2 0 0 0-51.2-51.2H85.376V213.312h213.248v-76.8a51.2 51.2 0 0 1 51.2-51.2h196.288z m-23.04 264.768H448.64l-99.712 301.824-12.8 39.552h68.864l21.76-70.208h116.224l20.352 70.208h71.424L523.072 350.08z m188.096 0H634.752v341.376h76.416V350.08z m-225.92 78.08l39.36 134.272h-80L485.12 428.16z"  ></path></symbol><symbol id="tingwu-logo" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m114.432 733.952l1.28-0.384 1.088-0.512 3.264-1.28 1.408-0.64 1.92-0.704 1.152-0.384 0.832-0.448 3.712-1.536 4.48-2.112 2.816-1.408 1.92-0.896 4.672-2.432-1.536 0.768 1.6-0.768 1.024-0.64 3.648-1.92 3.008-1.792 1.984-1.152 2.944-1.792 1.28-0.704 2.24-1.472 2.24-1.408-2.176 1.28 2.176-1.344 0.576-0.384 1.664-1.088 3.008-2.048 1.28-0.896 2.112-1.472 0.768-0.64 3.968-2.88 1.216-0.896 0.64-0.512 2.24-1.728 1.28-0.896 4.288-3.52 4.416-3.84 1.344-1.152 2.624-2.304 0.832-0.768 1.088-1.024 1.792-1.536 1.152-1.28 3.072-2.816 4.224-4.16 2.88-3.008 1.088-1.088 3.968-4.224 1.6-1.92 2.944-3.136 4.416-5.184 3.52-4.224 3.584-4.48 1.92-2.24 7.168-8.704 5.824-6.4 1.28-1.408 7.68-7.68 2.816-2.56a189.184 189.184 0 0 1 19.84-15.872l4.992-3.328 3.072-1.92 3.52-2.048 4.288-2.368 4.48-2.304 3.584-1.664 4.48-1.984 1.92-0.768 0.832-0.32 1.856-0.704 1.6-0.64 6.784-2.24 1.92-0.64h-0.64c-84.992 1.28-153.216-56.832-165.952-137.792l1.024 5.632c-4.544 2.56-8.96 5.312-13.248 8.256l-1.472 1.088-1.472 1.088-0.704 0.64-1.536 1.152-1.536 1.28-1.536 1.28-1.6 1.408-1.664 1.472-1.664 1.472-1.792 1.6-1.792 1.6-1.792 1.728-2.88 2.688-1.984 1.92-3.072 2.944-4.352 4.288-4.416 4.352-35.52 36.096-9.024 9.152-19.2 18.88a1037.184 1037.184 0 0 1-116.032 98.048l-3.456 2.432-1.664 1.216-12.608 8.512a234.048 234.048 0 0 1-41.408 20.48l-2.688 0.96 0.896 0.832 1.28 1.088 1.28 1.216 3.008 2.432 3.2 2.56 1.728 1.28 4.096 3.072 2.368 1.728 1.984 1.408 2.112 1.408 2.112 1.472 1.088 0.64 2.176 1.536 4.608 2.88 2.432 1.472 2.432 1.472 3.776 2.176 2.56 1.472 2.752 1.536 14.72 7.68c19.712 9.536 40.512 16.448 61.952 20.48l10.176 1.664 3.968 0.64 8.448 0.832-1.088-0.064 3.136 0.192 5.504 0.384 4.992 0.256 7.488 0.064H544l12.928-0.512h1.28l6.912-0.64 6.848-0.768-2.88 0.384c4.032-0.512 8.128-1.088 12.16-1.728l4.992-0.896 1.92-0.384a243.2 243.2 0 0 0 33.92-8.96l2.752-1.024 1.6-0.64zM96.704 601.6l0.64 0.704 3.2 3.584a247.04 247.04 0 0 0 149.568 79.808l2.24 0.32 12.16 1.28 3.072 0.32c7.488 0.512 14.976 0.768 22.4 0.64l8.704-0.256 1.152-0.064 0.768-0.064 5.888-0.448 0.832-0.064c1.28 0 2.88-0.192 4.48-0.32l1.536-0.192 3.328-0.32 9.024-1.344 1.088-0.192 3.904-0.64 5.888-1.088 5.568-1.152-2.304 0.448 3.968-0.832 5.568-1.408 4.544-1.408-9.344-12.544a245.504 245.504 0 0 0-61.76-54.784l-1.024-0.64c-58.816 23.04-125.376 20.8-184.512-9.024zM543.872 250.24h-7.68l-0.832 0.064-1.472 0.128-3.456 0.32-1.024 0.128-0.832 0.128-1.472 0.192-1.088 0.192-2.048 0.384-1.6 0.32-1.28 0.32-1.6 0.384-1.472 0.384-1.024 0.32-1.92 0.64-0.96 0.256-1.152 0.448-1.088 0.384L509.504 256l-1.088 0.448-1.792 0.832-1.792 0.832-1.472 0.704-1.536 0.832-1.344 0.768-1.728 1.024-2.752 1.728-0.768 0.448-0.96 0.704-0.768 0.512-1.664 1.216-0.768 0.576-0.896 0.64-1.6 1.28-1.088 0.96-1.088 0.896-2.304 2.048-2.048 1.92-1.664 1.664-1.024 1.024-1.6 1.792-1.28 1.408-1.536 1.664-0.896 1.088-1.216 1.472-1.408 1.792-1.6 2.112-1.408 1.92-1.408 1.92a149.76 149.76 0 0 0-1.92 2.752l-1.024 1.6-0.384 0.64-1.216 1.92-0.576 0.896-1.28 2.176-1.216 2.048-1.792 3.2-1.28 2.368-2.112 4.032-0.832 1.728-0.704 1.472-1.152 2.368-2.176 4.8-1.152 2.624-1.472 3.52-0.832 2.048-1.28 3.264-0.64 1.856-1.28 3.264-1.024 3.008-0.768 2.304a319.744 319.744 0 0 0-1.472 4.288l-1.024 3.2-0.96 3.2-0.896 3.008a376.896 376.896 0 0 0-2.432 8.768l-1.28 4.928-0.768 2.944-2.688 11.52-0.704 3.456-0.704 3.456-0.832 4.096-1.088 5.76-0.64 3.648-0.64 3.52-0.576 3.392-0.512 3.328-0.384 2.368-0.96 5.632-0.576 3.52-0.512 2.752-0.64 3.52-0.64 3.392-0.64 3.392-0.64 2.88-0.768 3.84-0.512 2.24-0.64 2.944-0.768 3.008-0.384 1.536-1.408 5.312-1.216 4.16-1.024 3.328-1.92 5.888-0.64 2.048-2.112 5.568-0.896 2.24-0.832 2.112-0.576 1.344c-0.64 1.664-1.408 3.264-2.112 4.928l-1.024 2.112-0.576 1.28-0.64 1.28-0.448 0.96-2.176 4.224a194.688 194.688 0 0 1-4.48 8.128l-0.576 1.024-1.088 1.792-1.344 2.176-2.368 3.712-1.856 2.752-1.408 2.112-1.6 2.176-1.28 1.92-4.096 5.312-1.92 2.368-1.152 1.472-0.704 0.896-1.28 1.472-2.112 2.496-3.328 3.776-1.28 1.408-1.92 2.048-2.368 2.56-2.688 2.752-4.8 4.736-0.832 0.832-2.688 2.56-4.288 3.904-1.024 0.96-2.88 2.56L340.928 576l-3.584 3.008-1.792 1.408-1.472 1.152-1.92 1.472-1.28 1.024-1.024 0.768-1.92 1.344-0.96 0.704-1.92 1.344-2.176 1.472-2.368 1.6-1.984 1.28-1.6 1.024-2.944 1.792-1.92 1.152-2.56 1.472-1.92 1.088-2.816 1.472-1.856 0.96-5.312 2.688-2.112 0.96-3.776-2.368 7.68 5.056c22.912 15.744 42.368 34.56 58.048 55.04l8.96 12.416c20.416-6.976 39.424-16.64 56.384-28.608l4.48-3.2 2.496-1.792c47.36-34.304 87.04-69.248 130.816-112.768l6.72-6.72 40.768-41.408 5.76-5.696 3.392-3.328 3.264-3.2 1.088-0.96 4.032-3.84 1.92-1.792 1.92-1.728 1.92-1.664 1.728-1.6 3.52-3.008 1.664-1.408 3.328-2.624 0.832-0.64 1.6-1.28 0.768-0.576 9.024-5.888 9.28-5.504a690.56 690.56 0 0 0-3.968-23.936l-1.152-6.208-1.024-5.12a540.288 540.288 0 0 0-1.536-7.36l-0.96-4.352-1.088-4.672-0.64-2.368-0.576-2.432-0.64-2.432-0.96-3.84-1.408-5.248-1.024-3.584-0.512-1.6-0.768-2.688-0.768-2.56-0.832-2.56-0.704-2.304-0.896-2.56-0.832-2.56a320 320 0 0 0-0.896-2.432l-0.384-1.088-1.408-3.968-0.896-2.432-0.96-2.368-0.96-2.368a262.4 262.4 0 0 0-1.92-4.8L634.24 325.76a222.08 222.08 0 0 0-6.912-14.336L625.088 307.2l-1.152-2.048-2.304-3.968-0.64-1.024-1.28-2.048-1.408-2.048-0.832-1.28-1.024-1.472-0.768-1.088-0.64-0.832-0.704-1.088-1.472-1.92-1.344-1.792-0.768-0.896-0.704-0.896-0.704-0.832-0.768-0.96-1.28-1.472-0.896-0.96-0.768-0.896-0.832-0.832-1.472-1.536-1.6-1.664-0.832-0.832-1.408-1.28-0.96-0.96-1.536-1.28-1.728-1.472-1.6-1.28-1.92-1.6-1.28-0.96-1.408-0.96-1.792-1.216-0.832-0.576-0.96-0.64-0.64-0.32-1.28-0.768-0.832-0.512-1.6-0.896-1.088-0.64-3.008-1.408L576 257.6l-2.56-1.152-1.472-0.64-0.64-0.192-1.28-0.448-1.984-0.768-0.768-0.192-1.28-0.448-1.152-0.32-1.088-0.32-0.896-0.256-1.28-0.32-0.768-0.192-1.344-0.256-1.088-0.256-1.28-0.256-0.896-0.128-1.28-0.256-1.408-0.192-1.024-0.128-1.408-0.192-2.304-0.192a90.752 90.752 0 0 0-3.2-0.256l-1.664-0.064zM155.84 573.696h-9.728l-2.944 0.064-2.432 0.128h-1.92l-2.24 0.192-3.072 0.192-3.2 0.256-1.472 0.128-3.072 0.256-2.88 0.384-4.416 0.512-2.88 0.384-2.816 0.448-1.408 0.256-1.28 0.192-2.816 0.512-3.968 0.704-2.56 0.576-2.56 0.512-2.56 0.64-4.8 1.152-2.368 0.64-1.408 0.32c56.64 34.56 122.24 40.64 180.608 20.736l-3.072-1.6-3.2-1.6-2.88-1.408L256 597.12l-2.56-1.216-2.752-1.28-2.432-0.96-2.816-1.216-1.92-0.768-2.56-0.96-2.368-0.96-2.56-0.96-3.2-1.152-1.216-0.384-2.176-0.768-2.048-0.64-3.008-0.96-2.88-0.896-1.92-0.64-2.048-0.512-3.008-0.832-4.032-1.024-2.432-0.64-1.856-0.384-3.072-0.704-1.216-0.256-3.072-0.64-1.6-0.32-3.456-0.64-1.28-0.192-4.544-0.768-1.92-0.256-3.072-0.448-1.536-0.192-1.92-0.256-0.832-0.064-0.896-0.128a244.288 244.288 0 0 0-5.76-0.576l-3.2-0.256-1.344-0.064-2.048-0.128-4.096-0.192-1.792-0.128-3.648-0.064zM744.32 429.44h-7.04l-3.2 0.064-1.408 0.064-3.392 0.192-1.088 0.128-1.6 0.128-1.088 0.064-1.728 0.192-1.92 0.256-2.304 0.32-2.176 0.32-2.624 0.384-1.856 0.32-3.84 0.768-1.792 0.384-1.28 0.32-1.728 0.448-1.472 0.32-1.92 0.512-2.048 0.64-1.792 0.448-1.6 0.512-1.728 0.512-2.368 0.832-2.56 0.832-2.752 1.088-1.92 0.704-1.664 0.64-3.328 1.472-2.496 1.088c13.632 80.64 86.656 136.064 174.848 124.096a104.96 104.96 0 0 1 30.72 1.664l9.216 2.24-0.96-9.984a166.208 166.208 0 0 0-22.336-60.672l-1.984-3.264-1.856-2.816-0.64-0.96-0.64-0.96-0.704-1.088-1.28-1.728-1.28-1.792-0.704-0.896-1.28-1.664-0.768-0.96-1.856-2.304-1.088-1.28-0.704-0.832-1.408-1.6-1.6-1.728-1.344-1.472-1.664-1.728-1.664-1.664-0.64-0.64-1.28-1.28-0.96-0.832-2.304-2.112-1.28-1.088-3.136-2.624-2.56-2.176-2.048-1.536-1.92-1.344-0.96-0.768-1.792-1.28-2.112-1.408-3.008-1.92-0.96-0.64-1.856-1.152-1.408-0.896-3.328-1.92-1.408-0.768-3.392-1.728-1.728-0.896-2.048-0.96-0.96-0.448-1.024-0.512-1.6-0.64-1.344-0.64-2.752-1.152-1.92-0.832-1.792-0.64-1.664-0.64-1.792-0.64-2.368-0.768-1.408-0.512-1.28-0.384-1.792-0.512-1.92-0.64-6.144-1.536-1.152-0.256-2.432-0.576-1.664-0.32-1.728-0.32-1.664-0.32-2.88-0.512-1.92-0.256-0.896-0.128-1.216-0.192-0.96-0.128-1.6-0.192-1.856-0.192-1.216-0.128-1.728-0.128-1.664-0.128-2.304-0.128-1.344-0.128h-1.472l-1.728-0.064z"  ></path></symbol><symbol id="tingwu-loading2" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 0 0 1024A512 512 0 0 0 512 0z m0 128a384 384 0 1 1 0 768A384 384 0 0 1 512 128z" fill="#CDCDD6" ></path><path d="M512 0a64 64 0 1 1 0 128 384 384 0 0 0-384 384 64 64 0 1 1-128 0 512 512 0 0 1 512-512z" fill="#7D7D94" ></path></symbol><symbol id="tingwu-meeting-loading" viewBox="0 0 1024 1024"><path d="M512 64a448 448 0 1 0 0 896A448 448 0 0 0 512 64z m0 137.856a310.144 310.144 0 1 1 0 620.288 310.144 310.144 0 0 1 0-620.288z" fill="#000000" opacity=".15" ></path><path d="M512 64a68.928 68.928 0 1 1 0 137.856 310.144 310.144 0 0 0 0 620.288A68.928 68.928 0 0 1 512 960 448 448 0 0 1 512 64z" fill="#FAFCFF" ></path></symbol><symbol id="tingwu-next1" viewBox="0 0 1024 1024"><path d="M397.568 510.976v-48.448c22.464-1.024 38.208-2.56 47.232-4.48 14.336-3.2 25.984-9.6 35.008-19.072a62.528 62.528 0 0 0 14.016-25.984 59.712 59.712 0 0 0 2.752-14.464h59.2v362.496h-72.96V510.976H397.568z" fill="#000000" ></path><path d="M510.912 114.048a448 448 0 1 1-351.744 170.496l6.4-7.872 6.464-7.68 27.904-32.256 64.576 55.808-27.968 32.256a360.896 360.896 0 0 0-88.32 237.184 362.688 362.688 0 1 0 373.568-362.432l-10.88-0.192h-42.688V114.048h42.688z" fill="#605CE5" ></path><path d="M327.36 141.696l190.336-132.48L517.696 307.776l-190.272-132.48-0.064-0.064a20.992 20.992 0 0 1 0-33.6z" fill="#605CE5" ></path></symbol><symbol id="tingwu-logo-unknown1" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#D8E5F5" ></path><path d="M343.808 518.144c31.36 20.224 67.2 36.928 107.392 50.048-12.736 29.632-19.84 62.336-19.84 96.64 0 72.576 31.552 137.792 81.728 182.656-16.256 0.64-32.832 0.896-49.664 0.896-129.408 0-244.928-16.768-320.64-78.976 25.92-115.328 101.888-208.832 201.024-251.264z m119.68-412.8c90.688 0 164.224 88.32 164.224 197.12 0 52.864-17.28 100.864-45.568 136.32-31.104 12.8-58.88 32-81.92 55.872a137.216 137.216 0 0 1-36.8 4.992c-90.688 0-164.288-88.32-164.288-197.12 0-108.928 73.6-197.12 164.288-197.12z" fill="#97C2F8" ></path><path d="M676.48 463.744a201.152 201.152 0 1 1 0 402.24 201.152 201.152 0 0 1 0-402.24z m-4.736 281.6a28.992 28.992 0 1 0 0 57.984 28.992 28.992 0 0 0 0-57.984z m4.928-208.256c-24.832 0-44.608 7.808-58.816 23.424-12.16 12.8-18.944 29.568-20.352 50.048l-0.256 7.616 0.256 3.008 1.024 3.776 1.408 2.944a20.608 20.608 0 0 0 18.048 10.752c10.88 0 19.84-8.448 20.672-19.328l0.192-5.952 0.512-5.312 0.832-4.736a38.336 38.336 0 0 1 7.04-15.424c5.952-8.256 14.976-12.16 28.16-12.16 11.328 0 19.328 2.816 24.704 8.32 5.504 5.568 8.32 13.312 8.32 23.424a30.592 30.592 0 0 1-7.552 19.52l-2.944 3.392-7.168 7.232-5.312 4.8-5.76 5.568c-11.072 10.88-18.368 20.16-22.144 28.288a67.2 67.2 0 0 0-6.208 24.128l-0.256 6.4 0.32 3.584 0.896 3.392 1.344 3.072a20.736 20.736 0 0 0 18.368 11.136c11.52 0 20.864-9.344 20.864-20.928 0-7.04 1.536-13.12 4.8-18.56a51.584 51.584 0 0 1 9.6-12.096l15.552-14.08 8.576-8.192 3.904-4.032 1.536-1.728 3.776-5.376 3.136-5.632c4.736-9.472 7.04-19.84 7.04-31.168 0-20.928-6.784-37.952-20.224-50.304-13.632-12.608-31.552-18.816-53.888-18.816z" fill="#97C2F8" ></path></symbol><symbol id="tingwu-radio-dis" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m0 110.933333a401.066667 401.066667 0 1 0 0 802.133334 401.066667 401.066667 0 0 0 0-802.133334z" fill="#CDCDD6" ></path><path d="M512 110.933333a401.066667 401.066667 0 1 0 0 802.133334 401.066667 401.066667 0 0 0 0-802.133334z" fill="#27264D" fill-opacity=".12" ></path></symbol><symbol id="tingwu-default" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#97C2F8" ></path><path d="M335.616 372.16a225.856 188.224 90 1 0 376.448 0 225.856 188.224 90 1 0-376.448 0Z" fill="#D9E8FB" ></path><path d="M373.824 626.048c43.264 25.344 93.248 45.824 150.016 61.44 58.624-14.272 109.44-34.432 152.448-60.48a415.488 415.488 0 0 1 187.072 147.968A438.08 438.08 0 0 1 512 950.848c-136.32 0-258.048-62.08-338.56-159.552a415.424 415.424 0 0 1 200.384-165.248z" fill="#D9E8FB" ></path></symbol><symbol id="tingwu-close-eye" viewBox="0 0 1024 1024"><path d="M176.256 256c55.36 149.184 188.544 249.664 334.72 256.256 149.12-6.208 280.96-104.192 337.408-250.624L960 309.952a529.28 529.28 0 0 1-126.08 191.232l70.976 130.24a13.248 13.248 0 0 1-4.48 17.408l-83.52 51.2a11.712 11.712 0 0 1-16.512-4.672l-65.28-119.872a489.472 489.472 0 0 1-162.56 58.24V755.2c0 7.04-5.44 12.8-12.16 12.8H464c-6.656 0-12.096-5.76-12.096-12.8V633.792a482.752 482.752 0 0 1-162.176-59.072L224 695.36a11.712 11.712 0 0 1-16.448 4.672l-83.584-51.2a13.248 13.248 0 0 1-4.416-17.408l71.744-131.776A534.144 534.144 0 0 1 64 302.848L176.256 256z"  ></path></symbol><symbol id="tingwu-cut" viewBox="0 0 1024 1024"><path d="M926.417318 421.647059c35.237647-1.144471 65.054118 23.853176 67.343058 56.32 2.228706 32.527059-24.033882 60.717176-59.151058 63.668706L926.417318 542.117647H96.254494c-34.755765 0.481882-63.849412-24.335059-66.017882-56.32-2.168471-32.045176 23.250824-59.994353 57.825882-63.548235l8.192-0.481883H926.417318v-0.060235z"  ></path></symbol><symbol id="tingwu-more" viewBox="0 0 1024 1024"><path d="M256 384v256H0V384h256z m384 0v256H384V384h256z m384 0v256h-256V384h256z"  ></path></symbol><symbol id="tingwu-radio1" viewBox="0 0 1024 1024"><path d="M516.999529 35.117176a481.882353 481.882353 0 1 1 0 963.764706 481.882353 481.882353 0 0 1 0-963.764706z m0 166.189177a315.693176 315.693176 0 1 0 0 631.446588 315.693176 315.693176 0 0 0 0-631.446588z"  ></path></symbol><symbol id="tingwu-radio" viewBox="0 0 1024 1024"><path d="M498.326588 16.444235a481.882353 481.882353 0 1 1 0 963.764706 481.882353 481.882353 0 0 1 0-963.764706z m0 80.293647a401.588706 401.588706 0 1 0 0 803.117177 401.588706 401.588706 0 0 0 0-803.117177z"  ></path></symbol><symbol id="tingwu-share" viewBox="0 0 1109 1024"><path d="M101.12 1024C45.312 1024 0 978.773333 0 922.88c0-202.24 149.845333-353.962667 369.749333-353.962667 219.989333 0 369.834667 151.637333 369.834667 353.962667V1024H101.12z m695.296-341.333333c152.32 0 276.736 107.008 284.16 251.733333l0.341333 13.738667V1024H853.333333v-101.12c0-93.781333-32.170667-176.64-88.661333-238.592 10.410667-1.109333 20.992-1.621333 31.744-1.621333z m0-398.250667c88.405333 0 160 74.496 160 166.4s-71.68 166.4-160 166.4c-88.32 0-160-74.496-160-166.4s71.68-166.4 160-166.4zM369.749333 0c123.733333 0 224 103.168 224 230.4S493.482667 460.8 369.749333 460.8 145.749333 357.632 145.749333 230.4 246.101333 0 369.749333 0z"  ></path></symbol><symbol id="tingwu-smartMic" viewBox="0 0 1024 1024"><path d="M501.940706 20.058353a481.882353 481.882353 0 1 1 0 963.764706 481.882353 481.882353 0 0 1 0-963.764706z m224.37647 279.491765L499.952941 430.200471l-226.243765-130.710589-48.188235 83.486118 226.304 130.590118v261.421176h96.376471v-261.421176l226.304-130.590118-48.188236-83.425882z"  ></path></symbol><symbol id="tingwu-sharePerson" viewBox="0 0 1024 1024"><path d="M68.367059 975.691294a96.376471 96.376471 0 0 1-28.190118-68.126118c0-4.818824 0.060235-9.637647 0.301177-14.336 8.252235-185.524706 177.573647-323.041882 385.204706-323.041882 42.224941 0 82.944 5.722353 121.072941 16.444235a216.244706 216.244706 0 0 0-24.696471 100.713412c0 117.940706 93.184 213.473882 208.112941 213.473883 28.431059 0 55.476706-5.782588 80.173177-16.384a307.501176 307.501176 0 0 0-15.299765-76.077177c-19.275294 10.962824-41.381647 17.167059-64.873412 17.167059-74.390588 0-134.686118-61.861647-134.686117-138.179765 0-23.491765 5.662118-45.537882 15.781647-64.873412l5.421176-9.456941a415.623529 415.623529 0 0 0-69.993412-26.503529c35.056941-67.041882 104.026353-112.64 183.476706-112.64 114.928941 0 208.052706 95.593412 208.052706 213.473882 0 42.164706-11.866353 81.438118-32.346353 114.507294l98.063059 100.592941-51.983059 53.308236-95.774117-98.424471a207.932235 207.932235 0 0 1-45.778824 27.166118c0.481882 7.469176 0.783059 15.179294 0.783059 23.009882v96.376471h-674.635294c-25.6 0-50.115765-10.119529-68.186353-28.190118z m661.805176-426.465882a133.722353 133.722353 0 0 0-113.543529 63.849412c80.112941 38.972235 142.155294 102.4 173.056 180.464941l5.421176 14.817882a138.661647 138.661647 0 0 0 69.692236-121.072941c0-76.257882-60.235294-138.119529-134.625883-138.11953zM425.682824 40.116706a216.847059 216.847059 0 1 1 0 433.694118 216.847059 216.847059 0 0 1 0-433.694118z"  ></path></symbol><symbol id="tingwu-password_new" viewBox="0 0 1024 1024"><path d="M733.403429 0v341.357714h146.285714v633.856H245.76l-8.557714-0.219428a146.285714 146.285714 0 0 1-137.508572-137.508572l-0.219428-8.557714V341.357714h146.285714V0h487.643429zM635.830857 585.142857h-292.571428v48.786286l0.365714 5.705143a48.786286 48.786286 0 0 0 42.715428 42.715428l5.705143 0.292572h243.785143V585.142857z m0-487.643428h-292.571428v243.858285h292.571428V97.499429z"  ></path></symbol><symbol id="tingwu-passwordShow" viewBox="0 0 1303 1024"><path d="M623.057455 30.999273c241.291636 0 397.405091 121.856 490.961454 240.919272 44.590545 57.064727 81.082182 119.901091 108.637091 186.833455l8.098909 20.666182 5.306182 14.801454 5.213091 16.197819 4.933818 17.128727-6.888727 23.738182-5.399273 15.825454-6.888727 18.338909c-27.927273 70.935273-66.001455 137.495273-112.919273 197.632C1020.369455 902.237091 864.349091 1024 623.057455 1024 381.858909 1024 225.745455 902.144 132.189091 783.080727A795.368727 795.368727 0 0 1 34.164364 621.009455l-5.585455-12.846546-9.402182-22.714182-6.888727-18.432-7.447273-22.341818L0 527.546182l6.888727-23.831273 5.399273-15.732364 6.795636-18.338909 9.495273-22.714181c1.675636-4.189091 3.630545-8.471273 5.585455-12.846546A799.557818 799.557818 0 0 1 132.096 271.825455C225.745455 152.762182 381.765818 30.999273 623.057455 30.999273z m0 279.272727a217.181091 217.181091 0 1 0 0 434.455273 217.181091 217.181091 0 0 0 0-434.455273z"  ></path></symbol><symbol id="tingwu-passwordHide" viewBox="0 0 1102 1024"><path d="M136.034462 37.100308L269.705846 170.929231c68.923077-39.305846 153.993846-65.851077 257.575385-65.851077 204.091077 0 336.187077 103.108923 415.350154 203.854769 37.730462 48.285538 68.608 101.454769 91.923692 158.089846l6.852923 17.486769 4.489846 12.524308 4.411077 13.705846 4.174769 14.493539-5.828923 20.086154-4.568615 13.390769-5.828923 15.517538c-23.630769 60.022154-55.847385 116.342154-95.547077 167.227077a597.385846 597.385846 0 0 1-48.285539 54.272l132.726154 132.647385-74.279384 74.279384L61.676308 111.458462 135.955692 37.021538z m-20.48 266.948923l227.958153 228.036923 0.157539 3.150769a183.768615 183.768615 0 0 0 176.521846 173.607385l201.019077 200.940307c-55.926154 22.055385-120.280615 35.446154-194.008615 35.446154-204.169846 0-336.265846-103.108923-415.428924-203.854769A673.004308 673.004308 0 0 1 28.908308 604.238769l-4.804923-10.870154-7.876923-19.219692L10.24 558.473846l-6.301538-18.904615L0 525.154462l5.828923-20.164924 4.568615-13.312 5.750154-15.517538 8.034462-19.219692c1.417846-3.544615 3.072-7.168 4.726154-10.870154 15.202462-33.555692 38.281846-77.193846 71.443692-122.171077l15.202462-19.849846z m411.648 37.257846c-25.6 0-50.018462 5.277538-72.231385 14.729846l241.270154 241.348923a183.768615 183.768615 0 0 0-169.038769-256z"  ></path></symbol><symbol id="tingwu-mark-question" viewBox="0 0 1024 1024"><path d="M551.749818 824.226909h-164.770909v164.864h164.770909v-164.770909zM469.364364 0A329.728 329.728 0 0 0 140.008727 313.250909L139.636364 329.728h164.770909a164.770909 164.770909 0 1 1 177.245091 164.398545l-12.288 0.465455h-82.478546v207.034182h164.864v-52.596364A329.821091 329.821091 0 0 0 469.364364 0z"  ></path></symbol><symbol id="tingwu-spin" viewBox="0 0 1024 1024"><path d="M816.875243 40.821622l172.571676 173.208216 0.249081 0.249081a121.772973 121.772973 0 0 1-21.628541 187.156757l-10.447567 6.033297-155.606487 78.764973-88.326919 370.88173-0.041513 0.207567a95.342703 95.342703 0 0 1-62.007351 68.123676 95.494919 95.494919 0 0 1-90.776217-16.051892l-7.915243-7.195676L381.965838 728.977297 86.694054 1024 0 937.402811l295.922162-295.61773L117.676973 461.284324a95.190486 95.190486 0 0 1-23.35827-94.429405 95.315027 95.315027 0 0 1 71.818378-65.688216l0.19373-0.041514 375.835675-78.045405 72.953082-151.385946a121.302486 121.302486 0 0 1 196.73254-35.881514l5.064649 5.064649-0.041514-0.041514z"  ></path></symbol><symbol id="tingwu-mark-main" viewBox="0 0 1024 1024"><path d="M313.344 306.048A126.912 126.912 0 0 1 432.448 133.76l164.48 0.384a127.424 127.424 0 0 1 122.112 156.8l-2.816 9.984-28.416 86.72 118.656 192.64c30.08 48.896 17.6 111.808-27.2 145.664l-8.768 6.016c-14.016 8.64-29.824 14.016-48.832 15.936l-9.664 0.384-158.848-1.088 0.064 216.832h-96v-217.536l-148.8-0.96a110.08 110.08 0 0 1-108.864-100.288l-0.448-10.56c0.128-21.184 6.4-41.856 18.048-59.584L341.12 385.792l-27.776-79.744z m107.456-74.24a31.232 31.232 0 0 0-17.344 41.216L439.68 376.32a48 48 0 0 1-5.12 42.24L297.408 627.52a14.08 14.08 0 0 0 11.52 21.952h0.064l400.96 2.816 4.224-0.128a14.08 14.08 0 0 0 10.496-21.568L594.432 419.072a48 48 0 0 1-4.736-40.064l34.56-105.472 1.536-5.312a31.36 31.36 0 0 0-29.76-38.08L432 229.76c-3.84 0-7.68 0.64-11.2 2.048z"  ></path></symbol><symbol id="tingwu-next" viewBox="0 0 1024 1024"><path d="M934.2976 67.072a81.92 81.92 0 0 1 81.5104 72.2944l0.6144 9.6256 0.8192 737.28a81.92 81.92 0 0 1-163.2256 9.728l-0.512-9.728-1.024-737.28a81.92 81.92 0 0 1 81.92-81.92zM133.632 54.272c27.648 0 54.6816 8.6016 77.312 24.576l475.9552 337.3056a100.352 100.352 0 0 1 0 163.7376L210.944 916.992A133.7344 133.7344 0 0 1 0 807.7312V187.904C-0.1024 114.0736 59.6992 54.272 133.632 54.272z"  ></path></symbol><symbol id="tingwu-moveToFolder" viewBox="0 0 1146 1024"><path d="M340.701612 0l159.193791 128H1146.268657V1024H191.044776C89.882746 1024 6.266269 944.754627 0.305672 843.271642L0 832.007642V0h340.701612z m268.853492 276.48l-90.112 90.555224 127.373374 128H291.152239v128h355.648955l-127.35809 139.019463 90.112 90.478806 281.095642-293.490627-281.095642-282.501732v-0.061134z"  ></path></symbol><symbol id="tingwu-open2" viewBox="0 0 1102 1024"><path d="M951.689846 65.851077c75.145846 0 135.955692 60.888615 135.955692 135.955692v611.879385c0 75.067077-60.809846 135.955692-135.955692 135.955692H135.955692A135.955692 135.955692 0 0 1 0 813.686154V201.806769C0 126.818462 60.888615 65.851077 135.955692 65.851077h815.734154zM463.556923 314.289231a54.980923 54.980923 0 0 0-55.138461 54.980923v285.065846a54.980923 54.980923 0 0 0 86.409846 45.213538l222.12923-153.836307a41.196308 41.196308 0 0 0 0-67.899077l-222.12923-153.757539a54.980923 54.980923 0 0 0-31.271385-9.767384z"  ></path></symbol><symbol id="tingwu-mute" viewBox="0 0 1170 1024"><path d="M105.691429 15.506286l6.144 5.339428 875.154285 882.980572a54.857143 54.857143 0 0 1-71.753143 82.578285l-6.144-5.339428-297.252571-299.885714v222.281142c0 71.68-32.402286 87.405714-73.142857 73.142858l-292.571429-219.428572h-146.285714a73.142857 73.142857 0 0 1-73.142857-73.142857v-365.714286a73.142857 73.142857 0 0 1 73.142857-73.142857h79.798857L33.938286 98.084571a54.857143 54.857143 0 0 1 71.753143-82.651428z m904.777142 140.068571c158.500571 170.569143 165.522286 456.923429 20.918858 637.659429L953.417143 714.605714c102.838857-139.264 95.085714-357.010286-23.332572-484.425143a54.857143 54.857143 0 0 1 80.384-74.605714z m-211.382857 110.153143c88.210286 94.793143 110.006857 239.616 65.462857 359.131429l-89.746285-90.550858c9.508571-69.339429-9.069714-143.433143-56.027429-193.901714a54.857143 54.857143 0 0 1 80.384-74.678857z m-187.245714-166.838857v271.140571l-226.962286-228.937143L538.770286 25.746286c40.374857-14.262857 73.142857 1.755429 73.142857 73.142857z"  ></path></symbol><symbol id="tingwu-fullscreen" viewBox="0 0 1084 1024"><path d="M1024.60175 672.045384a54.211733 54.211733 0 0 1 53.729851 46.802796l0.481882 7.408936v144.564621a126.494043 126.494043 0 0 1-116.193814 126.072397l-10.300229 0.421646h-144.564621a54.211733 54.211733 0 0 1-7.408937-107.881348l7.408937-0.542117h144.564621a18.070578 18.070578 0 0 0 17.588695-13.97458l0.481882-4.095998v-144.564621a54.211733 54.211733 0 0 1 54.211733-54.211732z m-961.354728 0a54.211733 54.211733 0 0 1 53.72985 46.802796l0.421647 7.408936v144.564621a18.070578 18.070578 0 0 0 13.97458 17.588696l4.095998 0.481882h144.564621a54.211733 54.211733 0 0 1 7.408936 107.941583l-7.348701 0.481882h-144.564621a126.494043 126.494043 0 0 1-126.132632-116.254049l-0.421646-10.300229v-144.564621a54.211733 54.211733 0 0 1 54.211732-54.211733z m652.588792-422.851516a72.28231 72.28231 0 0 1 72.282311 72.28231v361.411552a72.28231 72.28231 0 0 1-72.282311 72.342546h-361.411552a72.28231 72.28231 0 0 1-72.28231-72.282311v-361.411552a72.28231 72.28231 0 0 1 72.28231-72.342545h361.411552zM272.685016 0.000602a54.211733 54.211733 0 0 1 7.408937 107.941584l-7.408937 0.481882h-144.564621a18.070578 18.070578 0 0 0-17.588695 13.97458l-0.481882 4.095998v144.56462a54.211733 54.211733 0 0 1-107.941584 7.408937l-0.481882-7.348701V126.494646A126.494043 126.494043 0 0 1 117.880401 0.362014L128.120395 0.000602h144.564621z m672.225487 0a126.494043 126.494043 0 0 1 126.132632 116.193814l0.421646 10.360465v144.564621a54.211733 54.211733 0 0 1-108.001818 7.348701l-0.481882-7.288466v-144.564621a18.070578 18.070578 0 0 0-13.914345-17.648931l-4.156233-0.481882h-144.564621a54.211733 54.211733 0 0 1-7.348701-108.001819l7.348701-0.421646h144.564621V0.000602z"  ></path></symbol><symbol id="tingwu-executor" viewBox="0 0 1102 1024"><path d="M206.611692 288.689231c0 117.523692 92.475077 212.676923 206.690462 212.676923 114.215385 0 206.848-95.153231 206.848-212.676923 0-117.366154-92.632615-212.676923-206.848-212.676923s-206.769231 95.310769-206.769231 212.676923zM71.916308 927.901538c0 51.593846 41.905231 93.341538 93.420307 93.341539h589.351385V927.901538c0-186.683077-138.318769-326.734769-341.385846-326.734769C210.313846 601.166769 71.995077 741.218462 71.995077 927.901538z m587.618461-435.672615c0 84.755692 66.087385 153.6 147.613539 153.6 81.604923 0 147.771077-68.844308 147.771077-153.6 0-84.834462-66.244923-153.6-147.771077-153.6s-147.692308 68.765538-147.692308 153.6z m147.613539 213.937231c144.935385 0 262.616615 105.078154 262.616615 245.129846v69.947077h-210.077538V927.901538c0-86.567385-29.696-163.052308-81.841231-220.238769 9.609846-1.024 19.377231-1.496615 29.302154-1.496615z"  ></path></symbol><symbol id="tingwu-eye" viewBox="0 0 1339 1024"><path d="M662.764308 40.566154c278.212923 0 514.835692 195.584 602.584615 468.676923-87.748923 273.171692-324.371692 468.676923-602.584615 468.676923S147.849846 782.414769 60.179692 509.321846C147.849846 236.150154 384.551385 40.644923 662.764308 40.644923z m0 217.639384a251.116308 251.116308 0 1 0 0 502.153847 251.116308 251.116308 0 0 0 0-502.153847z m0 100.43077a150.685538 150.685538 0 1 1 0 301.292307 150.685538 150.685538 0 0 1 0-301.292307z"  ></path></symbol><symbol id="tingwu-right" viewBox="0 0 1024 1024"><path d="M986.112 509.76l-31.872 25.152-523.584 413.184-51.84 40.896v-255.808H60.48V256.128h318.336V30.528l51.84 40.896 523.584 413.184 31.872 25.088z m-103.296 0L442.88 162.56V320H124.48v349.184H442.88v187.712l440-347.136z"  ></path></symbol><symbol id="tingwu-pick-right" viewBox="0 0 1462 1024"><path d="M505.709714 14.043429a73.142857 73.142857 0 0 1 48.566857 18.432l475.062858 422.326857a73.142857 73.142857 0 0 1 6.070857 103.204571l-6.070857 6.070857-475.062858 422.326857a73.142857 73.142857 0 0 1-121.709714-54.710857V655.725714h-329.142857a36.571429 36.571429 0 0 1-36.571429-36.571428v-219.428572a36.571429 36.571429 0 0 1 36.571429-36.571428h329.142857V87.186286a73.142857 73.142857 0 0 1 73.142857-73.142857z m569.270857 187.977142l7.460572 5.339429 280.137143 227.620571a109.714286 109.714286 0 0 1 15.945143 154.331429l-7.533715 8.411429-8.411428 7.606857-280.137143 227.620571a73.142857 73.142857 0 0 1-99.035429-107.373714l6.802286-6.217143 245.174857-199.241143-245.174857-199.168a73.142857 73.142857 0 0 1-16.091429-95.451428l5.412572-7.460572a73.142857 73.142857 0 0 1 95.451428-16.018286z"  ></path></symbol><symbol id="tingwu-pick-left" viewBox="0 0 1024 1024"><path d="M667.949176 58.127059a90.352941 90.352941 0 0 1 56.862118 20.118588l6.625882 5.903059 202.511059 199.981176c15.058824 14.757647 24.395294 34.334118 26.50353 55.235765l0.421647 9.035294v553.020235A120.470588 120.470588 0 0 1 849.317647 1021.590588l-9.035294 0.301177h-662.588235a120.470588 120.470588 0 0 1-120.109177-111.435294l-0.301176-9.035295v-722.823529A120.470588 120.470588 0 0 1 168.779294 58.428235l9.035294-0.301176h490.194824-0.060236zM371.290353 367.314824l-26.985412-46.802824a10.842353 10.842353 0 0 0-6.806588-4.999529 17.046588 17.046588 0 0 0-16.685177 5.903058l-2.048 3.192471-65.957647 136.854588a27.467294 27.467294 0 0 0-1.807058 4.577883 20.841412 20.841412 0 0 0 15.540705 26.74447l4.818824 0.783059 151.491765 11.324235a16.865882 16.865882 0 0 0 9.637647-2.288941c5.842824-3.373176 8.914824-9.517176 7.830588-14.757647l-1.204706-3.011765-31.563294-54.814117a177.694118 177.694118 0 1 1-55.235765 237.989647 36.141176 36.141176 0 0 0-62.403764 36.562823 249.976471 249.976471 0 1 0 93.726117-344.666353l-12.348235 7.469177z"  ></path></symbol><symbol id="tingwu-filter" viewBox="0 0 1152 1024"><path d="M397.568 504.768v348.736c0 30.72 18.56 58.24 46.976 69.824l222.464 90.56a75.456 75.456 0 0 0 103.808-69.952V504.768L1112.192 0H56.192l341.376 504.768z"  ></path></symbol><symbol id="tingwu-hotword" viewBox="0 0 1024 1024"><path d="M935.04 49.92v754.56H180.224v53.888c0 29.76 24.064 53.888 53.888 53.888h700.8v107.776H234.24l-9.472-0.256a161.664 161.664 0 0 1-152.128-161.344V212.48l0.32-9.6A162.56 162.56 0 0 1 235.072 49.92H935.04zM570.24 193.344H438.4l-167.424 448.832h102.144l38.848-111.232h182.4l38.144 111.232h104.128L570.368 193.408z m-62.72 85.952l58.24 170.176H440.256l59.52-170.176h7.744z"  ></path></symbol><symbol id="tingwu-file" viewBox="0 0 1152 1024"><path d="M1109.589333 378.368v474.368a138.666667 138.666667 0 0 1-138.666666 138.666667H138.666667A138.666667 138.666667 0 0 1 0 852.778667V378.368h1109.589333zM617.813333 506.026667a39.125333 39.125333 0 0 0-39.04 39.04l26.154667 144.042666H325.248c-43.093333 0-59.093333 26.581333-59.093333 50.901334 0 24.32 16.042667 49.749333 59.093333 49.749333h498.773333c46.890667 0-8.405333-59.861333-19.84-74.069333l-156.032-195.029334a39.04 39.04 0 0 0-30.293333-14.634666h-0.085333zM373.248 20.522667c26.24 0 50.261333 14.890667 61.994667 38.4l31.061333 61.952c11.733333 23.466667 35.754667 38.357333 61.994667 38.4h511.957333c38.314667 0 69.333333 31.018667 69.333333 69.290666v69.376H0v-138.666666A138.666667 138.666667 0 0 1 138.666667 20.48h234.581333z"  ></path></symbol><symbol id="tingwu-copy2" viewBox="0 0 1024 1024"><path d="M786.701474 215.147789v755.065264H35.193263V215.147789h751.508211z m-75.021474 75.237053H110.160842v604.483369h601.519158V290.384842zM972.476632 32.606316V653.743158h-74.913685l-0.107789-545.845895H351.770947V32.606316h620.705685z"  ></path></symbol><symbol id="tingwu-cancel" viewBox="0 0 1024 1024"><path d="M528.685176 45.176471a481.882353 481.882353 0 1 1 0 963.764705 481.882353 481.882353 0 0 1 0-963.764705z m0 29.214117a452.668235 452.668235 0 1 0 310.512942 782.095059l8.613647-8.432941L209.799529 210.221176l20.660706-20.720941 637.349647 637.409883 8.07153-9.276236a450.740706 450.740706 0 0 0 105.291294-276.118588l0.180706-14.396235a452.668235 452.668235 0 0 0-452.668236-452.668235z"  ></path></symbol><symbol id="tingwu-arrow-right2" viewBox="0 0 1417 1024"><path d="M393.924923 0l644.489846 508.534154-644.489846 508.534154V665.442462H2.126769V314.289231h391.798154V0z m315.076923 0l644.489846 508.534154-644.489846 508.534154v-124.297846l486.951385-384.236308L708.923077 124.297846V0h0.078769z"  ></path></symbol><symbol id="tingwu-file2" viewBox="0 0 1103 1024"><path d="M463.556923 99.721846L432.679385 38.124308A68.923077 68.923077 0 0 0 371.003077 0H137.846154A137.846154 137.846154 0 0 0 0 137.846154V275.692308h1103.005538v-68.844308a68.923077 68.923077 0 0 0-68.923076-69.001846h-508.849231a68.923077 68.923077 0 0 1-61.676308-38.124308zM137.846154 965.159385h827.313231a137.846154 137.846154 0 0 0 137.846153-137.846154V379.352615H0v447.960616c0 76.091077 61.755077 137.846154 137.846154 137.846154z"  ></path></symbol><symbol id="tingwu-file-my" viewBox="0 0 1024 1024"><path d="M621.348571 0c21.942857 0 43.300571 7.533714 60.416 21.357714l7.021715 6.290286 215.259428 212.406857c15.872 15.725714 25.819429 36.498286 28.086857 58.733714l0.438858 9.654858v587.556571a128 128 0 0 1-118.418286 127.707429L804.571429 1024H164.571429a128 128 0 0 1-127.707429-118.418286L36.571429 896V128A128 128 0 0 1 154.989714 0.292571L164.571429 0h456.777142zM388.827429 460.068571c-53.028571 0.073143-95.963429 51.638857-95.963429 115.273143 0 43.739429 20.333714 81.846857 50.249143 101.302857-84.626286 15.433143-147.309714 70.436571-147.309714 135.899429 0 77.458286 392.045714 77.458286 392.045714 0 0-66.706286-65.024-122.514286-152.137143-136.777143 29.257143-19.602286 49.152-57.270857 49.152-100.498286 0-63.634286-43.008-115.2-96.036571-115.2z m225.865142-378.441142a12.8 12.8 0 0 0-12.361142 9.362285l-0.438858 3.437715v190.025142c0 15.433143 11.044571 28.672 26.258286 31.451429l5.705143 0.512h192.804571a12.8 12.8 0 0 0 11.483429-18.578286l-2.486857-3.291428-212.041143-209.261715a12.8 12.8 0 0 0-8.923429-3.657142z"  ></path></symbol><symbol id="tingwu-dingding" viewBox="0 0 1024 1024"><path d="M601.387 219.221C434.73 157.056 190.89 43.435 190.89 43.435c-17.323-4.608-19.755 12.544-19.755 12.544-5.504 68.949 37.035 181.077 59.093 206.25 21.931 25.174 351.744 128.256 351.744 128.256s-253.653-52.352-314.794-70.4c-61.312-18.048-41.814 20.054-41.814 20.054 12.587 69.632 71.552 148.736 118.187 156.16 46.507 7.466 242.603 4.522 242.603 4.522s-39.126 4.651-102.742 13.44c-47.061 6.528-106.922 14.08-122.453 20.054-36.48 14.122 26.453 70.656 26.453 70.656 93.355 86.613 142.976 56.96 142.976 56.96 36.694-12.075 67.67-20.864 93.91-27.307l-32.512 138.112h93.269l-51.37 208.597L859.988 674.56H741.461l24.576-43.648c0.342 0.555 0.427 0.896 0.427 0.896s84.139-137.728 116.31-208.043l0.682-1.109h-0.128c5.547-12.203 9.472-22.23 11.05-29.099 18.731-80.469-126.207-112.17-292.991-174.336z"  ></path></symbol><symbol id="tingwu-captions-close" viewBox="0 0 1216 1024"><path d="M1099.392 889.344a53.248 53.248 0 0 1 0 106.56H69.632a53.248 53.248 0 1 1 0-106.56h1029.76zM1002.112 12.8a142.08 142.08 0 0 1 142.016 142.016v497.088a142.08 142.08 0 0 1-142.08 142.08H149.952a142.08 142.08 0 0 1-142.016-142.08V154.816a142.08 142.08 0 0 1 142.08-142.08h852.16z m-102.4 480.32H473.728l-7.232 0.512a53.248 53.248 0 0 0 0 105.536l7.232 0.448h426.112l7.168-0.448a53.248 53.248 0 0 0 0-105.6l-7.168-0.448z m-607.744-1.024h-71.04l-7.232 0.512a53.248 53.248 0 0 0 0 105.536l7.232 0.512h71.04l7.232-0.512a53.248 53.248 0 0 0 0-105.536l-7.232-0.512z m355.072-212.992H220.928l-7.232 0.448a53.248 53.248 0 0 0 0 105.6l7.232 0.448h426.112l7.232-0.512a53.248 53.248 0 0 0 0-105.536l-7.232-0.448z m248.512 0h-71.04l-7.232 0.448a53.248 53.248 0 0 0 0 105.6l7.296 0.448h71.04l7.168-0.512a53.248 53.248 0 0 0 0-105.536l-7.232-0.448z"  ></path></symbol><symbol id="tingwu-captions-open" viewBox="0 0 1229 1024"><path d="M1075.473067 0a153.6 153.6 0 0 1 153.6 153.6v691.4048a153.6 153.6 0 0 1-153.6 153.6H153.6A153.6 153.6 0 0 1 0 845.073067V153.668267A153.6 153.6 0 0 1 153.6 0h921.873067z m-110.728534 673.245867H503.876267l-7.850667 0.546133a57.617067 57.617067 0 0 0 0 114.141867l7.850667 0.546133h460.868266l7.7824-0.546133a57.617067 57.617067 0 0 0 0-114.141867l-7.7824-0.546133z m-657.408-1.092267H230.4l-7.850667 0.546133a57.617067 57.617067 0 0 0 0 114.141867l7.850667 0.546133H307.2l7.850667-0.546133a57.617067 57.617067 0 0 0 0-114.141867L307.2 672.1536z m384-230.468267H230.468267l-7.850667 0.546134a57.617067 57.617067 0 0 0 0 114.141866l7.850667 0.546134h460.868266l7.850667-0.546134a57.617067 57.617067 0 0 0 0-114.141866l-7.850667-0.546134z m268.9024 0H883.370667l-7.850667 0.546134a57.617067 57.617067 0 0 0 0 114.141866l7.850667 0.546134h76.8l7.850666-0.546134a57.617067 57.617067 0 0 0 0-114.141866l-7.850666-0.546134z"  ></path></symbol><symbol id="tingwu-export1" viewBox="0 0 1024 1024"><path d="M128 682.688a42.88 42.88 0 0 1 42.24 36.352l0.448 6.272v128h682.688v-128c0-21.312 15.744-39.104 36.352-42.24l6.272-0.384h85.376a42.88 42.88 0 0 1 42.176 36.352l0.448 6.272v256a42.752 42.752 0 0 1-36.352 42.24l-6.272 0.448H42.688a42.688 42.688 0 0 1-42.24-36.352L0 981.312v-256c0-21.312 15.808-39.104 36.352-42.24l6.336-0.384H128zM573.696 0c12.352 0 22.72 8.768 25.152 20.48l0.512 5.12v375.488c0 1.408 30.976 2.368 37.568 3.712l1.28 0.512h194.048c35.456 0 54.4 38.4 34.176 64l-4.224 4.672-320.256 303.616a44.032 44.032 0 0 1-54.656 4.224l-5.248-4.224-320.192-303.616c-26.688-25.28-7.872-68.672 29.952-68.672h2.368c9.92-0.128 50.176-0.576 94.592-1.216l42.368-0.64c47.808-0.704 90.88-1.536 96.384-2.24L428.096 25.6a25.6 25.6 0 0 1 20.48-25.088L453.76 0h119.936z"  ></path></symbol><symbol id="tingwu-mic1" viewBox="0 0 1024 1024"><path d="M522.059294 40.176941a481.882353 481.882353 0 1 1 0 963.764706 481.882353 481.882353 0 0 1 0-963.764706zM336.293647 525.432471h-56.259765l-8.673882 8.673882v84.329412l0.421647 8.493176 1.204706 8.372706a93.063529 93.063529 0 0 0 91.376941 76.137412l119.265882-0.060235v103.785411l8.673883 8.673883h56.259765l8.673882-8.673883V711.378824h202.992941l8.673882-8.613648v-168.658823l-8.673882-8.673882h-56.199529l-8.673883 8.673882-0.060235 103.725176H364.363294l-4.21647-0.421647a19.275294 19.275294 0 0 1-15.179295-18.974117v-84.329412l-8.673882-8.673882z m269.251765-292.562824H435.380706a28.129882 28.129882 0 0 0-28.129882 28.129882v309.187765h224.918588V259.493647a26.624 26.624 0 0 0-21.865412-26.142118l-4.818824-0.481882z"  ></path></symbol><symbol id="tingwu-upload-writing" viewBox="0 0 1024 1024"><path d="M20.058353 501.940706a481.882353 481.882353 0 1 0 963.764706 0 481.882353 481.882353 0 0 0-963.764706 0z m240.941176-116.916706h96.376471v240.941176h-96.376471v-240.941176z m385.505883 0h96.37647v240.941176h-96.37647v-240.941176z m-192.752941-96.376471h96.37647v433.694118h-96.37647v-433.694118z"  ></path></symbol><symbol id="tingwu-warn2" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m2.24 634.24a85.312 85.312 0 1 0 0 170.624 85.312 85.312 0 0 0 0-170.688zM512 219.136a51.2 51.2 0 0 0-51.2 51.2v238.528l0.448 6.976A51.2 51.2 0 0 0 563.2 508.928V270.4l-0.448-6.912A51.2 51.2 0 0 0 512 219.2z"  ></path></symbol><symbol id="tingwu-upload-uploading" viewBox="0 0 1024 1024"><path d="M20.058353 501.940706a481.882353 481.882353 0 1 0 963.764706 0 481.882353 481.882353 0 0 0-963.764706 0z m635.241412 56.862118l-101.195294-101.436236v321.656471H445.741176v-321.656471L344.545882 558.802824 268.047059 481.942588 499.952941 248.952471 731.858824 481.882353"  ></path></symbol><symbol id="tingwu-share2" viewBox="0 0 1024 1024"><path d="M683.121067 0l256 255.573333v736.426667a32 32 0 0 1-32 32h-704A32 32 0 0 1 171.121067 992V853.333333h597.333333V341.333333H603.163733A5.205333 5.205333 0 0 1 597.787733 336.042667V170.666667H341.787733v85.333333H171.121067V32C171.121067 14.336 185.457067 0 203.121067 0H683.121067zM341.787733 362.922667c0-19.114667 23.893333-28.757333 37.802667-15.189334l197.461333 191.744a20.992 20.992 0 0 1 0 30.464L379.5904 761.685333C365.681067 775.253333 341.787733 765.610667 341.787733 746.496V639.402667c-11.861333-0.426667-23.722667-0.682667-35.498666-1.536l-20.053334-1.962667a179.2 179.2 0 0 0-16.725333-1.28 189.952 189.952 0 0 0-35.328 3.157333c-23.808 5.546667-49.493333 16.384-71.68 35.498667-23.210667 18.517333-41.813333 44.885333-56.576 78.08a5.12 5.12 0 0 1-6.741333 2.816 4.693333 4.693333 0 0 1-2.730667-2.816 169.728 169.728 0 0 1-0.597333-116.906667c13.397333-39.936 41.216-77.056 79.104-104.362666a239.445333 239.445333 0 0 1 98.645333-41.130667l32.682667-3.584c11.776-0.853333 23.637333-1.109333 35.498666-1.536V362.922667z"  ></path></symbol><symbol id="tingwu-nav-user" viewBox="0 0 1024 1024"><path d="M368 976a192 192 0 0 1-192-192v-768h672v960h-480z m211.84-192H444.096l-0.448 1.28a71.616 71.616 0 0 0-3.2 14.848l-0.448 7.872a72 72 0 1 0 140.352-22.784l-0.512-1.216z m172.16-96v-576h-480V640c0 24.32 18.048 44.352 41.472 47.552l6.528 0.448h74.368l6.08-5.632c27.2-24.128 62.272-39.68 100.928-42.048L512 640c42.88 0 81.92 16 111.552 42.368l6.016 5.632H752z"  ></path></symbol><symbol id="tingwu-import" viewBox="0 0 1024 1024"><path d="M960 628.096c32.832 0 59.904 25.472 63.552 58.304l0.448 7.68v131.968c0 105.408-79.936 191.616-180.736 197.632L832 1024H192C89.728 1024 6.144 941.568 0.32 837.696L0 826.048v-126.272c0-36.416 28.672-65.92 64-65.92 32.832 0 59.904 25.472 63.552 58.24l0.448 7.68v126.272c0 33.856 24.704 61.76 56.512 65.536l7.488 0.448h640c32.832 0 59.904-25.472 63.552-58.24l0.448-7.68v-132.032c0-36.416 28.672-65.92 64-65.92zM555.264 17.344l3.904 4.032 255.68 287.552a33.728 33.728 0 0 1-1.92 46.592 31.488 31.488 0 0 1-21.696 8.704H608v362.88a32.512 32.512 0 0 1-32 32.96H448c-17.664 0-32-14.72-32-32.96V364.16H232.768c-17.728 0-32-14.784-32-33.024 0-8.256 3.008-16.192 8.384-22.272L464.832 21.376A62.72 62.72 0 0 1 555.264 17.344z"  ></path></symbol><symbol id="tingwu-feedback" viewBox="0 0 1024 1024"><path d="M320.768 168A384.064 384.064 0 0 0 126.976 495.36c-1.088 66.688 8.32 129.728 40.32 188.16l-14.528 125.568a45.696 45.696 0 0 0 40.128 50.688l5.248 0.32 5.44-0.32 125.44-14.528c51.328 28.16 105.536 37.248 164.032 40a384.064 384.064 0 1 0 17.856-767.616 384.128 384.128 0 0 0-190.144 50.432z m35.328 215.808h309.888V469.12H356.096V383.808z m0 161.664h309.888v85.312H398.72a42.688 42.688 0 0 1-42.432-38.016l-0.256-4.608v-42.688z"  ></path></symbol><symbol id="tingwu-download2" viewBox="0 0 1024 1024"><path d="M960 640a64 64 0 0 1 63.488 56.512L1024 704v128a192 192 0 0 1-180.736 191.68L832 1024H192a192 192 0 0 1-191.68-180.736L0 832v-122.496a64 64 0 0 1 127.552-7.424l0.448 7.424V832a64 64 0 0 0 56.512 63.552L192 896h640a64 64 0 0 0 63.552-56.512L896 832v-128a64 64 0 0 1 64-64zM576 0a32 32 0 0 1 32 32L607.808 384h183.296a32 32 0 0 1 23.68 53.632l-255.744 278.912a64 64 0 0 1-90.432 3.904l-3.84-3.904-255.744-278.912A32 32 0 0 1 232.768 384l183.104-0.064L416 32A32 32 0 0 1 448 0h128z"  ></path></symbol><symbol id="tingwu-learning" viewBox="0 0 1024 1024"><path d="M540.928 51.456c125.696 0 228.48 41.344 297.28 119.552 60.8 69.12 92.992 163.008 92.992 271.552a389.056 389.056 0 0 1-68.608 221.056 328.896 328.896 0 0 0-58.88 169.856l-0.32 14.784v131.584h-451.84V884.48l-29.632 2.24a155.072 155.072 0 0 1-119.296-40.576 160.832 160.832 0 0 1-51.584-108.032l-0.32-10.304v-83.2l-58.048-28.992-1.792-0.32-1.408-1.344a58.56 58.56 0 0 1-24.768-71.68l2.752-6.016 84.608-147.392c12.672-98.368 46.208-176.512 99.84-232.32C318.72 86.784 416 51.456 540.928 51.456z m2.56 132.096A76.8 76.8 0 0 0 470.784 284.8L380.352 361.408a102.4 102.4 0 1 0 53.888 123.904l182.08 25.536a89.6 89.6 0 1 0 4.8-51.072L437.12 433.92a101.888 101.888 0 0 0-16.96-39.232L502.4 325.12a76.8 76.8 0 1 0 41.216-141.632z"  ></path></symbol><symbol id="tingwu-edit2" viewBox="0 0 1024 1024"><path d="M493.411937 85.365385a45.437416 45.437416 0 0 1 4.351753 90.810835l-4.351753 0.191989H90.874831v756.628967h756.692964V513.117056a45.437416 45.437416 0 0 1 41.085663-45.309423l4.415749-0.191989a45.437416 45.437416 0 0 1 45.245426 41.085664l0.255986 4.415748v450.214395c0 31.99818-24.766591 58.236688-56.124808 60.47656l-4.543742 0.191989H60.668549a60.668549 60.668549 0 0 1-60.47656-56.124808L0 963.395447V145.969938c0-31.99818 24.766591-58.172691 56.124808-60.47656l4.479745-0.19199H493.411937zM1010.63052 13.36948c16.639054 16.639054 17.662995 43.06955 3.135822 60.924535l-3.199818 3.455803-591.582354 591.582354a45.501412 45.501412 0 0 1-67.452163-60.860539l3.135821-3.455803L946.250182 13.36948a45.501412 45.501412 0 0 1 64.380338 0z"  ></path></symbol><symbol id="tingwu-moveFolder" viewBox="0 0 1024 1024"><path d="M213.333 853.333a128 128 0 0 1-127.786-120.49l-0.214-7.51V128h270.934l106.666 85.333h347.734V384h128L817.323 811.179a49.963 49.963 0 0 1-44.118 41.898l-5.205 0.256H213.333z m142.934-640h-185.6v383.915L256 384h469.333v-85.333h-262.4l-106.666-85.334z"  ></path></symbol><symbol id="tingwu-markDoneNew" viewBox="0 0 1024 1024"><path d="M401.92 80.896l180.821 0.427h0.256a90.155 90.155 0 0 1 86.614 109.226l-2.304 8.619L627.2 321.707 775.083 561.92l0.085 0.128a70.528 70.528 0 0 1-52.608 107.093l-7.893 0.384-180.011-1.28 0.043 308.694h-90.624V667.605l-187.606-1.28a70.485 70.485 0 0 1-58.453-109.098l0.085-0.128 155.606-237.27-41.088-117.333a89.6 89.6 0 0 1 84.053-121.6h5.29z"  ></path></symbol><symbol id="tingwu-message" viewBox="0 0 1024 1024"><path d="M170.688 426.688v139.264L128 651.264v138.048h213.632a170.688 170.688 0 0 0 340.736 0H896v-138.048l-42.688-85.312V426.688a341.312 341.312 0 0 0-682.624 0z m256.64 362.624a85.376 85.376 0 0 0 169.344 0H427.328z"  ></path></symbol><symbol id="tingwu-help" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m11.008 690.752a64 64 0 1 0 0 128 64 64 0 0 0 0-128zM512 272.192c-46.72 0-86.144 15.68-114.496 47.296-26.752 28.48-39.936 66.752-39.936 111.808a48 48 0 1 0 96 0c0-22.016 5.12-36.672 14.72-46.912 9.792-10.944 22.976-16.192 43.712-16.192 18.752 0 30.72 4.16 39.36 12.16 7.296 6.848 11.008 16.384 11.008 32a44.16 44.16 0 0 1-5.248 22.208l-3.392 5.056-9.216 8.96-21.952 20.16c-13.632 11.904-24.32 24.768-32 38.784a110.08 110.08 0 0 0-14.272 45.184l-0.64 12.544v43.328l0.512 6.528a48 48 0 0 0 95.104 0l0.448-6.528v-43.328l0.256-4.224a16.448 16.448 0 0 1 2.112-6.272 45.12 45.12 0 0 1 8.064-10.368l21.12-19.328 13.312-12.736 9.6-9.984 3.52-3.968c19.456-25.984 28.672-54.656 28.672-86.016 0-41.152-13.824-76.352-41.472-102.144-27.52-25.728-63.104-38.016-104.96-38.016H512z"  ></path></symbol><symbol id="tingwu-meeting" viewBox="0 0 1024 1024"><path d="M341.312 128v469.312h341.376V125.76a40.448 40.448 0 0 0-36.032-40.192l-4.416-0.256H384A42.688 42.688 0 0 0 341.312 128z m-47.296 554.432l4.672 0.256H768V512h85.312v256H554.688v170.688H469.312V768H298.688a128 128 0 0 1-127.808-120.96L170.688 640V512H256v128c0 22.016 16.64 40.128 38.016 42.432z"  ></path></symbol><symbol id="tingwu-pick" viewBox="0 0 1024 1024"><path d="M554.667 725.333h-85.334v-384h85.334V170.667l384 362.666-384 362.667V725.333z m-341.334-384h-128v256a128 128 0 0 0 128 128v-384z m170.667 0h-85.333v384H384v-384z"  ></path></symbol><symbol id="tingwu-textarea" viewBox="0 0 1024 1024"><path d="M640.853 128.853l213.334 213.334v513.322l-0.256 4.822a41.387 41.387 0 0 1-36.267 36.266l-4.821 0.299h-513.28l-7.51-0.213a128 128 0 0 1-120.32-120.278l-0.17-7.509V171.904l0.256-4.693c2.133-19.883 17.877-35.712 37.717-38.016l5.035-0.299h426.325z m-148.48 294.699H292.267v220.715h200.021v-55.04H348.075V476.928h144.213v-53.419z m242.902 0H535.253v55.083h144.214v112.298H535.253v53.334h200.022V423.509z m-121.856 85.547H427.307v54.016h186.112v-54.102z"  ></path></symbol><symbol id="tingwu-next3" viewBox="0 0 1024 1024"><path d="M728.545882 1003.941647v-348.16l-502.844235 326.776471-3.011765 2.048A118.121412 118.121412 0 0 1 40.658824 896.903529l-0.602353-11.38447V160.165647A119.627294 119.627294 0 0 1 215.04 53.970824l9.938824 5.903058 503.567058 327.378824V40.176941h275.395765v963.764706h-275.395765z"  ></path></symbol><symbol id="tingwu-loading3" viewBox="0 0 1024 1024"><path d="M411.286588 110.170353a52.705882 52.705882 0 1 0 0-105.411765 52.705882 52.705882 0 0 0 0 105.411765z m-196.969412 89.148235a60.235294 60.235294 0 1 0-83.727058-86.738823 60.235294 60.235294 0 0 0 83.727058 86.738823z m-74.089411 196.969412a67.764706 67.764706 0 1 0-135.529412 0 67.764706 67.764706 0 0 0 135.529412 0z m-21.744941 186.368a75.294118 75.294118 0 1 0 106.435764 106.435765 75.294118 75.294118 0 0 0-106.496-106.496h0.060236z m292.743529 69.571765a82.823529 82.823529 0 1 0 0 165.647059 82.823529 82.823529 0 0 0 0-165.647059z m175.766588-80.233412a90.352941 90.352941 0 1 0 126.313412 129.204706 90.352941 90.352941 0 0 0-126.313412-129.204706z m163.117177-273.648941a97.882353 97.882353 0 1 0 0 195.764706 97.882353 97.882353 0 0 0 0-195.764706z m-24.696471-67.162353A105.411765 105.411765 0 1 0 576.451765 82.100706a105.411765 105.411765 0 0 0 149.082353 149.082353z"  ></path></symbol><symbol id="tingwu-password" viewBox="0 0 1024 1024"><path d="M512 0a245.76 245.76 0 0 1 245.76 245.76v113.472H800a128 128 0 0 1 128 128v349.12a128 128 0 0 1-128 128H224a128 128 0 0 1-128-128V487.296a128 128 0 0 1 128-128l42.176-0.064V245.824A245.824 245.824 0 0 1 499.328 0.32z m0 113.472A132.352 132.352 0 0 0 379.648 245.76l-0.128 113.472h264.768V245.824a132.352 132.352 0 0 0-122.88-132.032z"  ></path></symbol><symbol id="tingwu-last" viewBox="0 0 1024 1024"><path d="M292.544 0v369.92L826.88 22.72l3.2-2.112a125.504 125.504 0 0 1 193.28 93.184l0.64 12.096v770.688a127.104 127.104 0 0 1-185.792 112.768l-10.624-6.208-535.04-347.84V1024H0V0h292.544z"  ></path></symbol><symbol id="tingwu-marked" viewBox="0 0 1024 1024"><path d="M632.173714 0c14.189714 0 28.086857 3.730286 41.691429 11.922286l8.192 5.412571 7.314286 6.363429 256.731428 256.731428c29.257143 29.403429 31.597714 76.288 5.12 108.397715l-6.582857 7.314285-8.630857 7.753143-8.923429 7.168-10.532571 7.68c-46.592 32.182857-100.937143 49.883429-161.206857 41.106286l-3.364572-0.658286L667.794286 543.524571l1.828571 7.094858 5.851429 28.745142c21.065143 122.148571-1.828571 238.884571-92.525715 329.508572a80.164571 80.164571 0 0 1-98.889142 11.849143l-8.118858-5.485715-7.314285-6.363428-160.475429-160.475429-201.508571 205.092572a62.171429 62.171429 0 0 1-93.842286-81.261715l5.12-5.924571L220.306286 660.48 60.854857 501.028571a80.969143 80.969143 0 0 1-5.851428-107.812571l5.851428-6.509714c86.674286-86.674286 197.193143-111.396571 314.294857-94.793143l16.091429 2.486857 19.456 3.803429 15.506286 3.584 84.187428-84.114286-1.170286-7.168a211.968 211.968 0 0 1 19.017143-117.394286l6.875429-13.677714 7.606857-13.458286 8.265143-12.8 5.193143-7.168 11.044571-13.897143 7.753143-8.411428C590.116571 8.484571 610.669714 0 632.173714 0z"  ></path></symbol><symbol id="tingwu-play-media" viewBox="0 0 1144 1024"><path d="M0 221.665882A169.863529 169.863529 0 0 1 169.863529 51.802353h964.005647v963.764706H0V221.665882z m443.753412 138.11953v347.617882a28.310588 28.310588 0 0 0 43.971764 23.612235l260.698353-173.839058a28.310588 28.310588 0 0 0 0-47.164236L487.785412 336.233412a28.310588 28.310588 0 0 0-44.032 23.552z"  ></path></symbol><symbol id="tingwu-datepicker" viewBox="0 0 1024 1024"><path d="M512 0c282.752 0 512 222.272 512 496.512C1024 770.688 794.752 1024 512 1024s-512-253.312-512-527.488C0 222.272 229.248 0 512 0z m-62.592 271.424a48 48 0 0 0-47.552 41.472l-0.448 6.528-0.128 249.6 0.448 6.848a54.4 54.4 0 0 0 47.168 47.168l6.848 0.384h249.664l6.528-0.448a48 48 0 0 0 41.024-41.024l0.448-6.528-0.448-6.528a48 48 0 0 0-41.024-41.024l-6.528-0.448H497.28l0.128-208-0.448-6.464a48 48 0 0 0-47.552-41.536z"  ></path></symbol><symbol id="tingwu-loading" viewBox="0 0 1024 1024"><path d="M469.333 512A85.333 85.333 0 1 0 640 512a85.333 85.333 0 1 0-170.667 0zM128 512a128 128 0 1 0 256 0 128 128 0 1 0-256 0zM725.333 512A85.333 85.333 0 1 0 896 512a85.333 85.333 0 1 0-170.667 0z"  ></path></symbol><symbol id="tingwu-mic2" viewBox="0 0 1024 1024"><path d="M294.772364 139.636364m217.227636 0l-0.046545 0q217.227636 0 217.227636 217.227636l0 155.136q0 217.227636-217.227636 217.227636l0.046545 0q-217.227636 0-217.227636-217.227636l0-155.136q0-217.227636 217.227636-217.227636Z"  ></path><path d="M756.875636 692.782545a37.236364 37.236364 0 1 1 68.794182 28.532364 339.688727 339.688727 0 0 1-313.949091 209.128727 339.688727 339.688727 0 0 1-313.297454-207.499636 37.236364 37.236364 0 1 1 68.608-28.904727 265.262545 265.262545 0 0 0 244.689454 161.978182 265.216 265.216 0 0 0 245.154909-163.23491z"  ></path></symbol><symbol id="tingwu-radio-summary" viewBox="0 0 1024 1024"><path d="M170.688 171.008V768a128 128 0 0 0 128 128h513.28c22.848 0 41.344-18.56 41.344-41.344v-513.28L640 128H213.696c-23.744 0-43.008 19.2-43.008 43.008z m512 383.68V640H384a42.688 42.688 0 0 1-42.688-42.688v-42.624h341.376zM341.312 384v85.312h256V384h-256z"  ></path></symbol><symbol id="tingwu-radio-choose" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m0 341.333333a170.666667 170.666667 0 1 0 0 341.333334 170.666667 170.666667 0 0 0 0-341.333334z"  ></path></symbol><symbol id="tingwu-prev2" viewBox="0 0 1024 1024"><path d="M397.568 510.976v-48.448c22.464-1.024 38.208-2.56 47.232-4.48 14.336-3.2 25.984-9.6 35.008-19.072a62.528 62.528 0 0 0 14.016-25.984 59.712 59.712 0 0 0 2.752-14.464h59.2v362.496h-72.96V510.976H397.568z"  ></path><path d="M510.912 114.048a448 448 0 1 0 351.744 170.496l-6.4-7.872-6.464-7.68-27.904-32.256-64.512 55.808 27.904 32.256a360.896 360.896 0 0 1 88.32 237.184 362.688 362.688 0 1 1-373.568-362.432l10.88-0.192h42.688V114.048h-42.688z"  ></path><path d="M694.528 141.632L504.192 9.152v298.624l190.272-132.48 0.064-0.064a20.992 20.992 0 0 0 0-33.6z"  ></path></symbol><symbol id="tingwu-pause2" viewBox="0 0 1024 1024"><path d="M213.3504 298.6496v554.7008h213.2992V170.6496H341.3504a128 128 0 0 0-128 128z m384-128v682.7008h213.2992V170.6496h-213.2992z"  ></path></symbol><symbol id="tingwu-syncbtn" viewBox="0 0 1024 1024"><path d="M506.368 0a505.152 505.152 0 0 1 429.888 241.28l39.36-11.328a37.888 37.888 0 0 1 46.912 26.24 38.784 38.784 0 0 1-0.512 22.912l-59.776 178.56a28.352 28.352 0 0 1-44.992 12.992L773.12 351.36a38.656 38.656 0 0 1 13.568-66.56l35.84-10.368a392.384 392.384 0 0 0-316.096-160.64C288.832 113.792 112.512 292.16 112.512 512s176.32 398.208 393.856 398.208c164.736 0 310.272-103.168 368.064-256.128a56.064 56.064 0 0 1 72.64-32.896c29.056 11.264 43.52 44.16 32.512 73.472C905.216 891.392 718.08 1024 506.368 1024 226.688 1024 0 794.752 0 512s226.688-512 506.368-512zM440.384 298.688c12.352 0 24.32 3.84 34.56 10.88l245.184 171.712a46.336 46.336 0 0 1 0 75.648l-245.184 171.648a60.288 60.288 0 0 1-84.48-15.488 61.824 61.824 0 0 1-10.816-34.944v-318.08c0-33.92 27.2-61.44 60.736-61.44z"  ></path></symbol><symbol id="tingwu-process" viewBox="0 0 1303 1024"><path d="M651.636364 768c95.232 0 170.356364 66.56 195.490909 153.6h205.544727V614.4h50.082909c55.109818 0 100.258909-46.08 100.258909-102.4 0-56.32-45.149091-102.4-100.258909-102.4h-50.082909V102.4H847.127273A200.797091 200.797091 0 0 1 651.636364 256c-95.232 0-170.356364-66.56-195.490909-153.6H250.600727v307.2h-50.082909c-55.109818 0-100.258909 46.08-100.258909 102.4 0 56.32 45.149091 102.4 100.258909 102.4h50.082909v307.2H456.145455c25.134545-87.04 100.258909-153.6 195.490909-153.6z m501.294545 153.6c0 56.32-45.149091 102.4-100.258909 102.4H751.895273v-51.2c0-56.32-45.149091-102.4-100.258909-102.4s-100.258909 46.08-100.258909 102.4V1024h-300.683637a101.655273 101.655273 0 0 1-100.352-102.4V711.68C65.163636 691.2 0 609.28 0 512s65.163636-174.08 150.341818-199.68V102.4C150.341818 46.08 195.490909 0 250.600727 0h300.776728v51.2c0 56.32 45.149091 102.4 100.258909 102.4s100.258909-46.08 100.258909-102.4V0h300.683636c55.202909 0 100.352 46.08 100.352 102.4v209.92C1238.109091 332.8 1303.272727 414.72 1303.272727 512s-65.163636 174.08-150.341818 199.68V921.6z"  ></path><path d="M426.635636 465.454545H535.272727c32.581818 0 54.272 18.618182 54.272 46.545455S567.854545 558.545455 535.272727 558.545455H426.635636C394.053818 558.545455 372.363636 539.927273 372.363636 512s21.690182-46.545455 54.272-46.545455zM861.090909 465.454545h108.637091c32.581818 0 54.272 18.618182 54.272 46.545455s-21.690182 46.545455-54.272 46.545455H861.090909c-32.581818 0-54.272-18.618182-54.272-46.545455S828.509091 465.454545 861.090909 465.454545z"  ></path></symbol><symbol id="tingwu-recover" viewBox="0 0 1024 1024"><path d="M1029.81571318 476.99528059L615.66702933 835.68715852 512 925.52730548V822.68918518l-0.05218608-138.35984593H370.94710992a254.246912 254.246912 0 0 0-165.38980503 60.84289423L-5.81571318 926.25184237V671.84958578c0-189.77890608 157.31309985-343.62223882 351.338496-343.62223881h166.4250311v-230.48040297l517.86789926 379.24833659z"  ></path></symbol><symbol id="tingwu-reload" viewBox="0 0 1024 1024"><path d="M683.199998 0.00001a95.999999 95.999999 0 0 1 67.456 27.648l215.167998 212.415998a95.999999 95.999999 0 0 1 28.607999 68.287999V896.000001a127.999999 127.999999 0 0 1-127.999998 127.999999h-703.999994a127.999999 127.999999 0 0 1-127.999998-127.999999V128.000009a127.999999 127.999999 0 0 1 127.999998-127.999999zM332.160002 273.472007a18.176 18.176 0 0 0-19.904 9.6l-70.143999 145.535999a29.184 29.184 0 0 0-1.856 4.864c-4.16 14.976 5.504 28.032 21.567999 29.247999l160.959999 12.032a17.92 17.92 0 0 0 10.24-2.432c7.424-4.352 10.624-12.8 7.104-18.943999l-33.664-58.24A188.799998 188.799998 0 1 1 347.776002 648.000004a38.4 38.4 0 0 0-66.24 38.911999A265.599997 265.599997 0 1 0 368.000001 328.512007l-28.671999-49.664a11.52 11.52 0 0 0-7.232-5.312z"  ></path></symbol><symbol id="tingwu-reset" viewBox="0 0 1024 1024"><path d="M178.346667 26.453333a20.992 20.992 0 0 1 15.104 7.082667l88.234666 101.717333A448.170667 448.170667 0 0 1 532.309333 58.794667c252.586667 0 456.874667 209.237333 456.874667 466.773333s-204.288 466.773333-456.874667 466.773333c-164.181333 0-313.173333-89.258667-394.496-231.082666a53.504 53.504 0 0 1 92.842667-53.248c62.549333 109.226667 176.384 177.408 301.653333 177.408 193.024 0 349.952-160.853333 349.952-359.936 0-198.997333-157.013333-359.765333-349.866666-359.765334a341.333333 341.333333 0 0 0-179.968 51.029334l86.869333 100.181333c8.704 9.984 5.802667 26.624-6.314667 37.205333a33.194667 33.194667 0 0 1-17.749333 8.021334l-297.813333 35.157333c-29.696 3.413333-51.882667-17.066667-49.664-45.909333a54.442667 54.442667 0 0 1 1.621333-9.557334L145.493333 51.029333A33.706667 33.706667 0 0 1 178.346667 26.453333z"  ></path></symbol><symbol id="tingwu-refresh" viewBox="0 0 1024 1024"><path d="M1020.748406 0v446.050462h-3.990974v0.577641l-132.023795-0.091898-0.098462-0.485743h-313.63282l207.563487-205.627077c-120.333128-120.851692-306.103795-147.515077-455.56841-65.378462C173.532816 257.181538 96.437432 428.288 133.93815 594.661744c37.500718 166.367179 180.558769 287.85559 350.805333 297.918359C654.996611 902.642872 811.353534 798.851282 868.198663 638.057026h136.493948c-57.810051 224.032821-259.085128 381.144615-490.436923 382.857846-231.358359 1.706667-434.937436-152.418462-496.049231-375.558564-61.124923-223.146667 35.498667-459.493744 235.434667-575.914667 199.942564-116.420923 453.185641-83.797333 617.084718 79.497846L1020.741842 0z"  ></path></symbol><symbol id="tingwu-mute2" viewBox="0 0 1024 1024"><path d="M210.901 341.333l514.432 514.475v80.427L370.347 682.667H213.333A128 128 0 0 1 85.547 562.176l-0.214-7.51V341.334h125.568zM180.14 77.141L413.44 310.485l311.893-222.72v534.571l178.859 178.859-60.33 60.33-724.054-724.053 60.33-60.33zM894.72 331.008l1.28 5.077a725.333 725.333 0 0 1 4.779 331.392L896 687.957l-1.28 5.078-82.773-20.736 1.28-5.078a640 640 0 0 0 4.48-291.285l-4.48-19.157-1.28-5.12 82.773-20.694z"  ></path></symbol><symbol id="tingwu-edit" viewBox="0 0 1024 1024"><path d="M459.233882 26.684235c35.177412 0 64.331294 28.431059 66.379294 64.752941 2.048 36.382118-23.612235 68.065882-58.608941 72.402824l-7.830588 0.481882h-246.964706c-23.792941 0-43.971765 18.130824-47.164235 42.465883l-0.481882 6.686117v590.125177c0 24.816941 17.950118 45.417412 41.08047 48.670117l6.505412 0.481883h570.729412c24.033882 0 43.971765-18.552471 47.043764-42.465883l0.481883-6.686117v-198.294588c0-36.382118 27.527529-66.499765 62.644706-68.668236 35.177412-2.108235 65.897412 24.455529 70.053647 60.656941l0.481882 7.951059v198.294589c0 98.785882-74.330353 180.525176-169.743059 186.548705l-10.962823 0.361412H212.148706c-95.533176 0-174.561882-76.920471-180.404706-175.525647l-0.301176-11.324235V213.473882c0-98.785882 74.330353-180.464941 169.682823-186.48847l11.023059-0.301177h247.085176z m238.351059 157.756236l146.672941 147.877647-309.067294 319.126588a33.310118 33.310118 0 0 1-9.33647 6.746353l-5.300706 2.048-190.945883 54.814117-0.12047-0.421647 52.284235-197.692235a34.936471 34.936471 0 0 1 4.818824-10.661647l3.794823-4.577882 307.2-317.31953v0.060236zM820.344471 57.765647a100.111059 100.111059 0 0 1 144.805647 0 108.423529 108.423529 0 0 1 7.047529 141.613177l-7.047529 8.071529-76.197647 78.727529-147.154824-147.335529L820.344471 57.825882z"  ></path></symbol><symbol id="tingwu-play-media2" viewBox="0 0 1024 1024"><path d="M843.968 572.928l-1.28 0.96L149.312 983.04v-960L842.688 435.2a82.176 82.176 0 0 1 1.28 137.792z"  ></path></symbol><symbol id="tingwu-revoke" viewBox="0 0 1283 1024"><path d="M641.97158201 2.544716L5.097075 468.953791l636.87450699 551.60740299V723.929791H815.379104a312.679164 312.679164 0 0 1 203.401553 74.828418l259.943164 222.697075V708.585075c0-233.39558199-193.45958201-422.591045-432.074508-422.59104499H641.97158201V2.544716z"  ></path></symbol><symbol id="tingwu-open" viewBox="0 0 1024 1024"><path d="M505.685 690.475l-209.28-312.448-16.81-28.587a19.541 19.541 0 0 1 16.81-29.44H774.7a14.933 14.933 0 0 1 13.013 22.315l-13.013 23.082-217.344 325.12-0.128 0.171a31.787 31.787 0 0 1-51.542-0.213z"  ></path></symbol><symbol id="tingwu-replace" viewBox="0 0 1024 1024"><path d="M944.583111 751.388444v113.038223H593.237333l73.671111 84.764444-77.824 63.203556-212.536888-240.298667a12.458667 12.458667 0 0 1 9.329777-20.650667h558.705778v-0.056889zM615.594667 0.056889L882.517333 210.488889V339.057778h-130.104889V273.351111l-181.930666-143.36H158.378667v670.663111c0 14.165333 9.898667 26.112 20.423111 29.184l3.925333 0.625778 5.859556 0.341333 128.682666-0.056889v129.934223l-128.682666 0.056889-9.784889-0.284445a160.199111 160.199111 0 0 1-150.072889-150.072889L28.444444 800.654222V53.873778L28.842667 47.502222a53.873778 53.873778 0 0 1 47.217777-47.104L82.147556 0h533.390222v0.056889z m128.455111 410.168889l212.650666 240.298666a12.458667 12.458667 0 0 1-9.329777 20.650667H388.551111V558.193778h351.288889l-73.614222-84.764445L744.106667 410.168889z"  ></path></symbol><symbol id="tingwu-pause3" viewBox="0 0 1024 1024"><path d="M85.357714 24.356571v974.994286h304.859429V24.356571H85.357714z m548.717715 0v974.994286h304.859428V24.356571H634.075429z"  ></path></symbol><symbol id="tingwu-selectAll" viewBox="0 0 1024 1024"><path d="M78.185412 348.340706c26.503529 0 48.007529 20.901647 48.007529 46.622118v404.660705c0 67.704471 52.404706 123.120941 118.904471 127.819295l9.155764 0.301176h404.781177c25.720471 0 46.622118 21.564235 46.622118 48.067765 0 26.503529-20.901647 48.067765-46.622118 48.067764h-436.705882A192.150588 192.150588 0 0 1 30.117647 831.728941V394.962824c0-25.720471 21.504-46.622118 48.067765-46.622118zM865.761882 59.632941C936.538353 59.632941 993.882353 116.916706 993.882353 187.693176v512.421648a128.120471 128.120471 0 0 1-128.120471 128.12047H353.340235a128.120471 128.120471 0 0 1-128.12047-128.12047V187.693176C225.219765 116.916706 282.503529 59.632941 353.340235 59.632941h512.421647z m-121.193411 201.487059l-4.457412 4.818824-169.923765 253.650823-94.027294-85.534118-5.360941-4.698353A48.067765 48.067765 0 0 0 402.793412 495.736471l4.577882 5.421176 131.674353 124.084706 5.300706 4.638118a48.067765 48.067765 0 0 0 61.44-2.710589l4.818823-5.180235 203.956706-295.454118 4.096-5.842823a48.067765 48.067765 0 0 0-74.089411-59.632941z"  ></path></symbol><symbol id="tingwu-next2" viewBox="0 0 1024 1024"><path d="M397.568 510.976v-48.448c22.464-1.024 38.208-2.56 47.232-4.48 14.336-3.2 25.984-9.6 35.008-19.072a62.528 62.528 0 0 0 14.016-25.984 59.712 59.712 0 0 0 2.752-14.464h59.2v362.496h-72.96V510.976H397.568z"  ></path><path d="M510.912 114.048a448 448 0 1 1-351.744 170.496l6.4-7.872 6.464-7.68 27.904-32.256 64.576 55.808-27.968 32.256a360.896 360.896 0 0 0-88.32 237.184 362.688 362.688 0 1 0 373.568-362.432l-10.88-0.192h-42.688V114.048h42.688z"  ></path><path d="M327.36 141.696l190.336-132.48L517.696 307.776l-190.272-132.48-0.064-0.064a20.992 20.992 0 0 1 0-33.6z"  ></path></symbol><symbol id="tingwu-spot" viewBox="0 0 1024 1024"><path d="M341.333 426.667v170.666H170.667V426.667h170.666z m256 0v170.666H426.667V426.667h170.666z m256 0v170.666H682.667V426.667h170.666z"  ></path></symbol><symbol id="tingwu-share3" viewBox="0 0 1024 1024"><path d="M739.584 0L1024 284.416V1024H170.688l-10.048-0.256A170.688 170.688 0 0 1 0 853.312V0h739.584z m-56.832 340.864H568.96v0.64H284.416v113.728h203.52L145.216 798.08l115.328 115.392h160.96L305.92 798.08l262.976-263.04v204.48h113.792v-398.72z"  ></path></symbol><symbol id="tingwu-praise" viewBox="0 0 1102 1024"><path d="M630.390154 6.065231s177.073231 19.692308 72.231384 406.921846h271.281231c7.561846-0.393846 67.268923-1.181538 67.268923 64.984615v2.205539c-0.708923 16.462769-8.349538 128-100.588307 441.422769 0 0-31.192615 100.430769-69.395693 100.430769H464.738462c-28.356923 0-100.588308-19.140923-100.588308-72.152615V412.987077l2.993231-2.205539c24.812308-19.219692 198.104615-159.744 198.104615-335.399384 5.671385-9.924923-9.846154-69.316923 65.220923-69.316923zM254.030769 413.144615c5.750154 0.236308 40.408615 2.993231 40.408616 41.117539v544.925538s0.157538 22.843077-29.065847 22.843077H124.219077c-5.513846-0.393846-33.555692-3.544615-33.555692-34.500923L57.265231 445.991385s0.551385-32.846769 33.949538-32.84677h162.816z"  ></path></symbol><symbol id="tingwu-summary-audio" viewBox="0 0 1024 1024"><path d="M455.111111 0h113.777778v1024H455.111111V0z m455.111111 398.222222h113.777778v284.444445h-113.777778V398.222222zM0 398.222222h113.777778v284.444445H0V398.222222z m227.555556-227.555555h113.777777v682.666666H227.555556V170.666667z m455.111111 0h113.777777v682.666666h-113.777777V170.666667z"  ></path></symbol><symbol id="tingwu-play" viewBox="0 0 1024 1024"><path d="M851.321263 587.829895L328.757895 949.571368a129.347368 129.347368 0 0 1-202.967579-106.38821V173.002105A129.347368 129.347368 0 0 1 328.757895 66.56l522.563368 361.741474a97.010526 97.010526 0 0 1 0 159.528421z"  ></path></symbol><symbol id="tingwu-search" viewBox="0 0 1084 1024"><path d="M472.184471 9.336471a440.380235 440.380235 0 0 1 371.83247 676.442353l207.510588 207.510588-109.869176 109.929412-202.992941-202.872471A440.380235 440.380235 0 1 1 472.244706 9.336471z m0 155.407058a284.912941 284.912941 0 1 0 0 569.946353 284.912941 284.912941 0 0 0 0-569.886117z"  ></path></symbol><symbol id="tingwu-rangePickerIcon" viewBox="0 0 1024 1024"><path d="M298.667 85.333v128h426.666v-128h85.334v128h128V896H213.333l-7.509-0.213A128 128 0 0 1 85.547 775.509L85.333 768V213.333h128v-128h85.334z m64 517.334H256v66.73c0 22.059 17.92 39.936 39.936 39.936h66.73V602.667z m202.666 0H458.667v106.666h106.666V602.667z m202.667 0H661.333v106.666H768V602.667zM362.667 400H256v106.667h106.667V400z m202.666 0H458.667v106.667h106.666V400zM768 400H661.333v106.667H768V400z"  ></path></symbol><symbol id="tingwu-questionClose" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m191.36 240.192L512 431.552l-191.36-191.36L240.192 320.64 431.552 512l-191.36 191.36 80.448 80.448L512 592.448l191.36 191.36 80.448-80.448L592.448 512l191.36-191.36-80.448-80.448z"  ></path></symbol><symbol id="tingwu-maximize-icon" viewBox="0 0 1024 1024"><path d="M320.128 426.666667l-0.042667 279.296H597.333333V853.333333l-277.248-0.042666V853.333333H170.666667V426.666667h149.461333zM853.333333 170.666667v426.666666h-149.461333l0.042667-279.296H426.666667V170.666667h426.666666z"  ></path></symbol><symbol id="tingwu-translate" viewBox="0 0 1024 1024"><path d="M995.5328 0v995.5328H170.7008A170.6496 170.6496 0 0 1 0 824.8832V0h995.5328zM332.1344 393.3696h-141.824v86.5792h62.976V686.08c0 21.2992-0.6656 34.3552-13.824 50.1248l56.0128 57.7536c10.3936-13.1072 22.8864-28.8768 33.8944-41.984l65.7408-67.9936v32.9728h139.7248v93.5424h83.0464v-93.4912h159.0272v-76.1856h-159.0784v-42.7008h130.7136v-72.0896h-130.7136V480.768l-82.9952-3.4304v48.7424H401.3056v72.192h133.4272v42.5984H395.0592v24.6784l-32.512-56.32c-8.2944 8.9088-20.0704 22.016-30.4128 30.9248V393.3696z m421.888-174.5408H388.1984v77.0048h67.1232l-38.0928 24.064c25.6 32.256 52.5312 59.6992 80.1792 81.0496-38.656 15.7696-83.6096 28.8256-136.9088 41.8816l34.6112 72.1408c73.984-22.016 131.3792-43.264 179.2-65.9456 55.296 26.7776 118.8864 46.6944 202.5984 65.9968l29.7472-74.9056c-60.16-11.6736-109.2608-22.6816-152.832-38.5024a384.1536 384.1536 0 0 0 100.3008-105.7792V218.8288z m-471.7568-24.7296l-64.256 54.272c25.6 27.5456 72.6016 86.5792 92.672 118.2208L379.1872 312.32c-22.2208-32.9728-72.704-92.1088-96.9216-118.2208z m378.368 101.7344c-21.4528 24.7296-49.1008 48.0768-87.808 69.376A297.6256 297.6256 0 0 1 492.544 295.8336h168.0384z"  ></path></symbol><symbol id="tingwu-success" viewBox="0 0 1024 1024"><path d="M808.256 203.84l88 87.488-412.8 412.864-87.616 87.552-88-87.552 0.256-0.256-201.408-201.408 87.488-87.552 201.472 201.472z"  ></path></symbol><symbol id="tingwu-user" viewBox="0 0 1024 1024"><path d="M349.824 562.304c47.296 26.24 101.184 64.192 161.6 64.192 60.48 0 112.32-37.44 158.464-63.104a35.904 35.904 0 0 1 26.432-0.96 479.552 479.552 0 0 1 291.392 441.088h-3.2l-3.968 0.064h-95.36l-89.728-0.064h-62.72l-22.016-0.064h-45.44l-23.296-0.064h-47.488l-72.448-0.128h-48.576l-119.04-0.192-45.44-0.128-141.056-0.192H134.4l-42.56-0.128H44.544l-5.44-0.128H32a479.552 479.552 0 0 1 291.52-441.28 35.904 35.904 0 0 1 26.304 1.024v0.064zM511.424 0c120.32 0 217.984 117.12 217.984 261.44 0 144.512-97.6 261.632-217.984 261.632-120.32 0-217.92-117.12-217.92-261.568C293.504 117.12 391.104 0 511.424 0z"  ></path></symbol><symbol id="tingwu-save" viewBox="0 0 1024 1024"><path d="M779.685647 983.823059v-428.272941H244.314353v428.272941h-53.609412A160.647529 160.647529 0 0 1 30.117647 823.235765V20.058353h749.568L993.882353 234.315294v749.568h-214.196706z m-107.038118 0H351.352471V662.588235h321.295058v321.234824z"  ></path></symbol><symbol id="tingwu-outdent" viewBox="0 0 1024 1024"><path d="M408 441.984h480A8 8 0 0 0 896 433.984v-56a8 8 0 0 0-8-8h-480a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8z m-8 204.032c0 4.416 3.584 8 8 8h480a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-480a8 8 0 0 0-8 8v56zM904 160H120a8 8 0 0 0-8 8V224c0 4.416 3.584 8 8 8h784a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m0 632H120a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h784a8 8 0 0 0 8-8V800a8 8 0 0 0-8-8zM115.392 518.912l156.288 123.072c5.76 4.608 14.4 0.512 14.4-6.912V388.928a8.832 8.832 0 0 0-14.4-6.912L115.392 505.088a8.768 8.768 0 0 0 0 13.824z"  ></path></symbol><symbol id="tingwu-volume" viewBox="0 0 1024 1024"><path d="M725.333 87.765v848.47L370.347 682.667H213.333a128 128 0 0 1-128-128V341.333h285.014L725.333 87.765z m87.894 269.014a640 640 0 0 1 0 310.442l-1.28 5.12 82.773 20.694 1.28-5.12a725.333 725.333 0 0 0 0-351.83l-1.28-5.12-82.773 20.736 1.28 5.078z"  ></path></symbol><symbol id="tingwu-summary-video" viewBox="0 0 1408 1024"><path d="M1312 0A96 96 0 0 1 1408 96v832a96 96 0 0 1-96 96H192a192 192 0 0 1-192-192V96A96 96 0 0 1 96 0h1216zM1280 896V128H128v704a64 64 0 0 0 56.512 63.552L192 896h1088z m-367.168-350.144l-0.64 0.448-337.92 199.488V277.76l337.92 200.96a40.064 40.064 0 0 1 0.64 67.136z"  ></path></symbol><symbol id="tingwu-wordDef" viewBox="0 0 1024 1024"><path d="M819.627 153.515v548.778H270.763v39.211c0 21.632 17.493 39.21 39.168 39.21h509.696v78.38H309.973l-6.912-0.214a117.59 117.59 0 0 1-110.634-117.333V271.744l0.213-6.955a118.23 118.23 0 0 1 117.973-111.274h509.014zM554.41 257.877h-96L336.64 584.32h74.325l28.246-80.896h132.65l27.734 80.896h75.733L554.453 257.877z m-45.654 62.55l42.368 123.733H459.82l43.306-123.733h5.632z"  ></path></symbol><symbol id="tingwu-summary" viewBox="0 0 1024 1024"><path d="M672 32l266.688 266.688v641.6l-0.384 6.08a51.712 51.712 0 0 1-45.376 45.312l-5.952 0.32H245.312l-9.344-0.256a160 160 0 0 1-150.4-150.4L85.312 832V85.76l0.32-5.888a53.76 53.76 0 0 1 47.168-47.488L139.072 32H672z m53.312 533.312H298.688v53.376l0.32 6.208a53.312 53.312 0 0 0 46.72 46.72l6.272 0.384h373.312V565.312zM618.688 352h-320v106.688h320V352z"  ></path></symbol><symbol id="tingwu-spread" viewBox="0 0 1024 1024"><path d="M505.685 690.475l-209.28-312.448-16.81-28.587a19.541 19.541 0 0 1 16.81-29.44H774.7a14.933 14.933 0 0 1 13.013 22.315l-13.013 23.082-217.344 325.12-0.128 0.171a31.787 31.787 0 0 1-51.542-0.213z"  ></path></symbol><symbol id="tingwu-pause" viewBox="0 0 1024 1024"><path d="M754.944 51.2a76.8 76.8 0 0 1 76.288 67.712l0.576 8.96 0.96 768a76.8 76.8 0 0 1-153.024 9.152l-0.576-9.088-0.96-768A76.8 76.8 0 0 1 754.944 51.2z m-537.6 0a76.8 76.8 0 0 1 76.288 67.712l0.576 9.024 0.96 768a76.8 76.8 0 0 1-153.024 9.152L141.568 896 140.608 128A76.8 76.8 0 0 1 217.344 51.2z"  ></path></symbol><symbol id="tingwu-review" viewBox="0 0 1024 1024"><path d="M561.536 128c208.256 0 377.152 171.904 377.152 384s-168.896 384-377.152 384a372.288 372.288 0 0 1-258.24-104.128l92.544-54.4c45.056 33.472 100.544 53.248 160.64 53.248 150.4 0 272.32-124.16 272.32-277.312 0-153.216-121.92-277.376-272.384-277.376-149.312 0-270.592 122.368-272.384 273.92-2.368 31.104-0.768 78.976 4.864 143.744-20.416-21.056-98.304-96.64-233.792-226.944l66.112-80.064 73.856 74.048C235.328 252.736 384.128 128 561.536 128z"  ></path><path d="M469.312 341.312h85.312v256H469.312z"  ></path><path d="M682.688 512l0 85.376-213.312 0L469.376 512z"  ></path></symbol><symbol id="tingwu-vector" viewBox="0 0 1160 1024"><path d="M631.1936 742.6048H517.461333V230.263467h113.800534V2.525867l512.341333 483.9424-512.341333 483.805866v-227.669333z m-455.338667-512.341333H5.051733v341.538133a170.8032 170.8032 0 0 0 170.8032 170.8032V230.263467z m227.669334 0H289.655467v512.341333H403.456V230.263467z"  ></path></symbol><symbol id="tingwu-warn" viewBox="0 0 1024 1024"><path d="M532.058353 50.176a481.882353 481.882353 0 1 1 0 963.764706 481.882353 481.882353 0 0 1 0-963.764706z m0 87.642353a394.24 394.24 0 1 0 0 788.48 394.24 394.24 0 0 0 0-788.48z m0 175.224471c24.214588 0 43.851294 19.636706 43.851294 43.791058v219.075765a43.791059 43.791059 0 1 1-87.642353 0V356.833882c0-24.154353 19.636706-43.791059 43.791059-43.791058z m0 350.448941a43.791059 43.791059 0 1 1 0 87.642353 43.791059 43.791059 0 0 1 0-87.642353z"  ></path></symbol><symbol id="tingwu-prev" viewBox="0 0 1126 1024"><path d="M1029.053112 62.628889c17.816442 24.983976 27.339023 54.882833 27.339023 85.703229v686.444981a148.265563 148.265563 0 0 1-233.866399 120.92654l-527.325724-373.53092a111.199172 111.199172 0 0 1 0-181.23622L822.525736 27.200792A148.265563 148.265563 0 0 1 1029.053112 62.526496v0.102393zM81.914676 47.884248a81.914676 81.914676 0 0 1 81.300315 72.289701l0.61436 9.624974 0.92154 737.23208a81.914676 81.914676 0 0 1-163.317384 9.727368L1.023933 867.031003 0 129.798923a81.914676 81.914676 0 0 1 81.914676-81.914675z"  ></path></symbol><symbol id="tingwu-upload_close" viewBox="0 0 1024 1024"><path d="M512 128a384 384 0 1 1 0 768 384 384 0 0 1 0-768z m143.53 180.139L512 451.669 368.47 308.14l-60.331 60.33L451.669 512 308.14 655.53l60.33 60.331L512 572.331l143.53 143.53 60.331-60.33L572.331 512l143.53-143.53-60.33-60.331z"  ></path></symbol><symbol id="tingwu-translate-arrows" viewBox="0 0 1024 1024"><path d="M626.7392 645.4272l57.2416-70.144-474.112 0 0-87.808 474.112 0-57.2416-65.792 60.416-49.1008 137.0624 158.7712-137.0624 160.5632z"  ></path></symbol><symbol id="tingwu-nav-verify" viewBox="0 0 1024 1024"><path d="M918.588235 245.338353a67.282824 67.282824 0 0 0-51.621647-59.873882 1176.816941 1176.816941 0 0 1-167.03247-40.116706c-53.609412-22.889412-103.785412-53.549176-149.202824-90.955294a65.957647 65.957647 0 0 0-79.751529 0 387.794824 387.794824 0 0 1-150.347294 90.352941c-51.802353 22.407529-106.616471 36.502588-162.394353 41.923764-28.491294 4.818824-49.814588 29.816471-51.07953 59.873883 0 0-1.746824 150.287059-1.746823 282.563765 0 239.495529 270.817882 471.220706 406.287059 471.220705 135.469176 0 365.025882-163.478588 401.769411-467.606588 9.155765-179.621647 2.770824-286.72 2.770824-286.72l2.349176-0.662588z m-147.456 184.982588l-282.985411 278.40753a37.225412 37.225412 0 0 1-46.98353 4.818823l-7.469176-6.625882-156.129883-169.381647a41.923765 41.923765 0 0 1 2.288941-57.464471 37.888 37.888 0 0 1 55.115295 2.409412l128.542117 140.649412 254.795294-251.482353a37.827765 37.827765 0 0 1 38.068706-8.854589c13.251765 4.336941 23.371294 15.721412 26.383059 29.936942a41.803294 41.803294 0 0 1-11.625412 38.791529v-1.204706z"  ></path></symbol><symbol id="tingwu-mark-schedule" viewBox="0 0 1024 1024"><path d="M533.824 0v136.512H136.512v591.68a159.36 159.36 0 0 0 146.24 158.72l13.056 0.576 591.68-0.064V570.432H1024v385.28c0 34.56-25.664 63.168-59.008 67.648l-9.28 0.64H295.872a295.808 295.808 0 0 1-295.424-279.04L0 728.192V68.352C0 33.728 25.664 5.12 59.008 0.64L68.288 0 533.76 0z m360.64 101.44l94.848 98.176-499.264 482.112-245.056-253.696 98.24-94.848 150.144 155.52 401.088-387.264z"  ></path></symbol><symbol id="tingwu-recycler" viewBox="0 0 1024 1024"><path d="M640 725.312H554.688v-256H640v256z m-170.688-256H384v213.376c0 23.552 19.072 42.624 42.688 42.624h42.624v-256zM128 256v85.312h85.312V768a128 128 0 0 0 128 128h469.376V341.312H896V256H128z m512-128H384v85.312h256V128z"  ></path></symbol><symbol id="tingwu-warning" viewBox="0 0 1024 1024"><path d="M522.059294 1003.941647a481.882353 481.882353 0 1 0 0-963.764706 481.882353 481.882353 0 0 0 0 963.764706z m-48.188235-722.823529h96.37647v289.129411h-96.37647v-289.129411z m0 385.505882h96.37647v96.376471h-96.37647v-96.376471z"  ></path></symbol><symbol id="tingwu-replace1" viewBox="0 0 1210 1024"><path d="M132.840727 436.224l1.396364-157.602909h614.306909c-43.752727-38.912-87.505455-77.824-131.351273-116.549818L707.304727 52.875636l242.036364 225.559273a38.167273 38.167273 0 0 0-0.372364 0.186182l173.242182 157.602909H132.840727zM1064.029091 634.88l-1.396364 157.602909h-614.4c43.752727 38.912 87.598545 77.730909 131.537455 116.363636l-90.205091 109.381819-242.036364-225.559273a38.446545 38.446545 0 0 0 0.372364-0.186182L74.752 634.786909H1064.029091z"  ></path></symbol><symbol id="tingwu-setting" viewBox="0 0 1024 1024"><path d="M687.585882 47.465412l150.588236 89.630117c26.864941 15.962353 36.141176 51.440941 20.660706 79.028706a106.977882 106.977882 0 0 0 0 105.411765c18.492235 33.008941 51.742118 52.645647 88.726588 52.645647 30.960941 0 56.259765 25.901176 56.259764 57.946353v179.2c0 31.804235-25.298824 57.825882-56.259764 57.825882-37.104941 0-70.234353 19.696941-88.726588 52.705883a106.977882 106.977882 0 0 0 0 105.411764 58.789647 58.789647 0 0 1-20.660706 79.028706l-150.588236 89.509647a55.476706 55.476706 0 0 1-76.8-21.082353 100.894118 100.894118 0 1 0-177.513411-0.12047 55.898353 55.898353 0 0 1-48.790589 28.912941 54.814118 54.814118 0 0 1-27.949176-7.710118l-150.829177-89.509647a57.223529 57.223529 0 0 1-26.262588-35.117176 58.428235 58.428235 0 0 1 5.601883-43.971765 106.977882 106.977882 0 0 0 0-105.351529A101.014588 101.014588 0 0 0 96.376471 669.214118c-30.960941 0-56.259765-26.021647-56.259765-57.886118V432.067765c0-31.804235 25.298824-57.825882 56.259765-57.825883 36.984471 0 70.234353-19.696941 88.726588-52.705882a106.977882 106.977882 0 0 0 0-105.411765 58.669176 58.669176 0 0 1 20.60047-78.908235L356.412235 47.585882a55.296 55.296 0 0 1 76.8 21.202824 101.014588 101.014588 0 0 0 177.453177 0 55.416471 55.416471 0 0 1 76.92047-21.323294z m-165.647058 265.396706a208.835765 208.835765 0 1 0 0 417.671529 208.835765 208.835765 0 0 0 0-417.671529z m0 96.37647a112.459294 112.459294 0 1 1 0 224.918588 112.459294 112.459294 0 0 1 0-224.918588z"  ></path></symbol><symbol id="tingwu-stop" viewBox="0 0 1024 1024"><path d="M300.363926 188.822075a68.265392 68.265392 0 0 1-8.191847 96.185938 341.326962 341.326962 0 1 0 441.199231 1.365308 68.265392 68.265392 0 0 1 88.608479-103.899927 477.857747 477.857747 0 1 1-617.801801-1.843166 68.265392 68.265392 0 0 1 96.254204 8.191847zM513.010624 0a68.265392 68.265392 0 0 1 67.787534 60.278341L581.276016 68.265392v409.592355a68.265392 68.265392 0 0 1-136.052927 7.987051L444.745231 477.857747V68.265392a68.265392 68.265392 0 0 1 68.265393-68.265392z"  ></path></symbol><symbol id="tingwu-voice" viewBox="0 0 1170 1024"><path d="M585.142857 77.897143v804.571428c0 71.68-32.475429 87.405714-73.142857 73.142858l-292.571429-219.428572H73.142857a73.142857 73.142857 0 0 1-73.142857-73.142857v-365.714286a73.142857 73.142857 0 0 1 73.142857-73.142857h146.285714l292.571429-219.428571c40.374857-14.189714 73.142857 1.755429 73.142857 73.142857z m398.555429 56.758857c165.814857 178.395429 165.814857 483.474286 0 661.942857a54.857143 54.857143 0 1 1-80.384-74.752c126.683429-136.265143 126.683429-376.173714 0-512.512a54.857143 54.857143 0 0 1 80.384-74.678857z m-211.382857 110.08c117.101714 125.952 117.101714 340.260571 0 466.212571a54.857143 54.857143 0 0 1-80.310858-74.752c77.970286-83.821714 77.970286-232.886857 0-316.708571a54.857143 54.857143 0 1 1 80.310858-74.752z"  ></path></symbol><symbol id="tingwu-favorites" viewBox="0 0 1024 1024"><path d="M652.8 346.496l226.816 34.176a42.88 42.88 0 0 1 23.68 72.896l-0.32 0.32-163.072 160.64 37.504 225.856 0.128 0.512a42.752 42.752 0 0 1-61.888 44.992L511.936 780.16l-203.712 105.728a42.752 42.752 0 0 1-61.888-44.928v-0.192l37.632-226.24-155.52-153.984L121.6 453.76a42.88 42.88 0 0 1 23.68-73.088l225.728-34.24 102.4-204.8a43.072 43.072 0 0 1 77.056 0v0.192l102.4 204.608z"  ></path></symbol><symbol id="tingwu-play-filled2" viewBox="0 0 1024 1024"><path d="M527.058824 45.176471a481.882353 481.882353 0 1 1 0 963.764705 481.882353 481.882353 0 0 1 0-963.764705z m-54.573177 277.684705a60.235294 60.235294 0 0 0-60.235294 60.235295v309.187764a60.235294 60.235294 0 0 0 95.051294 49.152l218.232471-154.624a60.235294 60.235294 0 0 0 0-98.304L507.301647 333.944471a60.235294 60.235294 0 0 0-34.816-11.083295z"  ></path></symbol><symbol id="tingwu-add2" viewBox="0 0 1024 1024"><path d="M512 1024A512 512 0 1 1 512 0a512 512 0 0 1 0 1024z m-42.688-554.688H256a42.688 42.688 0 0 0 0 85.376h213.312V768a42.688 42.688 0 0 0 85.376 0V554.688H768a42.688 42.688 0 0 0 0-85.376H554.688V256a42.688 42.688 0 0 0-85.376 0v213.312z"  ></path></symbol><symbol id="tingwu-add" viewBox="0 0 1024 1024"><path d="M957.096367 578.743657H578.775657v378.448694a66.743657 66.743657 0 0 1-133.615298 0V578.743657H66.839649a66.743657 66.743657 0 1 1 0-133.487314h378.32071V66.807649a66.807649 66.807649 0 0 1 133.615298 0v378.448694h378.32071a66.743657 66.743657 0 1 1 0 133.487314z"  ></path></symbol><symbol id="tingwu-alls" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0zM279.424 439.04a72.96 72.96 0 1 0 0 145.92 72.96 72.96 0 0 0 0-145.92zM512 439.04a72.96 72.96 0 1 0 0 145.92 72.96 72.96 0 0 0 0-145.92z m232.832 0a72.96 72.96 0 1 0 0 145.92 72.96 72.96 0 0 0 0-145.92z"  ></path></symbol><symbol id="tingwu-arrow-down2" viewBox="0 0 1024 1024"><path d="M128.384 300.16c0 9.6 3.2 19.264 9.6 27.392l340.864 423.744a43.712 43.712 0 0 0 68.16 0l339.072-421.952a43.712 43.712 0 0 0-68.096-54.72l-305.088 379.584-306.816-381.44a43.712 43.712 0 0 0-77.696 27.328z"  ></path></symbol><symbol id="tingwu-add3" viewBox="0 0 1024 1024"><path d="M435.84 1024h153.6V583.168H1024v-153.6H589.44V0h-153.6v429.568H0v153.6h435.84z"  ></path></symbol><symbol id="tingwu-arrow-right" viewBox="0 0 1024 1024"><path d="M300.736 781.824L398.272 875.008 714.112 558.72a60.352 60.352 0 0 0 0.256-85.568l-0.96-0.96-315.136-315.136-97.536 93.888L552.064 490.624a36.16 36.16 0 0 1 0 50.752l-251.328 240.384z"  ></path></symbol><symbol id="tingwu-alibaba" viewBox="0 0 1925 1024"><path d="M1155.066 867.157c278.186-18.176 534.186-116.992 770.26-220.33-161.834 110.165-983.04 529.237-988.586 244.181 1.067-35.2 15.53-73.813 44.33-115.84 25.473-40.875 62.038-81.792 98.604-126.08 56.576-66.987 196.18-222.592 243.84-319.147 8.874-18.133 14.42-35.2 16.64-49.92 5.546-86.314-101.974-120.405-261.547-165.845l-31.019 19.285 59.862 50.006c-269.398 48.853-431.147 99.968-627.328 170.41l27.733 71.51-98.688 98.816c16.64 3.413 188.416 62.464 365.781-64.726l1.067-1.152 2.219-2.261c-5.547-9.045-16.64-19.328-32.128-31.787 53.205 3.414 85.333 51.115 79.786 99.926H802.64c1.067-17.067-3.328-32.939-7.765-45.44-137.43 104.533-298.155 118.144-434.475 69.248V670.72c-67.627 23.85-182.87 98.816-182.87 170.368 4.438 35.2 21.035 47.701 37.675 56.747 150.742 87.466 558.635-31.787 557.483-31.787-146.261 77.227-291.456 138.581-506.453 147.627C-18.652 1008-59.612 813.824 72.27 611.669c127.445-204.501 328.021-386.176 648.277-502.058 93.184-34.091 229.547-71.552 361.43-74.966 189.44 0 373.46 57.942 361.258 245.334-8.874 144.213-206.165 341.845-312.576 487.253-46.506 62.464-54.272 105.6 24.406 99.925z m179.626-655.36c43.52 17.067 55.979 36.352 43.52 56.747 12.502-22.656 0-41.984-43.52-56.747z"  ></path></symbol><symbol id="tingwu-checkbox0" viewBox="0 0 1024 1024"><path d="M916.48 43.633778c26.453333 0 48.298667 19.911111 51.256889 45.624889l0.341333 6.030222V921.6c0 26.510222-19.911111 48.355556-45.624889 51.313778l-5.973333 0.341333H193.422222A154.965333 154.965333 0 0 1 38.684444 827.733333l-0.284444-9.443555V95.288889c0-26.510222 19.911111-48.355556 45.624889-51.313778l6.030222-0.341333H916.48z m-51.655111 103.310222H141.767111v671.402667l0.284445 6.030222a51.655111 51.655111 0 0 0 51.313777 45.624889h671.459556V146.944z"  ></path></symbol><symbol id="tingwu-back" viewBox="0 0 1024 1024"><path d="M723.264 242.176L625.728 148.992 309.888 465.28a60.352 60.352 0 0 0-0.256 85.568l0.96 0.96 315.136 315.136 97.536-93.888L471.936 533.376a36.16 36.16 0 0 1 0-50.752l251.328-240.384z"  ></path></symbol><symbol id="tingwu-arrow-down" viewBox="0 0 1024 1024"><path d="M242.176 300.736L148.992 398.272 465.28 714.112a60.352 60.352 0 0 0 85.568 0.256l0.96-0.96 315.136-315.136-93.888-97.536L533.376 552.064a36.16 36.16 0 0 1-50.752 0l-240.384-251.328z"  ></path></symbol><symbol id="tingwu-cancel-token" viewBox="0 0 1024 1024"><path d="M149.961598 149.961597a511.98688 511.98688 0 1 1 724.077445 724.077446A511.98688 511.98688 0 0 1 149.961598 149.961597z m49.022743 139.516425a384.118157 384.118157 0 0 0 535.474279 535.666274l-535.474279-535.666274z m584.561021-49.022744a384.118157 384.118157 0 0 0-494.06734-41.406939l535.474279 535.538277a384.118157 384.118157 0 0 0-41.406939-494.067339z"  ></path></symbol><symbol id="tingwu-checkbox" viewBox="0 0 1024 1024"><path d="M817.408 158.912c19.84 0 36.224 14.912 38.464 34.176l0.32 4.544v619.776c0 19.84-14.976 36.224-34.24 38.464l-4.48 0.32H275.072a116.224 116.224 0 0 1-116.032-109.184l-0.192-7.04V197.568c0-19.84 14.912-36.224 34.176-38.464l4.544-0.256h619.776zM645.632 342.464L446.72 541.248 365.12 459.776l-62.528 63.168L448.896 669.248l260.672-260.608-64-66.176z"  ></path></symbol><symbol id="tingwu-avatar" viewBox="0 0 1024 1024"><path d="M512 51.2a460.8 460.8 0 0 1 306.752 804.672l10.624-9.792a464 464 0 0 1-85.952 64.448l-1.216 0.704-4.992 2.88a459.904 459.904 0 0 1-204.48 58.24A467.968 467.968 0 0 1 512 972.8h-0.256l-13.312-0.192h-1.664L512 972.8a468.672 468.672 0 0 1-115.648-14.656 457.152 457.152 0 0 1-180.032-92.672A460.8 460.8 0 0 1 512 51.2zM512 128a384 384 0 0 0-291.072 634.432A322.432 322.432 0 0 1 395.456 599.68 481.088 481.088 0 0 0 512 647.296c45.568-11.072 85.056-26.752 118.464-46.976a322.944 322.944 0 0 1 172.672 162.048A384 384 0 0 0 512 128z m0 98.752c80.768 0 146.304 78.592 146.304 175.552S592.768 577.856 512 577.856 365.696 499.2 365.696 402.304 431.232 226.752 512 226.752z"  ></path></symbol><symbol id="tingwu-check-outlined" viewBox="0 0 1024 1024"><path d="M257.984 457.856A49.92 49.92 0 0 1 324.48 453.12l5.12 4.672 107.264 109.44 250.624-255.488a49.92 49.92 0 0 1 66.368-4.608l5.12 4.608c17.92 18.24 19.84 47.168 4.544 67.776l-4.48 5.248-286.272 292.032a49.92 49.92 0 0 1-66.368 4.608l-5.184-4.608L257.92 530.88a52.352 52.352 0 0 1 0-72.96v-0.064z"  ></path></symbol><symbol id="tingwu-close" viewBox="0 0 1024 1024"><path d="M0 891.136L132.992 1024l381.76-381.312 376.256 375.872L1024 885.696l-376.32-375.872 372.032-371.52L886.72 5.44 514.752 377.024 137.28 0 4.288 132.864l377.408 376.96z"  ></path></symbol><symbol id="tingwu-checkbox1" viewBox="0 0 1024 1024"><path d="M817.408 158.912c19.84 0 36.224 14.912 38.464 34.176l0.32 4.544v619.776c0 19.84-14.976 36.224-34.24 38.464l-4.48 0.32H275.072a116.224 116.224 0 0 1-116.032-109.184l-0.192-7.04V197.568c0-19.84 14.912-36.224 34.176-38.464l4.544-0.256h619.776z m-157.952 309.76H360.768v92.032h298.688V468.672z"  ></path></symbol><symbol id="tingwu-clear" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m121.024 321.472L512 442.496l-121.024-120.96-72.384 72.32 120.96 121.088-120.96 120.96 72.32 72.448L512 587.328l121.024 121.024 72.384-72.384-120.96-121.024 120.96-121.088-72.32-72.32z"  ></path></symbol><symbol id="tingwu-common-search" viewBox="0 0 1024 1024"><path d="M467.392 0A467.712 467.712 0 0 1 876.8 240.896a463.68 463.68 0 0 1-14.464 473.344l133.568 140.8c37.44 38.592 37.44 99.712 0.128 138.368a100.48 100.48 0 0 1-138.88 5.184l-7.04-6.656-128.64-135.936a468.992 468.992 0 0 1-542.144-24.192A464.192 464.192 0 0 1 25.536 313.664 467.2 467.2 0 0 1 467.392 0z m0 132.992a334.08 334.08 0 0 0-289.152 166.144 331.2 331.2 0 0 0 0 332.416 334.08 334.08 0 0 0 289.152 166.208c184.32 0 333.824-148.8 333.824-332.416 0-183.552-149.504-332.352-333.824-332.352z"  ></path></symbol><symbol id="tingwu-close_fullscreen" viewBox="0 0 1024 1024"><path d="M740.874019 1023.936004a57.27642 57.27642 0 0 1-56.060496-50.55684l-0.511968-7.935504V809.549403c0-71.03556 52.732704-130.231861 121.208424-135.9915l10.87932-0.447972h150.838573a57.404412 57.404412 0 0 1 56.63646 54.524592 58.044372 58.044372 0 0 1-48.95694 61.948128l-7.67952 0.511968h-150.902569a19.006812 19.006812 0 0 0-18.366852 14.975064l-0.511968 4.47972v155.958253c0 32.253984-25.342416 58.492344-56.572464 58.492344z m-450.019874 0a57.27642 57.27642 0 0 1-56.060496-50.55684l-0.511968-7.9995v-155.958253a19.390788 19.390788 0 0 0-14.591088-18.942816l-4.287732-0.511968H64.500292a57.404412 57.404412 0 0 1-56.63646-54.524592 58.044372 58.044372 0 0 1 48.95694-61.948128l7.67952-0.511968h150.902569c68.731704 0 125.944128 54.524592 131.575776 125.304168l0.447972 11.135304v155.958253c0 32.31798-25.342416 58.492344-56.572464 58.492344zM56.756776 351.018061a57.404412 57.404412 0 0 1-56.572464-54.524592 58.044372 58.044372 0 0 1 48.95694-61.948128l7.67952-0.511968h150.838573a19.006812 19.006812 0 0 0 18.366852-15.03906l0.511968-4.47972V58.684332a57.724392 57.724392 0 0 1 52.732704-58.55634 57.084432 57.084432 0 0 1 59.900256 50.55684l0.511968 7.9995v155.894257c0 71.03556-52.732704 130.231861-121.208424 135.9915l-10.815324 0.511968H56.756776z m751.889007 0c-68.731704 0-126.008124-54.460596-131.639772-125.304168l-0.383976-11.1993V58.684332a57.724392 57.724392 0 0 1 52.732704-58.492344 57.084432 57.084432 0 0 1 59.900256 50.55684l0.511968 7.935504v155.894257c0 9.27942 6.207612 17.022936 14.527092 19.006812l4.351728 0.511968h150.902569a57.404412 57.404412 0 0 1 56.572464 54.524592 58.044372 58.044372 0 0 1-48.95694 61.948128l-7.67952 0.511968h-150.838573z"  ></path></symbol><symbol id="tingwu-download" viewBox="0 0 1024 1024"><path d="M284.416 568.896L512 739.584l227.584-170.688H1024V1024H170.496A170.688 170.688 0 0 1 0 853.312V568.96h284.416z m568.96 170.688a56.896 56.896 0 1 0 0 113.728 56.896 56.896 0 0 0 0-113.728zM568.896 0v443.968l85.312-74.24 63.616 78.4L512 625.792 303.872 448.128l60.352-78.336 90.88 74.176V0H568.96z"  ></path></symbol><symbol id="tingwu-change" viewBox="0 0 1024 1024"><path d="M544.154 51.2c10.444 0 20.787 0.41 30.924 1.229l19.661 2.048 17.05 2.867 15.309 3.226 18.33 4.608 13.67 3.942 14.643 4.71 7.629 2.714 15.718 6.042c2.662 1.024 5.376 2.201 8.09 3.379l16.435 7.475c85.965 41.216 182.937 124.058 186.214 288.256v50.483c0 75.264-25.293 145.664-66.048 210.74l-9.011 13.823-11.776 16.384c-17.254 22.836-23.45 51.559-28.98 80.59a173.466 173.466 0 0 0-1.791 45.874l1.485 22.682 0.307 12.083v121.19c0 10.548-18.279 16.077-30.515 17.101l-3.84 0.154H375.962c-10.65 0-39.936-4.608-45.21-14.234l-0.82-3.072-0.05-97.843c-0.359-24.73-3.124-53.401-23.86-57.344l-5.12-0.512h-17.305c-60.57 0-121.14-31.59-126.31-84.992l-0.359-7.373v-80.588c0-15.207-4.198-26.112-17.254-32.256l-5.325-2.1-22.784-5.734c-11.06 0-11.06-17.05-5.53-22.63 40.755-68.813 63.335-126.67 75.11-173.62 0-5.324 5.479-10.854 5.479-22.528C203.93 189.594 354.099 51.2 544.154 51.2z m187.34 451.686H341.197a10.24 10.24 0 0 0-9.421 14.285l1.74 2.765 147.56 166.81 54.783-44.544-51.865-59.7h247.5v-79.616zM589.21 233.728l-54.784 44.544 51.814 59.648H338.79v79.616h390.298a10.24 10.24 0 0 0 9.42-14.234l-1.74-2.764-147.558-166.81z"  ></path></symbol><symbol id="tingwu-control" viewBox="0 0 1024 1024"><path d="M185.024 0v237.056h61.696v128h-61.696V1024H61.696V365.12H0V236.992h61.696V0H184.96z m386.368 0v664.64h61.696v128h-61.696V1024H448v-231.296h-61.568v-128H448V0h123.392z m390.912 0v237.056H1024v128h-61.632V1024H839.04V365.12h-61.696V236.992h61.696V0h123.328z"  ></path></symbol><symbol id="tingwu-del" viewBox="0 0 1088 1024"><path d="M1038.272 170.688v113.728h-113.728V1024H298.752l-10.048-0.256a170.688 170.688 0 0 1-160.32-160.384L128 853.312V284.416H14.272V170.688h1024zM696.96 455.04H583.168v341.312h113.792V455.104z m-227.52 0H355.648v284.48c0 28.8 21.568 53.12 50.24 56.448l6.656 0.384h56.896V455.104zM696.96 0v113.792H355.648V0h341.312z"  ></path></symbol><symbol id="tingwu-collect" viewBox="0 0 1024 1024"><path d="M1021.595811 398.224213a51.513818 51.513818 0 0 0-40.827101-37.115546l-291.16506-54.329481L557.907454 29.436468a50.937887 50.937887 0 0 0-45.434548-29.436468c-19.197696 0-36.795585 11.326641-45.562533 29.436468L336.622008 306.779186l-291.16506 55.865297a51.385834 51.385834 0 0 0-42.682878 36.027676 56.057273 56.057273 0 0 0 12.798464 56.185258l212.454505 206.50322-54.649442 299.484062a55.673319 55.673319 0 0 0 20.477543 52.729672 52.473703 52.473703 0 0 0 53.881534 3.967524l264.288286-137.135544 263.520377 137.135544a48.634164 48.634164 0 0 0 53.75355-3.839539 55.673319 55.673319 0 0 0 20.477543-52.857657l-53.113627-299.484062 210.406751-207.911051a55.673319 55.673319 0 0 0 14.718234-55.161381l-0.255969-0.063992h0.063992z"  ></path></symbol><symbol id="tingwu-dot" viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z"  ></path></symbol><symbol id="tingwu-delete" viewBox="0 0 1088 1024"><path d="M997.12 320l-0.192 631.872c0 39.872-39.168 72.128-87.744 72.128H207.232c-48.512 0-87.808-32.256-87.808-72.128V320h877.76zM435.136 512c-30.336 0-54.848 21.504-54.848 48v160c0 26.496 24.512 48 54.848 48 30.272 0 54.848-21.504 54.848-48v-160c0-26.496-24.576-48-54.848-48z m246.464 0c-30.272 0-54.848 21.504-54.848 48v160c0 26.496 24.576 48 54.848 48 30.336 0 54.848-21.504 54.848-48v-160c0-26.496-24.512-48-54.848-48z m-49.024-512c78.272 0 142.336 52.224 147.968 118.4l0.192 4.544h224.32c36.032 0 65.28 25.28 65.28 56.32 0 31.168-29.248 56.32-65.28 56.32H111.616c-35.776 0.192-65.024-24.96-65.28-56.256 0-31.04 29.248-56.32 65.28-56.32h224.256l0.192-4.48C341.76 52.224 405.824 0 484.032 0h148.48z"  ></path></symbol><symbol id="tingwu-common-edit" viewBox="0 0 1024 1024"><path d="M430.682353 3.975529c35.237647 0.060235 64.331294 28.491294 66.379294 64.813177 2.048 36.382118-23.612235 68.065882-58.608941 72.402823l-7.830588 0.481883h-246.964706c-23.792941 0-43.971765 18.070588-47.164236 42.465882l-0.421647 6.686118v590.125176c0 24.816941 17.889882 45.417412 41.080471 48.670118l6.445176 0.481882h570.729412c24.033882 0 43.971765-18.552471 47.043765-42.465882l0.481882-6.686118V582.656c0-36.382118 27.527529-66.499765 62.644706-68.668235 35.237647-2.108235 65.897412 24.455529 70.053647 60.656941l0.481883 7.951059v198.294588c0 98.785882-74.330353 180.525176-169.743059 186.548706l-10.962824 0.301176H183.597176c-95.533176 0-174.561882-76.860235-180.404705-175.465411l-0.301177-11.324236V190.825412c0-98.785882 74.330353-180.464941 169.682824-186.488471l11.023058-0.361412H430.682353z m238.351059 157.816471l146.672941 147.877647-309.067294 319.126588a33.310118 33.310118 0 0 1-9.336471 6.746353l-5.300706 2.048-190.945882 54.814118-0.060235-0.421647 52.224-197.692235a34.936471 34.936471 0 0 1 4.818823-10.661648l3.794824-4.577882 307.2-317.319529zM791.792941 35.117176a100.111059 100.111059 0 0 1 144.805647 0 108.423529 108.423529 0 0 1 7.107765 141.552942l-7.107765 8.131764-76.197647 78.72753-147.154823-147.33553L791.792941 35.117176z"  ></path></symbol><symbol id="tingwu-copy3" viewBox="0 0 1024 1024"><path d="M245.880471 12.408471v722.823529c0 26.624 26.985412 48.188235 60.235294 48.188235h662.588235V233.351529L692.525176 12.408471H245.880471z m-60.235295 867.388235h481.882353v96.37647h-481.882353c-99.749647 0-180.705882-64.692706-180.705882-144.564705v-578.258824h120.470588v578.258824c0 26.624 26.925176 48.188235 60.235294 48.188235z"  ></path></symbol><symbol id="tingwu-copy4" viewBox="0 0 1024 1024"><path d="M718.426353 27.828706l276.239059 220.943059v742.821647h-783.058824c-95.653647 0-174.682353-59.632941-180.34447-136.07153l-0.361412-8.493176V27.828706h687.525647zM491.339294 293.345882v102.038589H414.72v229.556705h76.619294v102.098824l304.308706-216.847059-304.308706-216.847059z m-158.418823 103.002353H240.880941v231.424h91.979294V396.348235z"  ></path></symbol><symbol id="tingwu-close2" viewBox="0 0 1024 1024"><path d="M138.016381 18.387625l8.124511 7.036978L512.063774 391.411458l365.922882-365.922882a85.275385 85.275385 0 0 1 127.753146 112.591656l-7.036978 7.996566L632.588024 511.99968l365.986855 365.922882a85.275385 85.275385 0 0 1-112.527684 127.689173l-8.124511-7.036978L512.063774 632.587903l-365.922882 365.922881a85.275385 85.275385 0 0 1-127.753146-112.591656l7.036979-7.996566L391.411579 511.99968 25.488698 146.076798A85.275385 85.275385 0 0 1 138.080353 18.323652z"  ></path></symbol><symbol id="tingwu-exit-fullscreen-icon" viewBox="0 0 1024 1024"><path d="M1024 625.792v113.792h-284.416V1024H625.792V625.792H1024zM398.4 625.28v398.272H284.608v-284.48H0.192V625.344h398.208V625.28zM398.208 0v398.208H0V284.416h284.416V0h113.792z m341.376 0v284.416H1024v113.792H625.792V0h113.792z"  ></path></symbol><symbol id="tingwu-finishNew" viewBox="0 0 1024 1024"><path d="M660.336299 89.975467a455.338667 455.338667 0 0 1-170.666667 877.1584 455.133867 455.133867 0 0 1-170.666667-877.1584v477.184c0 30.173867 22.7328 55.022933 52.155734 58.231466l6.417066 0.341334h226.986667l6.485333-0.4096a55.773867 55.773867 0 0 0 48.878934-48.878934l0.341333-6.485333 0.068267-480.0512v0.068267zM546.535765 0v512H432.803499V0h113.732266z"  ></path></symbol><symbol id="tingwu-edits" viewBox="0 0 1024 1024"><path d="M498.507294 180.525176l310.211765 311.296-385.144471 412.310589h449.957647v115.230117H21.624471v-0.060235H17.889882l1.385412-322.258823 479.232-516.517648zM786.672941 98.183529l7.710118 7.830589 187.331765 200.764235L874.616471 421.044706 564.224 109.568l3.373176-3.614118c59.632941-64.030118 155.467294-67.463529 219.01553-7.830588z"  ></path></symbol><symbol id="tingwu-exit" viewBox="0 0 1024 1024"><path d="M993.882353 30.117647v963.764706H190.765176l-9.456941-0.240941A160.647529 160.647529 0 0 1 30.358588 842.691765L30.117647 833.234824V30.117647h963.764706zM458.450824 137.216H137.216v696.018824l0.361412 6.26447c2.891294 24.636235 22.287059 43.971765 46.923294 46.923294l6.26447 0.361412H458.390588v-107.098353H244.314353V244.314353H458.390588V137.216z m160.828235 133.842824L543.563294 346.774588l107.098353 107.098353H351.593412v107.038118h299.068235l-107.098353 116.314353 75.715765 75.715764 236.363294-245.519058L619.218824 271.058824z"  ></path></symbol><symbol id="tingwu-feedback2" viewBox="0 0 1024 1024"><path d="M258.60992 67.2A512.128 512.128 0 0 0 0.24192 503.68c-1.472 88.832 11.072 172.864 53.76 250.88L34.67392 921.984a60.928 60.928 0 0 0 67.584 67.584h0.192l167.296-19.456c68.48 37.568 140.672 49.728 218.688 53.312a512.128 512.128 0 0 0 428.352-825.28A512.064 512.064 0 0 0 258.67392 67.2zM307.31392 358.4h409.6v102.4h-409.6V358.4z m0 204.8h409.6v102.4h-358.4a51.2 51.2 0 0 1-51.2-51.2v-51.2z"  ></path></symbol><symbol id="tingwu-question" viewBox="0 0 1024 1024"><path d="M522.059294 40.176941a481.882353 481.882353 0 1 1 0 963.764706 481.882353 481.882353 0 0 1 0-963.764706z m48.188235 674.635294h-96.37647v96.376471h96.37647v-96.376471z m-48.188235-481.882353a192.752941 192.752941 0 0 0-192.512 183.115294l-0.240941 9.637648h96.376471a96.376471 96.376471 0 1 1 103.604705 96.135529l-7.228235 0.240941h-48.188235v121.072941h96.37647v-30.780235a192.873412 192.873412 0 0 0-48.188235-379.482353z"  ></path></symbol><symbol id="tingwu-fullscreen-icon" viewBox="0 0 1024 1024"><path d="M113.792 625.792v203.904l194.176-194.112 80.448 80.448-194.24 194.176h204.032V1024H170.688A170.688 170.688 0 0 1 0 853.312V625.792h113.792z m910.208 0V1024H625.792v-113.792h203.968l-194.176-194.176 80.448-80.448 194.176 194.176V625.792H1024zM398.208 0v113.792H194.24l194.176 194.176L307.968 388.48 113.792 194.24v203.968H0V0h398.208zM1024 0v398.208h-113.792V194.176l-194.176 194.24L635.52 307.968l194.112-194.176H625.792V0H1024z"  ></path></symbol><symbol id="tingwu-end" viewBox="0 0 1024 1024"><path d="M340.288 190.592v168.64a245.312 245.312 0 1 0 341.376-0.448V190.592a384 384 0 1 1-341.376 0z m235.008-82.56V577.28h-128V107.968h128z"  ></path></symbol><symbol id="tingwu-copy" viewBox="0 0 1024 1024"><path d="M692.032 0c26.88 0 52.736 9.92 71.936 27.648l229.568 212.352c19.52 18.048 30.464 42.688 30.464 68.352V896c0 33.92-14.4 66.56-40 90.496-25.6 24-60.352 37.504-96.512 37.504H136.512c-36.16 0-70.912-13.44-96.512-37.504A124.096 124.096 0 0 1 0 896V128C0 57.28 61.12 0 136.512 0h555.52zM364.8 264.128a39.232 39.232 0 0 0-26.816 10.368 34.432 34.432 0 0 0-11.136 25.152v134.144H191.168c-10.496 0-18.944 7.936-19.008 17.728v106.688c0 9.792 8.448 17.728 19.008 17.728h135.808v134.144c0 14.08 8.768 26.752 22.4 32.512 13.632 5.76 29.632 3.392 40.768-5.952l246.08-205.12 3.2-2.944a34.176 34.176 0 0 0-3.2-50.24L390.08 273.152a39.36 39.36 0 0 0-25.28-8.96l0.064-0.064zM665.6 334.912a35.776 35.776 0 0 0-43.264 6.08l-3.648 4.672a30.592 30.592 0 0 0 6.464 40.512l139.968 116.672-139.968 116.48-4.224 4.288a30.592 30.592 0 0 0 3.712 42.88c12.8 11.328 32.64 11.584 45.888 0.704l149.312-124.416 3.392-3.072 5.056-6.08a51.2 51.2 0 0 0-8.448-70.848l-149.312-124.416-4.928-3.456z"  ></path></symbol><symbol id="tingwu-bars" viewBox="0 0 1024 1024"><path d="M51.072 306.688c28.16 0 51.008 22.08 51.008 49.408v429.824c0 71.808 55.68 130.688 126.336 135.68l9.728 0.384h430.08c27.328 0 49.536 22.848 49.536 51.008 0 28.16-22.208 51.008-49.536 51.008h-464A204.16 204.16 0 0 1 0 819.968V356.16c0-27.392 22.848-49.472 51.072-49.472zM887.872 0C963.072 0 1024 60.928 1024 136v544.256a136.064 136.064 0 0 1-136.128 136.064H343.424a136.064 136.064 0 0 1-136.128-136.064V136C207.296 60.928 268.224 0 343.424 0h544.448z m-128.768 213.888l-4.736 5.12-180.544 269.44-99.904-90.88-5.696-4.928a51.072 51.072 0 0 0-72.256 70.464l4.864 5.76 139.904 131.84 5.632 4.864a51.072 51.072 0 0 0 65.28-2.88l5.12-5.44 216.704-313.728 4.352-6.208a51.008 51.008 0 0 0-78.72-63.36z"  ></path></symbol><symbol id="tingwu-folder" viewBox="0 0 1243 1024"><path d="M400.822857 24.356571l143.506286 114.761143h467.456v229.449143h172.178286l-163.181715 574.390857a67.145143 67.145143 0 0 1-58.806857 56.246857l-7.460571 0.438858H208.676571a172.105143 172.105143 0 0 1-171.812571-161.645715L36.571429 827.465143V24.356571h364.251428z m0 114.761143H151.332571V655.36l114.834286-286.72h630.930286V253.805714H544.329143L400.822857 139.190857z"  ></path></symbol><symbol id="tingwu-return-down" viewBox="0 0 1024 1024"><path d="M166.39844 0L0 129.150789l431.99595 377.020466c21.119802 18.687825 49.855533 29.247726 79.871251 29.311725a121.59886 121.59886 0 0 0 80.191248-28.86373l1.663985-1.599985L1023.9904 129.150789 862.455914 0 559.866751 266.301503l-0.127999 0.191999a74.6233 74.6233 0 0 1-94.84711-0.064L166.39844 0z"  ></path><path d="M166.39844 488.50742L0 617.658209l431.99595 377.020466c21.119802 18.687825 49.919532 29.247726 79.871251 29.311725a121.59886 121.59886 0 0 0 80.127249-28.863729l1.791983-1.599985L1023.9904 617.658209l-161.406487-129.150789-302.717162 266.365503-0.127999 0.127999a74.6233 74.6233 0 0 1-94.84711-0.064L166.39844 488.50742z"  ></path></symbol><symbol id="tingwu-hot-words" viewBox="0 0 1024 1024"><path d="M885.458824 42.164706a120.470588 120.470588 0 0 1 120.470588 120.470588v722.82353a120.470588 120.470588 0 0 1-120.470588 120.470588h-722.82353a120.470588 120.470588 0 0 1-120.470588-120.470588v-722.82353a120.470588 120.470588 0 0 1 120.470588-120.470588h722.82353z m-59.452236 180.705882H644.517647l-10.601412 0.301177A180.705882 180.705882 0 0 0 463.811765 403.576471v420.141176l0.421647 7.047529a60.235294 60.235294 0 0 0 120.048941-7.047529V403.576471l0.421647-7.04753A60.235294 60.235294 0 0 1 644.517647 343.341176h181.488941l7.04753-0.421647a60.235294 60.235294 0 0 0-7.04753-120.048941z m-388.939294-0.060235L222.870588 222.870588l-7.047529 0.421647A60.235294 60.235294 0 0 0 222.870588 343.341176h149.985883c6.023529-47.405176 29.515294-89.630118 64.210823-120.530823z"  ></path></symbol><symbol id="tingwu-home" viewBox="0 0 1024 1024"><path d="M896 339.84V896H588.8V629.12H435.2V896H242.368C179.2 896 128 844.8 128 781.632V339.84L512 128l384 211.84z"  ></path></symbol><symbol id="tingwu-participant" viewBox="0 0 1024 1024"><path d="M512 431.346087A215.689968 215.689968 0 1 1 512 0.03415a215.689968 215.689968 0 0 1 0 431.311937z m359.732947 466.045932v71.919989H152.880053v-71.987989a359.459947 359.459947 0 1 1 718.852894 0z"  ></path></symbol><symbol id="tingwu-textarea2" viewBox="0 0 1024 1024"><path d="M645.568 35.2c23.424 0 45.888 9.28 62.592 25.728l199.808 197.248c17.024 16.704 26.56 39.616 26.56 63.424v545.664A118.848 118.848 0 0 1 815.68 986.112H221.376a118.848 118.848 0 0 1-118.848-118.848V154.112c0-65.664 53.184-118.848 118.848-118.848z m66.112 598.4H325.44l-6.016 0.448a44.608 44.608 0 0 0 6.016 88.768h386.304l6.016-0.448a44.608 44.608 0 0 0-6.016-88.704zM537.408 364.672H325.44l-6.016 0.448a44.608 44.608 0 0 0 6.016 88.704h211.968l6.08-0.384a44.608 44.608 0 0 0-6.08-88.768z"  ></path></symbol><symbol id="tingwu-detele" viewBox="0 0 1024 1024"><path d="M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m191.36 240.192L512 431.552l-191.36-191.36L240.192 320.64 431.552 512l-191.36 191.36 80.448 80.448L512 592.448l191.36 191.36 80.448-80.448L592.448 512l191.36-191.36-80.448-80.448z"  ></path></symbol><symbol id="tingwu-participant2" viewBox="0 0 1024 1024"><path d="M320 277.333a192 192 0 1 0 384 0 192 192 0 0 0-384 0z m-149.333 576A85.333 85.333 0 0 0 256 938.667h597.333v-85.334c0-170.666-152.832-298.666-341.333-298.666s-341.333 128-341.333 298.666z"  ></path></symbol></svg>', function (h) {
    var l = (l = document.getElementsByTagName("script"))[l.length - 1],
      a = l.getAttribute("data-injectcss"),
      l = l.getAttribute("data-disable-injectsvg");
    if (!l) {
      var t,
        _o,
        i,
        m,
        v,
        d = function d(l, a) {
          a.parentNode.insertBefore(l, a);
        };
      if (a && !h.__iconfont__svg__cssinject__) {
        h.__iconfont__svg__cssinject__ = !0;
        try {
          document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
        } catch (l) {
          console && void 0;
        }
      }
      t = function t() {
        var l,
          a = document.createElement("div");
        a.innerHTML = h._iconfont_svg_string_3888402, (a = a.getElementsByTagName("svg")[0]) && (a.setAttribute("aria-hidden", "true"), a.style.position = "absolute", a.style.width = 0, a.style.height = 0, a.style.overflow = "hidden", a = a, (l = document.body).firstChild ? d(a, l.firstChild) : l.appendChild(a));
      }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(t, 0) : (_o = function o() {
        document.removeEventListener("DOMContentLoaded", _o, !1), t();
      }, document.addEventListener("DOMContentLoaded", _o, !1)) : document.attachEvent && (i = t, m = h.document, v = !1, p(), m.onreadystatechange = function () {
        "complete" == m.readyState && (m.onreadystatechange = null, s());
      });
    }
    function s() {
      v || (v = !0, i());
    }
    function p() {
      try {
        m.documentElement.doScroll("left");
      } catch (l) {
        return void setTimeout(p, 50);
      }
      s();
    }
  }(window);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-icon@0.3.71@@ali/tingwu-icon/dist-web/icon.js


var icon_excluded = ["type", "viewBox", "size", "color", "spin", "rotate", "className"];

var icon_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;


var Icon = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var type = props.type,
    viewBox = props.viewBox,
    size = props.size,
    color = props.color,
    spin = props.spin,
    _props$rotate = props.rotate,
    rotate = _props$rotate === void 0 ? 0 : _props$rotate,
    _props$className = props.className,
    className = _props$className === void 0 ? '' : _props$className,
    rest = (0,objectWithoutPropertiesLoose/* default */.Z)(props, icon_excluded);
  _react_18_2_0_react.useEffect(function () {
    loadIcon();
  }, []);
  return /*#__PURE__*/icon_createElement(IconContainer, (0,esm_extends/* default */.Z)({
    className: "tingwu-icon " + className,
    size: size
  }, rest), /*#__PURE__*/icon_createElement(IconSvg, {
    className: spin ? 'tingwu-icon-spin' : '',
    viewBox: viewBox,
    fill: color || 'currentColor',
    rotate: rotate,
    "aria-hidden": "true"
  }, /*#__PURE__*/icon_createElement("use", {
    xlinkHref: "#" + type
  })));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tagControlBar/tagControlBar.js

var tagControlBar_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;




/**
 * onClickNail 可选 重点
 * onClickQuestion 可选  问题
 * onClickTodo 可选 代办
 * onClickReset 可选  重置/清空
 * title 可选 显示标题
 * useHover 可选 默认不支持  是否支持hover：放大1.2倍
 * markButtonMarginLeft 可选 默认值8 按钮之间间距
 */

var TagControlBar = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var onClickNail = props.onClickNail,
    onClickQuestion = props.onClickQuestion,
    onClickTodo = props.onClickTodo,
    onClickReset = props.onClickReset,
    title = props.title,
    _props$tagControlBarS = props.tagControlBarSpaceBetween,
    tagControlBarSpaceBetween = _props$tagControlBarS === void 0 ? 8 : _props$tagControlBarS,
    useHover = props.useHover,
    pid = props.pid;
  var tagControlBars = _react_18_2_0_react.useMemo(function () {
    return [{
      bar: /*#__PURE__*/tagControlBar_createElement(tooltip, {
        title: "\u6807\u8BB0\u4E3A\u91CD\u70B9"
      }, /*#__PURE__*/tagControlBar_createElement(Icon, {
        type: 'tingwu-important',
        size: 16,
        color: '#7DDCFF',
        key: title + "Nail",
        onClick: onClickNail
      })),
      key: title + "Nail"
    }, {
      bar: /*#__PURE__*/tagControlBar_createElement(tooltip, {
        title: "\u6807\u8BB0\u4E3A\u95EE\u9898"
      }, /*#__PURE__*/tagControlBar_createElement(Icon, {
        type: 'tingwu-question',
        size: 17,
        color: '#FF9ECB',
        key: title + "Question",
        onClick: onClickQuestion
      })),
      key: title + "Question"
    }, {
      bar: /*#__PURE__*/tagControlBar_createElement(tooltip, {
        title: "\u6807\u8BB0\u4E3A\u5F85\u529E"
      }, /*#__PURE__*/tagControlBar_createElement(Icon, {
        type: 'tingwu-todo',
        size: 16,
        color: '#FFD600',
        key: title + "Todo",
        onClick: onClickTodo
      })),
      key: title + "Todo",
      tips: '标记为待办'
    }, {
      bar: /*#__PURE__*/tagControlBar_createElement(tooltip, {
        title: "\u53D6\u6D88\u6807\u8BB0"
      }, /*#__PURE__*/tagControlBar_createElement(Icon, {
        type: 'tingwu-cancel1',
        size: 16,
        color: '#CDCDD6',
        key: title + "Reset",
        style: {
          transform: 'rotate(90deg)'
        },
        onClick: onClickReset,
        "data-e2e-test-id": "trans_paragraphHead_tagReset_button"
      })),
      key: title + "Reset"
    }];
  }, [pid]);
  return /*#__PURE__*/tagControlBar_createElement(styled_Wrapper, null, title ? /*#__PURE__*/tagControlBar_createElement(Title, null, title) : null, /*#__PURE__*/tagControlBar_createElement(Content, {
    gap: tagControlBarSpaceBetween
  }, tagControlBars.map(function (tagControlBarInfo) {
    return useHover ? /*#__PURE__*/tagControlBar_createElement(TagControlBarUseHover, {
      key: "hover" + tagControlBarInfo.key,
      tagControlBar: tagControlBarInfo.bar
    }) : tagControlBarInfo.bar;
  })));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/extensions/chromeExtension/chromeContextMenu/styled.js

var chromeContextMenu_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["background:#FFFFFF;box-shadow:0 3px 6px -4px rgba(39,38,77,0.12),0 6px 16px 0 rgba(39,38,77,0.08),0 9px 28px 8px rgba(39,38,77,0.05);border-radius:8px;padding:10px 12px;width:148px;height:40px;"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/extensions/chromeExtension/chromeContextMenu/chromeContextMenu.js

var chromeContextMenu_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;


var ChromeContextMenu = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var controller = props.controller,
    _props$visible = props.visible,
    visible = _props$visible === void 0 ? true : _props$visible,
    currentSelection = props.currentSelection;
  var setParagraphColor = (0,_react_18_2_0_react.useCallback)(function (color) {
    controller.markSelectContents(currentSelection, color);
  }, [controller, currentSelection]);
  var handleClickNail = (0,_react_18_2_0_react.useCallback)(function () {
    setParagraphColor('blue');
  }, [setParagraphColor]);
  var handleClickQuestion = (0,_react_18_2_0_react.useCallback)(function () {
    setParagraphColor('red');
  }, [setParagraphColor]);
  var handleClickTodo = (0,_react_18_2_0_react.useCallback)(function () {
    setParagraphColor('yellow');
  }, [setParagraphColor]);
  var handleClickReset = (0,_react_18_2_0_react.useCallback)(function () {
    setParagraphColor(undefined);
  }, [setParagraphColor]);
  if (!visible) {
    return null;
  }
  return /*#__PURE__*/chromeContextMenu_createElement(chromeContextMenu_styled_Wrapper, null, /*#__PURE__*/chromeContextMenu_createElement(TagControlBar, {
    title: "\u6807\u8BB0\uFF1A",
    onClickNail: handleClickNail,
    onClickQuestion: handleClickQuestion,
    onClickTodo: handleClickTodo,
    onClickReset: handleClickReset,
    useHover: true
  }));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/extensions/chromeExtension/chromeHeadingExtra/chromeHeadingExtra.js

var chromeHeadingExtra_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;

var ChromeHeadingExtra = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var controller = props.controller,
    pid = props.pid,
    emptyUnfix = props.emptyUnfix,
    _props$visible = props.visible,
    visible = _props$visible === void 0 ? true : _props$visible;
  var setParagraphColor = (0,_react_18_2_0_react.useCallback)(function (color) {
    if (pid) {
      controller.setParagraphMark(pid, color);
    } else if (emptyUnfix) {
      controller.setEmptyUnfixTempParagraphMark(color);
    }
  }, [controller, pid, emptyUnfix]);
  var handleClickNail = (0,_react_18_2_0_react.useCallback)(function () {
    setParagraphColor('blue');
  }, [setParagraphColor]);
  var handleClickQuestion = (0,_react_18_2_0_react.useCallback)(function () {
    setParagraphColor('red');
  }, [setParagraphColor]);
  var handleClickTodo = (0,_react_18_2_0_react.useCallback)(function () {
    setParagraphColor('yellow');
  }, [setParagraphColor]);
  var handleClickReset = (0,_react_18_2_0_react.useCallback)(function () {
    setParagraphColor('');
  }, [setParagraphColor]);
  if (!visible) {
    return null;
  }
  return /*#__PURE__*/chromeHeadingExtra_createElement(TagControlBar, {
    title: "\u6807\u8BB0\uFF1A",
    onClickNail: handleClickNail,
    onClickQuestion: handleClickQuestion,
    onClickTodo: handleClickTodo,
    onClickReset: handleClickReset,
    useHover: true,
    pid: pid
  });
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/extensions/chromeExtension/chromeScrollToBottomForNotSticky/styled.js

var Container = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:100%;position:absolute;bottom:20px;text-align:center;pointer-events:none;display:flex;justify-content:center;"]);
var Button = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["pointer-events:all;height:40px;padding:8px 16px;background:#FFFFFF;box-shadow:0 2px 8px 0 rgba(90,68,151,0.12);border-radius:8px;z-index:200;cursor:pointer;color:#605CE5;font-size:14px;line-height:24px;display:flex;align-items:center;"]);
var IconWrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:20px;background:#605CE5;margin-right:8px;color:#fff;font-size:12px;"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/extensions/chromeExtension/chromeScrollToBottomForNotSticky/chromeScrollToBottomForNotSticky.js
var _IconWrapper;


var chromeScrollToBottomForNotSticky_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;

var ChromeScrollToBottomForNotSticky = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var onClick = props.onClick;
  return /*#__PURE__*/chromeScrollToBottomForNotSticky_createElement(Container, null, /*#__PURE__*/chromeScrollToBottomForNotSticky_createElement(Button, {
    onClick: onClick
  }, _IconWrapper || (_IconWrapper = /*#__PURE__*/chromeScrollToBottomForNotSticky_createElement(IconWrapper, null, /*#__PURE__*/chromeScrollToBottomForNotSticky_createElement(Icon, {
    type: 'tingwu-arrow-down',
    size: 14
  }))), "\u56DE\u5230\u6700\u65B0\u5185\u5BB9"));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/extensions/chromeExtension/chromeExtension.js

var _div;


var chromeExtension_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;




var ChromeExtension = /*#__PURE__*/function (_BaseExtension) {
  (0,inheritsLoose/* default */.Z)(ChromeExtension, _BaseExtension);
  function ChromeExtension() {
    return _BaseExtension.apply(this, arguments) || this;
  }
  var _proto = ChromeExtension.prototype;
  _proto.renderParagraphHeadingExtra = function renderParagraphHeadingExtra(params) {
    /**
       * isUnfix 是否为unfix区域，unfix区域默认是显示，不受hover影响
       * isDropdownShowUp 当前ChromeExtension中，划选状态和右上角的标记显示是互斥状态
       * isEditorFocus 是否是编辑状态，（fix区域）编辑状态和右上角的标记显示是互斥状态
       */
    var isMouseEnter = params.isMouseEnter,
      controller = params.controller,
      pid = params.pid,
      emptyUnfix = params.emptyUnfix,
      isUnfix = params.isUnfix,
      isDropdownShowUp = params.isDropdownShowUp,
      isEditorFocus = params.isEditorFocus,
      readonly = params.readonly,
      translateMode = params.translateMode; // 只显示译文时，不显示此内容

    if (translateMode === translateController/* TranslateMode */.R.TranslateOnly) {
      return;
    } // 只读状态下，右上角打标

    if (readonly) {
      return;
    } // 如果处于编辑状态，fix区域右上角打标是不会出现的，unfix区域不受影响

    if (isEditorFocus && !isUnfix) {
      return;
    } // mouseEnter 是否是hover状态，fix hover时候右上角出现标记，unfix区域常驻，所以unfix这个值始终为true;

    var mouseEnter = isUnfix ? true : isMouseEnter; // isDropdownShowUp 为true, 表示划选会下拉选择菜单这个时候右上角的标记消失，否则根据mouseEnter决定

    var isVisible = isDropdownShowUp ? false : mouseEnter;
    return /*#__PURE__*/chromeExtension_createElement(ChromeHeadingExtra, {
      visible: isVisible,
      controller: controller,
      pid: pid,
      emptyUnfix: emptyUnfix
    });
  };
  _proto.renderUnfixMask = function renderUnfixMask() {
    return _div || (_div = /*#__PURE__*/chromeExtension_createElement("div", null));
  };
  _proto.renderSelectionContextMenu = function renderSelectionContextMenu(params) {
    var controller = params.controller,
      currentSelection = params.currentSelection;
    return /*#__PURE__*/chromeExtension_createElement(ChromeContextMenu, {
      controller: controller,
      currentSelection: currentSelection
    });
  };
  _proto.getContextMenuSize = function getContextMenuSize() {
    return {
      width: 148,
      height: 40
    };
  };
  _proto.getIsRenderUnfixSpeakerPlaceholder = function getIsRenderUnfixSpeakerPlaceholder() {
    return false;
  };
  _proto.renderScrollToBottomButton = function renderScrollToBottomButton(params) {
    var onScrollToBottom = params.onScrollToBottom,
      isShowingLivingScrollToBottom = params.isShowingLivingScrollToBottom;
    if (!isShowingLivingScrollToBottom) {
      return null;
    }
    return /*#__PURE__*/chromeExtension_createElement(ChromeScrollToBottomForNotSticky, {
      onClick: onScrollToBottom
    });
  };
  _proto.getIsShowTranslatePopup = function getIsShowTranslatePopup() {
    return false;
  };
  return ChromeExtension;
}(BaseExtension);
// EXTERNAL MODULE: ./node_modules/_recoil@0.7.7@recoil/es/index.js + 5 modules
var _recoil_0_7_7_recoil_es = __webpack_require__(3637);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/context/tingwuContext.js

var TingwuContext = /*#__PURE__*/(0,_react_18_2_0_react.createContext)({
  getController: function getController() {
    return undefined;
  }
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/hooks/useSyncEffect.js

var useSyncEffect = function useSyncEffect(effect, deps) {
  var destructorRef = (0,_react_18_2_0_react.useRef)();
  var cleanUp = function cleanUp() {
    var destructor = destructorRef.current;
    if (destructor) {
      destructor();
    }
  };
  (0,_react_18_2_0_react.useMemo)(function () {
    cleanUp();
    destructorRef.current = effect(); // eslint-disable-next-line react-hooks/exhaustive-deps
  }, deps);
  (0,_react_18_2_0_react.useEffect)(function () {
    return cleanUp;
  }, []);
};
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/index.js + 31 modules
var dist_web_controller = __webpack_require__(7064);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/model/controllerState.js




var prefix = 'tingwu-transcription';
var isLivingModeState = (0,_recoil_0_7_7_recoil_es/* atom */.cn)({
  key: prefix + "/isLivingModeState",
  "default": false
});
var isReadonlyState = (0,_recoil_0_7_7_recoil_es/* atom */.cn)({
  key: prefix + "/isReadonlyState",
  "default": false
}); //
// double state not a mistake

var transcriptingStateState = (0,_recoil_0_7_7_recoil_es/* atom */.cn)({
  key: prefix + "/transcriptingState",
  "default": dist_web_controller/* TranscriptingState */.FR.Disabled
});
var unfixSentenceState = (0,_recoil_0_7_7_recoil_es/* atom */.cn)({
  key: prefix + "/unfixSentence",
  "default": ''
});
var isHasUnfixParagraphState = (0,_recoil_0_7_7_recoil_es/* atom */.cn)({
  key: prefix + "/isHasUnfixParagraphState",
  "default": false
});
var translateModeState = (0,_recoil_0_7_7_recoil_es/* atom */.cn)({
  key: prefix + "/translateModeState",
  "default": translateController/* TranslateMode */.R.Disabled
});
var unfixPidState = (0,_recoil_0_7_7_recoil_es/* atom */.cn)({
  key: prefix + "/unfixPidState",
  "default": undefined
});
var isUnfixEmptyContentState = (0,_recoil_0_7_7_recoil_es/* atom */.cn)({
  key: prefix + "/isUnfixEmptyContentState",
  "default": true
}); // 是否转写中和将要转写结束

var isRoughlyTranscripingState = (0,_recoil_0_7_7_recoil_es/* selector */.nZ)({
  key: prefix + "/roughlyTranscripingState",
  get: function get(_ref) {
    var _get = _ref.get;
    var transcriptingState = _get(transcriptingStateState);
    return transcriptingState === dist_web_controller/* TranscriptingState */.FR.Enabled || transcriptingState === dist_web_controller/* TranscriptingState */.FR.Disabing;
  }
});
var isRenderUnfixParagraphState = (0,_recoil_0_7_7_recoil_es/* selector */.nZ)({
  key: prefix + "/isRenderUnfixParagraphState",
  get: function get(_ref2) {
    var _get2 = _ref2.get;
    var transcriptingState = _get2(transcriptingStateState);
    var isUnfixEmptyContent = _get2(isUnfixEmptyContentState);
    return transcriptingState === dist_web_controller/* TranscriptingState */.FR.Enabled || transcriptingState === dist_web_controller/* TranscriptingState */.FR.Disabing && !isUnfixEmptyContent;
  }
});
var agendasState = (0,_recoil_0_7_7_recoil_es/* atom */.cn)({
  key: prefix + "/agendasState",
  "default": []
});
var useConnectStateWithController = function useConnectStateWithController(controller) {
  var _useRecoilState = (0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(isLivingModeState),
    isLivingMode = _useRecoilState[0],
    setIsLivingMode = _useRecoilState[1];
  var _useRecoilState2 = (0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(transcriptingStateState),
    transcriptingState = _useRecoilState2[0],
    setTranscriptingState = _useRecoilState2[1];
  var _useRecoilState3 = (0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(unfixSentenceState),
    unfixSentence = _useRecoilState3[0],
    setUnfixSentence = _useRecoilState3[1];
  var setIsHasUnfixParagraph = (0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(isHasUnfixParagraphState);
  var setTranslateMode = (0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(translateModeState);
  var setIsReadonly = (0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(isReadonlyState);
  var setAgendas = (0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(agendasState);
  var setIsUnfixEmptyContentState = (0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(isUnfixEmptyContentState);
  var _useRecoilState4 = (0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(unfixPidState),
    unfixPid = _useRecoilState4[0],
    setUnfixPid = _useRecoilState4[1];
  useSyncEffect(function () {
    setIsLivingMode(controller.getLivingMode());
    return controller.on('livingModeChange', function (_ref3) {
      var livingMode = _ref3.livingMode;
      setIsLivingMode(livingMode);
    });
  }, []);
  useSyncEffect(function () {
    setTranscriptingState(controller.getTranscriptingState());
    return controller.on('transcriptingStateChange', function (_ref4) {
      var tState = _ref4.transcriptingState;
      setTranscriptingState(tState);
    });
  }, [isLivingMode]);
  useSyncEffect(function () {
    setUnfixSentence(controller.getUnfixContent());
    return controller.on('unfixContentChange', function (_ref5) {
      var unfixContent = _ref5.unfixContent;
      setUnfixSentence(unfixContent);
    });
  }, []);
  useSyncEffect(function () {
    return controller.on('paragraphChangeSpecific', function () {
      var localUnfixPid = controller.getUnfixPid();
      setUnfixPid(localUnfixPid);
      var isHasUnfixParagraph = localUnfixPid !== null;
      setIsHasUnfixParagraph(isHasUnfixParagraph);
    });
  }, [isLivingMode, transcriptingState]);
  (0,_react_18_2_0_react.useEffect)(function () {
    var fixSentence = unfixPid ? controller.getTextContent(unfixPid) : '';
    setIsUnfixEmptyContentState(!(fixSentence || unfixSentence));
  }, [controller, unfixPid, unfixSentence, setIsUnfixEmptyContentState]);
  useSyncEffect(function () {
    setTranslateMode(controller.getTranslateMode());
    return controller.on('translateModeChange', function (_ref6) {
      var translateMode = _ref6.translateMode;
      setTranslateMode(translateMode);
    });
  }, []);
  useSyncEffect(function () {
    setIsReadonly(controller.getReadonly());
    return controller.on('readonlyChange', function (_ref7) {
      var readonly = _ref7.readonly;
      setIsReadonly(readonly);
    });
  }, []);
  useSyncEffect(function () {
    setAgendas(controller.getAgendas());
    return controller.on('agendasChange', function (_ref8) {
      var agendas = _ref8.agendas;
      setAgendas(agendas);
    });
  }, []);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/provider/connectController.js


var ConnectController = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var controller = props.controller;
  useConnectStateWithController(controller);
  return null;
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/provider/provider.js

var provider_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;



var Provider = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var controller = props.controller,
    _props$enableRecoilRo = props.enableRecoilRoot,
    enableRecoilRoot = _props$enableRecoilRo === void 0 ? true : _props$enableRecoilRo,
    children = props.children;
  var getController = (0,_react_18_2_0_react.useCallback)(function () {
    return controller;
  }, [controller]);
  var tingwuContextValue = (0,_react_18_2_0_react.useMemo)(function () {
    return {
      getController: getController
    };
  }, [getController]);
  var node = /*#__PURE__*/provider_createElement(TingwuContext.Provider, {
    value: tingwuContextValue
  }, /*#__PURE__*/provider_createElement(ConnectController, {
    controller: controller
  }), children);
  if (enableRecoilRoot) {
    return /*#__PURE__*/provider_createElement(_recoil_0_7_7_recoil_es/* RecoilRoot */.Wh, null, node);
  }
  return node;
});
;// CONCATENATED MODULE: ./node_modules/_use-force-update@1.0.11@use-force-update/dist/esm/index.js


/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

function __read(o, n) {
  var m = typeof Symbol === "function" && o[Symbol.iterator];
  if (!m) return o;
  var i = m.call(o),
    r,
    ar = [],
    e;
  try {
    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  } catch (error) {
    e = {
      error: error
    };
  } finally {
    try {
      if (r && !r.done && (m = i["return"])) m.call(i);
    } finally {
      if (e) throw e.error;
    }
  }
  return ar;
}
var createNewObject = function createNewObject() {
  return {};
};
function useForceUpdate() {
  var _a = __read((0,_react_18_2_0_react.useState)(createNewObject), 2),
    setValue = _a[1];
  return (0,_react_18_2_0_react.useCallback)(function () {
    setValue(createNewObject());
  }, []);
}

;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-env@0.3.71@@ali/tingwu-env/dist-web/env.js
var isMacOS = function () {
  if (typeof navigator !== 'undefined') return navigator.platform.includes('Mac');
  if (typeof process !== 'undefined') return process.platform.includes('darwin');
  return false;
}();
var forTest = function forTest() {
  return 1;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/model/viewedWord.js

var generateViewedWords = function generateViewedWords(words, foundSelections, activeSelection, playingWord, isTranslate, agendaHightlightSids, qnaSids, activeQnaSids) {
  if (isTranslate === void 0) {
    isTranslate = false;
  }
  if (agendaHightlightSids === void 0) {
    agendaHightlightSids = [];
  }
  if (qnaSids === void 0) {
    qnaSids = [];
  }
  if (activeQnaSids === void 0) {
    activeQnaSids = [];
  }
  var sels = (foundSelections == null ? void 0 : foundSelections.slice()) || [];
  var firstSel = sels.shift();
  var offset = 0;
  var extParams = {};
  return words.map(function (word) {
    var textLength = word.text.length;
    var nextOffset = textLength + offset;
    var viewedWord = (0,esm_extends/* default */.Z)({}, word, extParams, {
      searchedOffsets: []
    });
    if (agendaHightlightSids.includes(word.sentenceId)) {
      viewedWord.isAgendaHighlight = true;
    }
    if (qnaSids.includes(word.sentenceId)) {
      viewedWord.isQna = true;
    }
    if (activeQnaSids.includes(word.sentenceId)) {
      viewedWord.isQnaActive = true;
    }
    if (isTranslate) {
      viewedWord.isTranslate = true;
    }
    if (playingWord) {
      if (isTranslate) {
        if (word.sentenceId === playingWord.sentenceId) {
          viewedWord.isPlaying = true;
        } // 翻译模式，播放开始就认为是正在播放中

        if (Number(word.sentenceId) <= Number(playingWord.sentenceId)) {
          viewedWord.isPlayed = true;
        }
      } else {
        if (word.wid === playingWord.wid) {
          viewedWord.isPlaying = true;
        }
        if (word.endTime <= playingWord.endTime) {
          viewedWord.isPlayed = true;
        }
      }
    }
    while (true) {
      if (!firstSel) {
        break;
      }
      var _firstSel = firstSel,
        startOffset = _firstSel.startOffset,
        endOffset = _firstSel.endOffset;
      var isActiveSelection = firstSel === activeSelection;
      if (startOffset <= offset) {
        if (endOffset < nextOffset) {
          viewedWord.searchedOffsets.push({
            startOffset: 0,
            endOffset: endOffset - offset,
            isActive: isActiveSelection
          });
          firstSel = sels.shift();
          continue;
        } else {
          viewedWord.searchedOffsets.push({
            startOffset: 0,
            endOffset: textLength,
            isActive: isActiveSelection
          });
          if (endOffset === nextOffset) {
            firstSel = sels.shift();
          }
          break;
        }
      } else if (startOffset < nextOffset) {
        if (endOffset >= nextOffset) {
          viewedWord.searchedOffsets.push({
            startOffset: startOffset - offset,
            endOffset: textLength,
            isActive: isActiveSelection
          });
          if (endOffset === nextOffset) {
            firstSel = sels.shift();
          }
          break;
        } else {
          viewedWord.searchedOffsets.push({
            startOffset: startOffset - offset,
            endOffset: endOffset - offset,
            isActive: isActiveSelection
          });
          firstSel = sels.shift();
          continue;
        }
      } else {
        break;
      }
    }
    offset = nextOffset;
    return viewedWord;
  });
};
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/browser.js
var browser = __webpack_require__(5629);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/selection.js

var getSelection = function getSelection() {
  return window.getSelection();
};
var selection_getOffset = function getOffset(element, rangeContainer, pos, offset) {
  if (offset === void 0) {
    offset = 0;
  }
  if (element === rangeContainer) {
    return offset + pos;
  }
  var childs = element.childNodes;
  var length = childs.length;
  if (length === 0) {
    return offset + pos;
  }
  var _offset = offset;
  for (var i = 0; i < length; i++) {
    var _child$textContent;
    var child = childs[i];
    var textLength = (child == null ? void 0 : (_child$textContent = child.textContent) == null ? void 0 : _child$textContent.length) || 0;
    if (child.contains(rangeContainer)) {
      return getOffset(child, rangeContainer, pos, _offset);
    }
    _offset += textLength;
  }
  console.error('range not found');
  return _offset + pos;
};
var getFirstRange = function getFirstRange(target) {
  var selection = getSelection();
  if (!selection) {
    return;
  }
  if (selection.rangeCount === 0) {
    return null;
  }
  var range = selection.getRangeAt(0);
  if (range) {
    if (!target.contains(range.startContainer) || !target.contains(range.endContainer)) {
      return null;
    }
    if (range.startContainer === target) {
      var priorityEnd = 0;
      if ((0,browser/* isFirefox */.vU)()) {
        var _target$innerText;

        // @ts-ignore
        priorityEnd = target == null ? void 0 : (_target$innerText = target.innerText) == null ? void 0 : _target$innerText.length;
      }
      return {
        range: range,
        startOffset: range.startOffset,
        endOffset: priorityEnd || range.endOffset
      };
    }
    var startOffset = selection_getOffset(target, range.startContainer, range.startOffset);
    var endOffset = selection_getOffset(target, range.endContainer, range.endOffset);
    return {
      range: range,
      startOffset: startOffset,
      endOffset: endOffset
    };
  }
  return null;
};
var isActiveElement = function isActiveElement(element) {
  return element && document.activeElement === element;
};
var foundElementByPos = function foundElementByPos(element, pos, offset, isLast, callback) {
  var childs = element.childNodes;
  var length = childs.length;
  var _offset = offset;
  for (var i = 0; i < length; i++) {
    var _isLast = i === length - 1;
    var child = childs[i];
    if (!child || child.textContent == null) {
      continue;
    }
    if (isLast && _isLast ? pos <= _offset + child.textContent.length : pos < _offset + child.textContent.length) {
      if (child.nodeName === 'SPAN') {
        if (child.textContent.length === 0 && child.childNodes.length === 0) {
          callback(child, pos - _offset);
        } else {
          foundElementByPos(child, pos, _offset, isLast && _isLast, callback);
        }
      } else {
        callback(child, pos - _offset);
      }
      break;
    } else {
      _offset += child.textContent.length;
      continue;
    }
  }
};
var clearRange = function clearRange() {
  var selection = window.getSelection();
  selection == null ? void 0 : selection.removeAllRanges();
};
var setRange = function setRange(element, startOffset, endOffset) {
  // need update?
  // const firstRange = getFirstRange(element);
  // if (firstRange?.startOffset === startOffset && firstRange?.endOffset === endOffset) {
  //   return;
  // }
  // reset new range
  var range = new Range();
  var length = element.childNodes.length;
  try {
    var _element$firstChild;
    if (length === 0) {
      range.setStart(element, 0);
      range.setEnd(element, 0);
    } else if (length === 1 && ((_element$firstChild = element.firstChild) == null ? void 0 : _element$firstChild.nodeType) === Node.TEXT_NODE) {
      range.setStart(element, startOffset);
      range.setEnd(element, endOffset);
    } else {
      foundElementByPos(element, startOffset, 0, true, function (found, pos) {
        range.setStart(found, pos);
      });
      foundElementByPos(element, endOffset, 0, true, function (found, pos) {
        range.setEnd(found, pos);
      });
    }
    var selection = window.getSelection();
    selection == null ? void 0 : selection.removeAllRanges();
    selection == null ? void 0 : selection.addRange(range); // todo: 临时解决setRange报错导致白屏问题，在sdk开发环境无法复现，后续和测试沟通如何复现问题

    /* eslint-disable alidocs/catch-call-function */
  } catch (error) {
    console.error(error);
  }
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/constants.js
var KEY_CODES;
(function (KEY_CODES) {
  KEY_CODES[KEY_CODES["Backspace"] = 8] = "Backspace";
  KEY_CODES[KEY_CODES["Tab"] = 9] = "Tab";
  KEY_CODES[KEY_CODES["Enter"] = 13] = "Enter";
  KEY_CODES[KEY_CODES["Shift"] = 16] = "Shift";
  KEY_CODES[KEY_CODES["Ctrl"] = 17] = "Ctrl";
  KEY_CODES[KEY_CODES["Alt"] = 18] = "Alt";
  KEY_CODES[KEY_CODES["PauseBreak"] = 19] = "PauseBreak";
  KEY_CODES[KEY_CODES["CapsLock"] = 20] = "CapsLock";
  KEY_CODES[KEY_CODES["Escape"] = 27] = "Escape";
  KEY_CODES[KEY_CODES["Space"] = 32] = "Space";
  KEY_CODES[KEY_CODES["PageUp"] = 33] = "PageUp";
  KEY_CODES[KEY_CODES["PageDown"] = 34] = "PageDown";
  KEY_CODES[KEY_CODES["End"] = 35] = "End";
  KEY_CODES[KEY_CODES["Home"] = 36] = "Home";
  KEY_CODES[KEY_CODES["LeftArrow"] = 37] = "LeftArrow";
  KEY_CODES[KEY_CODES["UpArrow"] = 38] = "UpArrow";
  KEY_CODES[KEY_CODES["RightArrow"] = 39] = "RightArrow";
  KEY_CODES[KEY_CODES["DownArrow"] = 40] = "DownArrow";
  KEY_CODES[KEY_CODES["Insert"] = 45] = "Insert";
  KEY_CODES[KEY_CODES["Delete"] = 46] = "Delete";
  KEY_CODES[KEY_CODES["Zero"] = 48] = "Zero";
  KEY_CODES[KEY_CODES["ClosedParen"] = 48] = "ClosedParen";
  KEY_CODES[KEY_CODES["One"] = 49] = "One";
  KEY_CODES[KEY_CODES["ExclamationMark"] = 49] = "ExclamationMark";
  KEY_CODES[KEY_CODES["Two"] = 50] = "Two";
  KEY_CODES[KEY_CODES["AtSign"] = 50] = "AtSign";
  KEY_CODES[KEY_CODES["Three"] = 51] = "Three";
  KEY_CODES[KEY_CODES["PoundSign"] = 51] = "PoundSign";
  KEY_CODES[KEY_CODES["Hash"] = 51] = "Hash";
  KEY_CODES[KEY_CODES["Four"] = 52] = "Four";
  KEY_CODES[KEY_CODES["DollarSign"] = 52] = "DollarSign";
  KEY_CODES[KEY_CODES["Five"] = 53] = "Five";
  KEY_CODES[KEY_CODES["PercentSign"] = 53] = "PercentSign";
  KEY_CODES[KEY_CODES["Six"] = 54] = "Six";
  KEY_CODES[KEY_CODES["Caret"] = 54] = "Caret";
  KEY_CODES[KEY_CODES["Hat"] = 54] = "Hat";
  KEY_CODES[KEY_CODES["Seven"] = 55] = "Seven";
  KEY_CODES[KEY_CODES["Ampersand"] = 55] = "Ampersand";
  KEY_CODES[KEY_CODES["Eight"] = 56] = "Eight";
  KEY_CODES[KEY_CODES["Star"] = 56] = "Star";
  KEY_CODES[KEY_CODES["Asterik"] = 56] = "Asterik";
  KEY_CODES[KEY_CODES["Nine"] = 57] = "Nine";
  KEY_CODES[KEY_CODES["OpenParen"] = 57] = "OpenParen";
  KEY_CODES[KEY_CODES["A"] = 65] = "A";
  KEY_CODES[KEY_CODES["B"] = 66] = "B";
  KEY_CODES[KEY_CODES["C"] = 67] = "C";
  KEY_CODES[KEY_CODES["D"] = 68] = "D";
  KEY_CODES[KEY_CODES["E"] = 69] = "E";
  KEY_CODES[KEY_CODES["F"] = 70] = "F";
  KEY_CODES[KEY_CODES["G"] = 71] = "G";
  KEY_CODES[KEY_CODES["H"] = 72] = "H";
  KEY_CODES[KEY_CODES["I"] = 73] = "I";
  KEY_CODES[KEY_CODES["J"] = 74] = "J";
  KEY_CODES[KEY_CODES["K"] = 75] = "K";
  KEY_CODES[KEY_CODES["L"] = 76] = "L";
  KEY_CODES[KEY_CODES["M"] = 77] = "M";
  KEY_CODES[KEY_CODES["N"] = 78] = "N";
  KEY_CODES[KEY_CODES["O"] = 79] = "O";
  KEY_CODES[KEY_CODES["P"] = 80] = "P";
  KEY_CODES[KEY_CODES["Q"] = 81] = "Q";
  KEY_CODES[KEY_CODES["R"] = 82] = "R";
  KEY_CODES[KEY_CODES["S"] = 83] = "S";
  KEY_CODES[KEY_CODES["T"] = 84] = "T";
  KEY_CODES[KEY_CODES["U"] = 85] = "U";
  KEY_CODES[KEY_CODES["V"] = 86] = "V";
  KEY_CODES[KEY_CODES["W"] = 87] = "W";
  KEY_CODES[KEY_CODES["X"] = 88] = "X";
  KEY_CODES[KEY_CODES["Y"] = 89] = "Y";
  KEY_CODES[KEY_CODES["Z"] = 90] = "Z";
  KEY_CODES[KEY_CODES["LeftWindowKey"] = 91] = "LeftWindowKey";
  KEY_CODES[KEY_CODES["RightWindowKey"] = 92] = "RightWindowKey";
  KEY_CODES[KEY_CODES["SelectKey"] = 93] = "SelectKey";
  KEY_CODES[KEY_CODES["Numpad0"] = 96] = "Numpad0";
  KEY_CODES[KEY_CODES["Numpad1"] = 97] = "Numpad1";
  KEY_CODES[KEY_CODES["Numpad2"] = 98] = "Numpad2";
  KEY_CODES[KEY_CODES["Numpad3"] = 99] = "Numpad3";
  KEY_CODES[KEY_CODES["Numpad4"] = 100] = "Numpad4";
  KEY_CODES[KEY_CODES["Numpad5"] = 101] = "Numpad5";
  KEY_CODES[KEY_CODES["Numpad6"] = 102] = "Numpad6";
  KEY_CODES[KEY_CODES["Numpad7"] = 103] = "Numpad7";
  KEY_CODES[KEY_CODES["Numpad8"] = 104] = "Numpad8";
  KEY_CODES[KEY_CODES["Numpad9"] = 105] = "Numpad9";
  KEY_CODES[KEY_CODES["Multiply"] = 106] = "Multiply";
  KEY_CODES[KEY_CODES["Add"] = 107] = "Add";
  KEY_CODES[KEY_CODES["Subtract"] = 109] = "Subtract";
  KEY_CODES[KEY_CODES["DecimalPoint"] = 110] = "DecimalPoint";
  KEY_CODES[KEY_CODES["Divide"] = 111] = "Divide";
  KEY_CODES[KEY_CODES["F1"] = 112] = "F1";
  KEY_CODES[KEY_CODES["F2"] = 113] = "F2";
  KEY_CODES[KEY_CODES["F3"] = 114] = "F3";
  KEY_CODES[KEY_CODES["F4"] = 115] = "F4";
  KEY_CODES[KEY_CODES["F5"] = 116] = "F5";
  KEY_CODES[KEY_CODES["F6"] = 117] = "F6";
  KEY_CODES[KEY_CODES["F7"] = 118] = "F7";
  KEY_CODES[KEY_CODES["F8"] = 119] = "F8";
  KEY_CODES[KEY_CODES["F9"] = 120] = "F9";
  KEY_CODES[KEY_CODES["F10"] = 121] = "F10";
  KEY_CODES[KEY_CODES["F11"] = 122] = "F11";
  KEY_CODES[KEY_CODES["F12"] = 123] = "F12";
  KEY_CODES[KEY_CODES["NumLock"] = 144] = "NumLock";
  KEY_CODES[KEY_CODES["ScrollLock"] = 145] = "ScrollLock";
  KEY_CODES[KEY_CODES["SemiColon"] = 186] = "SemiColon";
  KEY_CODES[KEY_CODES["Equals"] = 187] = "Equals";
  KEY_CODES[KEY_CODES["Comma"] = 188] = "Comma";
  KEY_CODES[KEY_CODES["Dash"] = 189] = "Dash";
  KEY_CODES[KEY_CODES["Period"] = 190] = "Period";
  KEY_CODES[KEY_CODES["UnderScore"] = 189] = "UnderScore";
  KEY_CODES[KEY_CODES["PlusSign"] = 187] = "PlusSign";
  KEY_CODES[KEY_CODES["ForwardSlash"] = 191] = "ForwardSlash";
  KEY_CODES[KEY_CODES["Tilde"] = 192] = "Tilde";
  KEY_CODES[KEY_CODES["GraveAccent"] = 192] = "GraveAccent";
  KEY_CODES[KEY_CODES["OpenBracket"] = 219] = "OpenBracket";
  KEY_CODES[KEY_CODES["Backslash"] = 220] = "Backslash";
  KEY_CODES[KEY_CODES["ClosedBracket"] = 221] = "ClosedBracket";
  KEY_CODES[KEY_CODES["Quote"] = 222] = "Quote";
})(KEY_CODES || (KEY_CODES = {}));
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/keyboard.js

var isEnterHotkey = function isEnterHotkey(keyCode) {
  return keyCode === KEY_CODES.Enter;
};
var isDeleteHotkey = function isDeleteHotkey(keyCode) {
  return keyCode === KEY_CODES.Delete;
};
var isBackspaceHotkey = function isBackspaceHotkey(keyCode) {
  return keyCode === KEY_CODES.Backspace;
};
var isSpaceHotKey = function isSpaceHotKey(keyCode) {
  return keyCode === KEY_CODES.Space;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/config/index.js
var config = {
  theme: {
    transcription: {
      backgroundColor: '#F8FBFD'
    },
    paragraph: {
      heading: {
        speakerAvatar: {
          width: 24,
          height: 24,
          borderRadius: 24
        },
        speaker: {
          fontSize: 12,
          lineHeight: 20,
          color: 'rgba(39,38,77,0.65)'
        }
      },
      paddingVertical: 16,
      paddingHorizontal: 24,
      borderRadius: 8,
      backgroundColor: '#FFFFFF',
      marginTop: 0,
      marginBottom: 20
    },
    textEditor: {
      fontSize: 14,
      lineHeight: 24,
      color: 'rgba(39,38,77,0.85)'
    }
  }
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/wordsStyled/styled.js


var textEditor = config.theme.textEditor;
var WordsStyled = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div([".qna{background-color:#F8CDC1;color:", ";}.word-blue{background-color:#9AE4FF;color:", ";}.word-yellow{background-color:#F9FA6F;color:", ";}.word-red{background-color:#F8BAD7;color:", ";}.searched{background-color:#FFDFA4;color:", ";}.actived{background-color:rgba(159,156,238,0.60);color:", ";}.strong{font-weight:bold;}", " ", " .word-blue,.word-yellow,.word-red,.qna{&.played{color:rgba(39,38,77,0.85);}}"], textEditor.color, textEditor.color, textEditor.color, textEditor.color, textEditor.color, function (props) {
  return props.isHighlight ? '#FFFFFF' : textEditor.color;
}, function (props) {
  return props.isHighlight && (0,styled_components_browser_esm/* css */.iv)([".played{color:rgba(255,255,255,1);}"]);
}, function (props) {
  return !props.isHighlight && (0,styled_components_browser_esm/* css */.iv)([".played{color:rgba(39,38,77,0.85);}"]);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/textEditor/styled.js



var styled_textEditor = config.theme.textEditor;
var textEditor_styled_Wrapper = /*#__PURE__*/(0,styled_components_browser_esm/* default */.ZP)(WordsStyled)(["display:", ";min-width:20px;overflow-wrap:anywhere;outline:none;font-size:", "px;line-height:", "px;min-height:", "px;font-family:", ";user-select:text;cursor:", ";white-space:pre-wrap;span{user-select:text;}span::selection{background-color:rgba(159,156,238,0.60);color:", ";}span::-moz-selection{background-color:rgba(159,156,238,0.60);color:", ";}", ""], function (props) {
  if (!props.isUnfix) {
    return 'block';
  }
  return props.isEmptyContent ? 'inline-block' : 'inline';
}, styled_textEditor.fontSize, styled_textEditor.lineHeight, styled_textEditor.lineHeight, function (props) {
  return props.theme.editorFontFamily;
}, function (props) {
  return props.readonly ? 'default' : 'text';
}, function (props) {
  return props.isHighlight ? '#FFFFFF' : 'rgba(39,38,77,0.85)';
}, function (props) {
  return props.isHighlight ? '#FFFFFF' : 'rgba(39,38,77,0.85)';
}, function (props) {
  return props.isPlaying && (0,styled_components_browser_esm/* css */.iv)([".word-blue,.word-yellow,.word-red,.qna{color:rgba(39,38,77,0.35);&.played{color:rgba(39,38,77,0.85);}}"]);
});
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Stack.js + 5 modules
var _Stack = __webpack_require__(3306);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_SetCache.js + 2 modules
var _SetCache = __webpack_require__(8668);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arraySome.js
/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */
function arraySome(array, predicate) {
  var index = -1,
    length = array == null ? 0 : array.length;
  while (++index < length) {
    if (predicate(array[index], index, array)) {
      return true;
    }
  }
  return false;
}
/* harmony default export */ var _arraySome = (arraySome);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cacheHas.js
var _cacheHas = __webpack_require__(4117);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_equalArrays.js




/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
  COMPARE_UNORDERED_FLAG = 2;

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
    arrLength = array.length,
    othLength = other.length;
  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
    return false;
  }
  // Check that cyclic values are equal.
  var arrStacked = stack.get(array);
  var othStacked = stack.get(other);
  if (arrStacked && othStacked) {
    return arrStacked == other && othStacked == array;
  }
  var index = -1,
    result = true,
    seen = bitmask & COMPARE_UNORDERED_FLAG ? new _SetCache/* default */.Z() : undefined;
  stack.set(array, other);
  stack.set(other, array);

  // Ignore non-index properties.
  while (++index < arrLength) {
    var arrValue = array[index],
      othValue = other[index];
    if (customizer) {
      var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
    }
    if (compared !== undefined) {
      if (compared) {
        continue;
      }
      result = false;
      break;
    }
    // Recursively compare arrays (susceptible to call stack limits).
    if (seen) {
      if (!_arraySome(other, function (othValue, othIndex) {
        if (!(0,_cacheHas/* default */.Z)(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
          return seen.push(othIndex);
        }
      })) {
        result = false;
        break;
      }
    } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
      result = false;
      break;
    }
  }
  stack['delete'](array);
  stack['delete'](other);
  return result;
}
/* harmony default export */ var _equalArrays = (equalArrays);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Symbol.js
var _Symbol = __webpack_require__(7462);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Uint8Array.js
var _Uint8Array = __webpack_require__(2832);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/eq.js
var eq = __webpack_require__(9522);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapToArray.js
/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */
function mapToArray(map) {
  var index = -1,
    result = Array(map.size);
  map.forEach(function (value, key) {
    result[++index] = [key, value];
  });
  return result;
}
/* harmony default export */ var _mapToArray = (mapToArray);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_setToArray.js
var _setToArray = __webpack_require__(94);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_equalByTag.js







/** Used to compose bitmasks for value comparisons. */
var _equalByTag_COMPARE_PARTIAL_FLAG = 1,
  _equalByTag_COMPARE_UNORDERED_FLAG = 2;

/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
  dateTag = '[object Date]',
  errorTag = '[object Error]',
  mapTag = '[object Map]',
  numberTag = '[object Number]',
  regexpTag = '[object RegExp]',
  setTag = '[object Set]',
  stringTag = '[object String]',
  symbolTag = '[object Symbol]';
var arrayBufferTag = '[object ArrayBuffer]',
  dataViewTag = '[object DataView]';

/** Used to convert symbols to primitives and strings. */
var symbolProto = _Symbol/* default */.Z ? _Symbol/* default */.Z.prototype : undefined,
  symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  switch (tag) {
    case dataViewTag:
      if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
        return false;
      }
      object = object.buffer;
      other = other.buffer;
    case arrayBufferTag:
      if (object.byteLength != other.byteLength || !equalFunc(new _Uint8Array/* default */.Z(object), new _Uint8Array/* default */.Z(other))) {
        return false;
      }
      return true;
    case boolTag:
    case dateTag:
    case numberTag:
      // Coerce booleans to `1` or `0` and dates to milliseconds.
      // Invalid dates are coerced to `NaN`.
      return (0,eq/* default */.Z)(+object, +other);
    case errorTag:
      return object.name == other.name && object.message == other.message;
    case regexpTag:
    case stringTag:
      // Coerce regexes to strings and treat strings, primitives and objects,
      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
      // for more details.
      return object == other + '';
    case mapTag:
      var convert = _mapToArray;
    case setTag:
      var isPartial = bitmask & _equalByTag_COMPARE_PARTIAL_FLAG;
      convert || (convert = _setToArray/* default */.Z);
      if (object.size != other.size && !isPartial) {
        return false;
      }
      // Assume cyclic values are equal.
      var stacked = stack.get(object);
      if (stacked) {
        return stacked == other;
      }
      bitmask |= _equalByTag_COMPARE_UNORDERED_FLAG;

      // Recursively compare objects (susceptible to call stack limits).
      stack.set(object, other);
      var result = _equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
      stack['delete'](object);
      return result;
    case symbolTag:
      if (symbolValueOf) {
        return symbolValueOf.call(object) == symbolValueOf.call(other);
      }
  }
  return false;
}
/* harmony default export */ var _equalByTag = (equalByTag);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getAllKeys.js
var _getAllKeys = __webpack_require__(1697);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_equalObjects.js


/** Used to compose bitmasks for value comparisons. */
var _equalObjects_COMPARE_PARTIAL_FLAG = 1;

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var _equalObjects_hasOwnProperty = objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & _equalObjects_COMPARE_PARTIAL_FLAG,
    objProps = (0,_getAllKeys/* default */.Z)(object),
    objLength = objProps.length,
    othProps = (0,_getAllKeys/* default */.Z)(other),
    othLength = othProps.length;
  if (objLength != othLength && !isPartial) {
    return false;
  }
  var index = objLength;
  while (index--) {
    var key = objProps[index];
    if (!(isPartial ? key in other : _equalObjects_hasOwnProperty.call(other, key))) {
      return false;
    }
  }
  // Check that cyclic values are equal.
  var objStacked = stack.get(object);
  var othStacked = stack.get(other);
  if (objStacked && othStacked) {
    return objStacked == other && othStacked == object;
  }
  var result = true;
  stack.set(object, other);
  stack.set(other, object);
  var skipCtor = isPartial;
  while (++index < objLength) {
    key = objProps[index];
    var objValue = object[key],
      othValue = other[key];
    if (customizer) {
      var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
    }
    // Recursively compare objects (susceptible to call stack limits).
    if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
      result = false;
      break;
    }
    skipCtor || (skipCtor = key == 'constructor');
  }
  if (result && !skipCtor) {
    var objCtor = object.constructor,
      othCtor = other.constructor;

    // Non `Object` object instances with different constructors are not equal.
    if (objCtor != othCtor && 'constructor' in object && 'constructor' in other && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {
      result = false;
    }
  }
  stack['delete'](object);
  stack['delete'](other);
  return result;
}
/* harmony default export */ var _equalObjects = (equalObjects);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getTag.js + 3 modules
var _getTag = __webpack_require__(5063);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js
var isArray = __webpack_require__(4263);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js + 1 modules
var isBuffer = __webpack_require__(9131);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js + 1 modules
var isTypedArray = __webpack_require__(6957);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsEqualDeep.js









/** Used to compose bitmasks for value comparisons. */
var _baseIsEqualDeep_COMPARE_PARTIAL_FLAG = 1;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
  arrayTag = '[object Array]',
  objectTag = '[object Object]';

/** Used for built-in method references. */
var _baseIsEqualDeep_objectProto = Object.prototype;

/** Used to check objects for own properties. */
var _baseIsEqualDeep_hasOwnProperty = _baseIsEqualDeep_objectProto.hasOwnProperty;

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  var objIsArr = (0,isArray/* default */.Z)(object),
    othIsArr = (0,isArray/* default */.Z)(other),
    objTag = objIsArr ? arrayTag : (0,_getTag/* default */.Z)(object),
    othTag = othIsArr ? arrayTag : (0,_getTag/* default */.Z)(other);
  objTag = objTag == argsTag ? objectTag : objTag;
  othTag = othTag == argsTag ? objectTag : othTag;
  var objIsObj = objTag == objectTag,
    othIsObj = othTag == objectTag,
    isSameTag = objTag == othTag;
  if (isSameTag && (0,isBuffer/* default */.Z)(object)) {
    if (!(0,isBuffer/* default */.Z)(other)) {
      return false;
    }
    objIsArr = true;
    objIsObj = false;
  }
  if (isSameTag && !objIsObj) {
    stack || (stack = new _Stack/* default */.Z());
    return objIsArr || (0,isTypedArray/* default */.Z)(object) ? _equalArrays(object, other, bitmask, customizer, equalFunc, stack) : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  }
  if (!(bitmask & _baseIsEqualDeep_COMPARE_PARTIAL_FLAG)) {
    var objIsWrapped = objIsObj && _baseIsEqualDeep_hasOwnProperty.call(object, '__wrapped__'),
      othIsWrapped = othIsObj && _baseIsEqualDeep_hasOwnProperty.call(other, '__wrapped__');
    if (objIsWrapped || othIsWrapped) {
      var objUnwrapped = objIsWrapped ? object.value() : object,
        othUnwrapped = othIsWrapped ? other.value() : other;
      stack || (stack = new _Stack/* default */.Z());
      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
    }
  }
  if (!isSameTag) {
    return false;
  }
  stack || (stack = new _Stack/* default */.Z());
  return _equalObjects(object, other, bitmask, customizer, equalFunc, stack);
}
/* harmony default export */ var _baseIsEqualDeep = (baseIsEqualDeep);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObjectLike.js
var isObjectLike = __webpack_require__(2096);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsEqual.js



/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */
function baseIsEqual(value, other, bitmask, customizer, stack) {
  if (value === other) {
    return true;
  }
  if (value == null || other == null || !(0,isObjectLike/* default */.Z)(value) && !(0,isObjectLike/* default */.Z)(other)) {
    return value !== value && other !== other;
  }
  return _baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
}
/* harmony default export */ var _baseIsEqual = (baseIsEqual);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isEqual.js


/**
 * Performs a deep comparison between two values to determine if they are
 * equivalent.
 *
 * **Note:** This method supports comparing arrays, array buffers, booleans,
 * date objects, error objects, maps, numbers, `Object` objects, regexes,
 * sets, strings, symbols, and typed arrays. `Object` objects are compared
 * by their own, not inherited, enumerable properties. Functions and DOM
 * nodes are compared by strict equality, i.e. `===`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.isEqual(object, other);
 * // => true
 *
 * object === other;
 * // => false
 */
function isEqual_isEqual(value, other) {
  return _baseIsEqual(value, other);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isEqual = (isEqual_isEqual);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/model/viewedWordDiff.js


var getDifferentKeys = function getDifferentKeys(aWord, bWord) {
  var keys = Object.keys(Object.assign({}, aWord, bWord));
  var differentKeys = [];
  keys.forEach(function (key) {
    if (!_lodash_es_4_17_21_lodash_es_isEqual(aWord[key], bWord[key])) {
      differentKeys.push(key);
    }
  });
  return differentKeys;
};
var isSameWord = function isSameWord(aword, bWord) {
  var keys = getDifferentKeys(aword, bWord).filter(function (key) {
    return !['beginTime', 'endTime', 'sentenceId', 'nFix'].includes(key);
  });
  return keys.length === 0;
};
var generateViewedWordDiff = function generateViewedWordDiff() {
  var store = [];
  var ret = {
    push: function push(viewedWord) {
      if (store.length === 2) {
        store.shift();
      }
      store.push(viewedWord);
      return this;
    },
    diff: function diff() {
      var patchs = [];
      var prevWords = store[0],
        nextWords = store[1];
      if (!nextWords) {
        return [['updateAllWords', {
          words: prevWords
        }]];
      }
      var prevLength = prevWords.length;
      var nextLength = nextWords.length;
      if (nextLength > prevLength) {
        for (var i = 0; i < nextLength; i++) {
          var prevWord = prevWords[i];
          var nextWord = nextWords[i];
          if (prevWord && nextWord) {
            if (isSameWord(prevWord, nextWord)) {
              continue;
            } else {
              break;
            }
          }
          return [['appendWords', {
            words: nextWords.slice(i)
          }]];
        }
      }
      if (prevLength !== nextLength) {
        return [['updateAllWords', {
          words: nextWords
        }]];
      }
      if (nextLength === 1 && nextWords[0].text === '') {
        return [['updateAllWords', {
          words: nextWords
        }]];
      }
      var prevWid;
      var appendNextWord = false;
      for (var _i = 0; _i < prevLength; _i++) {
        var _prevWord = prevWords[_i];
        var _nextWord = nextWords[_i];
        if (_prevWord.wid !== _nextWord.wid) {
          if (prevWid === undefined) {
            return [['updateAllWords', {
              words: nextWords
            }]];
          }
          patchs.push(['deleteAfterWords', {
            wid: _prevWord.wid
          }], ['appendWords', {
            words: nextWords.slice(_i)
          }]);
        } else if (!_lodash_es_4_17_21_lodash_es_isEqual(_prevWord, _nextWord)) {
          var differentKeys = getDifferentKeys(_prevWord, _nextWord);
          var blackList = differentKeys.filter(function (key) {
            return !['beginTime', 'endTime', 'sentenceId'].includes(key);
          });
          if (blackList.length > 0) {
            patchs.push(['updateWord', {
              wid: _nextWord.wid,
              word: _nextWord
            }]);
          }
          if (!appendNextWord && (0,browser/* isFirefox */.vU)()) {
            appendNextWord = true;
            continue;
          }
        } else if (appendNextWord) {
          patchs.push(['updateWord', {
            wid: _nextWord.wid,
            word: _nextWord
          }]);
        }
        appendNextWord = false;
        prevWid = _prevWord.wid;
      }
      return patchs;
    }
  };
  return ret;
};
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIndexOf.js + 3 modules
var _baseIndexOf = __webpack_require__(2084);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toInteger.js + 1 modules
var toInteger = __webpack_require__(1785);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/indexOf.js



/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * Gets the index at which the first occurrence of `value` is found in `array`
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons. If `fromIndex` is negative, it's used as the
 * offset from the end of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 * @example
 *
 * _.indexOf([1, 2, 1, 2], 2);
 * // => 1
 *
 * // Search from the `fromIndex`.
 * _.indexOf([1, 2, 1, 2], 2, 2);
 * // => 3
 */
function indexOf(array, value, fromIndex) {
  var length = array == null ? 0 : array.length;
  if (!length) {
    return -1;
  }
  var index = fromIndex == null ? 0 : (0,toInteger/* default */.Z)(fromIndex);
  if (index < 0) {
    index = nativeMax(length + index, 0);
  }
  return (0,_baseIndexOf/* default */.Z)(array, value, index);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_indexOf = (indexOf);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/utils/format.js
var format_getFormatText = function getFormatText(text) {
  return text;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/utils/render.js



var replaceChildren = function replaceChildren(container, fragment) {
  if (container.replaceChildren) {
    container.replaceChildren(fragment);
  } else {
    container.innerHTML = '';
    container.appendChild(fragment);
  }
};
var renderTextWithSearchedOffsets = function renderTextWithSearchedOffsets(word) {
  var text = word.text,
    searchedOffsets = word.searchedOffsets;
  var pos = 0;
  var fragment = document.createDocumentFragment();
  var _text = format_getFormatText(text);
  searchedOffsets.forEach(function (range) {
    var startOffset = range.startOffset,
      endOffset = range.endOffset,
      isActive = range.isActive;
    if (pos < startOffset) {
      fragment.appendChild(document.createTextNode(_text.slice(pos, startOffset)));
    }
    var span = document.createElement('span');
    span.className = isActive ? 'searched actived' : 'searched';
    span.textContent = _text.slice(startOffset, endOffset);
    fragment.appendChild(span);
    pos = endOffset;
  });
  if (pos < _text.length) {
    fragment.appendChild(document.createTextNode(_text.slice(pos, _text.length)));
  }
  return fragment;
};
var generateViewedWordDOM = function generateViewedWordDOM(word) {
  var span = document.createElement('span');
  span.setAttribute('data-word-id', word.wid);
  var cls = _classnames_2_3_2_classnames_default()({
    strong: word.isAgendaHighlight,
    played: word.isPlayed,
    qna: !word.isQnaActive && word.isQna,
    actived: word.isQnaActive,
    'word-blue': word.tag === 'blue',
    'word-yellow': word.tag === 'yellow',
    'word-red': word.tag === 'red'
  });
  span.className = cls;
  if (word.searchedOffsets && word.searchedOffsets.length > 0) {
    span.appendChild(renderTextWithSearchedOffsets(word));
  } else {
    span.textContent = format_getFormatText(word.text);
  }
  return span;
};
var updateAllWords = function updateAllWords(element, words) {
  var fragment = document.createDocumentFragment();
  if (words.length === 1 && words[0].text === '') {
    var _element$firstChild;
    if (((_element$firstChild = element.firstChild) == null ? void 0 : _element$firstChild.nodeType) === Node.TEXT_NODE) {
      return;
    }
    fragment.appendChild(document.createTextNode(''));
  } else {
    words.forEach(function (word) {
      var span = generateViewedWordDOM(word);
      fragment.appendChild(span);
    });
  }
  replaceChildren(element, fragment);
};
var deleteAfterWords = function deleteAfterWords(element, wid) {
  var _element$firstChild2;
  var target = element.querySelector("[data-word-id=\"" + wid + "\"]");
  if (!target && ((_element$firstChild2 = element.firstChild) == null ? void 0 : _element$firstChild2.nodeType) === Node.TEXT_NODE) {
    while (element.firstChild) {
      element.removeChild(element.firstChild);
    }
    return;
  }
  var pos = _lodash_es_4_17_21_lodash_es_indexOf(element.childNodes, target);
  if (pos > -1) {
    var length = element.childNodes.length;
    var lastPos = length - 1;
    while (lastPos >= pos) {
      element.childNodes[lastPos].remove();
      lastPos--;
    }
  }
};
var appendWords = function appendWords(element, words) {
  var fragment = document.createDocumentFragment();
  words.forEach(function (word) {
    var span = generateViewedWordDOM(word);
    fragment.appendChild(span);
  });
  element.appendChild(fragment);
};
var updateWord = function updateWord(element, wid, word) {
  var _element$firstChild3;
  var target = element.querySelector("[data-word-id=\"" + wid + "\"]");
  if (!target && ((_element$firstChild3 = element.firstChild) == null ? void 0 : _element$firstChild3.nodeType) === Node.TEXT_NODE) {
    replaceChildren(element, generateViewedWordDOM(word));
  } else {
    target == null ? void 0 : target.replaceWith(generateViewedWordDOM(word));
  }
};
var renderWordsTextContent = function renderWordsTextContent(viewedWords) {
  var fragment = document.createDocumentFragment();
  if (viewedWords.length === 1 && viewedWords[0].text === '') {
    fragment.appendChild(document.createTextNode(''));
  } else {
    viewedWords.forEach(function (word) {
      var span = document.createElement('span');
      span.setAttribute('data-word-id', word.wid);
      if (word.isPlayed) {
        span.className = 'played';
      }
      if (word.tag) {
        switch (word.tag) {
          case 'blue':
            span.className = 'word-blue';
            break;
          case 'yellow':
            span.className = 'word-yellow';
            break;
          case 'red':
            span.className = 'word-red';
            break;
          default:
            break;
        }
      }
      if (word.searchedOffsets && word.searchedOffsets.length > 0) {
        span.appendChild(renderTextWithSearchedOffsets(word));
      } else {
        span.textContent = getFormatText(word.text);
      }
      fragment.appendChild(span);
    });
  }
  return fragment;
};
var removeUselessTextNode = function removeUselessTextNode(element) {
  var toRemoveNodes = [];
  element.childNodes.forEach(function (node) {
    if (node.nodeType === Node.TEXT_NODE) {
      toRemoveNodes.push(node);
    }
  });
  if (toRemoveNodes.length < element.childNodes.length) {
    toRemoveNodes.forEach(function (node) {
      element.removeChild(node);
    });
  }
};
var patch = function patch(element, patches) {
  if (patches.length === 0) {
    return;
  }
  patches.forEach(function (p) {
    var type = p[0],
      payload = p[1];
    switch (type) {
      case 'updateAllWords':
        updateAllWords(element, payload.words);
        break;
      case 'deleteAfterWords':
        deleteAfterWords(element, payload.wid);
        break;
      case 'appendWords':
        appendWords(element, payload.words);
        break;
      case 'updateWord':
        updateWord(element, payload.wid, payload.word);
        break;
      default:
        break;
    }
  });
  removeUselessTextNode(element);
};
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsMatch.js



/** Used to compose bitmasks for value comparisons. */
var _baseIsMatch_COMPARE_PARTIAL_FLAG = 1,
  _baseIsMatch_COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */
function baseIsMatch(object, source, matchData, customizer) {
  var index = matchData.length,
    length = index,
    noCustomizer = !customizer;
  if (object == null) {
    return !length;
  }
  object = Object(object);
  while (index--) {
    var data = matchData[index];
    if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
      return false;
    }
  }
  while (++index < length) {
    data = matchData[index];
    var key = data[0],
      objValue = object[key],
      srcValue = data[1];
    if (noCustomizer && data[2]) {
      if (objValue === undefined && !(key in object)) {
        return false;
      }
    } else {
      var stack = new _Stack/* default */.Z();
      if (customizer) {
        var result = customizer(objValue, srcValue, key, object, source, stack);
      }
      if (!(result === undefined ? _baseIsEqual(srcValue, objValue, _baseIsMatch_COMPARE_PARTIAL_FLAG | _baseIsMatch_COMPARE_UNORDERED_FLAG, customizer, stack) : result)) {
        return false;
      }
    }
  }
  return true;
}
/* harmony default export */ var _baseIsMatch = (baseIsMatch);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(3648);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isStrictComparable.js


/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */
function isStrictComparable(value) {
  return value === value && !(0,isObject/* default */.Z)(value);
}
/* harmony default export */ var _isStrictComparable = (isStrictComparable);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/keys.js + 2 modules
var keys = __webpack_require__(420);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getMatchData.js



/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */
function getMatchData(object) {
  var result = (0,keys/* default */.Z)(object),
    length = result.length;
  while (length--) {
    var key = result[length],
      value = object[key];
    result[length] = [key, value, _isStrictComparable(value)];
  }
  return result;
}
/* harmony default export */ var _getMatchData = (getMatchData);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_matchesStrictComparable.js
/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function matchesStrictComparable(key, srcValue) {
  return function (object) {
    if (object == null) {
      return false;
    }
    return object[key] === srcValue && (srcValue !== undefined || key in Object(object));
  };
}
/* harmony default export */ var _matchesStrictComparable = (matchesStrictComparable);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseMatches.js




/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatches(source) {
  var matchData = _getMatchData(source);
  if (matchData.length == 1 && matchData[0][2]) {
    return _matchesStrictComparable(matchData[0][0], matchData[0][1]);
  }
  return function (object) {
    return object === source || _baseIsMatch(object, source, matchData);
  };
}
/* harmony default export */ var _baseMatches = (baseMatches);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isSymbol.js
var isSymbol = __webpack_require__(3550);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isKey.js



/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  reIsPlainProp = /^\w*$/;

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */
function isKey(value, object) {
  if ((0,isArray/* default */.Z)(value)) {
    return false;
  }
  var type = typeof value;
  if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || (0,isSymbol/* default */.Z)(value)) {
    return true;
  }
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
}
/* harmony default export */ var _isKey = (isKey);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_MapCache.js + 14 modules
var _MapCache = __webpack_require__(4660);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/memoize.js


/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */
function memoize(func, resolver) {
  if (typeof func != 'function' || resolver != null && typeof resolver != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  var memoized = function memoized() {
    var args = arguments,
      key = resolver ? resolver.apply(this, args) : args[0],
      cache = memoized.cache;
    if (cache.has(key)) {
      return cache.get(key);
    }
    var result = func.apply(this, args);
    memoized.cache = cache.set(key, result) || cache;
    return result;
  };
  memoized.cache = new (memoize.Cache || _MapCache/* default */.Z)();
  return memoized;
}

// Expose `MapCache`.
memoize.Cache = _MapCache/* default */.Z;
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_memoize = (memoize);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_memoizeCapped.js


/** Used as the maximum memoize cache size. */
var MAX_MEMOIZE_SIZE = 500;

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */
function memoizeCapped(func) {
  var result = _lodash_es_4_17_21_lodash_es_memoize(func, function (key) {
    if (cache.size === MAX_MEMOIZE_SIZE) {
      cache.clear();
    }
    return key;
  });
  var cache = result.cache;
  return result;
}
/* harmony default export */ var _memoizeCapped = (memoizeCapped);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stringToPath.js


/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;

/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;

/**
 * Converts `string` to a property path array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the property path array.
 */
var stringToPath = _memoizeCapped(function (string) {
  var result = [];
  if (string.charCodeAt(0) === 46 /* . */) {
    result.push('');
  }
  string.replace(rePropName, function (match, number, quote, subString) {
    result.push(quote ? subString.replace(reEscapeChar, '$1') : number || match);
  });
  return result;
});
/* harmony default export */ var _stringToPath = (stringToPath);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toString.js
var _lodash_es_4_17_21_lodash_es_toString = __webpack_require__(3682);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_castPath.js





/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */
function castPath(value, object) {
  if ((0,isArray/* default */.Z)(value)) {
    return value;
  }
  return _isKey(value, object) ? [value] : _stringToPath((0,_lodash_es_4_17_21_lodash_es_toString/* default */.Z)(value));
}
/* harmony default export */ var _castPath = (castPath);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_toKey.js


/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */
function toKey(value) {
  if (typeof value == 'string' || (0,isSymbol/* default */.Z)(value)) {
    return value;
  }
  var result = value + '';
  return result == '0' && 1 / value == -INFINITY ? '-0' : result;
}
/* harmony default export */ var _toKey = (toKey);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGet.js



/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */
function baseGet(object, path) {
  path = _castPath(path, object);
  var index = 0,
    length = path.length;
  while (object != null && index < length) {
    object = object[_toKey(path[index++])];
  }
  return index && index == length ? object : undefined;
}
/* harmony default export */ var _baseGet = (baseGet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/get.js


/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */
function get(object, path, defaultValue) {
  var result = object == null ? undefined : _baseGet(object, path);
  return result === undefined ? defaultValue : result;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_get = (get);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseHasIn.js
/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */
function baseHasIn(object, key) {
  return object != null && key in Object(object);
}
/* harmony default export */ var _baseHasIn = (baseHasIn);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js + 1 modules
var isArguments = __webpack_require__(7989);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isIndex.js
var _isIndex = __webpack_require__(3374);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isLength.js
var isLength = __webpack_require__(3798);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hasPath.js







/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */
function hasPath(object, path, hasFunc) {
  path = _castPath(path, object);
  var index = -1,
    length = path.length,
    result = false;
  while (++index < length) {
    var key = _toKey(path[index]);
    if (!(result = object != null && hasFunc(object, key))) {
      break;
    }
    object = object[key];
  }
  if (result || ++index != length) {
    return result;
  }
  length = object == null ? 0 : object.length;
  return !!length && (0,isLength/* default */.Z)(length) && (0,_isIndex/* default */.Z)(key, length) && ((0,isArray/* default */.Z)(object) || (0,isArguments/* default */.Z)(object));
}
/* harmony default export */ var _hasPath = (hasPath);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/hasIn.js



/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */
function hasIn(object, path) {
  return object != null && _hasPath(object, path, _baseHasIn);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_hasIn = (hasIn);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseMatchesProperty.js








/** Used to compose bitmasks for value comparisons. */
var _baseMatchesProperty_COMPARE_PARTIAL_FLAG = 1,
  _baseMatchesProperty_COMPARE_UNORDERED_FLAG = 2;

/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */
function baseMatchesProperty(path, srcValue) {
  if (_isKey(path) && _isStrictComparable(srcValue)) {
    return _matchesStrictComparable(_toKey(path), srcValue);
  }
  return function (object) {
    var objValue = _lodash_es_4_17_21_lodash_es_get(object, path);
    return objValue === undefined && objValue === srcValue ? _lodash_es_4_17_21_lodash_es_hasIn(object, path) : _baseIsEqual(srcValue, objValue, _baseMatchesProperty_COMPARE_PARTIAL_FLAG | _baseMatchesProperty_COMPARE_UNORDERED_FLAG);
  };
}
/* harmony default export */ var _baseMatchesProperty = (baseMatchesProperty);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/identity.js
var identity = __webpack_require__(5621);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseProperty.js
/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function baseProperty(key) {
  return function (object) {
    return object == null ? undefined : object[key];
  };
}
/* harmony default export */ var _baseProperty = (baseProperty);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_basePropertyDeep.js


/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */
function basePropertyDeep(path) {
  return function (object) {
    return _baseGet(object, path);
  };
}
/* harmony default export */ var _basePropertyDeep = (basePropertyDeep);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/property.js





/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */
function property(path) {
  return _isKey(path) ? _baseProperty(_toKey(path)) : _basePropertyDeep(path);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_property = (property);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIteratee.js






/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */
function baseIteratee(value) {
  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  if (typeof value == 'function') {
    return value;
  }
  if (value == null) {
    return identity/* default */.Z;
  }
  if (typeof value == 'object') {
    return (0,isArray/* default */.Z)(value) ? _baseMatchesProperty(value[0], value[1]) : _baseMatches(value);
  }
  return _lodash_es_4_17_21_lodash_es_property(value);
}
/* harmony default export */ var _baseIteratee = (baseIteratee);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/negate.js
/** Error message constants. */
var negate_FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a function that negates the result of the predicate `func`. The
 * `func` predicate is invoked with the `this` binding and arguments of the
 * created function.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Function
 * @param {Function} predicate The predicate to negate.
 * @returns {Function} Returns the new negated function.
 * @example
 *
 * function isEven(n) {
 *   return n % 2 == 0;
 * }
 *
 * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
 * // => [1, 3, 5]
 */
function negate(predicate) {
  if (typeof predicate != 'function') {
    throw new TypeError(negate_FUNC_ERROR_TEXT);
  }
  return function () {
    var args = arguments;
    switch (args.length) {
      case 0:
        return !predicate.call(this);
      case 1:
        return !predicate.call(this, args[0]);
      case 2:
        return !predicate.call(this, args[0], args[1]);
      case 3:
        return !predicate.call(this, args[0], args[1], args[2]);
    }
    return !predicate.apply(this, args);
  };
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_negate = (negate);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayMap.js
var _arrayMap = __webpack_require__(9371);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_assignValue.js
var _assignValue = __webpack_require__(6349);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseSet.js






/**
 * The base implementation of `_.set`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */
function baseSet(object, path, value, customizer) {
  if (!(0,isObject/* default */.Z)(object)) {
    return object;
  }
  path = _castPath(path, object);
  var index = -1,
    length = path.length,
    lastIndex = length - 1,
    nested = object;
  while (nested != null && ++index < length) {
    var key = _toKey(path[index]),
      newValue = value;
    if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
      return object;
    }
    if (index != lastIndex) {
      var objValue = nested[key];
      newValue = customizer ? customizer(objValue, key, nested) : undefined;
      if (newValue === undefined) {
        newValue = (0,isObject/* default */.Z)(objValue) ? objValue : (0,_isIndex/* default */.Z)(path[index + 1]) ? [] : {};
      }
    }
    (0,_assignValue/* default */.Z)(nested, key, newValue);
    nested = nested[key];
  }
  return object;
}
/* harmony default export */ var _baseSet = (baseSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_basePickBy.js




/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */
function basePickBy(object, paths, predicate) {
  var index = -1,
    length = paths.length,
    result = {};
  while (++index < length) {
    var path = paths[index],
      value = _baseGet(object, path);
    if (predicate(value, path)) {
      _baseSet(result, _castPath(path, object), value);
    }
  }
  return result;
}
/* harmony default export */ var _basePickBy = (basePickBy);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getAllKeysIn.js
var _getAllKeysIn = __webpack_require__(3847);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/pickBy.js





/**
 * Creates an object composed of the `object` properties `predicate` returns
 * truthy for. The predicate is invoked with two arguments: (value, key).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The source object.
 * @param {Function} [predicate=_.identity] The function invoked per property.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pickBy(object, _.isNumber);
 * // => { 'a': 1, 'c': 3 }
 */
function pickBy(object, predicate) {
  if (object == null) {
    return {};
  }
  var props = (0,_arrayMap/* default */.Z)((0,_getAllKeysIn/* default */.Z)(object), function (prop) {
    return [prop];
  });
  predicate = _baseIteratee(predicate);
  return _basePickBy(object, props, function (value, path) {
    return predicate(value, path[0]);
  });
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_pickBy = (pickBy);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/omitBy.js




/**
 * The opposite of `_.pickBy`; this method creates an object composed of
 * the own and inherited enumerable string keyed properties of `object` that
 * `predicate` doesn't return truthy for. The predicate is invoked with two
 * arguments: (value, key).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The source object.
 * @param {Function} [predicate=_.identity] The function invoked per property.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.omitBy(object, _.isNumber);
 * // => { 'b': '2' }
 */
function omitBy(object, predicate) {
  return _lodash_es_4_17_21_lodash_es_pickBy(object, _lodash_es_4_17_21_lodash_es_negate(_baseIteratee(predicate)));
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_omitBy = (omitBy);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isUndefined.js
/**
 * Checks if `value` is `undefined`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
 * @example
 *
 * _.isUndefined(void 0);
 * // => true
 *
 * _.isUndefined(null);
 * // => false
 */
function isUndefined(value) {
  return value === undefined;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isUndefined = (isUndefined);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_basePick.js



/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @returns {Object} Returns the new object.
 */
function basePick(object, paths) {
  return _basePickBy(object, paths, function (value, path) {
    return _lodash_es_4_17_21_lodash_es_hasIn(object, path);
  });
}
/* harmony default export */ var _basePick = (basePick);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayPush.js
var _arrayPush = __webpack_require__(4698);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isFlattenable.js




/** Built-in value references. */
var spreadableSymbol = _Symbol/* default */.Z ? _Symbol/* default */.Z.isConcatSpreadable : undefined;

/**
 * Checks if `value` is a flattenable `arguments` object or array.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
 */
function isFlattenable(value) {
  return (0,isArray/* default */.Z)(value) || (0,isArguments/* default */.Z)(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
}
/* harmony default export */ var _isFlattenable = (isFlattenable);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseFlatten.js



/**
 * The base implementation of `_.flatten` with support for restricting flattening.
 *
 * @private
 * @param {Array} array The array to flatten.
 * @param {number} depth The maximum recursion depth.
 * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
 * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
 * @param {Array} [result=[]] The initial result value.
 * @returns {Array} Returns the new flattened array.
 */
function baseFlatten(array, depth, predicate, isStrict, result) {
  var index = -1,
    length = array.length;
  predicate || (predicate = _isFlattenable);
  result || (result = []);
  while (++index < length) {
    var value = array[index];
    if (depth > 0 && predicate(value)) {
      if (depth > 1) {
        // Recursively flatten arrays (susceptible to call stack limits).
        baseFlatten(value, depth - 1, predicate, isStrict, result);
      } else {
        (0,_arrayPush/* default */.Z)(result, value);
      }
    } else if (!isStrict) {
      result[result.length] = value;
    }
  }
  return result;
}
/* harmony default export */ var _baseFlatten = (baseFlatten);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/flatten.js


/**
 * Flattens `array` a single level deep.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flatten([1, [2, [3, [4]], 5]]);
 * // => [1, 2, [3, [4]], 5]
 */
function flatten(array) {
  var length = array == null ? 0 : array.length;
  return length ? _baseFlatten(array, 1) : [];
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_flatten = (flatten);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_overRest.js + 1 modules
var _overRest = __webpack_require__(5724);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_setToString.js + 3 modules
var _setToString = __webpack_require__(7174);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_flatRest.js




/**
 * A specialized version of `baseRest` which flattens the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @returns {Function} Returns the new function.
 */
function flatRest(func) {
  return (0,_setToString/* default */.Z)((0,_overRest/* default */.Z)(func, undefined, _lodash_es_4_17_21_lodash_es_flatten), func + '');
}
/* harmony default export */ var _flatRest = (flatRest);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/pick.js



/**
 * Creates an object composed of the picked `object` properties.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to pick.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pick(object, ['a', 'c']);
 * // => { 'a': 1, 'c': 3 }
 */
var pick = _flatRest(function (object, paths) {
  return object == null ? {} : _basePick(object, paths);
});
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_pick = (pick);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isEqualWith.js


/**
 * This method is like `_.isEqual` except that it accepts `customizer` which
 * is invoked to compare values. If `customizer` returns `undefined`, comparisons
 * are handled by the method instead. The `customizer` is invoked with up to
 * six arguments: (objValue, othValue [, index|key, object, other, stack]).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * function isGreeting(value) {
 *   return /^h(?:i|ello)$/.test(value);
 * }
 *
 * function customizer(objValue, othValue) {
 *   if (isGreeting(objValue) && isGreeting(othValue)) {
 *     return true;
 *   }
 * }
 *
 * var array = ['hello', 'goodbye'];
 * var other = ['hi', 'goodbye'];
 *
 * _.isEqualWith(array, other, customizer);
 * // => true
 */
function isEqualWith(value, other, customizer) {
  customizer = typeof customizer == 'function' ? customizer : undefined;
  var result = customizer ? customizer(value, other) : undefined;
  return result === undefined ? _baseIsEqual(value, other, undefined, customizer) : !!result;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isEqualWith = (isEqualWith);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/eventer.js
var eventer = __webpack_require__(6321);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/utils/direction.js
var getDirection = function getDirection(top, bottom, scrollTop, scrollBottom) {
  var scrollHeight = Math.abs(scrollBottom - scrollTop);
  var scrollMiddleTop = scrollTop + scrollHeight / 2;
  if (top < scrollTop) {
    return 'top';
  } else if (bottom > scrollBottom && top > scrollMiddleTop) {
    return 'bottom';
  } else {
    return undefined;
  }
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/controller/playingWordController.js



var PlayingWordController = /*#__PURE__*/function (_Eventer) {
  (0,inheritsLoose/* default */.Z)(PlayingWordController, _Eventer);
  function PlayingWordController() {
    return _Eventer.apply(this, arguments) || this;
  }
  var _proto = PlayingWordController.prototype;
  _proto.calcPlayingWordVisible = function calcPlayingWordVisible(playingParagraphTop, playingParagraphHeight, scrollTop, scrollViewHeight) {
    var playingParagraphBottom = playingParagraphTop + playingParagraphHeight;
    var scrollBottom = scrollTop + scrollViewHeight;
    var direction = getDirection(playingParagraphTop, playingParagraphBottom, scrollTop, scrollBottom);
    if (direction) {
      this.emit('playingParagraphVisibleChange', {
        enable: true,
        visible: false,
        direction: direction
      });
    } else {
      this.emit('playingParagraphVisibleChange', {
        enable: true,
        visible: true
      });
    }
  };
  _proto.disablePlayingWord = function disablePlayingWord() {
    this.emit('playingParagraphVisibleChange', {
      enable: false
    });
  };
  return PlayingWordController;
}(eventer/* Eventer */.n);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseMerge.js + 8 modules
var _baseMerge = __webpack_require__(1554);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_createAssigner.js + 1 modules
var _createAssigner = __webpack_require__(9755);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/merge.js



/**
 * This method is like `_.assign` except that it recursively merges own and
 * inherited enumerable string keyed properties of source objects into the
 * destination object. Source properties that resolve to `undefined` are
 * skipped if a destination value exists. Array and plain object properties
 * are merged recursively. Other objects and value types are overridden by
 * assignment. Source objects are applied from left to right. Subsequent
 * sources overwrite property assignments of previous sources.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 0.5.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = {
 *   'a': [{ 'b': 2 }, { 'd': 4 }]
 * };
 *
 * var other = {
 *   'a': [{ 'c': 3 }, { 'e': 5 }]
 * };
 *
 * _.merge(object, other);
 * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
 */
var merge = (0,_createAssigner/* default */.Z)(function (object, source, srcIndex) {
  (0,_baseMerge/* default */.Z)(object, source, srcIndex);
});
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_merge = (merge);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/theme/index.js

var defaultTheme = {
  transMinWidth: 400,
  transHorizontalPadding: 32,
  transVerticalPadding: 36,
  transPaddingBottom: 28,
  paragraphHorizontalPadding: 24,
  paragraphVerticalPadding: 16,
  paragraphMarginTop: 0,
  paragraphMarginBottom: 20,
  unfixBackground: 'rgb(242, 245, 251)',
  editorFontFamily: 'tahoma, \'Microsoft YaHei\', \'PingFang SC\', -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, \'Helvetica Neue\', Arial, \'Noto Sans\', sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\', \'Noto Color Emoji\'',
  unfixParagraphContentSticky: true
};
var generateTheme = function generateTheme(theme) {
  if (!theme) {
    return defaultTheme;
  }
  return _lodash_es_4_17_21_lodash_es_merge({}, defaultTheme, theme);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/controller/transcriptionController.js







var defaultTranscriptionHooks = {
  enableSelectAlibabaEmployee: false,
  enableShowSpeaker: true,
  enableEditSpeaker: true,
  getDefaultSpeakerName: function getDefaultSpeakerName() {
    return '发言人';
  },
  theme: defaultTheme
};
var TranscriptionController = /*#__PURE__*/function (_Eventer) {
  (0,inheritsLoose/* default */.Z)(TranscriptionController, _Eventer);
  function TranscriptionController(controller, hooks) {
    var _this;
    _this = _Eventer.call(this) || this;
    _this.controller = void 0;
    _this.hooks = void 0;
    _this.containerRect = void 0;
    _this.isMiniMode = false;
    _this.currentEditingSpeakerPid = void 0;
    _this.unfixElement = void 0;
    _this.isDidShowUnfixSpeakerTip = false;
    _this.extensions = [];
    _this.playingWordController = void 0;
    _this.cleanups = [];
    _this.needRefresh = function () {
      _this.emit('needRefresh', {});
    };
    _this.controller = controller;
    _this.playingWordController = new PlayingWordController();
    _this.hooks = Object.assign({}, defaultTranscriptionHooks, _lodash_es_4_17_21_lodash_es_omitBy(hooks, _lodash_es_4_17_21_lodash_es_isUndefined));
    _this.emit('hooksChange', {});
    return _this;
  }
  var _proto = TranscriptionController.prototype;
  _proto.setHooks = function setHooks(hooks) {
    this.hooks = Object.assign({}, this.hooks, _lodash_es_4_17_21_lodash_es_omitBy(hooks, _lodash_es_4_17_21_lodash_es_isUndefined));
    this.emit('hooksChange', {});
  };
  _proto.getHooks = function getHooks() {
    return this.hooks;
  };
  _proto.setContainerRect = function setContainerRect(rect) {
    this.containerRect = rect;
    this.setIsMiniMode(rect.width <= 560);
    this.emit('containerRectChange', rect);
  };
  _proto.getContainerRect = function getContainerRect() {
    return this.containerRect;
  };
  _proto.setIsMiniMode = function setIsMiniMode(isMiniMode) {
    if (this.isMiniMode !== isMiniMode) {
      this.isMiniMode = isMiniMode;
      this.emit('miniModeChange', {
        isMiniMode: isMiniMode
      });
    }
  };
  _proto.getIsMiniMode = function getIsMiniMode() {
    return this.isMiniMode;
  };
  _proto.setCurrentEditingSpeakerPid = function setCurrentEditingSpeakerPid(pid) {
    this.currentEditingSpeakerPid = pid;
    this.emit('currentEditingSpeakerPidChange', {
      pid: pid
    });
  };
  _proto.getCurrentEditingSpeakerPid = function getCurrentEditingSpeakerPid() {
    return this.currentEditingSpeakerPid;
  };
  _proto.setUnfixElement = function setUnfixElement(unfixElement) {
    this.unfixElement = unfixElement;
  };
  _proto.getUnfixElement = function getUnfixElement() {
    return this.unfixElement;
  };
  _proto.setIsDidShowUnfixSpeakerTip = function setIsDidShowUnfixSpeakerTip(value) {
    this.isDidShowUnfixSpeakerTip = value;
  };
  _proto.getIsDidShowUnfixSpeakerTip = function getIsDidShowUnfixSpeakerTip() {
    return this.isDidShowUnfixSpeakerTip;
  };
  _proto.setExtensions = function setExtensions(extensions) {
    var _this2 = this;
    this.extensions = extensions;
    this.extensions.forEach(function (ext) {
      if (ext.init) {
        ext.init({
          controller: _this2.controller
        });
      }
      if (ext.providerParagraphsNeedRefresh) {
        var result = ext.providerParagraphsNeedRefresh(_this2.needRefresh);
        if (result) {
          _this2.cleanups.push(result);
        }
      }
    });
  };
  _proto.renderParagraphHeadingExtra = function renderParagraphHeadingExtra(params) {
    if (this.extensions.length === 0) {
      return undefined;
    }
    var passParams = (0,esm_extends/* default */.Z)({}, params, {
      controller: this.controller
    });
    var result = [];
    this.extensions.forEach(function (e) {
      if (e.renderParagraphHeadingExtra) {
        var elem = e.renderParagraphHeadingExtra(passParams);
        if (elem) {
          result.push(elem);
        }
      }
    });
    return result;
  };
  _proto.renderUnfixMask = function renderUnfixMask(params) {
    var result = [];
    this.extensions.forEach(function (e) {
      if (e.renderUnfixMask) {
        var elem = e.renderUnfixMask(params);
        if (elem) {
          result.push(elem);
        }
      }
    });
    return result.length ? result : undefined;
  };
  _proto.getIsRenderUnfixSpeakerPlaceholder = function getIsRenderUnfixSpeakerPlaceholder() {
    if (this.extensions.length === 0) {
      return true;
    }
    return this.extensions.some(function (e) {
      if (!e.getIsRenderUnfixSpeakerPlaceholder) {
        return true;
      }
      return e.getIsRenderUnfixSpeakerPlaceholder();
    });
  };
  _proto.renderSelectionContextMenu = function renderSelectionContextMenu(params) {
    var renderResult;
    var passParams = (0,esm_extends/* default */.Z)({}, params, {
      controller: this.controller
    });
    this.extensions.some(function (ext) {
      if (ext.renderSelectionContextMenu) {
        renderResult = ext.renderSelectionContextMenu(passParams);
        if (renderResult) {
          return true;
        }
      }
      return false;
    });
    return renderResult;
  };
  _proto.getContextMenuSize = function getContextMenuSize() {
    var size;
    this.extensions.some(function (ext) {
      if (ext.getContextMenuSize) {
        size = ext.getContextMenuSize();
        if (size) {
          return true;
        }
      }
      return false;
    });
    return size;
  };
  _proto.isHasParagraphTop = function isHasParagraphTop(params) {
    var props = (0,esm_extends/* default */.Z)({}, params, {
      controller: this.controller
    });
    return this.extensions.some(function (ext) {
      if (ext.isHasParagraphTop) {
        return ext.isHasParagraphTop(props);
      }
      return false;
    });
  };
  _proto.getParagraphTopHeight = function getParagraphTopHeight(params) {
    var props = (0,esm_extends/* default */.Z)({}, params, {
      controller: this.controller
    });
    var height = 0;
    this.extensions.forEach(function (ext) {
      if (ext.getParagraphTopHeight) {
        height += ext.getParagraphTopHeight(props);
      }
    });
    return height;
  };
  _proto.renderParagraphTop = function renderParagraphTop(params) {
    var props = (0,esm_extends/* default */.Z)({}, params, {
      controller: this.controller
    });
    var renderElements = [];
    this.extensions.forEach(function (ext) {
      if (ext.renderParagraphTop) {
        renderElements.push(ext.renderParagraphTop(props));
      }
    });
    return renderElements;
  };
  _proto.renderScrollToBottomButton = function renderScrollToBottomButton(params) {
    var props = (0,esm_extends/* default */.Z)({}, params, {
      controller: this.controller
    });
    var renderElements = [];
    this.extensions.forEach(function (ext) {
      if (ext.renderScrollToBottomButton) {
        renderElements.push(ext.renderScrollToBottomButton(props));
      }
    });
    return renderElements;
  };
  _proto.getIsShowTranslatePopup = function getIsShowTranslatePopup() {
    var isShow = true;
    this.extensions.forEach(function (ext) {
      if (ext.getIsShowTranslatePopup) {
        isShow && (isShow = ext.getIsShowTranslatePopup());
      }
    });
    return isShow;
  };
  _proto.clean = function clean() {
    this.cleanups.forEach(function (cleanup) {
      cleanup();
    });
    this.cleanups = [];
  };
  return TranscriptionController;
}(eventer/* Eventer */.n);
var controllerMap = {};
var generateTranscriptionController = function generateTranscriptionController(controller) {
  var id = controller.id;
  if (controllerMap[id] == null) {
    controllerMap[id] = new TranscriptionController(controller, {});
  }
  return controllerMap[id];
};
var removeTranscriptionController = function removeTranscriptionController(id) {
  delete controllerMap[id];
};
var getTranscriptionController = function getTranscriptionController(controller) {
  var id = controller.id;
  if (!controllerMap[id]) {
    controllerMap[id] = new TranscriptionController(controller, defaultTranscriptionHooks);
  }
  return controllerMap[id];
};
var useTranscriptionHooks = function useTranscriptionHooks(controller, deps) {
  if (deps === void 0) {
    deps = [];
  }
  var transController = getTranscriptionController(controller);
  var _useState = (0,_react_18_2_0_react.useState)(function () {
      return _lodash_es_4_17_21_lodash_es_pick(transController.getHooks(), deps);
    }),
    result = _useState[0],
    setResult = _useState[1];
  useSyncEffect(function () {
    return transController.on('hooksChange', function () {
      var newHooks = _lodash_es_4_17_21_lodash_es_pick(transController.getHooks(), deps);
      if (!_lodash_es_4_17_21_lodash_es_isEqualWith(result, newHooks, function (a, b) {
        return a === b;
      })) {
        setResult(newHooks);
      }
    });
  }, [controller.id, transController, deps, result]);
  return result;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/textEditor/utils.js
 // 避免firefox中，使用输入法编辑时，compositionEnd事件之后还会触发input事件，导致文字插入两次

var FirefoxCache = /*#__PURE__*/function () {
  function FirefoxCache() {
    this.content = void 0;
    this.time = void 0;
  }
  var _proto = FirefoxCache.prototype;
  _proto.setContent = function setContent(content) {
    this.content = content;
    this.time = Date.now();
  };
  _proto.isCompositeBefore = function isCompositeBefore(content) {
    if (!(0,browser/* isFirefox */.vU)() || !this.content || !this.time) {
      return false;
    }
    if (content === this.content && Math.abs(Date.now() - this.time) < 100) {
      return true;
    }
    return false;
  };
  return FirefoxCache;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/textEditor/textEditor.js

var textEditor_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;







var TextEditor = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var pid = props.pid,
    _props$textContent = props.textContent,
    textContent = _props$textContent === void 0 ? '' : _props$textContent,
    _props$isUnfix = props.isUnfix,
    isUnfix = _props$isUnfix === void 0 ? false : _props$isUnfix,
    controller = props.controller,
    timestamp = props.timestamp,
    viewedWords = props.viewedWords,
    onFocus = props.onFocus,
    onBlur = props.onBlur,
    _props$isHighlight = props.isHighlight,
    isHighlight = _props$isHighlight === void 0 ? false : _props$isHighlight,
    _props$readonly = props.readonly,
    readonly = _props$readonly === void 0 ? false : _props$readonly,
    _props$isPlaying = props.isPlaying,
    isPlaying = _props$isPlaying === void 0 ? false : _props$isPlaying;
  var tranController = generateTranscriptionController(controller);
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['onEvent']),
    onEvent = _useTranscriptionHook.onEvent;
  var containerRef = (0,_react_18_2_0_react.useRef)(null);
  var currentRef = (0,_react_18_2_0_react.useRef)({
    isOnComposition: false,
    isFocus: false,
    textContent: '',
    oldTextContent: ''
  });
  currentRef.current.textContent = textContent;
  (0,_react_18_2_0_react.useEffect)(function () {
    return function () {
      if (currentRef.current.isFocus) {
        tranController.emit('onDropdownHideOff', {});
      }
    };
  }, [tranController]);
  var getRange = function getRange(callback, fallback, debug) {
    if (!containerRef.current) {
      return;
    }
    var range = getFirstRange(containerRef.current);
    if (!range) {
      fallback && fallback();
      return;
    }
    callback(range);
  };
  var handleSelect = (0,_react_18_2_0_react.useCallback)(function (event) {
    if (currentRef.current.isOnComposition) {
      return;
    }
    var _ref = event.nativeEvent,
      clientX = _ref.clientX,
      clientY = _ref.clientY,
      type = _ref.type;
    getRange(function (_ref2) {
      var startOffset = _ref2.startOffset,
        endOffset = _ref2.endOffset,
        range = _ref2.range;
      if (startOffset !== endOffset) {
        var rangeRect = range.getBoundingClientRect();
        if (type === 'mouseup') {
          setTimeout(function () {
            tranController.emit('onDropdownShowUp', {
              clientX: clientX,
              clientY: clientY,
              rangeRect: rangeRect,
              isUnfix: isUnfix,
              pid: pid
            });
          }, 100);
        }
      } else {
        tranController.emit('onDropdownHideOff', {});
      }
      var selection = {
        pid: pid,
        startOffset: startOffset,
        endOffset: endOffset
      };
      controller.setCurrentSelection(selection);
      if (type === 'mouseup') {
        controller.emit('mouseUpSelectionChange', {
          selection: selection
        });
      }
    }, function () {
      controller.setCurrentSelection({
        pid: pid,
        startOffset: 0,
        endOffset: 0
      });
    }, 'handleSelect');
  }, [pid, controller, tranController, isUnfix]);
  var handleFocus = (0,_react_18_2_0_react.useCallback)(function () {
    currentRef.current.oldTextContent = currentRef.current.textContent;
    currentRef.current.isFocus = true;
    onFocus && onFocus();
    controller.setEditorFocusPid(pid);
  }, [onFocus, controller, pid]);
  var handleBlur = (0,_react_18_2_0_react.useCallback)(function () {
    if (currentRef.current.oldTextContent !== currentRef.current.textContent) {
      onEvent && onEvent('userEditParagraph', {
        pid: pid,
        oldText: currentRef.current.oldTextContent,
        newText: currentRef.current.textContent
      });
    }
    currentRef.current.oldTextContent = '';
    currentRef.current.isFocus = false;
    onBlur && onBlur();
    controller.setEditorFocusPid(undefined);
    controller.setCurrentSelection(undefined);
    tranController.emit('onDropdownHideOff', {});
  }, [onBlur, tranController, controller, onEvent, pid]);
  var handleTextInput = (0,_react_18_2_0_react.useCallback)(function (text) {
    getRange(function (_ref3) {
      var startOffset = _ref3.startOffset;
      var beforeStartOffset = startOffset - text.length;
      if (controller.isGreaterThenMaxCount(pid, beforeStartOffset, text)) {
        controller.insertTextAndAddParagraph(pid, beforeStartOffset, text);
      } else {
        controller.recordPrevSelection({
          pid: pid,
          startOffset: beforeStartOffset,
          endOffset: beforeStartOffset
        });
        controller.insertText(pid, beforeStartOffset, text);
      }
    });
  }, [controller, pid]); // !!!删除指定range的文字，不要在Backspace和Delete场景下使用

  var handleDeleteRange = (0,_react_18_2_0_react.useCallback)(function (startOffset, endOffset, isPreteat) {
    if (isPreteat === void 0) {
      isPreteat = false;
    }
    if (endOffset === startOffset) {
      return;
    }
    if (isPreteat) {
      controller.preteat();
    }
    controller.deleteTextRange(pid, startOffset, endOffset);
    controller.setCurrentSelection({
      pid: pid,
      startOffset: startOffset,
      endOffset: startOffset
    });
  }, [controller, pid]);
  var deleteBeforeAction = (0,_react_18_2_0_react.useCallback)(function () {
    getRange(function (_ref4) {
      var startOffset = _ref4.startOffset,
        endOffset = _ref4.endOffset;
      handleDeleteRange(startOffset, endOffset, true);
    });
  }, [handleDeleteRange]);
  var handleCut = (0,_react_18_2_0_react.useCallback)(function (event) {
    event.preventDefault();
    getRange(function (_ref5) {
      var startOffset = _ref5.startOffset,
        endOffset = _ref5.endOffset;
      var currentTextContent = controller.getTextContent(pid);
      var text = currentTextContent.slice(startOffset, endOffset);
      event.clipboardData.setData('text/plain', text);
      handleDeleteRange(startOffset, endOffset);
    });
  }, [handleDeleteRange, pid, controller]);
  var handleCopy = (0,_react_18_2_0_react.useCallback)(function (event) {
    event.preventDefault();
    getRange(function (_ref6) {
      var startOffset = _ref6.startOffset,
        endOffset = _ref6.endOffset;
      var currentTextContent = controller.getTextContent(pid);
      var text = currentTextContent.slice(startOffset, endOffset);
      event.clipboardData.setData('text/plain', text);
    });
  }, [pid, controller]);
  var handlePaste = (0,_react_18_2_0_react.useCallback)(function (event) {
    event.preventDefault();
    var text = event.clipboardData.getData('text/plain');
    if (text) {
      getRange(function (_ref7) {
        var startOffset = _ref7.startOffset;
        deleteBeforeAction();
        if (controller.isGreaterThenMaxCount(pid, startOffset, text)) {
          controller.insertTextAndAddParagraph(pid, startOffset, text);
        } else {
          controller.insertText(pid, startOffset, text);
        }
      });
    }
  }, [controller, pid, deleteBeforeAction]);
  var handleKeyDown = (0,_react_18_2_0_react.useCallback)(function (event) {
    var inputKey = event.nativeEvent.key;
    if (isMacOS) {
      if (event.nativeEvent.metaKey) {
        if (inputKey === 'b' || inputKey === 'e') {
          // command+e 上层需要用
          event.preventDefault();
          return;
        } else if (inputKey === 's') {
          event.preventDefault();
          controller.emitSaveDocument();
          return;
        }
      }
      if (event.nativeEvent.ctrlKey) {
        if (inputKey === 'k') {
          event.preventDefault();
          getRange(function (_ref8) {
            var startOffset = _ref8.startOffset,
              endOffset = _ref8.endOffset;
            handleDeleteRange(startOffset, endOffset === startOffset ? textContent.length : endOffset);
            event.preventDefault();
          });
          return;
        } else if (inputKey === 'd') {
          event.preventDefault();
          if (textContent.length === 0) {
            return;
          }
          getRange(function (_ref9) {
            var startOffset = _ref9.startOffset,
              endOffset = _ref9.endOffset;
            handleDeleteRange(startOffset, endOffset === startOffset ? startOffset + 1 : endOffset);
            event.preventDefault();
          });
          return;
        } else if (inputKey === 's') {
          event.preventDefault();
          controller.emitSaveDocument();
          return;
        }
      }
    } else if (event.nativeEvent.ctrlKey) {
      if (inputKey === 'e' || inputKey === 'b' || inputKey === 'ArrowUp' || inputKey === 'ArrowLeft' || inputKey === 'ArrowDown' || inputKey === 'ArrowRight') {
        event.preventDefault();
        return false;
      } else if (inputKey === 'x') {
        getRange(function (_ref10) {
          var startOffset = _ref10.startOffset,
            endOffset = _ref10.endOffset;
          handleDeleteRange(startOffset, endOffset);
        });
        event.preventDefault();
        return false;
      } else if (inputKey === 'z') {
        controller.undo();
      } else if (inputKey === 'y') {
        controller.redo();
      } else if (inputKey === 's') {
        event.preventDefault();
        controller.emitSaveDocument();
      }
    }
    if (currentRef.current.isOnComposition) {
      return;
    }
    if (isSpaceHotKey(event.keyCode)) {
      event.stopPropagation();
    } else if (isEnterHotkey(event.keyCode)) {
      event.preventDefault();
      if (!isUnfix) {
        getRange(function (_ref11) {
          var startOffset = _ref11.startOffset;
          deleteBeforeAction();
          controller.addParagraph(pid, startOffset);
        });
      }
    } else if (isDeleteHotkey(event.keyCode)) {
      event.preventDefault();
      getRange(function (range) {
        var startOffset = range.startOffset,
          endOffset = range.endOffset;
        if (startOffset === endOffset && startOffset === textContent.length) {
          // TODO: Forward Delete will merge next Paragraph???
          return;
        }
        controller.deleteTextRange(pid, startOffset, endOffset === startOffset ? endOffset + 1 : endOffset);
      });
    } else if (isBackspaceHotkey(event.keyCode)) {
      event.preventDefault();
      getRange(function (range) {
        var startOffset = range.startOffset,
          endOffset = range.endOffset;
        if (startOffset === 0 && startOffset === endOffset && !isUnfix) {
          var pids = controller.getPids();
          if (pids[0] === pid && textContent.length === 0) {
            controller.removeParagraph(pid);
          } else {
            controller.mergePrevParagraph(pid);
          }
          return;
        }
        controller.deleteTextRange(pid, startOffset === endOffset ? startOffset - 1 : startOffset, endOffset);
      });
    } else if (inputKey === 'z') {
      if (event.nativeEvent.metaKey) {
        event.preventDefault();
        if (event.nativeEvent.shiftKey) {
          controller.redo();
        } else {
          controller.undo();
        }
      }
    } else if (inputKey === 'y') {
      if (event.nativeEvent.metaKey) {
        event.preventDefault();
        controller.redo();
      }
    }
  }, [controller, pid, handleDeleteRange, deleteBeforeAction, textContent, isUnfix]);
  var handleKeyUp = (0,_react_18_2_0_react.useCallback)(function () {// if (currentRef.current.isOnComposition) {
    // }
  }, []);
  var viewedWordDiff = (0,_react_18_2_0_react.useMemo)(function () {
    return generateViewedWordDiff();
  }, []);
  (0,_react_18_2_0_react.useEffect)(function () {}, [viewedWords]);
  (0,_react_18_2_0_react.useEffect)(function () {}, [timestamp]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!containerRef.current) {
      return;
    }
    viewedWordDiff.push(viewedWords);
    var patches = viewedWordDiff.diff();
    if (patches.length === 0) {
      return;
    }
    patch(containerRef.current, patches);

    // if (containerRef.current.firstChild?.nodeType === Node.TEXT_NODE) {
    // containerRef.current.replaceChildren(
    //   renderWordsTextContent(viewedWords),
    // );
    if (currentRef.current.isFocus && !currentRef.current.isOnComposition) {
      var selection = controller.getCurrentSelection();
      if (selection && selection.pid === pid) {
        setRange(containerRef.current, selection.startOffset, selection.endOffset);
      }
    }
  }, [controller, pid, viewedWords, timestamp, viewedWordDiff]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!containerRef.current) {
      return;
    }
    var selection = controller.getPopSelection(pid);
    if (selection) {
      setRange(containerRef.current, selection.startOffset, selection.endOffset);
    }
  }, [controller, pid, textContent, timestamp]);
  useSyncEffect(function () {
    return controller.on('blurCurrentTextEditor', function () {
      var _containerRef$current;
      clearRange();
      (_containerRef$current = containerRef.current) == null ? void 0 : _containerRef$current.blur();
    });
  }, [controller]); // useSyncEffect(() => {
  //   return controller.on('searchReplaceChange', (args) => {
  //     if (!containerRef.current) {
  //       return;
  //     }
  //     const { activeIndex, selections } = args;
  //     const selection = selections[activeIndex];
  //     if (selection && selection.pid === pid) {
  //       setRange(
  //         containerRef.current,
  //         selection.startOffset,
  //         selection.endOffset,
  //       );
  //     } else {
  //       containerRef.current.blur();
  //     }
  //   });
  // }, [controller, pid]);

  var handleCompositionStart = (0,_react_18_2_0_react.useCallback)(function () {
    currentRef.current.isOnComposition = true;
    deleteBeforeAction();
  }, [deleteBeforeAction]);
  var compositionEndCacheRef = (0,_react_18_2_0_react.useRef)(new FirefoxCache());
  var handleCompositionEnd = (0,_react_18_2_0_react.useCallback)(function (event) {
    var _compositionEndCacheR;
    currentRef.current.isOnComposition = false;
    (_compositionEndCacheR = compositionEndCacheRef.current) == null ? void 0 : _compositionEndCacheR.setContent(event.data);
    handleTextInput(event.data);
  }, [handleTextInput]);
  var handleBeforeInput = (0,_react_18_2_0_react.useCallback)(function () {
    if (currentRef.current.isOnComposition) {
      return;
    }
    deleteBeforeAction();
  }, [deleteBeforeAction]);
  var handleInput = (0,_react_18_2_0_react.useCallback)(function (event) {
    if (currentRef.current.isOnComposition) {
      return;
    }
    var text = event.nativeEvent.data;
    if (!text) {
      // in windows, undo will trigger this function, and pass empty text
      return;
    }
    if (compositionEndCacheRef.current && compositionEndCacheRef.current.isCompositeBefore(text)) {
      return;
    }
    handleTextInput(text);
  }, [handleTextInput]);
  var handleDragStart = (0,_react_18_2_0_react.useCallback)(function (event) {
    event.preventDefault();
  }, []);
  var handleDrop = handleDragStart;
  (0,_react_18_2_0_react.useImperativeHandle)(ref, function () {
    return {
      focus: function focus() {
        var _containerRef$current2;
        (_containerRef$current2 = containerRef.current) == null ? void 0 : _containerRef$current2.focus();
      },
      blur: function blur() {
        var _containerRef$current3;
        (_containerRef$current3 = containerRef.current) == null ? void 0 : _containerRef$current3.blur();
      }
    };
  }, []);
  (0,_react_18_2_0_react.useEffect)(function () {
    var _containerRef$current4;
    if (!readonly) {
      return;
    }
    var handleClickSpan = function handleClickSpan(event) {
      if (!event.target) {
        return;
      }
      var element = event.target;
      if ((element == null ? void 0 : element.nodeName) === 'SPAN') {
        var wid = element.getAttribute('data-word-id');
        if (!wid) {
          return;
        }
        var word = controller.getWord(wid);
        if (word) {
          controller.readonlyClickWord([word]);
        }
      }
    };
    (_containerRef$current4 = containerRef.current) == null ? void 0 : _containerRef$current4.addEventListener('mouseup', handleClickSpan);
    return function () {
      var _containerRef$current5;
      (_containerRef$current5 = containerRef.current) == null ? void 0 : _containerRef$current5.removeEventListener('mouseup', handleClickSpan);
    };
  }, [readonly, controller]);
  return /*#__PURE__*/textEditor_createElement(textEditor_styled_Wrapper, {
    isPlaying: isPlaying,
    isHighlight: isHighlight,
    isUnfix: isUnfix,
    isEmptyContent: textContent.trim().length === 0 // 空白字符会导致点击不上
    ,

    ref: containerRef,
    readonly: readonly,
    contentEditable: !readonly,
    suppressContentEditableWarning: true,
    onSelect: handleSelect,
    onFocus: handleFocus,
    onBlur: handleBlur,
    onKeyDown: handleKeyDown,
    onKeyUp: handleKeyUp,
    onCopy: handleCopy,
    onPaste: handlePaste,
    onCut: handleCut,
    onBeforeInput: handleBeforeInput,
    onInput: handleInput,
    onCompositionStart: handleCompositionStart,
    onCompositionEnd: handleCompositionEnd,
    onDragStart: handleDragStart,
    onDrop: handleDrop,
    draggable: false,
    spellCheck: false
  });
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/paragraphContent/styled.js


var _config$theme = config.theme,
  paragraphContent_styled_textEditor = _config$theme.textEditor,
  paragraph = _config$theme.paragraph;
var _paragraph$heading = paragraph.heading,
  speaker = _paragraph$heading.speaker,
  speakerAvatar = _paragraph$heading.speakerAvatar;
var paragraphContent_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:", ";position:", ";z-index:200;bottom:0;margin-top:", "px;margin-bottom:", "px;&:first-child{margin-top:0;}&:last-child{margin-bottom:0;}", ""], function (props) {
  return props.visible === false ? 'none' : 'block';
}, function (props) {
  return props.sticky ? 'sticky' : 'static';
}, function (props) {
  return props.theme.paragraphMarginTop;
}, function (props) {
  return props.theme.paragraphMarginBottom;
}, function (props) {
  return props.sticky && "\n    &:after {\n      content: '';\n      display: block;\n      position: absolute;\n      bottom: -10px;\n      left: -10px;\n      right: -10px;\n      height: 10px;\n      background-color: #F2F5FB;\n    }\n  ";
});
var ParagraphWrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:relative;", ""], function (props) {
  return props.isUnfix && (0,styled_components_browser_esm/* css */.iv)(["background-color:#F2F5FB;&:before,&:after{content:'';display:block;position:absolute;top:0;bottom:0;width:10px;background-color:", ";}&:before{left:-10px;}&:after{right:-10px;}"], props.theme.unfixBackground);
});
var ParagraphSpeaking = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["font-weight:500;font-size:12px;color:#605CE5;line-height:20px;padding:6px 0;background:#F2F5FB;"]);
var ParagraphHeadingStyled = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;align-items:center;padding-bottom:", ";height:32px;", ""], function (props) {
  return props.enableShowSpeaker ? '8px' : '4px';
}, function (props) {
  return props.showBackground && "\n    background: #F2F5FB;\n  ";
});
var ParagraphHeadingSpeakerWrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["flex:1;display:flex;overflow:hidden;"]);
var ParagraphAvatar = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["border-radius:", "px;overflow:hidden;display:flex;justify-content:center;align-items:center;color:#fff;margin-right:12px;user-select:none;flex-shrink:0;&,img{width:", "px;height:", "px;}"], speakerAvatar.borderRadius, speakerAvatar.width, speakerAvatar.height);
var ParagraphSpeakerWrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["align-items:center;display:", ";flex:1;overflow:hidden;", ""], function (props) {
  return props.visible ? 'flex' : 'none';
}, function (props) {
  return !props.disableHoverEffect && "\n      &:hover {\n        .time {\n          opacity: 0;\n          visibility: hidden;\n          width: 0;\n        }\n        .speaker {\n          color: rgba(39,38,77,1);\n          .tingwu-icon {\n            display: inline-flex;\n          }\n        }\n      }\n    ";
});
var ParagraphSpeaker = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["font-size:", "px;line-height:", "px;color:", ";margin-right:8px;transition:all 0.2s;cursor:", ";display:flex;align-items:center;user-select:none;flex-shrink:1;overflow:hidden;.tingwu-icon{margin-left:8px;display:none;}svg{color:#7d7d94;}"], speaker.fontSize, speaker.lineHeight, speaker.color, function (props) {
  return props.readonly ? 'default' : 'text';
});
var DefaultAvatar = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:", "px;height:", "px;background:url(\"https://img.alicdn.com/imgextra/i3/O1CN01mqaz5k1gzbSjkrFAW_!!6000000004213-2-tps-339-339.png\");background-position:center 0px;background-size:cover;"], speakerAvatar.width, speakerAvatar.height);
var ParagraphSpeakerText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.span(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);
var ParagraphHeadingTime = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["font-size:", "px;line-height:", "px;color:", ";opacity:1;transition:all 0.2s;cursor:", ";user-select:none;flex-shrink:0;"], speaker.fontSize, speaker.lineHeight, speaker.color, function (props) {
  return props.readonly ? 'default' : 'text';
});
var ParagraphStyledWrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:relative;user-select:none;"]);
var ParagraphStyled = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["box-sizing:border-box;display:flex;flex-direction:column;align-items:center;min-height:", "px;border-radius:", "px;border:1px solid transparent;background-color:", ";overflow:hidden;position:relative;z-index:10;word-break:break-word;padding:1px;", " ", " &:hover{", " .fix-button{opacity:1;}}"], paragraphContent_styled_textEditor.lineHeight + paragraph.paddingVertical * 2, paragraph.borderRadius, paragraph.backgroundColor, function (props) {
  return !props.isUnfix && 'margin: 0 0 6px;';
}, function (props) {
  return props.focus && "\n    box-shadow: 0 0 0 2px #C6C5F2;\n    border: 1px solid #605CE5;\n    background-color: transparent;\n  ";
}, function (props) {
  return props.showOutline !== false && "\n      box-shadow: 0 0 0 2px #C6C5F2;\n    ";
});
var ParagraphInner = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["flex:1;"]);
var UnfixText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.span(["user-select:none;font-size:", "px;line-height:", "px;color:", ";"], paragraphContent_styled_textEditor.fontSize, paragraphContent_styled_textEditor.lineHeight, function (props) {
  return props.isHighlight ? 'rgba(255, 255, 255, 0.6)' : 'rgba(39, 38, 77, 0.35)';
});
var styled_Mask = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:absolute;top:-1;height:1;left:0;right:0;"]);
var MaskInner = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:absolute;bottom:0;left:0;right:0;"]);
var ParagraphOrigin = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;align-items:flex-start;width:100%;padding:", "px ", "px;background-color:", ";border-radius:6px;box-sizing:border-box;", " ", " ", " ", ""], function (props) {
  return props.theme.paragraphVerticalPadding;
}, function (props) {
  return props.theme.paragraphHorizontalPadding;
}, paragraph.backgroundColor, function (props) {
  return props.isUnfix && "\n    min-height: 104px;\n  ";
}, function (props) {
  return props.showTranslate && "\n    padding-bottom: 8px;\n  ";
}, function (props) {
  return props.isHighlight && (0,styled_components_browser_esm/* css */.iv)(["background-color:#605CE5;color:", ";"], props.isPlaying ? 'rgba(255, 255, 255, 0.6)' : 'rgba(255, 255, 255, 1)');
}, function (props) {
  return !props.isHighlight && (0,styled_components_browser_esm/* css */.iv)(["color:", ";"], props.isPlaying ? 'rgba(39,38,77,0.35)' : 'rgba(39,38,77,0.85)');
});
var ParagraphHeadingExtra = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;justify-content:flex-end;"]);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseClamp.js
var _baseClamp = __webpack_require__(5903);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toLength.js



/** Used as references for the maximum length and index of an array. */
var MAX_ARRAY_LENGTH = 4294967295;

/**
 * Converts `value` to an integer suitable for use as the length of an
 * array-like object.
 *
 * **Note:** This method is based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toLength(3.2);
 * // => 3
 *
 * _.toLength(Number.MIN_VALUE);
 * // => 0
 *
 * _.toLength(Infinity);
 * // => 4294967295
 *
 * _.toLength('3.2');
 * // => 3
 */
function toLength(value) {
  return value ? (0,_baseClamp/* default */.Z)((0,toInteger/* default */.Z)(value), 0, MAX_ARRAY_LENGTH) : 0;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_toLength = (toLength);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseFill.js



/**
 * The base implementation of `_.fill` without an iteratee call guard.
 *
 * @private
 * @param {Array} array The array to fill.
 * @param {*} value The value to fill `array` with.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns `array`.
 */
function baseFill(array, value, start, end) {
  var length = array.length;
  start = (0,toInteger/* default */.Z)(start);
  if (start < 0) {
    start = -start > length ? 0 : length + start;
  }
  end = end === undefined || end > length ? length : (0,toInteger/* default */.Z)(end);
  if (end < 0) {
    end += length;
  }
  end = start > end ? 0 : _lodash_es_4_17_21_lodash_es_toLength(end);
  while (start < end) {
    array[start++] = value;
  }
  return array;
}
/* harmony default export */ var _baseFill = (baseFill);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isIterateeCall.js
var _isIterateeCall = __webpack_require__(2863);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/fill.js



/**
 * Fills elements of `array` with `value` from `start` up to, but not
 * including, `end`.
 *
 * **Note:** This method mutates `array`.
 *
 * @static
 * @memberOf _
 * @since 3.2.0
 * @category Array
 * @param {Array} array The array to fill.
 * @param {*} value The value to fill `array` with.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns `array`.
 * @example
 *
 * var array = [1, 2, 3];
 *
 * _.fill(array, 'a');
 * console.log(array);
 * // => ['a', 'a', 'a']
 *
 * _.fill(Array(3), 2);
 * // => [2, 2, 2]
 *
 * _.fill([4, 6, 8, 10], '*', 1, 3);
 * // => [4, '*', '*', 10]
 */
function fill(array, value, start, end) {
  var length = array == null ? 0 : array.length;
  if (!length) {
    return [];
  }
  if (start && typeof start != 'number' && (0,_isIterateeCall/* default */.Z)(array, value, start)) {
    start = 0;
    end = length;
  }
  return _baseFill(array, value, start, end);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_fill = (fill);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/dynamicDots/dynamicDots.js

var dynamicDots_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;

var DynamicDots = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var style = props.style;
  var _useState = (0,_react_18_2_0_react.useState)(0),
    count = _useState[0],
    setCount = _useState[1];
  (0,_react_18_2_0_react.useEffect)(function () {
    var interval = setInterval(function () {
      setCount(function (p) {
        return p + 1;
      });
    }, 300);
    return function () {
      clearInterval(interval);
    };
  }, []);
  var dots = (0,_react_18_2_0_react.useMemo)(function () {
    return _lodash_es_4_17_21_lodash_es_fill(Array(count % 4), '.').join('');
  }, [count]);
  return /*#__PURE__*/dynamicDots_createElement("span", {
    style: style
  }, dots);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/paragraphContent/unfixSentense.js


var unfixSentense_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;


var UnfixSentense = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var controller = props.controller,
    emptyUnfix = props.emptyUnfix,
    pid = props.pid,
    _props$isHighlight = props.isHighlight,
    isHighlight = _props$isHighlight === void 0 ? false : _props$isHighlight;
  var _useState = (0,_react_18_2_0_react.useState)(''),
    unfixText = _useState[0],
    setUnfixText = _useState[1];
  var allTextContent = controller.getAllTextContent().join('');
  useSyncEffect(function () {
    var content = controller.getUnfixContent();
    if (content) {
      setUnfixText(content);
    }
  }, [controller]);
  useSyncEffect(function () {
    return controller.on('unfixSentenseChange', function (_ref) {
      var text = _ref.text;
      if (emptyUnfix) {
        setUnfixText(text);
      } else {
        var p = controller.getParagraph(pid);
        setUnfixText(p != null && p.isUnfix ? text : '');
      }
    });
  }, [controller, pid, emptyUnfix]);
  var isEmpty = !allTextContent && !unfixText;
  var toRenderUnfixText = isEmpty ? /*#__PURE__*/unfixSentense_createElement(DynamicDots, {
    style: {
      fontSize: 18
    }
  }) : unfixText;
  if (!toRenderUnfixText) {
    return null;
  }
  return /*#__PURE__*/unfixSentense_createElement(UnfixText, {
    isHighlight: isHighlight
  }, toRenderUnfixText);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/localStorage.js
var storageKeys;
(function (storageKeys) {
  storageKeys["showedLiveSpeakerTip"] = "TINGWU-SDK-SHOWED-LIVE-SPEAKER-TIP";
  storageKeys["showedLiveEditWordTip"] = "TINGWU-SDK-SHOWED-LIVE-EDIT-WORD-TIP";
  storageKeys["showedOfflineEditWordTip"] = "TINGWU-SDK-SHOWED-OFFLINE-EDIT-WORD-TIP";
  storageKeys["showedMeetingSummaryExpander"] = "TINGWU-SDK-SHOWED-MEETING-SUMMARY-EXPANDER";
  storageKeys["showedSpeakerSummaryExpander"] = "TINGWU-SDK-SHOWED-SPEAKER-SUMMARY-EXPANDER";
  storageKeys["showedMeetingSummaryExpanderV2"] = "TINGWU-SDK-SHOWED-MEETING-SUMMARY-EXPANDER-V2";
  storageKeys["showedSpeakerSummaryExpanderV2"] = "TINGWU-SDK-SHOWED-SPEAKER-SUMMARY-EXPANDER-V2";
  storageKeys["showedAgendaSummaryExpanderV2"] = "TINGWU-SDK-SHOWED-AGENDA-SUMMARY-EXPANDER-V2";
  storageKeys["showedNoAgendaSummaryTip"] = "TINGWU-SDK-SHOWED-NO-AGENDA-SUMMARY-TIP";
})(storageKeys || (storageKeys = {}));
var myLocalStorage = {
  getItem: function getItem(key, needParse) {
    if (needParse === void 0) {
      needParse = true;
    }
    var id = storageKeys[key];
    var value = localStorage.getItem(id);
    return needParse ? value && JSON.parse(value) : value;
  },
  setItem: function setItem(key, value, needStringify) {
    if (needStringify === void 0) {
      needStringify = true;
    }
    var id = storageKeys[key];
    var stringifiedValue = needStringify ? JSON.stringify(value) : value;
    localStorage.setItem(id, stringifiedValue);
  },
  removeItem: function removeItem(key) {
    var id = storageKeys[key];
    localStorage.removeItem(id);
  },
  isHasId: function isHasId(key, id) {
    var value = this.getItem(key, false) || '';
    var valueArray = value ? value.split(',') : [];
    return valueArray.includes(id);
  },
  setItemById: function setItemById(key, id) {
    var value = this.getItem(key, false) || '';
    var valueArray = value ? value.split(',') : [];
    var MAX_ITEMS = 5000;
    if (valueArray.includes(id)) {
      return;
    }
    if (valueArray.length > MAX_ITEMS) {
      valueArray.splice(0, valueArray.length - MAX_ITEMS + 1);
    }
    valueArray.push(id);
    this.setItem(key, valueArray.join(','), false);
  }
};
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/datetime.js
var datetime = __webpack_require__(2207);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(919);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/RightOutlined.js
// This icon file is generated automatically.
var RightOutlined_RightOutlined = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"
      }
    }]
  },
  "name": "right",
  "theme": "outlined"
};
/* harmony default export */ var asn_RightOutlined = (RightOutlined_RightOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(2361);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/RightOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var icons_RightOutlined_RightOutlined = function RightOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_RightOutlined
  }));
};
icons_RightOutlined_RightOutlined.displayName = 'RightOutlined';
/* harmony default export */ var icons_RightOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(icons_RightOutlined_RightOutlined));
;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.0.1@rc-dropdown/es/placements.js
var placements_autoAdjustOverflow = {
  adjustX: 1,
  adjustY: 1
};
var es_placements_targetOffset = [0, 0];
var placements_placements = {
  topLeft: {
    points: ['bl', 'tl'],
    overflow: placements_autoAdjustOverflow,
    offset: [0, -4],
    targetOffset: es_placements_targetOffset
  },
  topCenter: {
    points: ['bc', 'tc'],
    overflow: placements_autoAdjustOverflow,
    offset: [0, -4],
    targetOffset: es_placements_targetOffset
  },
  topRight: {
    points: ['br', 'tr'],
    overflow: placements_autoAdjustOverflow,
    offset: [0, -4],
    targetOffset: es_placements_targetOffset
  },
  bottomLeft: {
    points: ['tl', 'bl'],
    overflow: placements_autoAdjustOverflow,
    offset: [0, 4],
    targetOffset: es_placements_targetOffset
  },
  bottomCenter: {
    points: ['tc', 'bc'],
    overflow: placements_autoAdjustOverflow,
    offset: [0, 4],
    targetOffset: es_placements_targetOffset
  },
  bottomRight: {
    points: ['tr', 'br'],
    overflow: placements_autoAdjustOverflow,
    offset: [0, 4],
    targetOffset: es_placements_targetOffset
  }
};
/* harmony default export */ var _rc_dropdown_4_0_1_rc_dropdown_es_placements = (placements_placements);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(9202);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(372);
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/focus.js


function focusable(node) {
  var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  if (isVisible(node)) {
    var nodeName = node.nodeName.toLowerCase();
    var isFocusableElement =
    // Focusable element
    ['input', 'select', 'textarea', 'button'].includes(nodeName) ||
    // Editable element
    node.isContentEditable ||
    // Anchor with href element
    nodeName === 'a' && !!node.getAttribute('href');

    // Get tabIndex
    var tabIndexAttr = node.getAttribute('tabindex');
    var tabIndexNum = Number(tabIndexAttr);

    // Parse as number if validate
    var tabIndex = null;
    if (tabIndexAttr && !Number.isNaN(tabIndexNum)) {
      tabIndex = tabIndexNum;
    } else if (isFocusableElement && tabIndex === null) {
      tabIndex = 0;
    }

    // Block focusable if disabled
    if (isFocusableElement && node.disabled) {
      tabIndex = null;
    }
    return tabIndex !== null && (tabIndex >= 0 || includePositive && tabIndex < 0);
  }
  return false;
}
function getFocusNodeList(node) {
  var includePositive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  var res = (0,toConsumableArray/* default */.Z)(node.querySelectorAll('*')).filter(function (child) {
    return focusable(child, includePositive);
  });
  if (focusable(node, includePositive)) {
    res.unshift(node);
  }
  return res;
}
var lastFocusElement = null;

/** @deprecated Do not use since this may failed when used in async */
function saveLastFocusNode() {
  lastFocusElement = document.activeElement;
}

/** @deprecated Do not use since this may failed when used in async */
function clearLastFocusNode() {
  lastFocusElement = null;
}

/** @deprecated Do not use since this may failed when used in async */
function backLastFocusNode() {
  if (lastFocusElement) {
    try {
      // 元素可能已经被移动了
      lastFocusElement.focus();

      /* eslint-disable no-empty */
    } catch (e) {
      // empty
    }
    /* eslint-enable no-empty */
  }
}

function limitTabRange(node, e) {
  if (e.keyCode === 9) {
    var tabNodeList = getFocusNodeList(node);
    var lastTabNode = tabNodeList[e.shiftKey ? 0 : tabNodeList.length - 1];
    var leavingTab = lastTabNode === document.activeElement || node === document.activeElement;
    if (leavingTab) {
      var target = tabNodeList[e.shiftKey ? tabNodeList.length - 1 : 0];
      target.focus();
      e.preventDefault();
    }
  }
}
;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.0.1@rc-dropdown/es/hooks/useAccessibility.js




var ESC = KeyCode/* default */.Z.ESC,
  TAB = KeyCode/* default */.Z.TAB;
function useAccessibility(_ref) {
  var visible = _ref.visible,
    setTriggerVisible = _ref.setTriggerVisible,
    triggerRef = _ref.triggerRef,
    onVisibleChange = _ref.onVisibleChange,
    autoFocus = _ref.autoFocus;
  var focusMenuRef = _react_18_2_0_react.useRef(false);
  var handleCloseMenuAndReturnFocus = function handleCloseMenuAndReturnFocus() {
    if (visible && triggerRef.current) {
      var _triggerRef$current, _triggerRef$current$t, _triggerRef$current$t2, _triggerRef$current$t3;
      (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : (_triggerRef$current$t = _triggerRef$current.triggerRef) === null || _triggerRef$current$t === void 0 ? void 0 : (_triggerRef$current$t2 = _triggerRef$current$t.current) === null || _triggerRef$current$t2 === void 0 ? void 0 : (_triggerRef$current$t3 = _triggerRef$current$t2.focus) === null || _triggerRef$current$t3 === void 0 ? void 0 : _triggerRef$current$t3.call(_triggerRef$current$t2);
      setTriggerVisible(false);
      if (typeof onVisibleChange === 'function') {
        onVisibleChange(false);
      }
    }
  };
  var focusMenu = function focusMenu() {
    var _triggerRef$current2, _triggerRef$current2$, _triggerRef$current2$2, _triggerRef$current2$3;
    var elements = getFocusNodeList((_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : (_triggerRef$current2$ = _triggerRef$current2.popupRef) === null || _triggerRef$current2$ === void 0 ? void 0 : (_triggerRef$current2$2 = _triggerRef$current2$.current) === null || _triggerRef$current2$2 === void 0 ? void 0 : (_triggerRef$current2$3 = _triggerRef$current2$2.getElement) === null || _triggerRef$current2$3 === void 0 ? void 0 : _triggerRef$current2$3.call(_triggerRef$current2$2));
    var firstElement = elements[0];
    if (firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus) {
      firstElement.focus();
      focusMenuRef.current = true;
      return true;
    }
    return false;
  };
  var handleKeyDown = function handleKeyDown(event) {
    switch (event.keyCode) {
      case ESC:
        handleCloseMenuAndReturnFocus();
        break;
      case TAB:
        {
          var focusResult = false;
          if (!focusMenuRef.current) {
            focusResult = focusMenu();
          }
          if (focusResult) {
            event.preventDefault();
          } else {
            handleCloseMenuAndReturnFocus();
          }
          break;
        }
    }
  };
  _react_18_2_0_react.useEffect(function () {
    if (visible) {
      window.addEventListener('keydown', handleKeyDown);
      if (autoFocus) {
        // FIXME: hack with raf
        (0,raf/* default */.Z)(focusMenu, 3);
      }
      return function () {
        window.removeEventListener('keydown', handleKeyDown);
        focusMenuRef.current = false;
      };
    }
    return function () {
      focusMenuRef.current = false;
    };
  }, [visible]); // eslint-disable-line react-hooks/exhaustive-deps
}
;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.0.1@rc-dropdown/es/Dropdown.js




var Dropdown_excluded = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus"];





function Dropdown(props, ref) {
  var _props$arrow = props.arrow,
    arrow = _props$arrow === void 0 ? false : _props$arrow,
    _props$prefixCls = props.prefixCls,
    prefixCls = _props$prefixCls === void 0 ? 'rc-dropdown' : _props$prefixCls,
    transitionName = props.transitionName,
    animation = props.animation,
    align = props.align,
    _props$placement = props.placement,
    placement = _props$placement === void 0 ? 'bottomLeft' : _props$placement,
    _props$placements = props.placements,
    placements = _props$placements === void 0 ? _rc_dropdown_4_0_1_rc_dropdown_es_placements : _props$placements,
    getPopupContainer = props.getPopupContainer,
    showAction = props.showAction,
    hideAction = props.hideAction,
    overlayClassName = props.overlayClassName,
    overlayStyle = props.overlayStyle,
    visible = props.visible,
    _props$trigger = props.trigger,
    trigger = _props$trigger === void 0 ? ['hover'] : _props$trigger,
    autoFocus = props.autoFocus,
    otherProps = (0,objectWithoutProperties/* default */.Z)(props, Dropdown_excluded);
  var _React$useState = _react_18_2_0_react.useState(),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    triggerVisible = _React$useState2[0],
    setTriggerVisible = _React$useState2[1];
  var mergedVisible = 'visible' in props ? visible : triggerVisible;
  var triggerRef = _react_18_2_0_react.useRef(null);
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return triggerRef.current;
  });
  useAccessibility({
    visible: mergedVisible,
    setTriggerVisible: setTriggerVisible,
    triggerRef: triggerRef,
    onVisibleChange: props.onVisibleChange,
    autoFocus: autoFocus
  });
  var getOverlayElement = function getOverlayElement() {
    var overlay = props.overlay;
    var overlayElement;
    if (typeof overlay === 'function') {
      overlayElement = overlay();
    } else {
      overlayElement = overlay;
    }
    return overlayElement;
  };
  var onClick = function onClick(e) {
    var onOverlayClick = props.onOverlayClick;
    setTriggerVisible(false);
    if (onOverlayClick) {
      onOverlayClick(e);
    }
  };
  var onVisibleChange = function onVisibleChange(newVisible) {
    var onVisibleChangeProp = props.onVisibleChange;
    setTriggerVisible(newVisible);
    if (typeof onVisibleChangeProp === 'function') {
      onVisibleChangeProp(newVisible);
    }
  };
  var getMenuElement = function getMenuElement() {
    var overlayElement = getOverlayElement();
    return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, arrow && /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-arrow")
    }), overlayElement);
  };
  var getMenuElementOrLambda = function getMenuElementOrLambda() {
    var overlay = props.overlay;
    if (typeof overlay === 'function') {
      return getMenuElement;
    }
    return getMenuElement();
  };
  var getMinOverlayWidthMatchTrigger = function getMinOverlayWidthMatchTrigger() {
    var minOverlayWidthMatchTrigger = props.minOverlayWidthMatchTrigger,
      alignPoint = props.alignPoint;
    if ('minOverlayWidthMatchTrigger' in props) {
      return minOverlayWidthMatchTrigger;
    }
    return !alignPoint;
  };
  var getOpenClassName = function getOpenClassName() {
    var openClassName = props.openClassName;
    if (openClassName !== undefined) {
      return openClassName;
    }
    return "".concat(prefixCls, "-open");
  };
  var renderChildren = function renderChildren() {
    var children = props.children;
    var childrenProps = children.props ? children.props : {};
    var childClassName = _classnames_2_3_2_classnames_default()(childrenProps.className, getOpenClassName());
    return mergedVisible && children ? /*#__PURE__*/_react_18_2_0_react.cloneElement(children, {
      className: childClassName
    }) : children;
  };
  var triggerHideAction = hideAction;
  if (!triggerHideAction && trigger.indexOf('contextMenu') !== -1) {
    triggerHideAction = ['click'];
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_trigger_5_3_4_rc_trigger_es, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
    builtinPlacements: placements
  }, otherProps), {}, {
    prefixCls: prefixCls,
    ref: triggerRef,
    popupClassName: _classnames_2_3_2_classnames_default()(overlayClassName, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-show-arrow"), arrow)),
    popupStyle: overlayStyle,
    action: trigger,
    showAction: showAction,
    hideAction: triggerHideAction || [],
    popupPlacement: placement,
    popupAlign: align,
    popupTransitionName: transitionName,
    popupAnimation: animation,
    popupVisible: mergedVisible,
    stretch: getMinOverlayWidthMatchTrigger() ? 'minWidth' : '',
    popup: getMenuElementOrLambda(),
    onPopupVisibleChange: onVisibleChange,
    onPopupClick: onClick,
    getPopupContainer: getPopupContainer
  }), renderChildren());
}
/* harmony default export */ var es_Dropdown = (/*#__PURE__*/_react_18_2_0_react.forwardRef(Dropdown));
;// CONCATENATED MODULE: ./node_modules/_rc-dropdown@4.0.1@rc-dropdown/es/index.js

/* harmony default export */ var _rc_dropdown_4_0_1_rc_dropdown_es = (es_Dropdown);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useEvent.js
var useEvent = __webpack_require__(5055);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/EllipsisOutlined.js
// This icon file is generated automatically.
var EllipsisOutlined = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"
      }
    }]
  },
  "name": "ellipsis",
  "theme": "outlined"
};
/* harmony default export */ var asn_EllipsisOutlined = (EllipsisOutlined);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/EllipsisOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var EllipsisOutlined_EllipsisOutlined = function EllipsisOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_EllipsisOutlined
  }));
};
EllipsisOutlined_EllipsisOutlined.displayName = 'EllipsisOutlined';
/* harmony default export */ var icons_EllipsisOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(EllipsisOutlined_EllipsisOutlined));
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Children/toArray.js
var Children_toArray = __webpack_require__(5075);
;// CONCATENATED MODULE: ./node_modules/_rc-resize-observer@1.3.1@rc-resize-observer/es/utils/observerUtil.js

// =============================== Const ===============================
var elementListeners = new Map();
function onResize(entities) {
  entities.forEach(function (entity) {
    var _elementListeners$get;
    var target = entity.target;
    (_elementListeners$get = elementListeners.get(target)) === null || _elementListeners$get === void 0 ? void 0 : _elementListeners$get.forEach(function (listener) {
      return listener(target);
    });
  });
}
// Note: ResizeObserver polyfill not support option to measure border-box resize
var resizeObserver = new ResizeObserver_es(onResize);
// Dev env only
var _el = (/* unused pure expression or super */ null && ( false ? 0 : null)); // eslint-disable-line
var _rs = (/* unused pure expression or super */ null && ( false ? 0 : null)); // eslint-disable-line
// ============================== Observe ==============================
function observe(element, callback) {
  if (!elementListeners.has(element)) {
    elementListeners.set(element, new Set());
    resizeObserver.observe(element);
  }
  elementListeners.get(element).add(callback);
}
function unobserve(element, callback) {
  if (elementListeners.has(element)) {
    elementListeners.get(element).delete(callback);
    if (!elementListeners.get(element).size) {
      resizeObserver.unobserve(element);
      elementListeners.delete(element);
    }
  }
}
;// CONCATENATED MODULE: ./node_modules/_rc-resize-observer@1.3.1@rc-resize-observer/es/SingleObserver/DomWrapper.js





/**
 * Fallback to findDOMNode if origin ref do not provide any dom element
 */
var DomWrapper = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(DomWrapper, _React$Component);
  var _super = (0,createSuper/* default */.Z)(DomWrapper);
  function DomWrapper() {
    (0,classCallCheck/* default */.Z)(this, DomWrapper);
    return _super.apply(this, arguments);
  }
  (0,createClass/* default */.Z)(DomWrapper, [{
    key: "render",
    value: function render() {
      return this.props.children;
    }
  }]);
  return DomWrapper;
}(_react_18_2_0_react.Component);

;// CONCATENATED MODULE: ./node_modules/_rc-resize-observer@1.3.1@rc-resize-observer/es/Collection.js

var CollectionContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
/**
 * Collect all the resize event from children ResizeObserver
 */
function Collection(_ref) {
  var children = _ref.children,
    onBatchResize = _ref.onBatchResize;
  var resizeIdRef = _react_18_2_0_react.useRef(0);
  var resizeInfosRef = _react_18_2_0_react.useRef([]);
  var onCollectionResize = _react_18_2_0_react.useContext(CollectionContext);
  var onResize = _react_18_2_0_react.useCallback(function (size, element, data) {
    resizeIdRef.current += 1;
    var currentId = resizeIdRef.current;
    resizeInfosRef.current.push({
      size: size,
      element: element,
      data: data
    });
    Promise.resolve().then(function () {
      if (currentId === resizeIdRef.current) {
        onBatchResize === null || onBatchResize === void 0 ? void 0 : onBatchResize(resizeInfosRef.current);
        resizeInfosRef.current = [];
      }
    });
    // Continue bubbling if parent exist
    onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(size, element, data);
  }, [onBatchResize, onCollectionResize]);
  return /*#__PURE__*/_react_18_2_0_react.createElement(CollectionContext.Provider, {
    value: onResize
  }, children);
}
;// CONCATENATED MODULE: ./node_modules/_rc-resize-observer@1.3.1@rc-resize-observer/es/SingleObserver/index.js







function SingleObserver(props, ref) {
  var children = props.children,
    disabled = props.disabled;
  var elementRef = _react_18_2_0_react.useRef(null);
  var wrapperRef = _react_18_2_0_react.useRef(null);
  var onCollectionResize = _react_18_2_0_react.useContext(CollectionContext);
  // =========================== Children ===========================
  var isRenderProps = typeof children === 'function';
  var mergedChildren = isRenderProps ? children(elementRef) : children;
  // ============================= Size =============================
  var sizeRef = _react_18_2_0_react.useRef({
    width: -1,
    height: -1,
    offsetWidth: -1,
    offsetHeight: -1
  });
  // ============================= Ref ==============================
  var canRef = !isRenderProps && /*#__PURE__*/_react_18_2_0_react.isValidElement(mergedChildren) && (0,es_ref/* supportRef */.Yr)(mergedChildren);
  var originRef = canRef ? mergedChildren.ref : null;
  var mergedRef = _react_18_2_0_react.useMemo(function () {
    return (0,es_ref/* composeRef */.sQ)(originRef, elementRef);
  }, [originRef, elementRef]);
  var getDom = function getDom() {
    return (0,findDOMNode/* default */.Z)(elementRef.current) || (0,findDOMNode/* default */.Z)(wrapperRef.current);
  };
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return getDom();
  });
  // =========================== Observe ============================
  var propsRef = _react_18_2_0_react.useRef(props);
  propsRef.current = props;
  // Handler
  var onInternalResize = _react_18_2_0_react.useCallback(function (target) {
    var _propsRef$current = propsRef.current,
      onResize = _propsRef$current.onResize,
      data = _propsRef$current.data;
    var _target$getBoundingCl = target.getBoundingClientRect(),
      width = _target$getBoundingCl.width,
      height = _target$getBoundingCl.height;
    var offsetWidth = target.offsetWidth,
      offsetHeight = target.offsetHeight;
    /**
     * Resize observer trigger when content size changed.
     * In most case we just care about element size,
     * let's use `boundary` instead of `contentRect` here to avoid shaking.
     */
    var fixedWidth = Math.floor(width);
    var fixedHeight = Math.floor(height);
    if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) {
      var size = {
        width: fixedWidth,
        height: fixedHeight,
        offsetWidth: offsetWidth,
        offsetHeight: offsetHeight
      };
      sizeRef.current = size;
      // IE is strange, right?
      var mergedOffsetWidth = offsetWidth === Math.round(width) ? width : offsetWidth;
      var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight;
      var sizeInfo = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, size), {}, {
        offsetWidth: mergedOffsetWidth,
        offsetHeight: mergedOffsetHeight
      });
      // Let collection know what happened
      onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(sizeInfo, target, data);
      if (onResize) {
        // defer the callback but not defer to next frame
        Promise.resolve().then(function () {
          onResize(sizeInfo, target);
        });
      }
    }
  }, []);
  // Dynamic observe
  _react_18_2_0_react.useEffect(function () {
    var currentElement = getDom();
    if (currentElement && !disabled) {
      observe(currentElement, onInternalResize);
    }
    return function () {
      return unobserve(currentElement, onInternalResize);
    };
  }, [elementRef.current, disabled]);
  // ============================ Render ============================
  return /*#__PURE__*/_react_18_2_0_react.createElement(DomWrapper, {
    ref: wrapperRef
  }, canRef ? /*#__PURE__*/_react_18_2_0_react.cloneElement(mergedChildren, {
    ref: mergedRef
  }) : mergedChildren);
}
var RefSingleObserver = /*#__PURE__*/_react_18_2_0_react.forwardRef(SingleObserver);
if (false) {}
/* harmony default export */ var es_SingleObserver = (RefSingleObserver);
;// CONCATENATED MODULE: ./node_modules/_rc-resize-observer@1.3.1@rc-resize-observer/es/index.js






var INTERNAL_PREFIX_KEY = 'rc-observer-key';


function es_ResizeObserver(props, ref) {
  var children = props.children;
  var childNodes = typeof children === 'function' ? [children] : (0,Children_toArray/* default */.Z)(children);
  if (false) {}
  return childNodes.map(function (child, index) {
    var key = (child === null || child === void 0 ? void 0 : child.key) || "".concat(INTERNAL_PREFIX_KEY, "-").concat(index);
    return /*#__PURE__*/_react_18_2_0_react.createElement(es_SingleObserver, (0,esm_extends/* default */.Z)({}, props, {
      key: key,
      ref: index === 0 ? ref : undefined
    }), child);
  });
}
var RefResizeObserver = /*#__PURE__*/_react_18_2_0_react.forwardRef(es_ResizeObserver);
if (false) {}
RefResizeObserver.Collection = Collection;
/* harmony default export */ var _rc_resize_observer_1_3_1_rc_resize_observer_es = (RefResizeObserver);
;// CONCATENATED MODULE: ./node_modules/_rc-overflow@1.3.0@rc-overflow/es/Item.js



var Item_excluded = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];



// Use shared variable to save bundle size
var UNDEFINED = undefined;
function InternalItem(props, ref) {
  var prefixCls = props.prefixCls,
    invalidate = props.invalidate,
    item = props.item,
    renderItem = props.renderItem,
    responsive = props.responsive,
    responsiveDisabled = props.responsiveDisabled,
    registerSize = props.registerSize,
    itemKey = props.itemKey,
    className = props.className,
    style = props.style,
    children = props.children,
    display = props.display,
    order = props.order,
    _props$component = props.component,
    Component = _props$component === void 0 ? 'div' : _props$component,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, Item_excluded);
  var mergedHidden = responsive && !display;
  // ================================ Effect ================================
  function internalRegisterSize(width) {
    registerSize(itemKey, width);
  }
  _react_18_2_0_react.useEffect(function () {
    return function () {
      internalRegisterSize(null);
    };
  }, []);
  // ================================ Render ================================
  var childNode = renderItem && item !== UNDEFINED ? renderItem(item) : children;
  var overflowStyle;
  if (!invalidate) {
    overflowStyle = {
      opacity: mergedHidden ? 0 : 1,
      height: mergedHidden ? 0 : UNDEFINED,
      overflowY: mergedHidden ? 'hidden' : UNDEFINED,
      order: responsive ? order : UNDEFINED,
      pointerEvents: mergedHidden ? 'none' : UNDEFINED,
      position: mergedHidden ? 'absolute' : UNDEFINED
    };
  }
  var overflowProps = {};
  if (mergedHidden) {
    overflowProps['aria-hidden'] = true;
  }
  var itemNode = /*#__PURE__*/_react_18_2_0_react.createElement(Component, (0,esm_extends/* default */.Z)({
    className: _classnames_2_3_2_classnames_default()(!invalidate && prefixCls, className),
    style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, overflowStyle), style)
  }, overflowProps, restProps, {
    ref: ref
  }), childNode);
  if (responsive) {
    itemNode = /*#__PURE__*/_react_18_2_0_react.createElement(_rc_resize_observer_1_3_1_rc_resize_observer_es, {
      onResize: function onResize(_ref) {
        var offsetWidth = _ref.offsetWidth;
        internalRegisterSize(offsetWidth);
      },
      disabled: responsiveDisabled
    }, itemNode);
  }
  return itemNode;
}
var Item = /*#__PURE__*/_react_18_2_0_react.forwardRef(InternalItem);
Item.displayName = 'Item';
/* harmony default export */ var es_Item = (Item);
;// CONCATENATED MODULE: ./node_modules/_rc-overflow@1.3.0@rc-overflow/es/hooks/channelUpdate.js

function channelUpdate(callback) {
  if (typeof MessageChannel === 'undefined') {
    (0,raf/* default */.Z)(callback);
  } else {
    var channel = new MessageChannel();
    channel.port1.onmessage = function () {
      return callback();
    };
    channel.port2.postMessage(undefined);
  }
}
;// CONCATENATED MODULE: ./node_modules/_rc-overflow@1.3.0@rc-overflow/es/hooks/useEffectState.js





/**
 * Batcher for record any `useEffectState` need update.
 */
function useBatcher() {
  // Updater Trigger
  var updateFuncRef = _react_18_2_0_react.useRef(null);
  // Notify update
  var notifyEffectUpdate = function notifyEffectUpdate(callback) {
    if (!updateFuncRef.current) {
      updateFuncRef.current = [];
      channelUpdate(function () {
        (0,_react_dom_18_2_0_react_dom.unstable_batchedUpdates)(function () {
          updateFuncRef.current.forEach(function (fn) {
            fn();
          });
          updateFuncRef.current = null;
        });
      });
    }
    updateFuncRef.current.push(callback);
  };
  return notifyEffectUpdate;
}
/**
 * Trigger state update by `useLayoutEffect` to save perf.
 */
function useEffectState(notifyEffectUpdate, defaultValue) {
  // Value
  var _React$useState = _react_18_2_0_react.useState(defaultValue),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    stateValue = _React$useState2[0],
    setStateValue = _React$useState2[1];
  // Set State
  var setEffectVal = (0,useEvent/* default */.Z)(function (nextValue) {
    notifyEffectUpdate(function () {
      setStateValue(nextValue);
    });
  });
  return [stateValue, setEffectVal];
}
;// CONCATENATED MODULE: ./node_modules/_rc-overflow@1.3.0@rc-overflow/es/RawItem.js


var RawItem_excluded = ["component"],
  _excluded2 = ["className"],
  _excluded3 = ["className"];




var InternalRawItem = function InternalRawItem(props, ref) {
  var context = _react_18_2_0_react.useContext(OverflowContext);
  // Render directly when context not provided
  if (!context) {
    var _props$component = props.component,
      Component = _props$component === void 0 ? 'div' : _props$component,
      _restProps = (0,objectWithoutProperties/* default */.Z)(props, RawItem_excluded);
    return /*#__PURE__*/_react_18_2_0_react.createElement(Component, (0,esm_extends/* default */.Z)({}, _restProps, {
      ref: ref
    }));
  }
  var contextClassName = context.className,
    restContext = (0,objectWithoutProperties/* default */.Z)(context, _excluded2);
  var className = props.className,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded3);
  // Do not pass context to sub item to avoid multiple measure
  return /*#__PURE__*/_react_18_2_0_react.createElement(OverflowContext.Provider, {
    value: null
  }, /*#__PURE__*/_react_18_2_0_react.createElement(es_Item, (0,esm_extends/* default */.Z)({
    ref: ref,
    className: _classnames_2_3_2_classnames_default()(contextClassName, className)
  }, restContext, restProps)));
};
var RawItem = /*#__PURE__*/_react_18_2_0_react.forwardRef(InternalRawItem);
RawItem.displayName = 'RawItem';
/* harmony default export */ var es_RawItem = (RawItem);
;// CONCATENATED MODULE: ./node_modules/_rc-overflow@1.3.0@rc-overflow/es/Overflow.js




var Overflow_excluded = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];








var OverflowContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
var RESPONSIVE = 'responsive';
var INVALIDATE = 'invalidate';
function defaultRenderRest(omittedItems) {
  return "+ ".concat(omittedItems.length, " ...");
}
function Overflow(props, ref) {
  var _props$prefixCls = props.prefixCls,
    prefixCls = _props$prefixCls === void 0 ? 'rc-overflow' : _props$prefixCls,
    _props$data = props.data,
    data = _props$data === void 0 ? [] : _props$data,
    renderItem = props.renderItem,
    renderRawItem = props.renderRawItem,
    itemKey = props.itemKey,
    _props$itemWidth = props.itemWidth,
    itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth,
    ssr = props.ssr,
    style = props.style,
    className = props.className,
    maxCount = props.maxCount,
    renderRest = props.renderRest,
    renderRawRest = props.renderRawRest,
    suffix = props.suffix,
    _props$component = props.component,
    Component = _props$component === void 0 ? 'div' : _props$component,
    itemComponent = props.itemComponent,
    onVisibleChange = props.onVisibleChange,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, Overflow_excluded);
  var fullySSR = ssr === 'full';
  var notifyEffectUpdate = useBatcher();
  var _useEffectState = useEffectState(notifyEffectUpdate, null),
    _useEffectState2 = (0,slicedToArray/* default */.Z)(_useEffectState, 2),
    containerWidth = _useEffectState2[0],
    setContainerWidth = _useEffectState2[1];
  var mergedContainerWidth = containerWidth || 0;
  var _useEffectState3 = useEffectState(notifyEffectUpdate, new Map()),
    _useEffectState4 = (0,slicedToArray/* default */.Z)(_useEffectState3, 2),
    itemWidths = _useEffectState4[0],
    setItemWidths = _useEffectState4[1];
  var _useEffectState5 = useEffectState(notifyEffectUpdate, 0),
    _useEffectState6 = (0,slicedToArray/* default */.Z)(_useEffectState5, 2),
    prevRestWidth = _useEffectState6[0],
    setPrevRestWidth = _useEffectState6[1];
  var _useEffectState7 = useEffectState(notifyEffectUpdate, 0),
    _useEffectState8 = (0,slicedToArray/* default */.Z)(_useEffectState7, 2),
    restWidth = _useEffectState8[0],
    setRestWidth = _useEffectState8[1];
  var _useEffectState9 = useEffectState(notifyEffectUpdate, 0),
    _useEffectState10 = (0,slicedToArray/* default */.Z)(_useEffectState9, 2),
    suffixWidth = _useEffectState10[0],
    setSuffixWidth = _useEffectState10[1];
  var _useState = (0,_react_18_2_0_react.useState)(null),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    suffixFixedStart = _useState2[0],
    setSuffixFixedStart = _useState2[1];
  var _useState3 = (0,_react_18_2_0_react.useState)(null),
    _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2),
    displayCount = _useState4[0],
    setDisplayCount = _useState4[1];
  var mergedDisplayCount = _react_18_2_0_react.useMemo(function () {
    if (displayCount === null && fullySSR) {
      return Number.MAX_SAFE_INTEGER;
    }
    return displayCount || 0;
  }, [displayCount, containerWidth]);
  var _useState5 = (0,_react_18_2_0_react.useState)(false),
    _useState6 = (0,slicedToArray/* default */.Z)(_useState5, 2),
    restReady = _useState6[0],
    setRestReady = _useState6[1];
  var itemPrefixCls = "".concat(prefixCls, "-item");
  // Always use the max width to avoid blink
  var mergedRestWidth = Math.max(prevRestWidth, restWidth);
  // ================================= Data =================================
  var isResponsive = maxCount === RESPONSIVE;
  var shouldResponsive = data.length && isResponsive;
  var invalidate = maxCount === INVALIDATE;
  /**
   * When is `responsive`, we will always render rest node to get the real width of it for calculation
   */
  var showRest = shouldResponsive || typeof maxCount === 'number' && data.length > maxCount;
  var mergedData = (0,_react_18_2_0_react.useMemo)(function () {
    var items = data;
    if (shouldResponsive) {
      if (containerWidth === null && fullySSR) {
        items = data;
      } else {
        items = data.slice(0, Math.min(data.length, mergedContainerWidth / itemWidth));
      }
    } else if (typeof maxCount === 'number') {
      items = data.slice(0, maxCount);
    }
    return items;
  }, [data, itemWidth, containerWidth, maxCount, shouldResponsive]);
  var omittedItems = (0,_react_18_2_0_react.useMemo)(function () {
    if (shouldResponsive) {
      return data.slice(mergedDisplayCount + 1);
    }
    return data.slice(mergedData.length);
  }, [data, mergedData, shouldResponsive, mergedDisplayCount]);
  // ================================= Item =================================
  var getKey = (0,_react_18_2_0_react.useCallback)(function (item, index) {
    var _ref;
    if (typeof itemKey === 'function') {
      return itemKey(item);
    }
    return (_ref = itemKey && (item === null || item === void 0 ? void 0 : item[itemKey])) !== null && _ref !== void 0 ? _ref : index;
  }, [itemKey]);
  var mergedRenderItem = (0,_react_18_2_0_react.useCallback)(renderItem || function (item) {
    return item;
  }, [renderItem]);
  function updateDisplayCount(count, suffixFixedStartVal, notReady) {
    // React 18 will sync render even when the value is same in some case.
    // We take `mergedData` as deps which may cause dead loop if it's dynamic generate.
    // ref: https://github.com/ant-design/ant-design/issues/36559
    if (displayCount === count && (suffixFixedStartVal === undefined || suffixFixedStartVal === suffixFixedStart)) {
      return;
    }
    setDisplayCount(count);
    if (!notReady) {
      setRestReady(count < data.length - 1);
      onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(count);
    }
    if (suffixFixedStartVal !== undefined) {
      setSuffixFixedStart(suffixFixedStartVal);
    }
  }
  // ================================= Size =================================
  function onOverflowResize(_, element) {
    setContainerWidth(element.clientWidth);
  }
  function registerSize(key, width) {
    setItemWidths(function (origin) {
      var clone = new Map(origin);
      if (width === null) {
        clone.delete(key);
      } else {
        clone.set(key, width);
      }
      return clone;
    });
  }
  function registerOverflowSize(_, width) {
    setRestWidth(width);
    setPrevRestWidth(restWidth);
  }
  function registerSuffixSize(_, width) {
    setSuffixWidth(width);
  }
  // ================================ Effect ================================
  function getItemWidth(index) {
    return itemWidths.get(getKey(mergedData[index], index));
  }
  (0,useLayoutEffect/* default */.Z)(function () {
    if (mergedContainerWidth && typeof mergedRestWidth === 'number' && mergedData) {
      var totalWidth = suffixWidth;
      var len = mergedData.length;
      var lastIndex = len - 1;
      // When data count change to 0, reset this since not loop will reach
      if (!len) {
        updateDisplayCount(0, null);
        return;
      }
      for (var i = 0; i < len; i += 1) {
        var currentItemWidth = getItemWidth(i);
        // Fully will always render
        if (fullySSR) {
          currentItemWidth = currentItemWidth || 0;
        }
        // Break since data not ready
        if (currentItemWidth === undefined) {
          updateDisplayCount(i - 1, undefined, true);
          break;
        }
        // Find best match
        totalWidth += currentItemWidth;
        if (
        // Only one means `totalWidth` is the final width
        lastIndex === 0 && totalWidth <= mergedContainerWidth ||
        // Last two width will be the final width
        i === lastIndex - 1 && totalWidth + getItemWidth(lastIndex) <= mergedContainerWidth) {
          // Additional check if match the end
          updateDisplayCount(lastIndex, null);
          break;
        } else if (totalWidth + mergedRestWidth > mergedContainerWidth) {
          // Can not hold all the content to show rest
          updateDisplayCount(i - 1, totalWidth - currentItemWidth - suffixWidth + restWidth);
          break;
        }
      }
      if (suffix && getItemWidth(0) + suffixWidth > mergedContainerWidth) {
        setSuffixFixedStart(null);
      }
    }
  }, [mergedContainerWidth, itemWidths, restWidth, suffixWidth, getKey, mergedData]);
  // ================================ Render ================================
  var displayRest = restReady && !!omittedItems.length;
  var suffixStyle = {};
  if (suffixFixedStart !== null && shouldResponsive) {
    suffixStyle = {
      position: 'absolute',
      left: suffixFixedStart,
      top: 0
    };
  }
  var itemSharedProps = {
    prefixCls: itemPrefixCls,
    responsive: shouldResponsive,
    component: itemComponent,
    invalidate: invalidate
  };
  // >>>>> Choice render fun by `renderRawItem`
  var internalRenderItemNode = renderRawItem ? function (item, index) {
    var key = getKey(item, index);
    return /*#__PURE__*/_react_18_2_0_react.createElement(OverflowContext.Provider, {
      key: key,
      value: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, itemSharedProps), {}, {
        order: index,
        item: item,
        itemKey: key,
        registerSize: registerSize,
        display: index <= mergedDisplayCount
      })
    }, renderRawItem(item, index));
  } : function (item, index) {
    var key = getKey(item, index);
    return /*#__PURE__*/_react_18_2_0_react.createElement(es_Item, (0,esm_extends/* default */.Z)({}, itemSharedProps, {
      order: index,
      key: key,
      item: item,
      renderItem: mergedRenderItem,
      itemKey: key,
      registerSize: registerSize,
      display: index <= mergedDisplayCount
    }));
  };
  // >>>>> Rest node
  var restNode;
  var restContextProps = {
    order: displayRest ? mergedDisplayCount : Number.MAX_SAFE_INTEGER,
    className: "".concat(itemPrefixCls, "-rest"),
    registerSize: registerOverflowSize,
    display: displayRest
  };
  if (!renderRawRest) {
    var mergedRenderRest = renderRest || defaultRenderRest;
    restNode = /*#__PURE__*/_react_18_2_0_react.createElement(es_Item, (0,esm_extends/* default */.Z)({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
  } else if (renderRawRest) {
    restNode = /*#__PURE__*/_react_18_2_0_react.createElement(OverflowContext.Provider, {
      value: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, itemSharedProps), restContextProps)
    }, renderRawRest(omittedItems));
  }
  var overflowNode = /*#__PURE__*/_react_18_2_0_react.createElement(Component, (0,esm_extends/* default */.Z)({
    className: _classnames_2_3_2_classnames_default()(!invalidate && prefixCls, className),
    style: style,
    ref: ref
  }, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/_react_18_2_0_react.createElement(es_Item, (0,esm_extends/* default */.Z)({}, itemSharedProps, {
    responsive: isResponsive,
    responsiveDisabled: !shouldResponsive,
    order: mergedDisplayCount,
    className: "".concat(itemPrefixCls, "-suffix"),
    registerSize: registerSuffixSize,
    display: true,
    style: suffixStyle
  }), suffix));
  if (isResponsive) {
    overflowNode = /*#__PURE__*/_react_18_2_0_react.createElement(_rc_resize_observer_1_3_1_rc_resize_observer_es, {
      onResize: onOverflowResize,
      disabled: !shouldResponsive
    }, overflowNode);
  }
  return overflowNode;
}
var ForwardOverflow = /*#__PURE__*/_react_18_2_0_react.forwardRef(Overflow);
ForwardOverflow.displayName = 'Overflow';
ForwardOverflow.Item = es_RawItem;
ForwardOverflow.RESPONSIVE = RESPONSIVE;
ForwardOverflow.INVALIDATE = INVALIDATE;
// Convert to generic type
/* harmony default export */ var es_Overflow = (ForwardOverflow);
;// CONCATENATED MODULE: ./node_modules/_rc-overflow@1.3.0@rc-overflow/es/index.js

/* harmony default export */ var _rc_overflow_1_3_0_rc_overflow_es = (es_Overflow);
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/context/IdContext.js

var IdContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
function getMenuId(uuid, eventKey) {
  if (uuid === undefined) {
    return null;
  }
  return "".concat(uuid, "-").concat(eventKey);
}

/**
 * Get `data-menu-id`
 */
function useMenuId(eventKey) {
  var id = _react_18_2_0_react.useContext(IdContext);
  return getMenuId(id, eventKey);
}
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useMemo.js
var useMemo = __webpack_require__(5404);
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/context/MenuContext.js


var MenuContext_excluded = ["children", "locked"];



var MenuContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
function mergeProps(origin, target) {
  var clone = (0,objectSpread2/* default */.Z)({}, origin);
  Object.keys(target).forEach(function (key) {
    var value = target[key];
    if (value !== undefined) {
      clone[key] = value;
    }
  });
  return clone;
}
function InheritableContextProvider(_ref) {
  var children = _ref.children,
    locked = _ref.locked,
    restProps = (0,objectWithoutProperties/* default */.Z)(_ref, MenuContext_excluded);
  var context = _react_18_2_0_react.useContext(MenuContext);
  var inheritableContext = (0,useMemo/* default */.Z)(function () {
    return mergeProps(context, restProps);
  }, [context, restProps], function (prev, next) {
    return !locked && (prev[0] !== next[0] || !es_isEqual(prev[1], next[1], true));
  });
  return /*#__PURE__*/_react_18_2_0_react.createElement(MenuContext.Provider, {
    value: inheritableContext
  }, children);
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/context/PathContext.js


var EmptyList = [];

// ========================= Path Register =========================

var PathRegisterContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
function useMeasure() {
  return _react_18_2_0_react.useContext(PathRegisterContext);
}

// ========================= Path Tracker ==========================
var PathTrackerContext = /*#__PURE__*/_react_18_2_0_react.createContext(EmptyList);
function useFullPath(eventKey) {
  var parentKeyPath = _react_18_2_0_react.useContext(PathTrackerContext);
  return _react_18_2_0_react.useMemo(function () {
    return eventKey !== undefined ? [].concat((0,toConsumableArray/* default */.Z)(parentKeyPath), [eventKey]) : parentKeyPath;
  }, [parentKeyPath, eventKey]);
}

// =========================== Path User ===========================

var PathUserContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/context/PrivateContext.js

var PrivateContext = /*#__PURE__*/_react_18_2_0_react.createContext({});
/* harmony default export */ var context_PrivateContext = (PrivateContext);
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/hooks/useAccessibility.js







// destruct to reduce minify size
var useAccessibility_LEFT = KeyCode/* default */.Z.LEFT,
  RIGHT = KeyCode/* default */.Z.RIGHT,
  UP = KeyCode/* default */.Z.UP,
  DOWN = KeyCode/* default */.Z.DOWN,
  ENTER = KeyCode/* default */.Z.ENTER,
  useAccessibility_ESC = KeyCode/* default */.Z.ESC,
  HOME = KeyCode/* default */.Z.HOME,
  END = KeyCode/* default */.Z.END;
var ArrowKeys = [UP, DOWN, useAccessibility_LEFT, RIGHT];
function useAccessibility_getOffset(mode, isRootLevel, isRtl, which) {
  var _inline, _horizontal, _vertical, _offsets;
  var prev = 'prev';
  var next = 'next';
  var children = 'children';
  var parent = 'parent';

  // Inline enter is special that we use unique operation
  if (mode === 'inline' && which === ENTER) {
    return {
      inlineTrigger: true
    };
  }
  var inline = (_inline = {}, (0,defineProperty/* default */.Z)(_inline, UP, prev), (0,defineProperty/* default */.Z)(_inline, DOWN, next), _inline);
  var horizontal = (_horizontal = {}, (0,defineProperty/* default */.Z)(_horizontal, useAccessibility_LEFT, isRtl ? next : prev), (0,defineProperty/* default */.Z)(_horizontal, RIGHT, isRtl ? prev : next), (0,defineProperty/* default */.Z)(_horizontal, DOWN, children), (0,defineProperty/* default */.Z)(_horizontal, ENTER, children), _horizontal);
  var vertical = (_vertical = {}, (0,defineProperty/* default */.Z)(_vertical, UP, prev), (0,defineProperty/* default */.Z)(_vertical, DOWN, next), (0,defineProperty/* default */.Z)(_vertical, ENTER, children), (0,defineProperty/* default */.Z)(_vertical, useAccessibility_ESC, parent), (0,defineProperty/* default */.Z)(_vertical, useAccessibility_LEFT, isRtl ? children : parent), (0,defineProperty/* default */.Z)(_vertical, RIGHT, isRtl ? parent : children), _vertical);
  var offsets = {
    inline: inline,
    horizontal: horizontal,
    vertical: vertical,
    inlineSub: inline,
    horizontalSub: vertical,
    verticalSub: vertical
  };
  var type = (_offsets = offsets["".concat(mode).concat(isRootLevel ? '' : 'Sub')]) === null || _offsets === void 0 ? void 0 : _offsets[which];
  switch (type) {
    case prev:
      return {
        offset: -1,
        sibling: true
      };
    case next:
      return {
        offset: 1,
        sibling: true
      };
    case parent:
      return {
        offset: -1,
        sibling: false
      };
    case children:
      return {
        offset: 1,
        sibling: false
      };
    default:
      return null;
  }
}
function findContainerUL(element) {
  var current = element;
  while (current) {
    if (current.getAttribute('data-menu-list')) {
      return current;
    }
    current = current.parentElement;
  }

  // Normally should not reach this line
  /* istanbul ignore next */
  return null;
}

/**
 * Find focused element within element set provided
 */
function getFocusElement(activeElement, elements) {
  var current = activeElement || document.activeElement;
  while (current) {
    if (elements.has(current)) {
      return current;
    }
    current = current.parentElement;
  }
  return null;
}

/**
 * Get focusable elements from the element set under provided container
 */
function getFocusableElements(container, elements) {
  var list = getFocusNodeList(container, true);
  return list.filter(function (ele) {
    return elements.has(ele);
  });
}
function getNextFocusElement(parentQueryContainer, elements, focusMenuElement) {
  var offset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
  // Key on the menu item will not get validate parent container
  if (!parentQueryContainer) {
    return null;
  }

  // List current level menu item elements
  var sameLevelFocusableMenuElementList = getFocusableElements(parentQueryContainer, elements);

  // Find next focus index
  var count = sameLevelFocusableMenuElementList.length;
  var focusIndex = sameLevelFocusableMenuElementList.findIndex(function (ele) {
    return focusMenuElement === ele;
  });
  if (offset < 0) {
    if (focusIndex === -1) {
      focusIndex = count - 1;
    } else {
      focusIndex -= 1;
    }
  } else if (offset > 0) {
    focusIndex += 1;
  }
  focusIndex = (focusIndex + count) % count;

  // Focus menu item
  return sameLevelFocusableMenuElementList[focusIndex];
}
function useAccessibility_useAccessibility(mode, activeKey, isRtl, id, containerRef, getKeys, getKeyPath, triggerActiveKey, triggerAccessibilityOpen, originOnKeyDown) {
  var rafRef = _react_18_2_0_react.useRef();
  var activeRef = _react_18_2_0_react.useRef();
  activeRef.current = activeKey;
  var cleanRaf = function cleanRaf() {
    raf/* default */.Z.cancel(rafRef.current);
  };
  _react_18_2_0_react.useEffect(function () {
    return function () {
      cleanRaf();
    };
  }, []);
  return function (e) {
    var which = e.which;
    if ([].concat(ArrowKeys, [ENTER, useAccessibility_ESC, HOME, END]).includes(which)) {
      // Convert key to elements
      var elements;
      var key2element;
      var element2key;

      // >>> Wrap as function since we use raf for some case
      var refreshElements = function refreshElements() {
        elements = new Set();
        key2element = new Map();
        element2key = new Map();
        var keys = getKeys();
        keys.forEach(function (key) {
          var element = document.querySelector("[data-menu-id='".concat(getMenuId(id, key), "']"));
          if (element) {
            elements.add(element);
            element2key.set(element, key);
            key2element.set(key, element);
          }
        });
        return elements;
      };
      refreshElements();

      // First we should find current focused MenuItem/SubMenu element
      var activeElement = key2element.get(activeKey);
      var focusMenuElement = getFocusElement(activeElement, elements);
      var focusMenuKey = element2key.get(focusMenuElement);
      var offsetObj = useAccessibility_getOffset(mode, getKeyPath(focusMenuKey, true).length === 1, isRtl, which);

      // Some mode do not have fully arrow operation like inline
      if (!offsetObj && which !== HOME && which !== END) {
        return;
      }

      // Arrow prevent default to avoid page scroll
      if (ArrowKeys.includes(which) || [HOME, END].includes(which)) {
        e.preventDefault();
      }
      var tryFocus = function tryFocus(menuElement) {
        if (menuElement) {
          var focusTargetElement = menuElement;

          // Focus to link instead of menu item if possible
          var link = menuElement.querySelector('a');
          if (link !== null && link !== void 0 && link.getAttribute('href')) {
            focusTargetElement = link;
          }
          var targetKey = element2key.get(menuElement);
          triggerActiveKey(targetKey);

          /**
           * Do not `useEffect` here since `tryFocus` may trigger async
           * which makes React sync update the `activeKey`
           * that force render before `useRef` set the next activeKey
           */
          cleanRaf();
          rafRef.current = (0,raf/* default */.Z)(function () {
            if (activeRef.current === targetKey) {
              focusTargetElement.focus();
            }
          });
        }
      };
      if ([HOME, END].includes(which) || offsetObj.sibling || !focusMenuElement) {
        // ========================== Sibling ==========================
        // Find walkable focus menu element container
        var parentQueryContainer;
        if (!focusMenuElement || mode === 'inline') {
          parentQueryContainer = containerRef.current;
        } else {
          parentQueryContainer = findContainerUL(focusMenuElement);
        }

        // Get next focus element
        var targetElement;
        var focusableElements = getFocusableElements(parentQueryContainer, elements);
        if (which === HOME) {
          targetElement = focusableElements[0];
        } else if (which === END) {
          targetElement = focusableElements[focusableElements.length - 1];
        } else {
          targetElement = getNextFocusElement(parentQueryContainer, elements, focusMenuElement, offsetObj.offset);
        }
        // Focus menu item
        tryFocus(targetElement);

        // ======================= InlineTrigger =======================
      } else if (offsetObj.inlineTrigger) {
        // Inline trigger no need switch to sub menu item
        triggerAccessibilityOpen(focusMenuKey);
        // =========================== Level ===========================
      } else if (offsetObj.offset > 0) {
        triggerAccessibilityOpen(focusMenuKey, true);
        cleanRaf();
        rafRef.current = (0,raf/* default */.Z)(function () {
          // Async should resync elements
          refreshElements();
          var controlId = focusMenuElement.getAttribute('aria-controls');
          var subQueryContainer = document.getElementById(controlId);

          // Get sub focusable menu item
          var targetElement = getNextFocusElement(subQueryContainer, elements);

          // Focus menu item
          tryFocus(targetElement);
        }, 5);
      } else if (offsetObj.offset < 0) {
        var keyPath = getKeyPath(focusMenuKey, true);
        var parentKey = keyPath[keyPath.length - 2];
        var parentMenuElement = key2element.get(parentKey);

        // Focus menu item
        triggerAccessibilityOpen(parentKey, false);
        tryFocus(parentMenuElement);
      }
    }

    // Pass origin key down event
    originOnKeyDown === null || originOnKeyDown === void 0 ? void 0 : originOnKeyDown(e);
  };
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/utils/timeUtil.js
function nextSlice(callback) {
  /* istanbul ignore next */
  Promise.resolve().then(callback);
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/hooks/useKeyRecords.js






var PATH_SPLIT = '__RC_UTIL_PATH_SPLIT__';
var getPathStr = function getPathStr(keyPath) {
  return keyPath.join(PATH_SPLIT);
};
var getPathKeys = function getPathKeys(keyPathStr) {
  return keyPathStr.split(PATH_SPLIT);
};
var OVERFLOW_KEY = 'rc-menu-more';
function useKeyRecords() {
  var _React$useState = _react_18_2_0_react.useState({}),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    internalForceUpdate = _React$useState2[1];
  var key2pathRef = (0,_react_18_2_0_react.useRef)(new Map());
  var path2keyRef = (0,_react_18_2_0_react.useRef)(new Map());
  var _React$useState3 = _react_18_2_0_react.useState([]),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    overflowKeys = _React$useState4[0],
    setOverflowKeys = _React$useState4[1];
  var updateRef = (0,_react_18_2_0_react.useRef)(0);
  var destroyRef = (0,_react_18_2_0_react.useRef)(false);
  var forceUpdate = function forceUpdate() {
    if (!destroyRef.current) {
      internalForceUpdate({});
    }
  };
  var registerPath = (0,_react_18_2_0_react.useCallback)(function (key, keyPath) {
    // Warning for invalidate or duplicated `key`
    if (false) {}

    // Fill map
    var connectedPath = getPathStr(keyPath);
    path2keyRef.current.set(connectedPath, key);
    key2pathRef.current.set(key, connectedPath);
    updateRef.current += 1;
    var id = updateRef.current;
    nextSlice(function () {
      if (id === updateRef.current) {
        forceUpdate();
      }
    });
  }, []);
  var unregisterPath = (0,_react_18_2_0_react.useCallback)(function (key, keyPath) {
    var connectedPath = getPathStr(keyPath);
    path2keyRef.current.delete(connectedPath);
    key2pathRef.current.delete(key);
  }, []);
  var refreshOverflowKeys = (0,_react_18_2_0_react.useCallback)(function (keys) {
    setOverflowKeys(keys);
  }, []);
  var getKeyPath = (0,_react_18_2_0_react.useCallback)(function (eventKey, includeOverflow) {
    var fullPath = key2pathRef.current.get(eventKey) || '';
    var keys = getPathKeys(fullPath);
    if (includeOverflow && overflowKeys.includes(keys[0])) {
      keys.unshift(OVERFLOW_KEY);
    }
    return keys;
  }, [overflowKeys]);
  var isSubPathKey = (0,_react_18_2_0_react.useCallback)(function (pathKeys, eventKey) {
    return pathKeys.some(function (pathKey) {
      var pathKeyList = getKeyPath(pathKey, true);
      return pathKeyList.includes(eventKey);
    });
  }, [getKeyPath]);
  var getKeys = function getKeys() {
    var keys = (0,toConsumableArray/* default */.Z)(key2pathRef.current.keys());
    if (overflowKeys.length) {
      keys.push(OVERFLOW_KEY);
    }
    return keys;
  };

  /**
   * Find current key related child path keys
   */
  var getSubPathKeys = (0,_react_18_2_0_react.useCallback)(function (key) {
    var connectedPath = "".concat(key2pathRef.current.get(key)).concat(PATH_SPLIT);
    var pathKeys = new Set();
    (0,toConsumableArray/* default */.Z)(path2keyRef.current.keys()).forEach(function (pathKey) {
      if (pathKey.startsWith(connectedPath)) {
        pathKeys.add(path2keyRef.current.get(pathKey));
      }
    });
    return pathKeys;
  }, []);
  _react_18_2_0_react.useEffect(function () {
    return function () {
      destroyRef.current = true;
    };
  }, []);
  return {
    // Register
    registerPath: registerPath,
    unregisterPath: unregisterPath,
    refreshOverflowKeys: refreshOverflowKeys,
    // Util
    isSubPathKey: isSubPathKey,
    getKeyPath: getKeyPath,
    getKeys: getKeys,
    getSubPathKeys: getSubPathKeys
  };
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/hooks/useMemoCallback.js


/**
 * Cache callback function that always return same ref instead.
 * This is used for context optimization.
 */
function useMemoCallback(func) {
  var funRef = _react_18_2_0_react.useRef(func);
  funRef.current = func;
  var callback = _react_18_2_0_react.useCallback(function () {
    var _funRef$current;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    return (_funRef$current = funRef.current) === null || _funRef$current === void 0 ? void 0 : _funRef$current.call.apply(_funRef$current, [funRef].concat(args));
  }, []);
  return func ? callback : undefined;
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/hooks/useUUID.js



var uniquePrefix = Math.random().toFixed(5).toString().slice(2);
var internalId = 0;
function useUUID(id) {
  var _useMergedState = (0,useMergedState/* default */.Z)(id, {
      value: id
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    uuid = _useMergedState2[0],
    setUUID = _useMergedState2[1];
  _react_18_2_0_react.useEffect(function () {
    internalId += 1;
    var newId =  false ? 0 : "".concat(uniquePrefix, "-").concat(internalId);
    setUUID("rc-menu-uuid-".concat(newId));
  }, []);
  return uuid;
}
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/omit.js
var es_omit = __webpack_require__(9287);
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/hooks/useActive.js


function useActive(eventKey, disabled, onMouseEnter, onMouseLeave) {
  var _React$useContext = _react_18_2_0_react.useContext(MenuContext),
    activeKey = _React$useContext.activeKey,
    onActive = _React$useContext.onActive,
    onInactive = _React$useContext.onInactive;
  var ret = {
    active: activeKey === eventKey
  };

  // Skip when disabled
  if (!disabled) {
    ret.onMouseEnter = function (domEvent) {
      onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter({
        key: eventKey,
        domEvent: domEvent
      });
      onActive(eventKey);
    };
    ret.onMouseLeave = function (domEvent) {
      onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave({
        key: eventKey,
        domEvent: domEvent
      });
      onInactive(eventKey);
    };
  }
  return ret;
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/hooks/useDirectionStyle.js


function useDirectionStyle(level) {
  var _React$useContext = _react_18_2_0_react.useContext(MenuContext),
    mode = _React$useContext.mode,
    rtl = _React$useContext.rtl,
    inlineIndent = _React$useContext.inlineIndent;
  if (mode !== 'inline') {
    return null;
  }
  var len = level;
  return rtl ? {
    paddingRight: len * inlineIndent
  } : {
    paddingLeft: len * inlineIndent
  };
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/Icon.js


function Icon_Icon(_ref) {
  var icon = _ref.icon,
    props = _ref.props,
    children = _ref.children;
  var iconNode;
  if (typeof icon === 'function') {
    iconNode = /*#__PURE__*/_react_18_2_0_react.createElement(icon, (0,objectSpread2/* default */.Z)({}, props));
  } else {
    // Compatible for origin definition
    iconNode = icon;
  }
  return iconNode || children || null;
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/utils/warnUtil.js

var warnUtil_excluded = ["item"];


/**
 * `onClick` event return `info.item` which point to react node directly.
 * We should warning this since it will not work on FC.
 */
function warnItemProp(_ref) {
  var item = _ref.item,
    restInfo = (0,objectWithoutProperties/* default */.Z)(_ref, warnUtil_excluded);
  Object.defineProperty(restInfo, 'item', {
    get: function get() {
      (0,es_warning/* default */.ZP)(false, '`info.item` is deprecated since we will move to function component that not provides React Node instance in future.');
      return item;
    }
  });
  return restInfo;
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/MenuItem.js









var MenuItem_excluded = ["title", "attribute", "elementRef"],
  MenuItem_excluded2 = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"],
  MenuItem_excluded3 = ["active"];















// Since Menu event provide the `info.item` which point to the MenuItem node instance.
// We have to use class component here.
// This should be removed from doc & api in future.
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(LegacyMenuItem, _React$Component);
  var _super = (0,createSuper/* default */.Z)(LegacyMenuItem);
  function LegacyMenuItem() {
    (0,classCallCheck/* default */.Z)(this, LegacyMenuItem);
    return _super.apply(this, arguments);
  }
  (0,createClass/* default */.Z)(LegacyMenuItem, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
        title = _this$props.title,
        attribute = _this$props.attribute,
        elementRef = _this$props.elementRef,
        restProps = (0,objectWithoutProperties/* default */.Z)(_this$props, MenuItem_excluded);

      // Here the props are eventually passed to the DOM element.
      // React does not recognize non-standard attributes.
      // Therefore, remove the props that is not used here.
      // ref: https://github.com/ant-design/ant-design/issues/41395
      var passedProps = (0,es_omit/* default */.Z)(restProps, ['eventKey', 'popupClassName', 'popupOffset', 'onTitleClick']);
      (0,es_warning/* default */.ZP)(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.');
      return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_overflow_1_3_0_rc_overflow_es.Item, (0,esm_extends/* default */.Z)({}, attribute, {
        title: typeof title === 'string' ? title : undefined
      }, passedProps, {
        ref: elementRef
      }));
    }
  }]);
  return LegacyMenuItem;
}(_react_18_2_0_react.Component);
/**
 * Real Menu Item component
 */
var InternalMenuItem = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var _classNames;
  var style = props.style,
    className = props.className,
    eventKey = props.eventKey,
    warnKey = props.warnKey,
    disabled = props.disabled,
    itemIcon = props.itemIcon,
    children = props.children,
    role = props.role,
    onMouseEnter = props.onMouseEnter,
    onMouseLeave = props.onMouseLeave,
    onClick = props.onClick,
    onKeyDown = props.onKeyDown,
    onFocus = props.onFocus,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, MenuItem_excluded2);
  var domDataId = useMenuId(eventKey);
  var _React$useContext = _react_18_2_0_react.useContext(MenuContext),
    prefixCls = _React$useContext.prefixCls,
    onItemClick = _React$useContext.onItemClick,
    contextDisabled = _React$useContext.disabled,
    overflowDisabled = _React$useContext.overflowDisabled,
    contextItemIcon = _React$useContext.itemIcon,
    selectedKeys = _React$useContext.selectedKeys,
    onActive = _React$useContext.onActive;
  var _React$useContext2 = _react_18_2_0_react.useContext(context_PrivateContext),
    _internalRenderMenuItem = _React$useContext2._internalRenderMenuItem;
  var itemCls = "".concat(prefixCls, "-item");
  var legacyMenuItemRef = _react_18_2_0_react.useRef();
  var elementRef = _react_18_2_0_react.useRef();
  var mergedDisabled = contextDisabled || disabled;
  var mergedEleRef = (0,es_ref/* useComposeRef */.x1)(ref, elementRef);
  var connectedKeys = useFullPath(eventKey);

  // ================================ Warn ================================
  if (false) {}

  // ============================= Info =============================
  var getEventInfo = function getEventInfo(e) {
    return {
      key: eventKey,
      // Note: For legacy code is reversed which not like other antd component
      keyPath: (0,toConsumableArray/* default */.Z)(connectedKeys).reverse(),
      item: legacyMenuItemRef.current,
      domEvent: e
    };
  };

  // ============================= Icon =============================
  var mergedItemIcon = itemIcon || contextItemIcon;

  // ============================ Active ============================
  var _useActive = useActive(eventKey, mergedDisabled, onMouseEnter, onMouseLeave),
    active = _useActive.active,
    activeProps = (0,objectWithoutProperties/* default */.Z)(_useActive, MenuItem_excluded3);

  // ============================ Select ============================
  var selected = selectedKeys.includes(eventKey);

  // ======================== DirectionStyle ========================
  var directionStyle = useDirectionStyle(connectedKeys.length);

  // ============================ Events ============================
  var onInternalClick = function onInternalClick(e) {
    if (mergedDisabled) {
      return;
    }
    var info = getEventInfo(e);
    onClick === null || onClick === void 0 ? void 0 : onClick(warnItemProp(info));
    onItemClick(info);
  };
  var onInternalKeyDown = function onInternalKeyDown(e) {
    onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
    if (e.which === KeyCode/* default */.Z.ENTER) {
      var info = getEventInfo(e);

      // Legacy. Key will also trigger click event
      onClick === null || onClick === void 0 ? void 0 : onClick(warnItemProp(info));
      onItemClick(info);
    }
  };

  /**
   * Used for accessibility. Helper will focus element without key board.
   * We should manually trigger an active
   */
  var onInternalFocus = function onInternalFocus(e) {
    onActive(eventKey);
    onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
  };

  // ============================ Render ============================
  var optionRoleProps = {};
  if (props.role === 'option') {
    optionRoleProps['aria-selected'] = selected;
  }
  var renderNode = /*#__PURE__*/_react_18_2_0_react.createElement(LegacyMenuItem, (0,esm_extends/* default */.Z)({
    ref: legacyMenuItemRef,
    elementRef: mergedEleRef,
    role: role === null ? 'none' : role || 'menuitem',
    tabIndex: disabled ? null : -1,
    "data-menu-id": overflowDisabled && domDataId ? null : domDataId
  }, restProps, activeProps, optionRoleProps, {
    component: "li",
    "aria-disabled": disabled,
    style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, directionStyle), style),
    className: _classnames_2_3_2_classnames_default()(itemCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(itemCls, "-active"), active), (0,defineProperty/* default */.Z)(_classNames, "".concat(itemCls, "-selected"), selected), (0,defineProperty/* default */.Z)(_classNames, "".concat(itemCls, "-disabled"), mergedDisabled), _classNames), className),
    onClick: onInternalClick,
    onKeyDown: onInternalKeyDown,
    onFocus: onInternalFocus
  }), children, /*#__PURE__*/_react_18_2_0_react.createElement(Icon_Icon, {
    props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
      isSelected: selected
    }),
    icon: mergedItemIcon
  }));
  if (_internalRenderMenuItem) {
    renderNode = _internalRenderMenuItem(renderNode, props, {
      selected: selected
    });
  }
  return renderNode;
});
function MenuItem(props, ref) {
  var eventKey = props.eventKey;

  // ==================== Record KeyPath ====================
  var measure = useMeasure();
  var connectedKeyPath = useFullPath(eventKey);

  // eslint-disable-next-line consistent-return
  _react_18_2_0_react.useEffect(function () {
    if (measure) {
      measure.registerPath(eventKey, connectedKeyPath);
      return function () {
        measure.unregisterPath(eventKey, connectedKeyPath);
      };
    }
  }, [connectedKeyPath]);
  if (measure) {
    return null;
  }

  // ======================== Render ========================
  return /*#__PURE__*/_react_18_2_0_react.createElement(InternalMenuItem, (0,esm_extends/* default */.Z)({}, props, {
    ref: ref
  }));
}
/* harmony default export */ var es_MenuItem = (/*#__PURE__*/_react_18_2_0_react.forwardRef(MenuItem));
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/SubMenu/SubMenuList.js


var SubMenuList_excluded = ["className", "children"];



var InternalSubMenuList = function InternalSubMenuList(_ref, ref) {
  var className = _ref.className,
    children = _ref.children,
    restProps = (0,objectWithoutProperties/* default */.Z)(_ref, SubMenuList_excluded);
  var _React$useContext = _react_18_2_0_react.useContext(MenuContext),
    prefixCls = _React$useContext.prefixCls,
    mode = _React$useContext.mode,
    rtl = _React$useContext.rtl;
  return /*#__PURE__*/_react_18_2_0_react.createElement("ul", (0,esm_extends/* default */.Z)({
    className: _classnames_2_3_2_classnames_default()(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === 'inline' ? 'inline' : 'vertical'), className),
    role: "menu"
  }, restProps, {
    "data-menu-list": true,
    ref: ref
  }), children);
};
var SubMenuList = /*#__PURE__*/_react_18_2_0_react.forwardRef(InternalSubMenuList);
SubMenuList.displayName = 'SubMenuList';
/* harmony default export */ var SubMenu_SubMenuList = (SubMenuList);
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/utils/nodeUtil.js




var nodeUtil_excluded = ["label", "children", "key", "type"];



function parseChildren(children, keyPath) {
  return (0,Children_toArray/* default */.Z)(children).map(function (child, index) {
    if ( /*#__PURE__*/_react_18_2_0_react.isValidElement(child)) {
      var _eventKey, _child$props;
      var key = child.key;
      var eventKey = (_eventKey = (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.eventKey) !== null && _eventKey !== void 0 ? _eventKey : key;
      var emptyKey = eventKey === null || eventKey === undefined;
      if (emptyKey) {
        eventKey = "tmp_key-".concat([].concat((0,toConsumableArray/* default */.Z)(keyPath), [index]).join('-'));
      }
      var cloneProps = {
        key: eventKey,
        eventKey: eventKey
      };
      if (false) {}
      return /*#__PURE__*/_react_18_2_0_react.cloneElement(child, cloneProps);
    }
    return child;
  });
}
function convertItemsToNodes(list) {
  return (list || []).map(function (opt, index) {
    if (opt && (0,esm_typeof/* default */.Z)(opt) === 'object') {
      var _ref = opt,
        label = _ref.label,
        children = _ref.children,
        key = _ref.key,
        type = _ref.type,
        restProps = (0,objectWithoutProperties/* default */.Z)(_ref, nodeUtil_excluded);
      var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index);

      // MenuItemGroup & SubMenuItem
      if (children || type === 'group') {
        if (type === 'group') {
          // Group
          return /*#__PURE__*/_react_18_2_0_react.createElement(MenuItemGroup, (0,esm_extends/* default */.Z)({
            key: mergedKey
          }, restProps, {
            title: label
          }), convertItemsToNodes(children));
        }

        // Sub Menu
        return /*#__PURE__*/_react_18_2_0_react.createElement(SubMenu, (0,esm_extends/* default */.Z)({
          key: mergedKey
        }, restProps, {
          title: label
        }), convertItemsToNodes(children));
      }

      // MenuItem & Divider
      if (type === 'divider') {
        return /*#__PURE__*/_react_18_2_0_react.createElement(Divider, (0,esm_extends/* default */.Z)({
          key: mergedKey
        }, restProps));
      }
      return /*#__PURE__*/_react_18_2_0_react.createElement(es_MenuItem, (0,esm_extends/* default */.Z)({
        key: mergedKey
      }, restProps), label);
    }
    return null;
  }).filter(function (opt) {
    return opt;
  });
}
function parseItems(children, items, keyPath) {
  var childNodes = children;
  if (items) {
    childNodes = convertItemsToNodes(items);
  }
  return parseChildren(childNodes, keyPath);
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/placements.js
var es_placements_autoAdjustOverflow = {
  adjustX: 1,
  adjustY: 1
};
var es_placements_placements = {
  topLeft: {
    points: ['bl', 'tl'],
    overflow: es_placements_autoAdjustOverflow,
    offset: [0, -7]
  },
  bottomLeft: {
    points: ['tl', 'bl'],
    overflow: es_placements_autoAdjustOverflow,
    offset: [0, 7]
  },
  leftTop: {
    points: ['tr', 'tl'],
    overflow: es_placements_autoAdjustOverflow,
    offset: [-4, 0]
  },
  rightTop: {
    points: ['tl', 'tr'],
    overflow: es_placements_autoAdjustOverflow,
    offset: [4, 0]
  }
};
var placementsRtl = {
  topLeft: {
    points: ['bl', 'tl'],
    overflow: es_placements_autoAdjustOverflow,
    offset: [0, -7]
  },
  bottomLeft: {
    points: ['tl', 'bl'],
    overflow: es_placements_autoAdjustOverflow,
    offset: [0, 7]
  },
  rightTop: {
    points: ['tr', 'tl'],
    overflow: es_placements_autoAdjustOverflow,
    offset: [-4, 0]
  },
  leftTop: {
    points: ['tl', 'tr'],
    overflow: es_placements_autoAdjustOverflow,
    offset: [4, 0]
  }
};
/* harmony default export */ var _rc_menu_9_8_4_rc_menu_es_placements = ((/* unused pure expression or super */ null && (es_placements_placements)));
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/utils/motionUtil.js
function motionUtil_getMotion(mode, motion, defaultMotions) {
  if (motion) {
    return motion;
  }
  if (defaultMotions) {
    return defaultMotions[mode] || defaultMotions.other;
  }
  return undefined;
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/SubMenu/PopupTrigger.js










var popupPlacementMap = {
  horizontal: 'bottomLeft',
  vertical: 'rightTop',
  'vertical-left': 'rightTop',
  'vertical-right': 'leftTop'
};
function PopupTrigger(_ref) {
  var prefixCls = _ref.prefixCls,
    visible = _ref.visible,
    children = _ref.children,
    popup = _ref.popup,
    popupClassName = _ref.popupClassName,
    popupOffset = _ref.popupOffset,
    disabled = _ref.disabled,
    mode = _ref.mode,
    onVisibleChange = _ref.onVisibleChange;
  var _React$useContext = _react_18_2_0_react.useContext(MenuContext),
    getPopupContainer = _React$useContext.getPopupContainer,
    rtl = _React$useContext.rtl,
    subMenuOpenDelay = _React$useContext.subMenuOpenDelay,
    subMenuCloseDelay = _React$useContext.subMenuCloseDelay,
    builtinPlacements = _React$useContext.builtinPlacements,
    triggerSubMenuAction = _React$useContext.triggerSubMenuAction,
    forceSubMenuRender = _React$useContext.forceSubMenuRender,
    rootClassName = _React$useContext.rootClassName,
    motion = _React$useContext.motion,
    defaultMotions = _React$useContext.defaultMotions;
  var _React$useState = _react_18_2_0_react.useState(false),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    innerVisible = _React$useState2[0],
    setInnerVisible = _React$useState2[1];
  var placement = rtl ? (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, placementsRtl), builtinPlacements) : (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, es_placements_placements), builtinPlacements);
  var popupPlacement = popupPlacementMap[mode];
  var targetMotion = motionUtil_getMotion(mode, motion, defaultMotions);
  var targetMotionRef = _react_18_2_0_react.useRef(targetMotion);
  if (mode !== 'inline') {
    /**
     * PopupTrigger is only used for vertical and horizontal types.
     * When collapsed is unfolded, the inline animation will destroy the vertical animation.
     */
    targetMotionRef.current = targetMotion;
  }
  var mergedMotion = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, targetMotionRef.current), {}, {
    leavedClassName: "".concat(prefixCls, "-hidden"),
    removeOnLeave: false,
    motionAppear: true
  });

  // Delay to change visible
  var visibleRef = _react_18_2_0_react.useRef();
  _react_18_2_0_react.useEffect(function () {
    visibleRef.current = (0,raf/* default */.Z)(function () {
      setInnerVisible(visible);
    });
    return function () {
      raf/* default */.Z.cancel(visibleRef.current);
    };
  }, [visible]);
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_trigger_5_3_4_rc_trigger_es, {
    prefixCls: prefixCls,
    popupClassName: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-popup"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-rtl"), rtl), popupClassName, rootClassName),
    stretch: mode === 'horizontal' ? 'minWidth' : null,
    getPopupContainer: getPopupContainer,
    builtinPlacements: placement,
    popupPlacement: popupPlacement,
    popupVisible: innerVisible,
    popup: popup,
    popupAlign: popupOffset && {
      offset: popupOffset
    },
    action: disabled ? [] : [triggerSubMenuAction],
    mouseEnterDelay: subMenuOpenDelay,
    mouseLeaveDelay: subMenuCloseDelay,
    onPopupVisibleChange: onVisibleChange,
    forceRender: forceSubMenuRender,
    popupMotion: mergedMotion
  }, children);
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/SubMenu/InlineSubMenuList.js








function InlineSubMenuList(_ref) {
  var id = _ref.id,
    open = _ref.open,
    keyPath = _ref.keyPath,
    children = _ref.children;
  var fixedMode = 'inline';
  var _React$useContext = _react_18_2_0_react.useContext(MenuContext),
    prefixCls = _React$useContext.prefixCls,
    forceSubMenuRender = _React$useContext.forceSubMenuRender,
    motion = _React$useContext.motion,
    defaultMotions = _React$useContext.defaultMotions,
    mode = _React$useContext.mode;

  // Always use latest mode check
  var sameModeRef = _react_18_2_0_react.useRef(false);
  sameModeRef.current = mode === fixedMode;

  // We record `destroy` mark here since when mode change from `inline` to others.
  // The inline list should remove when motion end.
  var _React$useState = _react_18_2_0_react.useState(!sameModeRef.current),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    destroy = _React$useState2[0],
    setDestroy = _React$useState2[1];
  var mergedOpen = sameModeRef.current ? open : false;

  // ================================= Effect =================================
  // Reset destroy state when mode change back
  _react_18_2_0_react.useEffect(function () {
    if (sameModeRef.current) {
      setDestroy(false);
    }
  }, [mode]);

  // ================================= Render =================================
  var mergedMotion = (0,objectSpread2/* default */.Z)({}, motionUtil_getMotion(fixedMode, motion, defaultMotions));

  // No need appear since nest inlineCollapse changed
  if (keyPath.length > 1) {
    mergedMotion.motionAppear = false;
  }

  // Hide inline list when mode changed and motion end
  var originOnVisibleChanged = mergedMotion.onVisibleChanged;
  mergedMotion.onVisibleChanged = function (newVisible) {
    if (!sameModeRef.current && !newVisible) {
      setDestroy(true);
    }
    return originOnVisibleChanged === null || originOnVisibleChanged === void 0 ? void 0 : originOnVisibleChanged(newVisible);
  };
  if (destroy) {
    return null;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(InheritableContextProvider, {
    mode: fixedMode,
    locked: !sameModeRef.current
  }, /*#__PURE__*/_react_18_2_0_react.createElement(es/* default */.ZP, (0,esm_extends/* default */.Z)({
    visible: mergedOpen
  }, mergedMotion, {
    forceRender: forceSubMenuRender,
    removeOnLeave: false,
    leavedClassName: "".concat(prefixCls, "-hidden")
  }), function (_ref2) {
    var motionClassName = _ref2.className,
      motionStyle = _ref2.style;
    return /*#__PURE__*/_react_18_2_0_react.createElement(SubMenu_SubMenuList, {
      id: id,
      className: motionClassName,
      style: motionStyle
    }, children);
  }));
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/SubMenu/index.js





var SubMenu_excluded = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"],
  SubMenu_excluded2 = ["active"];

















var InternalSubMenu = function InternalSubMenu(props) {
  var _classNames;
  var style = props.style,
    className = props.className,
    title = props.title,
    eventKey = props.eventKey,
    warnKey = props.warnKey,
    disabled = props.disabled,
    internalPopupClose = props.internalPopupClose,
    children = props.children,
    itemIcon = props.itemIcon,
    expandIcon = props.expandIcon,
    popupClassName = props.popupClassName,
    popupOffset = props.popupOffset,
    onClick = props.onClick,
    onMouseEnter = props.onMouseEnter,
    onMouseLeave = props.onMouseLeave,
    onTitleClick = props.onTitleClick,
    onTitleMouseEnter = props.onTitleMouseEnter,
    onTitleMouseLeave = props.onTitleMouseLeave,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, SubMenu_excluded);
  var domDataId = useMenuId(eventKey);
  var _React$useContext = _react_18_2_0_react.useContext(MenuContext),
    prefixCls = _React$useContext.prefixCls,
    mode = _React$useContext.mode,
    openKeys = _React$useContext.openKeys,
    contextDisabled = _React$useContext.disabled,
    overflowDisabled = _React$useContext.overflowDisabled,
    activeKey = _React$useContext.activeKey,
    selectedKeys = _React$useContext.selectedKeys,
    contextItemIcon = _React$useContext.itemIcon,
    contextExpandIcon = _React$useContext.expandIcon,
    onItemClick = _React$useContext.onItemClick,
    onOpenChange = _React$useContext.onOpenChange,
    onActive = _React$useContext.onActive;
  var _React$useContext2 = _react_18_2_0_react.useContext(context_PrivateContext),
    _internalRenderSubMenuItem = _React$useContext2._internalRenderSubMenuItem;
  var _React$useContext3 = _react_18_2_0_react.useContext(PathUserContext),
    isSubPathKey = _React$useContext3.isSubPathKey;
  var connectedPath = useFullPath();
  var subMenuPrefixCls = "".concat(prefixCls, "-submenu");
  var mergedDisabled = contextDisabled || disabled;
  var elementRef = _react_18_2_0_react.useRef();
  var popupRef = _react_18_2_0_react.useRef();

  // ================================ Warn ================================
  if (false) {}

  // ================================ Icon ================================
  var mergedItemIcon = itemIcon || contextItemIcon;
  var mergedExpandIcon = expandIcon || contextExpandIcon;

  // ================================ Open ================================
  var originOpen = openKeys.includes(eventKey);
  var open = !overflowDisabled && originOpen;

  // =============================== Select ===============================
  var childrenSelected = isSubPathKey(selectedKeys, eventKey);

  // =============================== Active ===============================
  var _useActive = useActive(eventKey, mergedDisabled, onTitleMouseEnter, onTitleMouseLeave),
    active = _useActive.active,
    activeProps = (0,objectWithoutProperties/* default */.Z)(_useActive, SubMenu_excluded2);

  // Fallback of active check to avoid hover on menu title or disabled item
  var _React$useState = _react_18_2_0_react.useState(false),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    childrenActive = _React$useState2[0],
    setChildrenActive = _React$useState2[1];
  var triggerChildrenActive = function triggerChildrenActive(newActive) {
    if (!mergedDisabled) {
      setChildrenActive(newActive);
    }
  };
  var onInternalMouseEnter = function onInternalMouseEnter(domEvent) {
    triggerChildrenActive(true);
    onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter({
      key: eventKey,
      domEvent: domEvent
    });
  };
  var onInternalMouseLeave = function onInternalMouseLeave(domEvent) {
    triggerChildrenActive(false);
    onMouseLeave === null || onMouseLeave === void 0 ? void 0 : onMouseLeave({
      key: eventKey,
      domEvent: domEvent
    });
  };
  var mergedActive = _react_18_2_0_react.useMemo(function () {
    if (active) {
      return active;
    }
    if (mode !== 'inline') {
      return childrenActive || isSubPathKey([activeKey], eventKey);
    }
    return false;
  }, [mode, active, activeKey, childrenActive, eventKey, isSubPathKey]);

  // ========================== DirectionStyle ==========================
  var directionStyle = useDirectionStyle(connectedPath.length);

  // =============================== Events ===============================
  // >>>> Title click
  var onInternalTitleClick = function onInternalTitleClick(e) {
    // Skip if disabled
    if (mergedDisabled) {
      return;
    }
    onTitleClick === null || onTitleClick === void 0 ? void 0 : onTitleClick({
      key: eventKey,
      domEvent: e
    });

    // Trigger open by click when mode is `inline`
    if (mode === 'inline') {
      onOpenChange(eventKey, !originOpen);
    }
  };

  // >>>> Context for children click
  var onMergedItemClick = useMemoCallback(function (info) {
    onClick === null || onClick === void 0 ? void 0 : onClick(warnItemProp(info));
    onItemClick(info);
  });

  // >>>>> Visible change
  var onPopupVisibleChange = function onPopupVisibleChange(newVisible) {
    if (mode !== 'inline') {
      onOpenChange(eventKey, newVisible);
    }
  };

  /**
   * Used for accessibility. Helper will focus element without key board.
   * We should manually trigger an active
   */
  var onInternalFocus = function onInternalFocus() {
    onActive(eventKey);
  };

  // =============================== Render ===============================
  var popupId = domDataId && "".concat(domDataId, "-popup");

  // >>>>> Title
  var titleNode = /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
    role: "menuitem",
    style: directionStyle,
    className: "".concat(subMenuPrefixCls, "-title"),
    tabIndex: mergedDisabled ? null : -1,
    ref: elementRef,
    title: typeof title === 'string' ? title : null,
    "data-menu-id": overflowDisabled && domDataId ? null : domDataId,
    "aria-expanded": open,
    "aria-haspopup": true,
    "aria-controls": popupId,
    "aria-disabled": mergedDisabled,
    onClick: onInternalTitleClick,
    onFocus: onInternalFocus
  }, activeProps), title, /*#__PURE__*/_react_18_2_0_react.createElement(Icon_Icon, {
    icon: mode !== 'horizontal' ? mergedExpandIcon : null,
    props: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
      isOpen: open,
      // [Legacy] Not sure why need this mark
      isSubMenu: true
    })
  }, /*#__PURE__*/_react_18_2_0_react.createElement("i", {
    className: "".concat(subMenuPrefixCls, "-arrow")
  })));

  // Cache mode if it change to `inline` which do not have popup motion
  var triggerModeRef = _react_18_2_0_react.useRef(mode);
  if (mode !== 'inline' && connectedPath.length > 1) {
    triggerModeRef.current = 'vertical';
  } else {
    triggerModeRef.current = mode;
  }
  if (!overflowDisabled) {
    var triggerMode = triggerModeRef.current;

    // Still wrap with Trigger here since we need avoid react re-mount dom node
    // Which makes motion failed
    titleNode = /*#__PURE__*/_react_18_2_0_react.createElement(PopupTrigger, {
      mode: triggerMode,
      prefixCls: subMenuPrefixCls,
      visible: !internalPopupClose && open && mode !== 'inline',
      popupClassName: popupClassName,
      popupOffset: popupOffset,
      popup: /*#__PURE__*/_react_18_2_0_react.createElement(InheritableContextProvider
      // Special handle of horizontal mode
      , {
        mode: triggerMode === 'horizontal' ? 'vertical' : triggerMode
      }, /*#__PURE__*/_react_18_2_0_react.createElement(SubMenu_SubMenuList, {
        id: popupId,
        ref: popupRef
      }, children)),
      disabled: mergedDisabled,
      onVisibleChange: onPopupVisibleChange
    }, titleNode);
  }

  // >>>>> List node
  var listNode = /*#__PURE__*/_react_18_2_0_react.createElement(_rc_overflow_1_3_0_rc_overflow_es.Item, (0,esm_extends/* default */.Z)({
    role: "none"
  }, restProps, {
    component: "li",
    style: style,
    className: _classnames_2_3_2_classnames_default()(subMenuPrefixCls, "".concat(subMenuPrefixCls, "-").concat(mode), className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(subMenuPrefixCls, "-open"), open), (0,defineProperty/* default */.Z)(_classNames, "".concat(subMenuPrefixCls, "-active"), mergedActive), (0,defineProperty/* default */.Z)(_classNames, "".concat(subMenuPrefixCls, "-selected"), childrenSelected), (0,defineProperty/* default */.Z)(_classNames, "".concat(subMenuPrefixCls, "-disabled"), mergedDisabled), _classNames)),
    onMouseEnter: onInternalMouseEnter,
    onMouseLeave: onInternalMouseLeave
  }), titleNode, !overflowDisabled && /*#__PURE__*/_react_18_2_0_react.createElement(InlineSubMenuList, {
    id: popupId,
    open: open,
    keyPath: connectedPath
  }, children));
  if (_internalRenderSubMenuItem) {
    listNode = _internalRenderSubMenuItem(listNode, props, {
      selected: childrenSelected,
      active: mergedActive,
      open: open,
      disabled: mergedDisabled
    });
  }

  // >>>>> Render
  return /*#__PURE__*/_react_18_2_0_react.createElement(InheritableContextProvider, {
    onItemClick: onMergedItemClick,
    mode: mode === 'horizontal' ? 'vertical' : mode,
    itemIcon: mergedItemIcon,
    expandIcon: mergedExpandIcon
  }, listNode);
};
function SubMenu(props) {
  var eventKey = props.eventKey,
    children = props.children;
  var connectedKeyPath = useFullPath(eventKey);
  var childList = parseChildren(children, connectedKeyPath);

  // ==================== Record KeyPath ====================
  var measure = useMeasure();

  // eslint-disable-next-line consistent-return
  _react_18_2_0_react.useEffect(function () {
    if (measure) {
      measure.registerPath(eventKey, connectedKeyPath);
      return function () {
        measure.unregisterPath(eventKey, connectedKeyPath);
      };
    }
  }, [connectedKeyPath]);
  var renderNode;

  // ======================== Render ========================
  if (measure) {
    renderNode = childList;
  } else {
    renderNode = /*#__PURE__*/_react_18_2_0_react.createElement(InternalSubMenu, props, childList);
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(PathTrackerContext.Provider, {
    value: connectedKeyPath
  }, renderNode);
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/Menu.js






var Menu_excluded = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem"];





















/**
 * Menu modify after refactor:
 * ## Add
 * - disabled
 *
 * ## Remove
 * - openTransitionName
 * - openAnimation
 * - onDestroy
 * - siderCollapsed: Seems antd do not use this prop (Need test in antd)
 * - collapsedWidth: Seems this logic should be handle by antd Layout.Sider
 */

// optimize for render
var EMPTY_LIST = [];
var Menu = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var _childList$, _classNames;
  var _ref = props,
    _ref$prefixCls = _ref.prefixCls,
    prefixCls = _ref$prefixCls === void 0 ? 'rc-menu' : _ref$prefixCls,
    rootClassName = _ref.rootClassName,
    style = _ref.style,
    className = _ref.className,
    _ref$tabIndex = _ref.tabIndex,
    tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
    items = _ref.items,
    children = _ref.children,
    direction = _ref.direction,
    id = _ref.id,
    _ref$mode = _ref.mode,
    mode = _ref$mode === void 0 ? 'vertical' : _ref$mode,
    inlineCollapsed = _ref.inlineCollapsed,
    disabled = _ref.disabled,
    disabledOverflow = _ref.disabledOverflow,
    _ref$subMenuOpenDelay = _ref.subMenuOpenDelay,
    subMenuOpenDelay = _ref$subMenuOpenDelay === void 0 ? 0.1 : _ref$subMenuOpenDelay,
    _ref$subMenuCloseDela = _ref.subMenuCloseDelay,
    subMenuCloseDelay = _ref$subMenuCloseDela === void 0 ? 0.1 : _ref$subMenuCloseDela,
    forceSubMenuRender = _ref.forceSubMenuRender,
    defaultOpenKeys = _ref.defaultOpenKeys,
    openKeys = _ref.openKeys,
    activeKey = _ref.activeKey,
    defaultActiveFirst = _ref.defaultActiveFirst,
    _ref$selectable = _ref.selectable,
    selectable = _ref$selectable === void 0 ? true : _ref$selectable,
    _ref$multiple = _ref.multiple,
    multiple = _ref$multiple === void 0 ? false : _ref$multiple,
    defaultSelectedKeys = _ref.defaultSelectedKeys,
    selectedKeys = _ref.selectedKeys,
    onSelect = _ref.onSelect,
    onDeselect = _ref.onDeselect,
    _ref$inlineIndent = _ref.inlineIndent,
    inlineIndent = _ref$inlineIndent === void 0 ? 24 : _ref$inlineIndent,
    motion = _ref.motion,
    defaultMotions = _ref.defaultMotions,
    _ref$triggerSubMenuAc = _ref.triggerSubMenuAction,
    triggerSubMenuAction = _ref$triggerSubMenuAc === void 0 ? 'hover' : _ref$triggerSubMenuAc,
    builtinPlacements = _ref.builtinPlacements,
    itemIcon = _ref.itemIcon,
    expandIcon = _ref.expandIcon,
    _ref$overflowedIndica = _ref.overflowedIndicator,
    overflowedIndicator = _ref$overflowedIndica === void 0 ? '...' : _ref$overflowedIndica,
    overflowedIndicatorPopupClassName = _ref.overflowedIndicatorPopupClassName,
    getPopupContainer = _ref.getPopupContainer,
    onClick = _ref.onClick,
    onOpenChange = _ref.onOpenChange,
    onKeyDown = _ref.onKeyDown,
    openAnimation = _ref.openAnimation,
    openTransitionName = _ref.openTransitionName,
    _internalRenderMenuItem = _ref._internalRenderMenuItem,
    _internalRenderSubMenuItem = _ref._internalRenderSubMenuItem,
    restProps = (0,objectWithoutProperties/* default */.Z)(_ref, Menu_excluded);
  var childList = _react_18_2_0_react.useMemo(function () {
    return parseItems(children, items, EMPTY_LIST);
  }, [children, items]);
  var _React$useState = _react_18_2_0_react.useState(false),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    mounted = _React$useState2[0],
    setMounted = _React$useState2[1];
  var containerRef = _react_18_2_0_react.useRef();
  var uuid = useUUID(id);
  var isRtl = direction === 'rtl';

  // ========================= Warn =========================
  if (false) {}

  // ========================= Open =========================
  var _useMergedState = (0,useMergedState/* default */.Z)(defaultOpenKeys, {
      value: openKeys,
      postState: function postState(keys) {
        return keys || EMPTY_LIST;
      }
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    mergedOpenKeys = _useMergedState2[0],
    setMergedOpenKeys = _useMergedState2[1];

  // React 18 will merge mouse event which means we open key will not sync
  // ref: https://github.com/ant-design/ant-design/issues/38818
  var triggerOpenKeys = function triggerOpenKeys(keys) {
    var forceFlush = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
    function doUpdate() {
      setMergedOpenKeys(keys);
      onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(keys);
    }
    if (forceFlush) {
      (0,_react_dom_18_2_0_react_dom.flushSync)(doUpdate);
    } else {
      doUpdate();
    }
  };

  // >>>>> Cache & Reset open keys when inlineCollapsed changed
  var _React$useState3 = _react_18_2_0_react.useState(mergedOpenKeys),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    inlineCacheOpenKeys = _React$useState4[0],
    setInlineCacheOpenKeys = _React$useState4[1];
  var mountRef = _react_18_2_0_react.useRef(false);

  // ========================= Mode =========================
  var _React$useMemo = _react_18_2_0_react.useMemo(function () {
      if ((mode === 'inline' || mode === 'vertical') && inlineCollapsed) {
        return ['vertical', inlineCollapsed];
      }
      return [mode, false];
    }, [mode, inlineCollapsed]),
    _React$useMemo2 = (0,slicedToArray/* default */.Z)(_React$useMemo, 2),
    mergedMode = _React$useMemo2[0],
    mergedInlineCollapsed = _React$useMemo2[1];
  var isInlineMode = mergedMode === 'inline';
  var _React$useState5 = _react_18_2_0_react.useState(mergedMode),
    _React$useState6 = (0,slicedToArray/* default */.Z)(_React$useState5, 2),
    internalMode = _React$useState6[0],
    setInternalMode = _React$useState6[1];
  var _React$useState7 = _react_18_2_0_react.useState(mergedInlineCollapsed),
    _React$useState8 = (0,slicedToArray/* default */.Z)(_React$useState7, 2),
    internalInlineCollapsed = _React$useState8[0],
    setInternalInlineCollapsed = _React$useState8[1];
  _react_18_2_0_react.useEffect(function () {
    setInternalMode(mergedMode);
    setInternalInlineCollapsed(mergedInlineCollapsed);
    if (!mountRef.current) {
      return;
    }
    // Synchronously update MergedOpenKeys
    if (isInlineMode) {
      setMergedOpenKeys(inlineCacheOpenKeys);
    } else {
      // Trigger open event in case its in control
      triggerOpenKeys(EMPTY_LIST);
    }
  }, [mergedMode, mergedInlineCollapsed]);

  // ====================== Responsive ======================
  var _React$useState9 = _react_18_2_0_react.useState(0),
    _React$useState10 = (0,slicedToArray/* default */.Z)(_React$useState9, 2),
    lastVisibleIndex = _React$useState10[0],
    setLastVisibleIndex = _React$useState10[1];
  var allVisible = lastVisibleIndex >= childList.length - 1 || internalMode !== 'horizontal' || disabledOverflow;

  // Cache
  _react_18_2_0_react.useEffect(function () {
    if (isInlineMode) {
      setInlineCacheOpenKeys(mergedOpenKeys);
    }
  }, [mergedOpenKeys]);
  _react_18_2_0_react.useEffect(function () {
    mountRef.current = true;
    return function () {
      mountRef.current = false;
    };
  }, []);

  // ========================= Path =========================
  var _useKeyRecords = useKeyRecords(),
    registerPath = _useKeyRecords.registerPath,
    unregisterPath = _useKeyRecords.unregisterPath,
    refreshOverflowKeys = _useKeyRecords.refreshOverflowKeys,
    isSubPathKey = _useKeyRecords.isSubPathKey,
    getKeyPath = _useKeyRecords.getKeyPath,
    getKeys = _useKeyRecords.getKeys,
    getSubPathKeys = _useKeyRecords.getSubPathKeys;
  var registerPathContext = _react_18_2_0_react.useMemo(function () {
    return {
      registerPath: registerPath,
      unregisterPath: unregisterPath
    };
  }, [registerPath, unregisterPath]);
  var pathUserContext = _react_18_2_0_react.useMemo(function () {
    return {
      isSubPathKey: isSubPathKey
    };
  }, [isSubPathKey]);
  _react_18_2_0_react.useEffect(function () {
    refreshOverflowKeys(allVisible ? EMPTY_LIST : childList.slice(lastVisibleIndex + 1).map(function (child) {
      return child.key;
    }));
  }, [lastVisibleIndex, allVisible]);

  // ======================== Active ========================
  var _useMergedState3 = (0,useMergedState/* default */.Z)(activeKey || defaultActiveFirst && ((_childList$ = childList[0]) === null || _childList$ === void 0 ? void 0 : _childList$.key), {
      value: activeKey
    }),
    _useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
    mergedActiveKey = _useMergedState4[0],
    setMergedActiveKey = _useMergedState4[1];
  var onActive = useMemoCallback(function (key) {
    setMergedActiveKey(key);
  });
  var onInactive = useMemoCallback(function () {
    setMergedActiveKey(undefined);
  });
  (0,_react_18_2_0_react.useImperativeHandle)(ref, function () {
    return {
      list: containerRef.current,
      focus: function focus(options) {
        var _childList$find;
        var shouldFocusKey = mergedActiveKey !== null && mergedActiveKey !== void 0 ? mergedActiveKey : (_childList$find = childList.find(function (node) {
          return !node.props.disabled;
        })) === null || _childList$find === void 0 ? void 0 : _childList$find.key;
        if (shouldFocusKey) {
          var _containerRef$current, _containerRef$current2, _containerRef$current3;
          (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : (_containerRef$current2 = _containerRef$current.querySelector("li[data-menu-id='".concat(getMenuId(uuid, shouldFocusKey), "']"))) === null || _containerRef$current2 === void 0 ? void 0 : (_containerRef$current3 = _containerRef$current2.focus) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.call(_containerRef$current2, options);
        }
      }
    };
  });

  // ======================== Select ========================
  // >>>>> Select keys
  var _useMergedState5 = (0,useMergedState/* default */.Z)(defaultSelectedKeys || [], {
      value: selectedKeys,
      // Legacy convert key to array
      postState: function postState(keys) {
        if (Array.isArray(keys)) {
          return keys;
        }
        if (keys === null || keys === undefined) {
          return EMPTY_LIST;
        }
        return [keys];
      }
    }),
    _useMergedState6 = (0,slicedToArray/* default */.Z)(_useMergedState5, 2),
    mergedSelectKeys = _useMergedState6[0],
    setMergedSelectKeys = _useMergedState6[1];

  // >>>>> Trigger select
  var triggerSelection = function triggerSelection(info) {
    if (selectable) {
      // Insert or Remove
      var targetKey = info.key;
      var exist = mergedSelectKeys.includes(targetKey);
      var newSelectKeys;
      if (multiple) {
        if (exist) {
          newSelectKeys = mergedSelectKeys.filter(function (key) {
            return key !== targetKey;
          });
        } else {
          newSelectKeys = [].concat((0,toConsumableArray/* default */.Z)(mergedSelectKeys), [targetKey]);
        }
      } else {
        newSelectKeys = [targetKey];
      }
      setMergedSelectKeys(newSelectKeys);

      // Trigger event
      var selectInfo = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, info), {}, {
        selectedKeys: newSelectKeys
      });
      if (exist) {
        onDeselect === null || onDeselect === void 0 ? void 0 : onDeselect(selectInfo);
      } else {
        onSelect === null || onSelect === void 0 ? void 0 : onSelect(selectInfo);
      }
    }

    // Whatever selectable, always close it
    if (!multiple && mergedOpenKeys.length && internalMode !== 'inline') {
      triggerOpenKeys(EMPTY_LIST);
    }
  };

  // ========================= Open =========================
  /**
   * Click for item. SubMenu do not have selection status
   */
  var onInternalClick = useMemoCallback(function (info) {
    onClick === null || onClick === void 0 ? void 0 : onClick(warnItemProp(info));
    triggerSelection(info);
  });
  var onInternalOpenChange = useMemoCallback(function (key, open) {
    var newOpenKeys = mergedOpenKeys.filter(function (k) {
      return k !== key;
    });
    if (open) {
      newOpenKeys.push(key);
    } else if (internalMode !== 'inline') {
      // We need find all related popup to close
      var subPathKeys = getSubPathKeys(key);
      newOpenKeys = newOpenKeys.filter(function (k) {
        return !subPathKeys.has(k);
      });
    }
    if (!es_isEqual(mergedOpenKeys, newOpenKeys, true)) {
      triggerOpenKeys(newOpenKeys, true);
    }
  });
  var getInternalPopupContainer = useMemoCallback(getPopupContainer);

  // ==================== Accessibility =====================
  var triggerAccessibilityOpen = function triggerAccessibilityOpen(key, open) {
    var nextOpen = open !== null && open !== void 0 ? open : !mergedOpenKeys.includes(key);
    onInternalOpenChange(key, nextOpen);
  };
  var onInternalKeyDown = useAccessibility_useAccessibility(internalMode, mergedActiveKey, isRtl, uuid, containerRef, getKeys, getKeyPath, setMergedActiveKey, triggerAccessibilityOpen, onKeyDown);

  // ======================== Effect ========================
  _react_18_2_0_react.useEffect(function () {
    setMounted(true);
  }, []);

  // ======================= Context ========================
  var privateContext = _react_18_2_0_react.useMemo(function () {
    return {
      _internalRenderMenuItem: _internalRenderMenuItem,
      _internalRenderSubMenuItem: _internalRenderSubMenuItem
    };
  }, [_internalRenderMenuItem, _internalRenderSubMenuItem]);

  // ======================== Render ========================

  // >>>>> Children
  var wrappedChildList = internalMode !== 'horizontal' || disabledOverflow ? childList :
  // Need wrap for overflow dropdown that do not response for open
  childList.map(function (child, index) {
    return /*#__PURE__*/(
      // Always wrap provider to avoid sub node re-mount
      _react_18_2_0_react.createElement(InheritableContextProvider, {
        key: child.key,
        overflowDisabled: index > lastVisibleIndex
      }, child)
    );
  });

  // >>>>> Container
  var container = /*#__PURE__*/_react_18_2_0_react.createElement(_rc_overflow_1_3_0_rc_overflow_es, (0,esm_extends/* default */.Z)({
    id: id,
    ref: containerRef,
    prefixCls: "".concat(prefixCls, "-overflow"),
    component: "ul",
    itemComponent: es_MenuItem,
    className: _classnames_2_3_2_classnames_default()(prefixCls, "".concat(prefixCls, "-root"), "".concat(prefixCls, "-").concat(internalMode), className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-inline-collapsed"), internalInlineCollapsed), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), isRtl), _classNames), rootClassName),
    dir: direction,
    style: style,
    role: "menu",
    tabIndex: tabIndex,
    data: wrappedChildList,
    renderRawItem: function renderRawItem(node) {
      return node;
    },
    renderRawRest: function renderRawRest(omitItems) {
      // We use origin list since wrapped list use context to prevent open
      var len = omitItems.length;
      var originOmitItems = len ? childList.slice(-len) : null;
      return /*#__PURE__*/_react_18_2_0_react.createElement(SubMenu, {
        eventKey: OVERFLOW_KEY,
        title: overflowedIndicator,
        disabled: allVisible,
        internalPopupClose: len === 0,
        popupClassName: overflowedIndicatorPopupClassName
      }, originOmitItems);
    },
    maxCount: internalMode !== 'horizontal' || disabledOverflow ? _rc_overflow_1_3_0_rc_overflow_es.INVALIDATE : _rc_overflow_1_3_0_rc_overflow_es.RESPONSIVE,
    ssr: "full",
    "data-menu-list": true,
    onVisibleChange: function onVisibleChange(newLastIndex) {
      setLastVisibleIndex(newLastIndex);
    },
    onKeyDown: onInternalKeyDown
  }, restProps));

  // >>>>> Render
  return /*#__PURE__*/_react_18_2_0_react.createElement(context_PrivateContext.Provider, {
    value: privateContext
  }, /*#__PURE__*/_react_18_2_0_react.createElement(IdContext.Provider, {
    value: uuid
  }, /*#__PURE__*/_react_18_2_0_react.createElement(InheritableContextProvider, {
    prefixCls: prefixCls,
    rootClassName: rootClassName,
    mode: internalMode,
    openKeys: mergedOpenKeys,
    rtl: isRtl
    // Disabled
    ,

    disabled: disabled
    // Motion
    ,

    motion: mounted ? motion : null,
    defaultMotions: mounted ? defaultMotions : null
    // Active
    ,

    activeKey: mergedActiveKey,
    onActive: onActive,
    onInactive: onInactive
    // Selection
    ,

    selectedKeys: mergedSelectKeys
    // Level
    ,

    inlineIndent: inlineIndent
    // Popup
    ,

    subMenuOpenDelay: subMenuOpenDelay,
    subMenuCloseDelay: subMenuCloseDelay,
    forceSubMenuRender: forceSubMenuRender,
    builtinPlacements: builtinPlacements,
    triggerSubMenuAction: triggerSubMenuAction,
    getPopupContainer: getInternalPopupContainer
    // Icon
    ,

    itemIcon: itemIcon,
    expandIcon: expandIcon
    // Events
    ,

    onItemClick: onInternalClick,
    onOpenChange: onInternalOpenChange
  }, /*#__PURE__*/_react_18_2_0_react.createElement(PathUserContext.Provider, {
    value: pathUserContext
  }, container), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    style: {
      display: 'none'
    },
    "aria-hidden": true
  }, /*#__PURE__*/_react_18_2_0_react.createElement(PathRegisterContext.Provider, {
    value: registerPathContext
  }, childList)))));
});
/* harmony default export */ var es_Menu = (Menu);
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/MenuItemGroup.js


var MenuItemGroup_excluded = ["className", "title", "eventKey", "children"],
  MenuItemGroup_excluded2 = ["children"];






var InternalMenuItemGroup = function InternalMenuItemGroup(_ref) {
  var className = _ref.className,
    title = _ref.title,
    eventKey = _ref.eventKey,
    children = _ref.children,
    restProps = (0,objectWithoutProperties/* default */.Z)(_ref, MenuItemGroup_excluded);
  var _React$useContext = _react_18_2_0_react.useContext(MenuContext),
    prefixCls = _React$useContext.prefixCls;
  var groupPrefixCls = "".concat(prefixCls, "-item-group");
  return /*#__PURE__*/_react_18_2_0_react.createElement("li", (0,esm_extends/* default */.Z)({
    role: "presentation"
  }, restProps, {
    onClick: function onClick(e) {
      return e.stopPropagation();
    },
    className: _classnames_2_3_2_classnames_default()(groupPrefixCls, className)
  }), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    role: "presentation",
    className: "".concat(groupPrefixCls, "-title"),
    title: typeof title === 'string' ? title : undefined
  }, title), /*#__PURE__*/_react_18_2_0_react.createElement("ul", {
    role: "group",
    className: "".concat(groupPrefixCls, "-list")
  }, children));
};
function MenuItemGroup(_ref2) {
  var children = _ref2.children,
    props = (0,objectWithoutProperties/* default */.Z)(_ref2, MenuItemGroup_excluded2);
  var connectedKeyPath = useFullPath(props.eventKey);
  var childList = parseChildren(children, connectedKeyPath);
  var measure = useMeasure();
  if (measure) {
    return childList;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(InternalMenuItemGroup, (0,es_omit/* default */.Z)(props, ['warnKey']), childList);
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/Divider.js




function Divider(_ref) {
  var className = _ref.className,
    style = _ref.style;
  var _React$useContext = _react_18_2_0_react.useContext(MenuContext),
    prefixCls = _React$useContext.prefixCls;
  var measure = useMeasure();
  if (measure) {
    return null;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement("li", {
    className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-item-divider"), className),
    style: style
  });
}
;// CONCATENATED MODULE: ./node_modules/_rc-menu@9.8.4@rc-menu/es/index.js







var ExportMenu = es_Menu;
ExportMenu.Item = es_MenuItem;
ExportMenu.SubMenu = SubMenu;
ExportMenu.ItemGroup = MenuItemGroup;
ExportMenu.Divider = Divider;
/* harmony default export */ var _rc_menu_9_8_4_rc_menu_es = (ExportMenu);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/layout/Sider.js



var Sider_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};










var dimensionMaxMap = {
  xs: '479.98px',
  sm: '575.98px',
  md: '767.98px',
  lg: '991.98px',
  xl: '1199.98px',
  xxl: '1599.98px'
};
var SiderContext = /*#__PURE__*/_react_18_2_0_react.createContext({});
var generateId = function () {
  var i = 0;
  return function () {
    var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
    i += 1;
    return "".concat(prefix).concat(i);
  };
}();
var Sider = /*#__PURE__*/(/* unused pure expression or super */ null && (React.forwardRef(function (_a, ref) {
  var customizePrefixCls = _a.prefixCls,
    className = _a.className,
    trigger = _a.trigger,
    children = _a.children,
    _a$defaultCollapsed = _a.defaultCollapsed,
    defaultCollapsed = _a$defaultCollapsed === void 0 ? false : _a$defaultCollapsed,
    _a$theme = _a.theme,
    theme = _a$theme === void 0 ? 'dark' : _a$theme,
    _a$style = _a.style,
    style = _a$style === void 0 ? {} : _a$style,
    _a$collapsible = _a.collapsible,
    collapsible = _a$collapsible === void 0 ? false : _a$collapsible,
    _a$reverseArrow = _a.reverseArrow,
    reverseArrow = _a$reverseArrow === void 0 ? false : _a$reverseArrow,
    _a$width = _a.width,
    width = _a$width === void 0 ? 200 : _a$width,
    _a$collapsedWidth = _a.collapsedWidth,
    collapsedWidth = _a$collapsedWidth === void 0 ? 80 : _a$collapsedWidth,
    zeroWidthTriggerStyle = _a.zeroWidthTriggerStyle,
    breakpoint = _a.breakpoint,
    onCollapse = _a.onCollapse,
    onBreakpoint = _a.onBreakpoint,
    props = Sider_rest(_a, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
  var _useContext = useContext(LayoutContext),
    siderHook = _useContext.siderHook;
  var _useState = useState('collapsed' in props ? props.collapsed : defaultCollapsed),
    _useState2 = _slicedToArray(_useState, 2),
    collapsed = _useState2[0],
    setCollapsed = _useState2[1];
  var _useState3 = useState(false),
    _useState4 = _slicedToArray(_useState3, 2),
    below = _useState4[0],
    setBelow = _useState4[1];
  useEffect(function () {
    if ('collapsed' in props) {
      setCollapsed(props.collapsed);
    }
  }, [props.collapsed]);
  var handleSetCollapsed = function handleSetCollapsed(value, type) {
    if (!('collapsed' in props)) {
      setCollapsed(value);
    }
    onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(value, type);
  };
  // ========================= Responsive =========================
  var responsiveHandlerRef = useRef();
  responsiveHandlerRef.current = function (mql) {
    setBelow(mql.matches);
    onBreakpoint === null || onBreakpoint === void 0 ? void 0 : onBreakpoint(mql.matches);
    if (collapsed !== mql.matches) {
      handleSetCollapsed(mql.matches, 'responsive');
    }
  };
  useEffect(function () {
    function responsiveHandler(mql) {
      return responsiveHandlerRef.current(mql);
    }
    var mql;
    if (typeof window !== 'undefined') {
      var _window = window,
        matchMedia = _window.matchMedia;
      if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
        mql = matchMedia("(max-width: ".concat(dimensionMaxMap[breakpoint], ")"));
        try {
          mql.addEventListener('change', responsiveHandler);
        } catch (error) {
          mql.addListener(responsiveHandler);
        }
        responsiveHandler(mql);
      }
    }
    return function () {
      try {
        mql === null || mql === void 0 ? void 0 : mql.removeEventListener('change', responsiveHandler);
      } catch (error) {
        mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);
      }
    };
  }, [breakpoint]); // in order to accept dynamic 'breakpoint' property, we need to add 'breakpoint' into dependency array.
  useEffect(function () {
    var uniqueId = generateId('ant-sider-');
    siderHook.addSider(uniqueId);
    return function () {
      return siderHook.removeSider(uniqueId);
    };
  }, []);
  var toggle = function toggle() {
    handleSetCollapsed(!collapsed, 'clickTrigger');
  };
  var _useContext2 = useContext(ConfigContext),
    getPrefixCls = _useContext2.getPrefixCls;
  var renderSider = function renderSider() {
    var _classNames;
    var prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
    var divProps = omit(props, ['collapsed']);
    var rawWidth = collapsed ? collapsedWidth : width;
    // use "px" as fallback unit for width
    var siderWidth = isNumeric(rawWidth) ? "".concat(rawWidth, "px") : String(rawWidth);
    // special trigger when collapsedWidth == 0
    var zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? /*#__PURE__*/React.createElement("span", {
      onClick: toggle,
      className: classNames("".concat(prefixCls, "-zero-width-trigger"), "".concat(prefixCls, "-zero-width-trigger-").concat(reverseArrow ? 'right' : 'left')),
      style: zeroWidthTriggerStyle
    }, trigger || /*#__PURE__*/React.createElement(BarsOutlined, null)) : null;
    var iconObj = {
      expanded: reverseArrow ? /*#__PURE__*/React.createElement(RightOutlined, null) : /*#__PURE__*/React.createElement(LeftOutlined, null),
      collapsed: reverseArrow ? /*#__PURE__*/React.createElement(LeftOutlined, null) : /*#__PURE__*/React.createElement(RightOutlined, null)
    };
    var status = collapsed ? 'collapsed' : 'expanded';
    var defaultTrigger = iconObj[status];
    var triggerDom = trigger !== null ? zeroWidthTrigger || /*#__PURE__*/React.createElement("div", {
      className: "".concat(prefixCls, "-trigger"),
      onClick: toggle,
      style: {
        width: siderWidth
      }
    }, trigger || defaultTrigger) : null;
    var divStyle = _extends(_extends({}, style), {
      flex: "0 0 ".concat(siderWidth),
      maxWidth: siderWidth,
      minWidth: siderWidth,
      width: siderWidth
    });
    var siderCls = classNames(prefixCls, "".concat(prefixCls, "-").concat(theme), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-collapsed"), !!collapsed), _defineProperty(_classNames, "".concat(prefixCls, "-has-trigger"), collapsible && trigger !== null && !zeroWidthTrigger), _defineProperty(_classNames, "".concat(prefixCls, "-below"), !!below), _defineProperty(_classNames, "".concat(prefixCls, "-zero-width"), parseFloat(siderWidth) === 0), _classNames), className);
    return /*#__PURE__*/React.createElement("aside", _extends({
      className: siderCls
    }, divProps, {
      style: divStyle,
      ref: ref
    }), /*#__PURE__*/React.createElement("div", {
      className: "".concat(prefixCls, "-children")
    }, children), collapsible || below && zeroWidthTrigger ? triggerDom : null);
  };
  var contextValue = React.useMemo(function () {
    return {
      siderCollapsed: collapsed
    };
  }, [collapsed]);
  return /*#__PURE__*/React.createElement(SiderContext.Provider, {
    value: contextValue
  }, renderSider());
})));
if (false) {}
/* harmony default export */ var layout_Sider = ((/* unused pure expression or super */ null && (Sider)));
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/menu/MenuDivider.js


var MenuDivider_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};




var MenuDivider = function MenuDivider(_a) {
  var customizePrefixCls = _a.prefixCls,
    className = _a.className,
    dashed = _a.dashed,
    restProps = MenuDivider_rest(_a, ["prefixCls", "className", "dashed"]);
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls;
  var prefixCls = getPrefixCls('menu', customizePrefixCls);
  var classString = _classnames_2_3_2_classnames_default()((0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-item-divider-dashed"), !!dashed), className);
  return /*#__PURE__*/_react_18_2_0_react.createElement(Divider, (0,esm_extends/* default */.Z)({
    className: classString
  }, restProps));
};
/* harmony default export */ var menu_MenuDivider = (MenuDivider);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/menu/MenuContext.js

var MenuContext_MenuContext = /*#__PURE__*/(0,_react_18_2_0_react.createContext)({
  prefixCls: '',
  firstLevel: true,
  inlineCollapsed: false
});
/* harmony default export */ var menu_MenuContext = (MenuContext_MenuContext);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/menu/MenuItem.js






var MenuItem_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};








var MenuItem_MenuItem = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(MenuItem, _React$Component);
  var _super = (0,createSuper/* default */.Z)(MenuItem);
  function MenuItem() {
    var _this;
    (0,classCallCheck/* default */.Z)(this, MenuItem);
    _this = _super.apply(this, arguments);
    _this.renderItem = function (_ref) {
      var _classNames;
      var siderCollapsed = _ref.siderCollapsed;
      var _a;
      var _this$context = _this.context,
        prefixCls = _this$context.prefixCls,
        firstLevel = _this$context.firstLevel,
        inlineCollapsed = _this$context.inlineCollapsed,
        direction = _this$context.direction,
        disableMenuItemTitleTooltip = _this$context.disableMenuItemTitleTooltip;
      var _this$props = _this.props,
        className = _this$props.className,
        children = _this$props.children;
      var _b = _this.props,
        title = _b.title,
        icon = _b.icon,
        danger = _b.danger,
        rest = MenuItem_rest(_b, ["title", "icon", "danger"]);
      var tooltipTitle = title;
      if (typeof title === 'undefined') {
        tooltipTitle = firstLevel ? children : '';
      } else if (title === false) {
        tooltipTitle = '';
      }
      var tooltipProps = {
        title: tooltipTitle
      };
      if (!siderCollapsed && !inlineCollapsed) {
        tooltipProps.title = null;
        // Reset `open` to fix control mode tooltip display not correct
        // ref: https://github.com/ant-design/ant-design/issues/16742
        tooltipProps.open = false;
      }
      var childrenLength = (0,Children_toArray/* default */.Z)(children).length;
      var returnNode = /*#__PURE__*/_react_18_2_0_react.createElement(es_MenuItem, (0,esm_extends/* default */.Z)({}, rest, {
        className: _classnames_2_3_2_classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-item-danger"), danger), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-item-only-child"), (icon ? childrenLength + 1 : childrenLength) === 1), _classNames), className),
        title: typeof title === 'string' ? title : undefined
      }), (0,reactNode/* cloneElement */.Tm)(icon, {
        className: _classnames_2_3_2_classnames_default()((0,reactNode/* isValidElement */.l$)(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', "".concat(prefixCls, "-item-icon"))
      }), _this.renderItemChildren(inlineCollapsed));
      if (!disableMenuItemTitleTooltip) {
        returnNode = /*#__PURE__*/_react_18_2_0_react.createElement(tooltip, (0,esm_extends/* default */.Z)({}, tooltipProps, {
          placement: direction === 'rtl' ? 'left' : 'right',
          overlayClassName: "".concat(prefixCls, "-inline-collapsed-tooltip")
        }), returnNode);
      }
      return returnNode;
    };
    return _this;
  }
  (0,createClass/* default */.Z)(MenuItem, [{
    key: "renderItemChildren",
    value: function renderItemChildren(inlineCollapsed) {
      var _this$context2 = this.context,
        prefixCls = _this$context2.prefixCls,
        firstLevel = _this$context2.firstLevel;
      var _this$props2 = this.props,
        icon = _this$props2.icon,
        children = _this$props2.children;
      var wrapNode = /*#__PURE__*/_react_18_2_0_react.createElement("span", {
        className: "".concat(prefixCls, "-title-content")
      }, children);
      // inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性，则内部包裹一个 span
      // ref: https://github.com/ant-design/ant-design/pull/23456
      if (!icon || (0,reactNode/* isValidElement */.l$)(children) && children.type === 'span') {
        if (children && inlineCollapsed && firstLevel && typeof children === 'string') {
          return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
            className: "".concat(prefixCls, "-inline-collapsed-noicon")
          }, children.charAt(0));
        }
      }
      return wrapNode;
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/_react_18_2_0_react.createElement(SiderContext.Consumer, null, this.renderItem);
    }
  }]);
  return MenuItem;
}(_react_18_2_0_react.Component);

MenuItem_MenuItem.contextType = menu_MenuContext;
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/menu/SubMenu.js







function SubMenu_SubMenu(props) {
  var _a;
  var popupClassName = props.popupClassName,
    icon = props.icon,
    title = props.title,
    theme = props.theme;
  var context = _react_18_2_0_react.useContext(menu_MenuContext);
  var prefixCls = context.prefixCls,
    inlineCollapsed = context.inlineCollapsed,
    antdMenuTheme = context.antdMenuTheme;
  var parentPath = useFullPath();
  var titleNode;
  if (!icon) {
    titleNode = inlineCollapsed && !parentPath.length && title && typeof title === 'string' ? /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-inline-collapsed-noicon")
    }, title.charAt(0)) : /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-title-content")
    }, title);
  } else {
    // inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性，则内部包裹一个 span
    // ref: https://github.com/ant-design/ant-design/pull/23456
    var titleIsSpan = (0,reactNode/* isValidElement */.l$)(title) && title.type === 'span';
    titleNode = /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, (0,reactNode/* cloneElement */.Tm)(icon, {
      className: _classnames_2_3_2_classnames_default()((0,reactNode/* isValidElement */.l$)(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', "".concat(prefixCls, "-item-icon"))
    }), titleIsSpan ? title : /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-title-content")
    }, title));
  }
  var contextValue = _react_18_2_0_react.useMemo(function () {
    return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, context), {
      firstLevel: false
    });
  }, [context]);
  return /*#__PURE__*/_react_18_2_0_react.createElement(menu_MenuContext.Provider, {
    value: contextValue
  }, /*#__PURE__*/_react_18_2_0_react.createElement(SubMenu, (0,esm_extends/* default */.Z)({}, (0,es_omit/* default */.Z)(props, ['icon']), {
    title: titleNode,
    popupClassName: _classnames_2_3_2_classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(theme || antdMenuTheme), popupClassName)
  })));
}
/* harmony default export */ var menu_SubMenu = (SubMenu_SubMenu);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/menu/hooks/useItems.js


var useItems_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};





function useItems_convertItemsToNodes(list) {
  return (list || []).map(function (opt, index) {
    if (opt && (0,esm_typeof/* default */.Z)(opt) === 'object') {
      var _a = opt,
        label = _a.label,
        children = _a.children,
        key = _a.key,
        type = _a.type,
        restProps = useItems_rest(_a, ["label", "children", "key", "type"]);
      var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index);
      // MenuItemGroup & SubMenuItem
      if (children || type === 'group') {
        if (type === 'group') {
          // Group
          return /*#__PURE__*/_react_18_2_0_react.createElement(MenuItemGroup, (0,esm_extends/* default */.Z)({
            key: mergedKey
          }, restProps, {
            title: label
          }), useItems_convertItemsToNodes(children));
        }
        // Sub Menu
        return /*#__PURE__*/_react_18_2_0_react.createElement(menu_SubMenu, (0,esm_extends/* default */.Z)({
          key: mergedKey
        }, restProps, {
          title: label
        }), useItems_convertItemsToNodes(children));
      }
      // MenuItem & Divider
      if (type === 'divider') {
        return /*#__PURE__*/_react_18_2_0_react.createElement(menu_MenuDivider, (0,esm_extends/* default */.Z)({
          key: mergedKey
        }, restProps));
      }
      return /*#__PURE__*/_react_18_2_0_react.createElement(MenuItem_MenuItem, (0,esm_extends/* default */.Z)({
        key: mergedKey
      }, restProps), label);
    }
    return null;
  }).filter(function (opt) {
    return opt;
  });
}
// FIXME: Move logic here in v5
/**
 * We simply convert `items` to ReactNode for reuse origin component logic. But we need move all the
 * logic from component into this hooks when in v5
 */
function useItems(items) {
  return _react_18_2_0_react.useMemo(function () {
    if (!items) {
      return items;
    }
    return useItems_convertItemsToNodes(items);
  }, [items]);
}
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/menu/OverrideContext.js

var OverrideContext_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};

/** @internal Only used for Dropdown component. Do not use this in your production. */
var OverrideContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
/** @internal Only used for Dropdown component. Do not use this in your production. */
var OverrideProvider = function OverrideProvider(_a) {
  var children = _a.children,
    restProps = OverrideContext_rest(_a, ["children"]);
  var override = _react_18_2_0_react.useContext(OverrideContext);
  var context = _react_18_2_0_react.useMemo(function () {
    return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, override), restProps);
  }, [override, restProps.prefixCls,
  // restProps.expandIcon, Not mark as deps since this is a ReactNode
  restProps.mode, restProps.selectable
  // restProps.validator, Not mark as deps since this is a function
  ]);

  return /*#__PURE__*/_react_18_2_0_react.createElement(OverrideContext.Provider, {
    value: context
  }, children);
};
/* harmony default export */ var menu_OverrideContext = (OverrideContext);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/menu/index.js





var menu_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};


















var InternalMenu = /*#__PURE__*/(0,_react_18_2_0_react.forwardRef)(function (props, ref) {
  var _a;
  var override = _react_18_2_0_react.useContext(menu_OverrideContext) || {};
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    getPopupContainer = _React$useContext.getPopupContainer,
    direction = _React$useContext.direction;
  var rootPrefixCls = getPrefixCls();
  var customizePrefixCls = props.prefixCls,
    className = props.className,
    _props$theme = props.theme,
    theme = _props$theme === void 0 ? 'light' : _props$theme,
    expandIcon = props.expandIcon,
    _internalDisableMenuItemTitleTooltip = props._internalDisableMenuItemTitleTooltip,
    inlineCollapsed = props.inlineCollapsed,
    siderCollapsed = props.siderCollapsed,
    items = props.items,
    children = props.children,
    mode = props.mode,
    selectable = props.selectable,
    onClick = props.onClick,
    restProps = menu_rest(props, ["prefixCls", "className", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "items", "children", "mode", "selectable", "onClick"]);
  var passedProps = (0,es_omit/* default */.Z)(restProps, ['collapsedWidth']);
  // ========================= Items ===========================
  var mergedChildren = useItems(items) || children;
  // ======================== Warning ==========================
   false ? 0 : void 0;
   false ? 0 : void 0;
   false ? 0 : void 0;
  (_a = override.validator) === null || _a === void 0 ? void 0 : _a.call(override, {
    mode: mode
  });
  // ========================== Click ==========================
  // Tell dropdown that item clicked
  var onItemClick = (0,useEvent/* default */.Z)(function () {
    var _a;
    onClick === null || onClick === void 0 ? void 0 : onClick.apply(void 0, arguments);
    (_a = override === null || override === void 0 ? void 0 : override.onClick) === null || _a === void 0 ? void 0 : _a.call(override);
  });
  // ========================== Mode ===========================
  var mergedMode = override.mode || mode;
  // ======================= Selectable ========================
  var mergedSelectable = selectable !== null && selectable !== void 0 ? selectable : override.selectable;
  // ======================== Collapsed ========================
  // Inline Collapsed
  var mergedInlineCollapsed = _react_18_2_0_react.useMemo(function () {
    if (siderCollapsed !== undefined) {
      return siderCollapsed;
    }
    return inlineCollapsed;
  }, [inlineCollapsed, siderCollapsed]);
  var defaultMotions = {
    horizontal: {
      motionName: "".concat(rootPrefixCls, "-slide-up")
    },
    inline: motion/* default */.ZP,
    other: {
      motionName: "".concat(rootPrefixCls, "-zoom-big")
    }
  };
  var prefixCls = getPrefixCls('menu', customizePrefixCls || override.prefixCls);
  var menuClassName = _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-").concat(theme), className);
  // ====================== Expand Icon ========================
  var mergedExpandIcon;
  if (typeof expandIcon === 'function') {
    mergedExpandIcon = expandIcon;
  } else {
    mergedExpandIcon = (0,reactNode/* cloneElement */.Tm)(expandIcon || override.expandIcon, {
      className: "".concat(prefixCls, "-submenu-expand-icon")
    });
  }
  // ======================== Context ==========================
  var contextValue = _react_18_2_0_react.useMemo(function () {
    return {
      prefixCls: prefixCls,
      inlineCollapsed: mergedInlineCollapsed || false,
      antdMenuTheme: theme,
      direction: direction,
      firstLevel: true,
      disableMenuItemTitleTooltip: _internalDisableMenuItemTitleTooltip
    };
  }, [prefixCls, mergedInlineCollapsed, theme, direction, _internalDisableMenuItemTitleTooltip]);
  // ========================= Render ==========================
  return /*#__PURE__*/_react_18_2_0_react.createElement(menu_OverrideContext.Provider, {
    value: null
  }, /*#__PURE__*/_react_18_2_0_react.createElement(menu_MenuContext.Provider, {
    value: contextValue
  }, /*#__PURE__*/_react_18_2_0_react.createElement(_rc_menu_9_8_4_rc_menu_es, (0,esm_extends/* default */.Z)({
    getPopupContainer: getPopupContainer,
    overflowedIndicator: /*#__PURE__*/_react_18_2_0_react.createElement(icons_EllipsisOutlined, null),
    overflowedIndicatorPopupClassName: "".concat(prefixCls, "-").concat(theme),
    mode: mergedMode,
    selectable: mergedSelectable,
    onClick: onItemClick
  }, passedProps, {
    inlineCollapsed: mergedInlineCollapsed,
    className: menuClassName,
    prefixCls: prefixCls,
    direction: direction,
    defaultMotions: defaultMotions,
    expandIcon: mergedExpandIcon,
    ref: ref
  }), mergedChildren)));
});
// We should keep this as ref-able
var menu_Menu = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(Menu, _React$Component);
  var _super = (0,createSuper/* default */.Z)(Menu);
  function Menu() {
    var _this;
    (0,classCallCheck/* default */.Z)(this, Menu);
    _this = _super.apply(this, arguments);
    _this.focus = function (options) {
      var _a;
      (_a = _this.menu) === null || _a === void 0 ? void 0 : _a.focus(options);
    };
    return _this;
  }
  (0,createClass/* default */.Z)(Menu, [{
    key: "render",
    value: function render() {
      var _this2 = this;
      return /*#__PURE__*/_react_18_2_0_react.createElement(SiderContext.Consumer, null, function (context) {
        return /*#__PURE__*/_react_18_2_0_react.createElement(InternalMenu, (0,esm_extends/* default */.Z)({
          ref: function ref(node) {
            _this2.menu = node;
          }
        }, _this2.props, context));
      });
    }
  }]);
  return Menu;
}(_react_18_2_0_react.Component);
menu_Menu.Divider = menu_MenuDivider;
menu_Menu.Item = MenuItem_MenuItem;
menu_Menu.SubMenu = menu_SubMenu;
menu_Menu.ItemGroup = MenuItemGroup;
/* harmony default export */ var es_menu = (menu_Menu);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/button/index.js
var es_button = __webpack_require__(7788);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/space/Compact.js
var Compact = __webpack_require__(7587);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/styleChecker.js
var styleChecker = __webpack_require__(3010);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/hooks/useFlexGapSupport.js



/* harmony default export */ var useFlexGapSupport = (function () {
  var _React$useState = _react_18_2_0_react.useState(false),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    flexible = _React$useState2[0],
    setFlexible = _React$useState2[1];
  _react_18_2_0_react.useEffect(function () {
    setFlexible((0,styleChecker/* detectFlexGapSupported */.fk)());
  }, []);
  return flexible;
});
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/space/Item.js




function Item_Item(_ref) {
  var className = _ref.className,
    direction = _ref.direction,
    index = _ref.index,
    marginDirection = _ref.marginDirection,
    children = _ref.children,
    split = _ref.split,
    wrap = _ref.wrap;
  var _React$useContext = _react_18_2_0_react.useContext(SpaceContext),
    horizontalSize = _React$useContext.horizontalSize,
    verticalSize = _React$useContext.verticalSize,
    latestIndex = _React$useContext.latestIndex,
    supportFlexGap = _React$useContext.supportFlexGap;
  var style = {};
  if (!supportFlexGap) {
    if (direction === 'vertical') {
      if (index < latestIndex) {
        style = {
          marginBottom: horizontalSize / (split ? 2 : 1)
        };
      }
    } else {
      style = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, index < latestIndex && (0,defineProperty/* default */.Z)({}, marginDirection, horizontalSize / (split ? 2 : 1))), wrap && {
        paddingBottom: verticalSize
      });
    }
  }
  if (children === null || children === undefined) {
    return null;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: className,
    style: style
  }, children), index < latestIndex && split && /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: "".concat(className, "-split"),
    style: style
  }, split));
}
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/space/index.js



var space_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};







var SpaceContext = /*#__PURE__*/_react_18_2_0_react.createContext({
  latestIndex: 0,
  horizontalSize: 0,
  verticalSize: 0,
  supportFlexGap: false
});
var spaceSize = {
  small: 8,
  middle: 16,
  large: 24
};
function getNumberSize(size) {
  return typeof size === 'string' ? spaceSize[size] : size || 0;
}
var Space = function Space(props) {
  var _classNames;
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    space = _React$useContext.space,
    directionConfig = _React$useContext.direction;
  var _props$size = props.size,
    size = _props$size === void 0 ? (space === null || space === void 0 ? void 0 : space.size) || 'small' : _props$size,
    align = props.align,
    className = props.className,
    children = props.children,
    _props$direction = props.direction,
    direction = _props$direction === void 0 ? 'horizontal' : _props$direction,
    customizePrefixCls = props.prefixCls,
    split = props.split,
    style = props.style,
    _props$wrap = props.wrap,
    wrap = _props$wrap === void 0 ? false : _props$wrap,
    otherProps = space_rest(props, ["size", "align", "className", "children", "direction", "prefixCls", "split", "style", "wrap"]);
  var supportFlexGap = useFlexGapSupport();
  var _React$useMemo = _react_18_2_0_react.useMemo(function () {
      return (Array.isArray(size) ? size : [size, size]).map(function (item) {
        return getNumberSize(item);
      });
    }, [size]),
    _React$useMemo2 = (0,slicedToArray/* default */.Z)(_React$useMemo, 2),
    horizontalSize = _React$useMemo2[0],
    verticalSize = _React$useMemo2[1];
  var childNodes = (0,Children_toArray/* default */.Z)(children, {
    keepEmpty: true
  });
  var mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
  var prefixCls = getPrefixCls('space', customizePrefixCls);
  var cn = _classnames_2_3_2_classnames_default()(prefixCls, "".concat(prefixCls, "-").concat(direction), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), directionConfig === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-align-").concat(mergedAlign), mergedAlign), _classNames), className);
  var itemClassName = "".concat(prefixCls, "-item");
  var marginDirection = directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
  // Calculate latest one
  var latestIndex = 0;
  var nodes = childNodes.map(function (child, i) {
    if (child !== null && child !== undefined) {
      latestIndex = i;
    }
    var key = child && child.key || "".concat(itemClassName, "-").concat(i);
    return /*#__PURE__*/_react_18_2_0_react.createElement(Item_Item, {
      className: itemClassName,
      key: key,
      direction: direction,
      index: i,
      marginDirection: marginDirection,
      split: split,
      wrap: wrap
    }, child);
  });
  var spaceContext = _react_18_2_0_react.useMemo(function () {
    return {
      horizontalSize: horizontalSize,
      verticalSize: verticalSize,
      latestIndex: latestIndex,
      supportFlexGap: supportFlexGap
    };
  }, [horizontalSize, verticalSize, latestIndex, supportFlexGap]);
  // =========================== Render ===========================
  if (childNodes.length === 0) {
    return null;
  }
  var gapStyle = {};
  if (wrap) {
    gapStyle.flexWrap = 'wrap';
    // Patch for gap not support
    if (!supportFlexGap) {
      gapStyle.marginBottom = -verticalSize;
    }
  }
  if (supportFlexGap) {
    gapStyle.columnGap = horizontalSize;
    gapStyle.rowGap = verticalSize;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
    className: cn,
    style: (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, gapStyle), style)
  }, otherProps), /*#__PURE__*/_react_18_2_0_react.createElement(SpaceContext.Provider, {
    value: spaceContext
  }, nodes));
};
var CompoundedSpace = Space;
CompoundedSpace.Compact = Compact/* default */.ZP;
/* harmony default export */ var space = (CompoundedSpace);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/dropdown/dropdown-button.js


var dropdown_button_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};








var DropdownButton = function DropdownButton(props) {
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getContextPopupContainer = _React$useContext.getPopupContainer,
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  var customizePrefixCls = props.prefixCls,
    _props$type = props.type,
    type = _props$type === void 0 ? 'default' : _props$type,
    danger = props.danger,
    disabled = props.disabled,
    loading = props.loading,
    onClick = props.onClick,
    htmlType = props.htmlType,
    children = props.children,
    className = props.className,
    menu = props.menu,
    arrow = props.arrow,
    autoFocus = props.autoFocus,
    overlay = props.overlay,
    trigger = props.trigger,
    align = props.align,
    visible = props.visible,
    open = props.open,
    onVisibleChange = props.onVisibleChange,
    onOpenChange = props.onOpenChange,
    placement = props.placement,
    getPopupContainer = props.getPopupContainer,
    href = props.href,
    _props$icon = props.icon,
    icon = _props$icon === void 0 ? /*#__PURE__*/_react_18_2_0_react.createElement(icons_EllipsisOutlined, null) : _props$icon,
    title = props.title,
    _props$buttonsRender = props.buttonsRender,
    buttonsRender = _props$buttonsRender === void 0 ? function (buttons) {
      return buttons;
    } : _props$buttonsRender,
    mouseEnterDelay = props.mouseEnterDelay,
    mouseLeaveDelay = props.mouseLeaveDelay,
    overlayClassName = props.overlayClassName,
    overlayStyle = props.overlayStyle,
    destroyPopupOnHide = props.destroyPopupOnHide,
    restProps = dropdown_button_rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "visible", "open", "onVisibleChange", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide"]);
  var prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
  var dropdownProps = {
    menu: menu,
    arrow: arrow,
    autoFocus: autoFocus,
    align: align,
    disabled: disabled,
    trigger: disabled ? [] : trigger,
    onOpenChange: onOpenChange || onVisibleChange,
    getPopupContainer: getPopupContainer || getContextPopupContainer,
    mouseEnterDelay: mouseEnterDelay,
    mouseLeaveDelay: mouseLeaveDelay,
    overlayClassName: overlayClassName,
    overlayStyle: overlayStyle,
    destroyPopupOnHide: destroyPopupOnHide
  };
  var _useCompactItemContex = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction),
    compactSize = _useCompactItemContex.compactSize,
    compactItemClassnames = _useCompactItemContex.compactItemClassnames;
  var classes = _classnames_2_3_2_classnames_default()(prefixCls, compactItemClassnames, className);
  if ('overlay' in props) {
    dropdownProps.overlay = overlay;
  }
  if ('open' in props) {
    dropdownProps.open = open;
  } else if ('visible' in props) {
    dropdownProps.open = visible;
  }
  if ('placement' in props) {
    dropdownProps.placement = placement;
  } else {
    dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
  }
  var leftButton = /*#__PURE__*/_react_18_2_0_react.createElement(es_button/* default */.Z, {
    type: type,
    danger: danger,
    disabled: disabled,
    loading: loading,
    onClick: onClick,
    htmlType: htmlType,
    href: href,
    title: title
  }, children);
  var rightButton = /*#__PURE__*/_react_18_2_0_react.createElement(es_button/* default */.Z, {
    type: type,
    danger: danger,
    icon: icon
  });
  var _buttonsRender = buttonsRender([leftButton, rightButton]),
    _buttonsRender2 = (0,slicedToArray/* default */.Z)(_buttonsRender, 2),
    leftButtonToRender = _buttonsRender2[0],
    rightButtonToRender = _buttonsRender2[1];
  return /*#__PURE__*/_react_18_2_0_react.createElement(space.Compact, (0,esm_extends/* default */.Z)({
    className: classes,
    size: compactSize,
    block: true
  }, restProps), leftButtonToRender, /*#__PURE__*/_react_18_2_0_react.createElement(dropdown, (0,esm_extends/* default */.Z)({}, dropdownProps), rightButtonToRender));
};
DropdownButton.__ANT_BUTTON = true;
/* harmony default export */ var dropdown_button = (DropdownButton);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/dropdown/dropdown.js



















var Placements = (0,type/* tuple */.b)('topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight', 'top', 'bottom');
var dropdown_Dropdown = function Dropdown(props) {
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getContextPopupContainer = _React$useContext.getPopupContainer,
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  // Warning for deprecated usage
  if (false) {}
  var getTransitionName = function getTransitionName() {
    var rootPrefixCls = getPrefixCls();
    var _props$placement = props.placement,
      placement = _props$placement === void 0 ? '' : _props$placement,
      transitionName = props.transitionName;
    if (transitionName !== undefined) {
      return transitionName;
    }
    if (placement.includes('top')) {
      return "".concat(rootPrefixCls, "-slide-down");
    }
    return "".concat(rootPrefixCls, "-slide-up");
  };
  var getPlacement = function getPlacement() {
    var placement = props.placement;
    if (!placement) {
      return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
    }
    if (placement.includes('Center')) {
      var newPlacement = placement.slice(0, placement.indexOf('Center'));
       false ? 0 : void 0;
      return newPlacement;
    }
    return placement;
  };
  var menu = props.menu,
    arrow = props.arrow,
    customizePrefixCls = props.prefixCls,
    children = props.children,
    trigger = props.trigger,
    disabled = props.disabled,
    dropdownRender = props.dropdownRender,
    getPopupContainer = props.getPopupContainer,
    overlayClassName = props.overlayClassName,
    visible = props.visible,
    open = props.open,
    onVisibleChange = props.onVisibleChange,
    onOpenChange = props.onOpenChange,
    _props$mouseEnterDela = props.mouseEnterDelay,
    mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0.15 : _props$mouseEnterDela,
    _props$mouseLeaveDela = props.mouseLeaveDelay,
    mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,
    _props$autoAdjustOver = props.autoAdjustOverflow,
    autoAdjustOverflow = _props$autoAdjustOver === void 0 ? true : _props$autoAdjustOver;
  var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
  var child = _react_18_2_0_react.Children.only(children);
  var dropdownTrigger = (0,reactNode/* cloneElement */.Tm)(child, {
    className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-trigger"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'), child.props.className),
    disabled: disabled
  });
  var triggerActions = disabled ? [] : trigger;
  var alignPoint;
  if (triggerActions && triggerActions.includes('contextMenu')) {
    alignPoint = true;
  }
  // =========================== Visible ============================
  var _useMergedState = (0,useMergedState/* default */.Z)(false, {
      value: open !== undefined ? open : visible
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    mergedOpen = _useMergedState2[0],
    setOpen = _useMergedState2[1];
  var onInnerOpenChange = (0,useEvent/* default */.Z)(function (nextOpen) {
    onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(nextOpen);
    onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(nextOpen);
    setOpen(nextOpen);
  });
  // =========================== Overlay ============================
  var overlayClassNameCustomized = _classnames_2_3_2_classnames_default()(overlayClassName, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
  var builtinPlacements = getPlacements({
    arrowPointAtCenter: (0,esm_typeof/* default */.Z)(arrow) === 'object' && arrow.pointAtCenter,
    autoAdjustOverflow: autoAdjustOverflow
  });
  var onMenuClick = _react_18_2_0_react.useCallback(function () {
    setOpen(false);
  }, []);
  var renderOverlay = function renderOverlay() {
    // rc-dropdown already can process the function of overlay, but we have check logic here.
    // So we need render the element to check and pass back to rc-dropdown.
    var overlay = props.overlay;
    var overlayNode;
    if (menu === null || menu === void 0 ? void 0 : menu.items) {
      overlayNode = /*#__PURE__*/_react_18_2_0_react.createElement(es_menu, (0,esm_extends/* default */.Z)({}, menu));
    } else if (typeof overlay === 'function') {
      overlayNode = overlay();
    } else {
      overlayNode = overlay;
    }
    if (dropdownRender) {
      overlayNode = dropdownRender(overlayNode);
    }
    overlayNode = _react_18_2_0_react.Children.only(typeof overlayNode === 'string' ? /*#__PURE__*/_react_18_2_0_react.createElement("span", null, overlayNode) : overlayNode);
    return /*#__PURE__*/_react_18_2_0_react.createElement(OverrideProvider, {
      prefixCls: "".concat(prefixCls, "-menu"),
      expandIcon: /*#__PURE__*/_react_18_2_0_react.createElement("span", {
        className: "".concat(prefixCls, "-menu-submenu-arrow")
      }, /*#__PURE__*/_react_18_2_0_react.createElement(icons_RightOutlined, {
        className: "".concat(prefixCls, "-menu-submenu-arrow-icon")
      })),
      mode: "vertical",
      selectable: false,
      onClick: onMenuClick,
      validator: function validator(_ref3) {
        var mode = _ref3.mode;
        // Warning if use other mode
         false ? 0 : void 0;
      }
    }, /*#__PURE__*/_react_18_2_0_react.createElement(Compact/* NoCompactStyle */.BR, null, overlayNode));
  };
  // ============================ Render ============================
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_dropdown_4_0_1_rc_dropdown_es, (0,esm_extends/* default */.Z)({
    alignPoint: alignPoint
  }, props, {
    mouseEnterDelay: mouseEnterDelay,
    mouseLeaveDelay: mouseLeaveDelay,
    visible: mergedOpen,
    builtinPlacements: builtinPlacements,
    arrow: !!arrow,
    overlayClassName: overlayClassNameCustomized,
    prefixCls: prefixCls,
    getPopupContainer: getPopupContainer || getContextPopupContainer,
    transitionName: getTransitionName(),
    trigger: triggerActions,
    overlay: renderOverlay,
    placement: getPlacement(),
    onVisibleChange: onInnerOpenChange
  }), dropdownTrigger);
};
dropdown_Dropdown.Button = dropdown_button;
/* harmony default export */ var dropdown = (dropdown_Dropdown);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/dropdown/index.js

/* harmony default export */ var es_dropdown = (dropdown);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/form/context.js
var form_context = __webpack_require__(4095);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/input/Group.js







var Group = function Group(props) {
  var _classNames;
  var _useContext = (0,_react_18_2_0_react.useContext)(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _useContext.getPrefixCls,
    direction = _useContext.direction;
  var customizePrefixCls = props.prefixCls,
    _props$className = props.className,
    className = _props$className === void 0 ? '' : _props$className;
  var prefixCls = getPrefixCls('input-group', customizePrefixCls);
  var cls = _classnames_2_3_2_classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-lg"), props.size === 'large'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-sm"), props.size === 'small'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-compact"), props.compact), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
  var formItemContext = (0,_react_18_2_0_react.useContext)(form_context/* FormItemInputContext */.aM);
  var groupFormItemContext = (0,_react_18_2_0_react.useMemo)(function () {
    return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, formItemContext), {
      isFormItemInput: false
    });
  }, [formItemContext]);
  return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: cls,
    style: props.style,
    onMouseEnter: props.onMouseEnter,
    onMouseLeave: props.onMouseLeave,
    onFocus: props.onFocus,
    onBlur: props.onBlur
  }, /*#__PURE__*/_react_18_2_0_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
    value: groupFormItemContext
  }, props.children));
};
/* harmony default export */ var input_Group = (Group);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
var CloseCircleFilled = __webpack_require__(2842);
;// CONCATENATED MODULE: ./node_modules/_rc-input@0.1.4@rc-input/es/utils/commonUtils.js
function hasAddon(props) {
  return !!(props.addonBefore || props.addonAfter);
}
function hasPrefixSuffix(props) {
  return !!(props.prefix || props.suffix || props.allowClear);
}
function resolveOnChange(target, e, onChange, targetValue) {
  if (!onChange) {
    return;
  }
  var event = e;
  if (e.type === 'click') {
    // Clone a new target for event.
    // Avoid the following usage, the setQuery method gets the original value.
    //
    // const [query, setQuery] = React.useState('');
    // <Input
    //   allowClear
    //   value={query}
    //   onChange={(e)=> {
    //     setQuery((prevStatus) => e.target.value);
    //   }}
    // />
    var currentTarget = target.cloneNode(true); // click clear icon

    event = Object.create(e, {
      target: {
        value: currentTarget
      },
      currentTarget: {
        value: currentTarget
      }
    });
    currentTarget.value = '';
    onChange(event);
    return;
  } // Trigger by composition event, this means we need force change the input value

  if (targetValue !== undefined) {
    event = Object.create(e, {
      target: {
        value: target
      },
      currentTarget: {
        value: target
      }
    });
    target.value = targetValue;
    onChange(event);
    return;
  }
  onChange(event);
}
function triggerFocus(element, option) {
  if (!element) return;
  element.focus(option); // Selection content

  var _ref = option || {},
    cursor = _ref.cursor;
  if (cursor) {
    var len = element.value.length;
    switch (cursor) {
      case 'start':
        element.setSelectionRange(0, 0);
        break;
      case 'end':
        element.setSelectionRange(len, len);
        break;
      default:
        element.setSelectionRange(0, len);
    }
  }
}
function fixControlledValue(value) {
  if (typeof value === 'undefined' || value === null) {
    return '';
  }
  return String(value);
}
;// CONCATENATED MODULE: ./node_modules/_rc-input@0.1.4@rc-input/es/BaseInput.js





var BaseInput = function BaseInput(props) {
  var inputElement = props.inputElement,
    prefixCls = props.prefixCls,
    prefix = props.prefix,
    suffix = props.suffix,
    addonBefore = props.addonBefore,
    addonAfter = props.addonAfter,
    className = props.className,
    style = props.style,
    affixWrapperClassName = props.affixWrapperClassName,
    groupClassName = props.groupClassName,
    wrapperClassName = props.wrapperClassName,
    disabled = props.disabled,
    readOnly = props.readOnly,
    focused = props.focused,
    triggerFocus = props.triggerFocus,
    allowClear = props.allowClear,
    value = props.value,
    handleReset = props.handleReset,
    hidden = props.hidden;
  var containerRef = (0,_react_18_2_0_react.useRef)(null);
  var onInputClick = function onInputClick(e) {
    var _containerRef$current;
    if ((_containerRef$current = containerRef.current) !== null && _containerRef$current !== void 0 && _containerRef$current.contains(e.target)) {
      triggerFocus === null || triggerFocus === void 0 ? void 0 : triggerFocus();
    }
  }; // ================== Clear Icon ================== //

  var getClearIcon = function getClearIcon() {
    var _classNames;
    if (!allowClear) {
      return null;
    }
    var needClear = !disabled && !readOnly && value;
    var clearIconCls = "".concat(prefixCls, "-clear-icon");
    var iconNode = (0,esm_typeof/* default */.Z)(allowClear) === 'object' && allowClear !== null && allowClear !== void 0 && allowClear.clearIcon ? allowClear.clearIcon : '✖';
    return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      onClick: handleReset // Do not trigger onBlur when clear input
      // https://github.com/ant-design/ant-design/issues/31200
      ,

      onMouseDown: function onMouseDown(e) {
        return e.preventDefault();
      },
      className: _classnames_2_3_2_classnames_default()(clearIconCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(clearIconCls, "-hidden"), !needClear), (0,defineProperty/* default */.Z)(_classNames, "".concat(clearIconCls, "-has-suffix"), !!suffix), _classNames)),
      role: "button",
      tabIndex: -1
    }, iconNode);
  };
  var element = /*#__PURE__*/(0,_react_18_2_0_react.cloneElement)(inputElement, {
    value: value,
    hidden: hidden
  }); // ================== Prefix & Suffix ================== //

  if (hasPrefixSuffix(props)) {
    var _classNames2;
    var affixWrapperPrefixCls = "".concat(prefixCls, "-affix-wrapper");
    var affixWrapperCls = _classnames_2_3_2_classnames_default()(affixWrapperPrefixCls, (_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(affixWrapperPrefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames2, "".concat(affixWrapperPrefixCls, "-focused"), focused), (0,defineProperty/* default */.Z)(_classNames2, "".concat(affixWrapperPrefixCls, "-readonly"), readOnly), (0,defineProperty/* default */.Z)(_classNames2, "".concat(affixWrapperPrefixCls, "-input-with-clear-btn"), suffix && allowClear && value), _classNames2), !hasAddon(props) && className, affixWrapperClassName);
    var suffixNode = (suffix || allowClear) && /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-suffix")
    }, getClearIcon(), suffix);
    element = /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: affixWrapperCls,
      style: style,
      hidden: !hasAddon(props) && hidden,
      onClick: onInputClick,
      ref: containerRef
    }, prefix && /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-prefix")
    }, prefix), /*#__PURE__*/(0,_react_18_2_0_react.cloneElement)(inputElement, {
      style: null,
      value: value,
      hidden: null
    }), suffixNode);
  } // ================== Addon ================== //

  if (hasAddon(props)) {
    var wrapperCls = "".concat(prefixCls, "-group");
    var addonCls = "".concat(wrapperCls, "-addon");
    var mergedWrapperClassName = _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-wrapper"), wrapperCls, wrapperClassName);
    var mergedGroupClassName = _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-group-wrapper"), className, groupClassName); // Need another wrapper for changing display:table to display:inline-block
    // and put style prop in wrapper

    return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: mergedGroupClassName,
      style: style,
      hidden: hidden
    }, /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: mergedWrapperClassName
    }, addonBefore && /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: addonCls
    }, addonBefore), /*#__PURE__*/(0,_react_18_2_0_react.cloneElement)(element, {
      style: null,
      hidden: null
    }), addonAfter && /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: addonCls
    }, addonAfter)));
  }
  return element;
};
/* harmony default export */ var es_BaseInput = (BaseInput);
;// CONCATENATED MODULE: ./node_modules/_rc-input@0.1.4@rc-input/es/Input.js






var Input_excluded = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "type", "inputClassName"];






var Input = /*#__PURE__*/(0,_react_18_2_0_react.forwardRef)(function (props, ref) {
  var autoComplete = props.autoComplete,
    onChange = props.onChange,
    onFocus = props.onFocus,
    onBlur = props.onBlur,
    onPressEnter = props.onPressEnter,
    onKeyDown = props.onKeyDown,
    _props$prefixCls = props.prefixCls,
    prefixCls = _props$prefixCls === void 0 ? 'rc-input' : _props$prefixCls,
    disabled = props.disabled,
    htmlSize = props.htmlSize,
    className = props.className,
    maxLength = props.maxLength,
    suffix = props.suffix,
    showCount = props.showCount,
    _props$type = props.type,
    type = _props$type === void 0 ? 'text' : _props$type,
    inputClassName = props.inputClassName,
    rest = (0,objectWithoutProperties/* default */.Z)(props, Input_excluded);
  var _useMergedState = (0,useMergedState/* default */.Z)(props.defaultValue, {
      value: props.value
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    value = _useMergedState2[0],
    setValue = _useMergedState2[1];
  var _useState = (0,_react_18_2_0_react.useState)(false),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    focused = _useState2[0],
    setFocused = _useState2[1];
  var inputRef = (0,_react_18_2_0_react.useRef)(null);
  var focus = function focus(option) {
    if (inputRef.current) {
      triggerFocus(inputRef.current, option);
    }
  };
  (0,_react_18_2_0_react.useImperativeHandle)(ref, function () {
    return {
      focus: focus,
      blur: function blur() {
        var _inputRef$current;
        (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.blur();
      },
      setSelectionRange: function setSelectionRange(start, end, direction) {
        var _inputRef$current2;
        (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.setSelectionRange(start, end, direction);
      },
      select: function select() {
        var _inputRef$current3;
        (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.select();
      },
      input: inputRef.current
    };
  });
  (0,_react_18_2_0_react.useEffect)(function () {
    setFocused(function (prev) {
      return prev && disabled ? false : prev;
    });
  }, [disabled]);
  var handleChange = function handleChange(e) {
    if (props.value === undefined) {
      setValue(e.target.value);
    }
    if (inputRef.current) {
      resolveOnChange(inputRef.current, e, onChange);
    }
  };
  var handleKeyDown = function handleKeyDown(e) {
    if (onPressEnter && e.key === 'Enter') {
      onPressEnter(e);
    }
    onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
  };
  var handleFocus = function handleFocus(e) {
    setFocused(true);
    onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
  };
  var handleBlur = function handleBlur(e) {
    setFocused(false);
    onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
  };
  var handleReset = function handleReset(e) {
    setValue('');
    focus();
    if (inputRef.current) {
      resolveOnChange(inputRef.current, e, onChange);
    }
  };
  var getInputElement = function getInputElement() {
    // Fix https://fb.me/react-unknown-prop
    var otherProps = (0,es_omit/* default */.Z)(props, ['prefixCls', 'onPressEnter', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'allowClear',
    // Input elements must be either controlled or uncontrolled,
    // specify either the value prop, or the defaultValue prop, but not both.
    'defaultValue', 'showCount', 'affixWrapperClassName', 'groupClassName', 'inputClassName', 'wrapperClassName', 'htmlSize']);
    return /*#__PURE__*/_react_18_2_0_react.createElement("input", (0,esm_extends/* default */.Z)({
      autoComplete: autoComplete
    }, otherProps, {
      onChange: handleChange,
      onFocus: handleFocus,
      onBlur: handleBlur,
      onKeyDown: handleKeyDown,
      className: _classnames_2_3_2_classnames_default()(prefixCls, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-disabled"), disabled), inputClassName, !hasAddon(props) && !hasPrefixSuffix(props) && className),
      ref: inputRef,
      size: htmlSize,
      type: type
    }));
  };
  var getSuffix = function getSuffix() {
    // Max length value
    var hasMaxLength = Number(maxLength) > 0;
    if (suffix || showCount) {
      var val = fixControlledValue(value);
      var valueLength = (0,toConsumableArray/* default */.Z)(val).length;
      var dataCount = (0,esm_typeof/* default */.Z)(showCount) === 'object' ? showCount.formatter({
        value: val,
        count: valueLength,
        maxLength: maxLength
      }) : "".concat(valueLength).concat(hasMaxLength ? " / ".concat(maxLength) : '');
      return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, !!showCount && /*#__PURE__*/_react_18_2_0_react.createElement("span", {
        className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-show-count-suffix"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-show-count-has-suffix"), !!suffix))
      }, dataCount), suffix);
    }
    return null;
  };
  return /*#__PURE__*/_react_18_2_0_react.createElement(es_BaseInput, (0,esm_extends/* default */.Z)({}, rest, {
    prefixCls: prefixCls,
    className: className,
    inputElement: getInputElement(),
    handleReset: handleReset,
    value: fixControlledValue(value),
    focused: focused,
    triggerFocus: focus,
    suffix: getSuffix(),
    disabled: disabled
  }));
});
/* harmony default export */ var es_Input = (Input);
;// CONCATENATED MODULE: ./node_modules/_rc-input@0.1.4@rc-input/es/index.js



/* harmony default export */ var _rc_input_0_1_4_rc_input_es = (es_Input);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(2146);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/SizeContext.js
var SizeContext = __webpack_require__(2340);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/statusUtils.js



var InputStatuses = (0,type/* tuple */.b)('warning', 'error', '');
function getStatusClassNames(prefixCls, status, hasFeedback) {
  var _classNames;
  return _classnames_2_3_2_classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-status-success"), status === 'success'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-status-warning"), status === 'warning'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-status-error"), status === 'error'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-status-validating"), status === 'validating'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-has-feedback"), hasFeedback), _classNames));
}
var getMergedStatus = function getMergedStatus(contextStatus, customStatus) {
  return customStatus || contextStatus;
};
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/input/hooks/useRemovePasswordTimeout.js

function useRemovePasswordTimeout(inputRef, triggerOnMount) {
  var removePasswordTimeoutRef = (0,_react_18_2_0_react.useRef)([]);
  var removePasswordTimeout = function removePasswordTimeout() {
    removePasswordTimeoutRef.current.push(setTimeout(function () {
      var _a, _b, _c, _d;
      if (((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) && ((_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.input.getAttribute('type')) === 'password' && ((_c = inputRef.current) === null || _c === void 0 ? void 0 : _c.input.hasAttribute('value'))) {
        (_d = inputRef.current) === null || _d === void 0 ? void 0 : _d.input.removeAttribute('value');
      }
    }));
  };
  (0,_react_18_2_0_react.useEffect)(function () {
    if (triggerOnMount) {
      removePasswordTimeout();
    }
    return function () {
      return removePasswordTimeoutRef.current.forEach(function (timer) {
        if (timer) {
          clearTimeout(timer);
        }
      });
    };
  }, []);
  return removePasswordTimeout;
}
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/input/utils.js
// eslint-disable-next-line import/prefer-default-export
function utils_hasPrefixSuffix(props) {
  return !!(props.prefix || props.suffix || props.allowClear);
}
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/input/Input.js



var Input_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};














function Input_fixControlledValue(value) {
  if (typeof value === 'undefined' || value === null) {
    return '';
  }
  return String(value);
}
function Input_resolveOnChange(target, e, onChange, targetValue) {
  if (!onChange) {
    return;
  }
  var event = e;
  if (e.type === 'click') {
    // Clone a new target for event.
    // Avoid the following usage, the setQuery method gets the original value.
    //
    // const [query, setQuery] = React.useState('');
    // <Input
    //   allowClear
    //   value={query}
    //   onChange={(e)=> {
    //     setQuery((prevStatus) => e.target.value);
    //   }}
    // />
    var currentTarget = target.cloneNode(true);
    // click clear icon
    event = Object.create(e, {
      target: {
        value: currentTarget
      },
      currentTarget: {
        value: currentTarget
      }
    });
    currentTarget.value = '';
    onChange(event);
    return;
  }
  // Trigger by composition event, this means we need force change the input value
  if (targetValue !== undefined) {
    event = Object.create(e, {
      target: {
        value: target
      },
      currentTarget: {
        value: target
      }
    });
    target.value = targetValue;
    onChange(event);
    return;
  }
  onChange(event);
}
function Input_triggerFocus(element, option) {
  if (!element) {
    return;
  }
  element.focus(option);
  // Selection content
  var _ref = option || {},
    cursor = _ref.cursor;
  if (cursor) {
    var len = element.value.length;
    switch (cursor) {
      case 'start':
        element.setSelectionRange(0, 0);
        break;
      case 'end':
        element.setSelectionRange(len, len);
        break;
      default:
        element.setSelectionRange(0, len);
        break;
    }
  }
}
var Input_Input = /*#__PURE__*/(0,_react_18_2_0_react.forwardRef)(function (props, ref) {
  var _classNames, _classNames2, _classNames4;
  var customizePrefixCls = props.prefixCls,
    _props$bordered = props.bordered,
    bordered = _props$bordered === void 0 ? true : _props$bordered,
    customStatus = props.status,
    customSize = props.size,
    customDisabled = props.disabled,
    onBlur = props.onBlur,
    onFocus = props.onFocus,
    suffix = props.suffix,
    allowClear = props.allowClear,
    addonAfter = props.addonAfter,
    addonBefore = props.addonBefore,
    className = props.className,
    onChange = props.onChange,
    rest = Input_rest(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "onChange"]);
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction,
    input = _React$useContext.input;
  var prefixCls = getPrefixCls('input', customizePrefixCls);
  var inputRef = (0,_react_18_2_0_react.useRef)(null);
  // ===================== Compact Item =====================
  var _useCompactItemContex = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction),
    compactSize = _useCompactItemContex.compactSize,
    compactItemClassnames = _useCompactItemContex.compactItemClassnames;
  // ===================== Size =====================
  var size = _react_18_2_0_react.useContext(SizeContext/* default */.Z);
  var mergedSize = compactSize || customSize || size;
  // ===================== Disabled =====================
  var disabled = _react_18_2_0_react.useContext(DisabledContext/* default */.Z);
  var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
  // ===================== Status =====================
  var _useContext = (0,_react_18_2_0_react.useContext)(form_context/* FormItemInputContext */.aM),
    contextStatus = _useContext.status,
    hasFeedback = _useContext.hasFeedback,
    feedbackIcon = _useContext.feedbackIcon;
  var mergedStatus = getMergedStatus(contextStatus, customStatus);
  // ===================== Focus warning =====================
  var inputHasPrefixSuffix = utils_hasPrefixSuffix(props) || !!hasFeedback;
  var prevHasPrefixSuffix = (0,_react_18_2_0_react.useRef)(inputHasPrefixSuffix);
  (0,_react_18_2_0_react.useEffect)(function () {
    var _a;
    if (inputHasPrefixSuffix && !prevHasPrefixSuffix.current) {
       false ? 0 : void 0;
    }
    prevHasPrefixSuffix.current = inputHasPrefixSuffix;
  }, [inputHasPrefixSuffix]);
  // ===================== Remove Password value =====================
  var removePasswordTimeout = useRemovePasswordTimeout(inputRef, true);
  var handleBlur = function handleBlur(e) {
    removePasswordTimeout();
    onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
  };
  var handleFocus = function handleFocus(e) {
    removePasswordTimeout();
    onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
  };
  var handleChange = function handleChange(e) {
    removePasswordTimeout();
    onChange === null || onChange === void 0 ? void 0 : onChange(e);
  };
  var suffixNode = (hasFeedback || suffix) && /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, suffix, hasFeedback && feedbackIcon);
  // Allow clear
  var mergedAllowClear;
  if ((0,esm_typeof/* default */.Z)(allowClear) === 'object' && (allowClear === null || allowClear === void 0 ? void 0 : allowClear.clearIcon)) {
    mergedAllowClear = allowClear;
  } else if (allowClear) {
    mergedAllowClear = {
      clearIcon: /*#__PURE__*/_react_18_2_0_react.createElement(CloseCircleFilled/* default */.Z, null)
    };
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_input_0_1_4_rc_input_es, (0,esm_extends/* default */.Z)({
    ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef),
    prefixCls: prefixCls,
    autoComplete: input === null || input === void 0 ? void 0 : input.autoComplete
  }, rest, {
    disabled: mergedDisabled || undefined,
    onBlur: handleBlur,
    onFocus: handleFocus,
    suffix: suffixNode,
    allowClear: mergedAllowClear,
    className: _classnames_2_3_2_classnames_default()(className, compactItemClassnames),
    onChange: handleChange,
    addonAfter: addonAfter && /*#__PURE__*/_react_18_2_0_react.createElement(Compact/* NoCompactStyle */.BR, null, /*#__PURE__*/_react_18_2_0_react.createElement(form_context/* NoFormStyle */.Ux, {
      override: true,
      status: true
    }, addonAfter)),
    addonBefore: addonBefore && /*#__PURE__*/_react_18_2_0_react.createElement(Compact/* NoCompactStyle */.BR, null, /*#__PURE__*/_react_18_2_0_react.createElement(form_context/* NoFormStyle */.Ux, {
      override: true,
      status: true
    }, addonBefore)),
    inputClassName: _classnames_2_3_2_classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-sm"), mergedSize === 'small'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-lg"), mergedSize === 'large'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-borderless"), !bordered), _classNames), !inputHasPrefixSuffix && getStatusClassNames(prefixCls, mergedStatus)),
    affixWrapperClassName: _classnames_2_3_2_classnames_default()((_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-affix-wrapper-sm"), mergedSize === 'small'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-affix-wrapper-lg"), mergedSize === 'large'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-affix-wrapper-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-affix-wrapper-borderless"), !bordered), _classNames2), getStatusClassNames("".concat(prefixCls, "-affix-wrapper"), mergedStatus, hasFeedback)),
    wrapperClassName: _classnames_2_3_2_classnames_default()((0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-group-rtl"), direction === 'rtl')),
    groupClassName: _classnames_2_3_2_classnames_default()((_classNames4 = {}, (0,defineProperty/* default */.Z)(_classNames4, "".concat(prefixCls, "-group-wrapper-sm"), mergedSize === 'small'), (0,defineProperty/* default */.Z)(_classNames4, "".concat(prefixCls, "-group-wrapper-lg"), mergedSize === 'large'), (0,defineProperty/* default */.Z)(_classNames4, "".concat(prefixCls, "-group-wrapper-rtl"), direction === 'rtl'), _classNames4), getStatusClassNames("".concat(prefixCls, "-group-wrapper"), mergedStatus, hasFeedback))
  }));
});
/* harmony default export */ var input_Input = (Input_Input);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
// This icon file is generated automatically.
var EyeInvisibleOutlined = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"
      }
    }, {
      "tag": "path",
      "attrs": {
        "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"
      }
    }]
  },
  "name": "eye-invisible",
  "theme": "outlined"
};
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/EyeInvisibleOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_EyeInvisibleOutlined
  }));
};
EyeInvisibleOutlined_EyeInvisibleOutlined.displayName = 'EyeInvisibleOutlined';
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/EyeOutlined.js
// This icon file is generated automatically.
var EyeOutlined = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"
      }
    }]
  },
  "name": "eye",
  "theme": "outlined"
};
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/EyeOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_EyeOutlined
  }));
};
EyeOutlined_EyeOutlined.displayName = 'EyeOutlined';
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(EyeOutlined_EyeOutlined));
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/input/Password.js




var Password_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};










var defaultIconRender = function defaultIconRender(visible) {
  return visible ? /*#__PURE__*/_react_18_2_0_react.createElement(icons_EyeOutlined, null) : /*#__PURE__*/_react_18_2_0_react.createElement(icons_EyeInvisibleOutlined, null);
};
var ActionMap = {
  click: 'onClick',
  hover: 'onMouseOver'
};
var Password = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var _props$visibilityTogg = props.visibilityToggle,
    visibilityToggle = _props$visibilityTogg === void 0 ? true : _props$visibilityTogg;
  var visibilityControlled = (0,esm_typeof/* default */.Z)(visibilityToggle) === 'object' && visibilityToggle.visible !== undefined;
  var _useState = (0,_react_18_2_0_react.useState)(function () {
      return visibilityControlled ? visibilityToggle.visible : false;
    }),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    visible = _useState2[0],
    setVisible = _useState2[1];
  var inputRef = (0,_react_18_2_0_react.useRef)(null);
  _react_18_2_0_react.useEffect(function () {
    if (visibilityControlled) {
      setVisible(visibilityToggle.visible);
    }
  }, [visibilityControlled, visibilityToggle]);
  // Remove Password value
  var removePasswordTimeout = useRemovePasswordTimeout(inputRef);
  var onVisibleChange = function onVisibleChange() {
    var disabled = props.disabled;
    if (disabled) {
      return;
    }
    if (visible) {
      removePasswordTimeout();
    }
    setVisible(function (prevState) {
      var _a;
      var newState = !prevState;
      if ((0,esm_typeof/* default */.Z)(visibilityToggle) === 'object') {
        (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
      }
      return newState;
    });
  };
  var getIcon = function getIcon(prefixCls) {
    var _iconProps;
    var _props$action = props.action,
      action = _props$action === void 0 ? 'click' : _props$action,
      _props$iconRender = props.iconRender,
      iconRender = _props$iconRender === void 0 ? defaultIconRender : _props$iconRender;
    var iconTrigger = ActionMap[action] || '';
    var icon = iconRender(visible);
    var iconProps = (_iconProps = {}, (0,defineProperty/* default */.Z)(_iconProps, iconTrigger, onVisibleChange), (0,defineProperty/* default */.Z)(_iconProps, "className", "".concat(prefixCls, "-icon")), (0,defineProperty/* default */.Z)(_iconProps, "key", 'passwordIcon'), (0,defineProperty/* default */.Z)(_iconProps, "onMouseDown", function onMouseDown(e) {
      // Prevent focused state lost
      // https://github.com/ant-design/ant-design/issues/15173
      e.preventDefault();
    }), (0,defineProperty/* default */.Z)(_iconProps, "onMouseUp", function onMouseUp(e) {
      // Prevent caret position change
      // https://github.com/ant-design/ant-design/issues/23524
      e.preventDefault();
    }), _iconProps);
    return /*#__PURE__*/_react_18_2_0_react.cloneElement( /*#__PURE__*/_react_18_2_0_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_18_2_0_react.createElement("span", null, icon), iconProps);
  };
  var renderPassword = function renderPassword(_ref) {
    var getPrefixCls = _ref.getPrefixCls;
    var className = props.className,
      customizePrefixCls = props.prefixCls,
      customizeInputPrefixCls = props.inputPrefixCls,
      size = props.size,
      restProps = Password_rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
    var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
    var prefixCls = getPrefixCls('input-password', customizePrefixCls);
    var suffixIcon = visibilityToggle && getIcon(prefixCls);
    var inputClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-").concat(size), !!size));
    var omittedProps = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, (0,es_omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
      type: visible ? 'text' : 'password',
      className: inputClassName,
      prefixCls: inputPrefixCls,
      suffix: suffixIcon
    });
    if (size) {
      omittedProps.size = size;
    }
    return /*#__PURE__*/_react_18_2_0_react.createElement(input_Input, (0,esm_extends/* default */.Z)({
      ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
    }, omittedProps));
  };
  return /*#__PURE__*/_react_18_2_0_react.createElement(config_provider_context/* ConfigConsumer */.C, null, renderPassword);
});
if (false) {}
/* harmony default export */ var input_Password = (Password);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/SearchOutlined.js
// This icon file is generated automatically.
var SearchOutlined = {
  "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"
};
/* harmony default export */ var asn_SearchOutlined = (SearchOutlined);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/SearchOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var SearchOutlined_SearchOutlined = function SearchOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_SearchOutlined
  }));
};
SearchOutlined_SearchOutlined.displayName = 'SearchOutlined';
/* harmony default export */ var icons_SearchOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(SearchOutlined_SearchOutlined));
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/input/Search.js


var Search_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};










var Search = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var _classNames;
  var customizePrefixCls = props.prefixCls,
    customizeInputPrefixCls = props.inputPrefixCls,
    className = props.className,
    customizeSize = props.size,
    suffix = props.suffix,
    _props$enterButton = props.enterButton,
    enterButton = _props$enterButton === void 0 ? false : _props$enterButton,
    addonAfter = props.addonAfter,
    loading = props.loading,
    disabled = props.disabled,
    customOnSearch = props.onSearch,
    customOnChange = props.onChange,
    onCompositionStart = props.onCompositionStart,
    onCompositionEnd = props.onCompositionEnd,
    restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  var contextSize = _react_18_2_0_react.useContext(SizeContext/* default */.Z);
  var composedRef = _react_18_2_0_react.useRef(false);
  var prefixCls = getPrefixCls('input-search', customizePrefixCls);
  var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
  var _useCompactItemContex = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction),
    compactSize = _useCompactItemContex.compactSize;
  var size = compactSize || customizeSize || contextSize;
  var inputRef = _react_18_2_0_react.useRef(null);
  var onChange = function onChange(e) {
    if (e && e.target && e.type === 'click' && customOnSearch) {
      customOnSearch(e.target.value, e);
    }
    if (customOnChange) {
      customOnChange(e);
    }
  };
  var onMouseDown = function onMouseDown(e) {
    var _a;
    if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
      e.preventDefault();
    }
  };
  var onSearch = function onSearch(e) {
    var _a, _b;
    if (customOnSearch) {
      customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);
    }
  };
  var onPressEnter = function onPressEnter(e) {
    if (composedRef.current || loading) {
      return;
    }
    onSearch(e);
  };
  var searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_18_2_0_react.createElement(icons_SearchOutlined, null) : null;
  var btnClassName = "".concat(prefixCls, "-button");
  var button;
  var enterButtonAsElement = enterButton || {};
  var isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
  if (isAntdButton || enterButtonAsElement.type === 'button') {
    button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, (0,esm_extends/* default */.Z)({
      onMouseDown: onMouseDown,
      onClick: function onClick(e) {
        var _a, _b;
        (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
        onSearch(e);
      },
      key: 'enterButton'
    }, isAntdButton ? {
      className: btnClassName,
      size: size
    } : {}));
  } else {
    button = /*#__PURE__*/_react_18_2_0_react.createElement(es_button/* default */.Z, {
      className: btnClassName,
      type: enterButton ? 'primary' : undefined,
      size: size,
      disabled: disabled,
      key: "enterButton",
      onMouseDown: onMouseDown,
      onClick: onSearch,
      loading: loading,
      icon: searchIcon
    }, enterButton);
  }
  if (addonAfter) {
    button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
      key: 'addonAfter'
    })];
  }
  var cls = _classnames_2_3_2_classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(size), !!size), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-with-button"), !!enterButton), _classNames), className);
  var handleOnCompositionStart = function handleOnCompositionStart(e) {
    composedRef.current = true;
    onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
  };
  var handleOnCompositionEnd = function handleOnCompositionEnd(e) {
    composedRef.current = false;
    onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
  };
  return /*#__PURE__*/_react_18_2_0_react.createElement(input_Input, (0,esm_extends/* default */.Z)({
    ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
    onPressEnter: onPressEnter
  }, restProps, {
    size: size,
    onCompositionStart: handleOnCompositionStart,
    onCompositionEnd: handleOnCompositionEnd,
    prefixCls: inputPrefixCls,
    addonAfter: button,
    suffix: suffix,
    onChange: onChange,
    className: cls,
    disabled: disabled
  }));
});
if (false) {}
/* harmony default export */ var input_Search = (Search);
;// CONCATENATED MODULE: ./node_modules/_rc-textarea@0.4.7@rc-textarea/es/calculateNodeHeight.js
// Thanks to https://github.com/andreypopp/react-textarea-autosize/
/**
 * calculateNodeHeight(uiTextNode, useCache = false)
 */
var HIDDEN_TEXTAREA_STYLE = "\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n";
var SIZING_STYLE = ['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'];
var computedStyleCache = {};
var hiddenTextarea;
function calculateNodeStyling(node) {
  var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  var nodeRef = node.getAttribute('id') || node.getAttribute('data-reactid') || node.getAttribute('name');
  if (useCache && computedStyleCache[nodeRef]) {
    return computedStyleCache[nodeRef];
  }
  var style = window.getComputedStyle(node);
  var boxSizing = style.getPropertyValue('box-sizing') || style.getPropertyValue('-moz-box-sizing') || style.getPropertyValue('-webkit-box-sizing');
  var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
  var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
  var sizingStyle = SIZING_STYLE.map(function (name) {
    return "".concat(name, ":").concat(style.getPropertyValue(name));
  }).join(';');
  var nodeInfo = {
    sizingStyle: sizingStyle,
    paddingSize: paddingSize,
    borderSize: borderSize,
    boxSizing: boxSizing
  };
  if (useCache && nodeRef) {
    computedStyleCache[nodeRef] = nodeInfo;
  }
  return nodeInfo;
}
function calculateAutoSizeStyle(uiTextNode) {
  var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  var minRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  var maxRows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  if (!hiddenTextarea) {
    hiddenTextarea = document.createElement('textarea');
    hiddenTextarea.setAttribute('tab-index', '-1');
    hiddenTextarea.setAttribute('aria-hidden', 'true');
    document.body.appendChild(hiddenTextarea);
  }
  // Fix wrap="off" issue
  // https://github.com/ant-design/ant-design/issues/6577
  if (uiTextNode.getAttribute('wrap')) {
    hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap'));
  } else {
    hiddenTextarea.removeAttribute('wrap');
  }
  // Copy all CSS properties that have an impact on the height of the content in
  // the textbox
  var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache),
    paddingSize = _calculateNodeStyling.paddingSize,
    borderSize = _calculateNodeStyling.borderSize,
    boxSizing = _calculateNodeStyling.boxSizing,
    sizingStyle = _calculateNodeStyling.sizingStyle;
  // Need to have the overflow attribute to hide the scrollbar otherwise
  // text-lines will not calculated properly as the shadow will technically be
  // narrower for content
  hiddenTextarea.setAttribute('style', "".concat(sizingStyle, ";").concat(HIDDEN_TEXTAREA_STYLE));
  hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || '';
  var minHeight = undefined;
  var maxHeight = undefined;
  var overflowY;
  var height = hiddenTextarea.scrollHeight;
  if (boxSizing === 'border-box') {
    // border-box: add border, since height = content + padding + border
    height += borderSize;
  } else if (boxSizing === 'content-box') {
    // remove padding, since height = content
    height -= paddingSize;
  }
  if (minRows !== null || maxRows !== null) {
    // measure height of a textarea with a single row
    hiddenTextarea.value = ' ';
    var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
    if (minRows !== null) {
      minHeight = singleRowHeight * minRows;
      if (boxSizing === 'border-box') {
        minHeight = minHeight + paddingSize + borderSize;
      }
      height = Math.max(minHeight, height);
    }
    if (maxRows !== null) {
      maxHeight = singleRowHeight * maxRows;
      if (boxSizing === 'border-box') {
        maxHeight = maxHeight + paddingSize + borderSize;
      }
      overflowY = height > maxHeight ? '' : 'hidden';
      height = Math.min(maxHeight, height);
    }
  }
  var style = {
    height: height,
    overflowY: overflowY,
    resize: 'none'
  };
  if (minHeight) {
    style.minHeight = minHeight;
  }
  if (maxHeight) {
    style.maxHeight = maxHeight;
  }
  return style;
}
;// CONCATENATED MODULE: ./node_modules/_rc-textarea@0.4.7@rc-textarea/es/ResizableTextArea.js






var ResizableTextArea_excluded = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"];







var RESIZE_START = 0;
var RESIZE_MEASURING = 1;
var RESIZE_STABLE = 2;
var ResizableTextArea = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var _props$prefixCls = props.prefixCls,
    prefixCls = _props$prefixCls === void 0 ? 'rc-textarea' : _props$prefixCls,
    onPressEnter = props.onPressEnter,
    defaultValue = props.defaultValue,
    value = props.value,
    autoSize = props.autoSize,
    onResize = props.onResize,
    className = props.className,
    style = props.style,
    disabled = props.disabled,
    onChange = props.onChange,
    onInternalAutoSize = props.onInternalAutoSize,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, ResizableTextArea_excluded);
  // =============================== Value ================================
  var _useMergedState = (0,useMergedState/* default */.Z)(defaultValue, {
      value: value,
      postState: function postState(val) {
        return val !== null && val !== void 0 ? val : '';
      }
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    mergedValue = _useMergedState2[0],
    setMergedValue = _useMergedState2[1];
  var onInternalChange = function onInternalChange(event) {
    setMergedValue(event.target.value);
    onChange === null || onChange === void 0 ? void 0 : onChange(event);
  };
  // ================================ Ref =================================
  var textareaRef = _react_18_2_0_react.useRef();
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      textArea: textareaRef.current
    };
  });
  // ============================== AutoSize ==============================
  var _React$useMemo = _react_18_2_0_react.useMemo(function () {
      if (autoSize && (0,esm_typeof/* default */.Z)(autoSize) === 'object') {
        return [autoSize.minRows, autoSize.maxRows];
      }
      return [];
    }, [autoSize]),
    _React$useMemo2 = (0,slicedToArray/* default */.Z)(_React$useMemo, 2),
    minRows = _React$useMemo2[0],
    maxRows = _React$useMemo2[1];
  var needAutoSize = !!autoSize;
  // =============================== Scroll ===============================
  // https://github.com/ant-design/ant-design/issues/21870
  var fixFirefoxAutoScroll = function fixFirefoxAutoScroll() {
    try {
      // FF has bug with jump of scroll to top. We force back here.
      if (document.activeElement === textareaRef.current) {
        var _textareaRef$current = textareaRef.current,
          selectionStart = _textareaRef$current.selectionStart,
          selectionEnd = _textareaRef$current.selectionEnd,
          scrollTop = _textareaRef$current.scrollTop;
        // Fix Safari bug which not rollback when break line
        // This makes Chinese IME can't input. Do not fix this
        // const { value: tmpValue } = textareaRef.current;
        // textareaRef.current.value = '';
        // textareaRef.current.value = tmpValue;
        textareaRef.current.setSelectionRange(selectionStart, selectionEnd);
        textareaRef.current.scrollTop = scrollTop;
      }
    } catch (e) {
      // Fix error in Chrome:
      // Failed to read the 'selectionStart' property from 'HTMLInputElement'
      // http://stackoverflow.com/q/21177489/3040605
    }
  };
  // =============================== Resize ===============================
  var _React$useState = _react_18_2_0_react.useState(RESIZE_STABLE),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    resizeState = _React$useState2[0],
    setResizeState = _React$useState2[1];
  var _React$useState3 = _react_18_2_0_react.useState(),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    autoSizeStyle = _React$useState4[0],
    setAutoSizeStyle = _React$useState4[1];
  var startResize = function startResize() {
    setResizeState(RESIZE_START);
    if (false) {}
  };
  // Change to trigger resize measure
  (0,useLayoutEffect/* default */.Z)(function () {
    if (needAutoSize) {
      startResize();
    }
  }, [value, minRows, maxRows, needAutoSize]);
  (0,useLayoutEffect/* default */.Z)(function () {
    if (resizeState === RESIZE_START) {
      setResizeState(RESIZE_MEASURING);
    } else if (resizeState === RESIZE_MEASURING) {
      var textareaStyles = calculateAutoSizeStyle(textareaRef.current, false, minRows, maxRows);
      // Safari has bug that text will keep break line on text cut when it's prev is break line.
      // ZombieJ: This not often happen. So we just skip it.
      // const { selectionStart, selectionEnd, scrollTop } = textareaRef.current;
      // const { value: tmpValue } = textareaRef.current;
      // textareaRef.current.value = '';
      // textareaRef.current.value = tmpValue;
      // if (document.activeElement === textareaRef.current) {
      //   textareaRef.current.scrollTop = scrollTop;
      //   textareaRef.current.setSelectionRange(selectionStart, selectionEnd);
      // }
      setResizeState(RESIZE_STABLE);
      setAutoSizeStyle(textareaStyles);
    } else {
      fixFirefoxAutoScroll();
    }
  }, [resizeState]);
  // We lock resize trigger by raf to avoid Safari warning
  var resizeRafRef = _react_18_2_0_react.useRef();
  var cleanRaf = function cleanRaf() {
    raf/* default */.Z.cancel(resizeRafRef.current);
  };
  var onInternalResize = function onInternalResize(size) {
    if (resizeState === RESIZE_STABLE) {
      onResize === null || onResize === void 0 ? void 0 : onResize(size);
      if (autoSize) {
        cleanRaf();
        resizeRafRef.current = (0,raf/* default */.Z)(function () {
          startResize();
        });
      }
    }
  };
  _react_18_2_0_react.useEffect(function () {
    return cleanRaf;
  }, []);
  // =============================== Render ===============================
  var mergedAutoSizeStyle = needAutoSize ? autoSizeStyle : null;
  var mergedStyle = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, style), mergedAutoSizeStyle);
  if (resizeState === RESIZE_START || resizeState === RESIZE_MEASURING) {
    mergedStyle.overflowY = 'hidden';
    mergedStyle.overflowX = 'hidden';
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_resize_observer_1_3_1_rc_resize_observer_es, {
    onResize: onInternalResize,
    disabled: !(autoSize || onResize)
  }, /*#__PURE__*/_react_18_2_0_react.createElement("textarea", (0,esm_extends/* default */.Z)({}, restProps, {
    ref: textareaRef,
    style: mergedStyle,
    className: _classnames_2_3_2_classnames_default()(prefixCls, className, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-disabled"), disabled)),
    disabled: disabled,
    value: mergedValue,
    onChange: onInternalChange
  })));
});
/* harmony default export */ var es_ResizableTextArea = (ResizableTextArea);
;// CONCATENATED MODULE: ./node_modules/_rc-textarea@0.4.7@rc-textarea/es/index.js







var TextArea = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(TextArea, _React$Component);
  var _super = (0,createSuper/* default */.Z)(TextArea);
  function TextArea(props) {
    var _this;
    (0,classCallCheck/* default */.Z)(this, TextArea);
    _this = _super.call(this, props);
    _this.resizableTextArea = void 0;
    _this.focus = function () {
      _this.resizableTextArea.textArea.focus();
    };
    _this.saveTextArea = function (resizableTextArea) {
      _this.resizableTextArea = resizableTextArea;
    };
    _this.handleChange = function (e) {
      var onChange = _this.props.onChange;
      _this.setValue(e.target.value);
      if (onChange) {
        onChange(e);
      }
    };
    _this.handleKeyDown = function (e) {
      var _this$props = _this.props,
        onPressEnter = _this$props.onPressEnter,
        onKeyDown = _this$props.onKeyDown;
      if (e.keyCode === 13 && onPressEnter) {
        onPressEnter(e);
      }
      if (onKeyDown) {
        onKeyDown(e);
      }
    };
    var value = typeof props.value === 'undefined' || props.value === null ? props.defaultValue : props.value;
    _this.state = {
      value: value
    };
    return _this;
  }
  (0,createClass/* default */.Z)(TextArea, [{
    key: "setValue",
    value: function setValue(value, callback) {
      if (!('value' in this.props)) {
        this.setState({
          value: value
        }, callback);
      }
    }
  }, {
    key: "blur",
    value: function blur() {
      this.resizableTextArea.textArea.blur();
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/_react_18_2_0_react.createElement(es_ResizableTextArea, (0,esm_extends/* default */.Z)({}, this.props, {
        value: this.state.value,
        onKeyDown: this.handleKeyDown,
        onChange: this.handleChange,
        ref: this.saveTextArea
      }));
    }
  }], [{
    key: "getDerivedStateFromProps",
    value: function getDerivedStateFromProps(nextProps) {
      if ('value' in nextProps) {
        return {
          value: nextProps.value
        };
      }
      return null;
    }
  }]);
  return TextArea;
}(_react_18_2_0_react.Component);

/* harmony default export */ var _rc_textarea_0_4_7_rc_textarea_es = (TextArea);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/input/ClearableLabeledInput.js












var ClearableInputType = (0,type/* tuple */.b)('text', 'input');
function ClearableLabeledInput_hasAddon(props) {
  return !!(props.addonBefore || props.addonAfter);
}
var ClearableLabeledInput = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(ClearableLabeledInput, _React$Component);
  var _super = (0,createSuper/* default */.Z)(ClearableLabeledInput);
  function ClearableLabeledInput() {
    (0,classCallCheck/* default */.Z)(this, ClearableLabeledInput);
    return _super.apply(this, arguments);
  }
  (0,createClass/* default */.Z)(ClearableLabeledInput, [{
    key: "renderClearIcon",
    value: function renderClearIcon(prefixCls) {
      var _classNames;
      var _this$props = this.props,
        value = _this$props.value,
        disabled = _this$props.disabled,
        readOnly = _this$props.readOnly,
        handleReset = _this$props.handleReset,
        suffix = _this$props.suffix;
      var needClear = !disabled && !readOnly && value;
      var className = "".concat(prefixCls, "-clear-icon");
      return /*#__PURE__*/_react_18_2_0_react.createElement(CloseCircleFilled/* default */.Z, {
        onClick: handleReset,
        // Do not trigger onBlur when clear input
        // https://github.com/ant-design/ant-design/issues/31200
        onMouseDown: function onMouseDown(e) {
          return e.preventDefault();
        },
        className: _classnames_2_3_2_classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(className, "-hidden"), !needClear), (0,defineProperty/* default */.Z)(_classNames, "".concat(className, "-has-suffix"), !!suffix), _classNames), className),
        role: "button"
      });
    }
  }, {
    key: "renderTextAreaWithClearIcon",
    value: function renderTextAreaWithClearIcon(prefixCls, element, statusContext) {
      var _classNames2;
      var _this$props2 = this.props,
        value = _this$props2.value,
        allowClear = _this$props2.allowClear,
        className = _this$props2.className,
        focused = _this$props2.focused,
        style = _this$props2.style,
        direction = _this$props2.direction,
        bordered = _this$props2.bordered,
        hidden = _this$props2.hidden,
        customStatus = _this$props2.status;
      var contextStatus = statusContext.status,
        hasFeedback = statusContext.hasFeedback;
      if (!allowClear) {
        return (0,reactNode/* cloneElement */.Tm)(element, {
          value: value
        });
      }
      var affixWrapperCls = _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-affix-wrapper"), "".concat(prefixCls, "-affix-wrapper-textarea-with-clear-btn"), getStatusClassNames("".concat(prefixCls, "-affix-wrapper"), getMergedStatus(contextStatus, customStatus), hasFeedback), (_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-affix-wrapper-focused"), focused), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-affix-wrapper-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-affix-wrapper-borderless"), !bordered), (0,defineProperty/* default */.Z)(_classNames2, "".concat(className), !ClearableLabeledInput_hasAddon(this.props) && className), _classNames2));
      return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
        className: affixWrapperCls,
        style: style,
        hidden: hidden
      }, (0,reactNode/* cloneElement */.Tm)(element, {
        style: null,
        value: value
      }), this.renderClearIcon(prefixCls));
    }
  }, {
    key: "render",
    value: function render() {
      var _this = this;
      return /*#__PURE__*/_react_18_2_0_react.createElement(form_context/* FormItemInputContext */.aM.Consumer, null, function (statusContext) {
        var _this$props3 = _this.props,
          prefixCls = _this$props3.prefixCls,
          inputType = _this$props3.inputType,
          element = _this$props3.element;
        if (inputType === ClearableInputType[0]) {
          return _this.renderTextAreaWithClearIcon(prefixCls, element, statusContext);
        }
      });
    }
  }]);
  return ClearableLabeledInput;
}(_react_18_2_0_react.Component);
/* harmony default export */ var input_ClearableLabeledInput = (ClearableLabeledInput);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/input/TextArea.js





var TextArea_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};












function fixEmojiLength(value, maxLength) {
  return (0,toConsumableArray/* default */.Z)(value || '').slice(0, maxLength).join('');
}
function setTriggerValue(isCursorInEnd, preValue, triggerValue, maxLength) {
  var newTriggerValue = triggerValue;
  if (isCursorInEnd) {
    // 光标在尾部，直接截断
    newTriggerValue = fixEmojiLength(triggerValue, maxLength);
  } else if ((0,toConsumableArray/* default */.Z)(preValue || '').length < triggerValue.length && (0,toConsumableArray/* default */.Z)(triggerValue || '').length > maxLength) {
    // 光标在中间，如果最后的值超过最大值，则采用原先的值
    newTriggerValue = preValue;
  }
  return newTriggerValue;
}
var TextArea_TextArea = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (_a, ref) {
  var _classNames;
  var customizePrefixCls = _a.prefixCls,
    _a$bordered = _a.bordered,
    bordered = _a$bordered === void 0 ? true : _a$bordered,
    _a$showCount = _a.showCount,
    showCount = _a$showCount === void 0 ? false : _a$showCount,
    maxLength = _a.maxLength,
    className = _a.className,
    style = _a.style,
    customizeSize = _a.size,
    customDisabled = _a.disabled,
    onCompositionStart = _a.onCompositionStart,
    onCompositionEnd = _a.onCompositionEnd,
    onChange = _a.onChange,
    onFocus = _a.onFocus,
    onBlur = _a.onBlur,
    customStatus = _a.status,
    props = TextArea_rest(_a, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size", "disabled", "onCompositionStart", "onCompositionEnd", "onChange", "onFocus", "onBlur", "status"]);
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  var size = _react_18_2_0_react.useContext(SizeContext/* default */.Z);
  // ===================== Disabled =====================
  var disabled = _react_18_2_0_react.useContext(DisabledContext/* default */.Z);
  var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
  var _React$useContext2 = _react_18_2_0_react.useContext(form_context/* FormItemInputContext */.aM),
    contextStatus = _React$useContext2.status,
    hasFeedback = _React$useContext2.hasFeedback,
    isFormItemInput = _React$useContext2.isFormItemInput,
    feedbackIcon = _React$useContext2.feedbackIcon;
  var mergedStatus = getMergedStatus(contextStatus, customStatus);
  var innerRef = _react_18_2_0_react.useRef(null);
  var clearableInputRef = _react_18_2_0_react.useRef(null);
  var _React$useState = _react_18_2_0_react.useState(false),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    compositing = _React$useState2[0],
    setCompositing = _React$useState2[1];
  var _React$useState3 = _react_18_2_0_react.useState(false),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    focused = _React$useState4[0],
    setFocused = _React$useState4[1];
  var oldCompositionValueRef = _react_18_2_0_react.useRef();
  var oldSelectionStartRef = _react_18_2_0_react.useRef(0);
  var _useMergedState = (0,useMergedState/* default */.Z)(props.defaultValue, {
      value: props.value
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    value = _useMergedState2[0],
    setValue = _useMergedState2[1];
  var hidden = props.hidden;
  var handleSetValue = function handleSetValue(val, callback) {
    if (props.value === undefined) {
      setValue(val);
      callback === null || callback === void 0 ? void 0 : callback();
    }
  };
  // =========================== Value Update ===========================
  // Max length value
  var hasMaxLength = Number(maxLength) > 0;
  var onInternalCompositionStart = function onInternalCompositionStart(e) {
    setCompositing(true);
    // 拼音输入前保存一份旧值
    oldCompositionValueRef.current = value;
    // 保存旧的光标位置
    oldSelectionStartRef.current = e.currentTarget.selectionStart;
    onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
  };
  var onInternalCompositionEnd = function onInternalCompositionEnd(e) {
    var _a;
    setCompositing(false);
    var triggerValue = e.currentTarget.value;
    if (hasMaxLength) {
      var isCursorInEnd = oldSelectionStartRef.current >= maxLength + 1 || oldSelectionStartRef.current === ((_a = oldCompositionValueRef.current) === null || _a === void 0 ? void 0 : _a.length);
      triggerValue = setTriggerValue(isCursorInEnd, oldCompositionValueRef.current, triggerValue, maxLength);
    }
    // Patch composition onChange when value changed
    if (triggerValue !== value) {
      handleSetValue(triggerValue);
      Input_resolveOnChange(e.currentTarget, e, onChange, triggerValue);
    }
    onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
  };
  var handleChange = function handleChange(e) {
    var triggerValue = e.target.value;
    if (!compositing && hasMaxLength) {
      // 1. 复制粘贴超过maxlength的情况 2.未超过maxlength的情况
      var isCursorInEnd = e.target.selectionStart >= maxLength + 1 || e.target.selectionStart === triggerValue.length || !e.target.selectionStart;
      triggerValue = setTriggerValue(isCursorInEnd, value, triggerValue, maxLength);
    }
    handleSetValue(triggerValue);
    Input_resolveOnChange(e.currentTarget, e, onChange, triggerValue);
  };
  var handleBlur = function handleBlur(e) {
    setFocused(false);
    onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
  };
  var handleFocus = function handleFocus(e) {
    setFocused(true);
    onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
  };
  _react_18_2_0_react.useEffect(function () {
    setFocused(function (prev) {
      return !mergedDisabled && prev;
    });
  }, [mergedDisabled]);
  // ============================== Reset ===============================
  var handleReset = function handleReset(e) {
    var _a, _b, _c;
    handleSetValue('');
    (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.focus();
    Input_resolveOnChange((_c = (_b = innerRef.current) === null || _b === void 0 ? void 0 : _b.resizableTextArea) === null || _c === void 0 ? void 0 : _c.textArea, e, onChange);
  };
  var prefixCls = getPrefixCls('input', customizePrefixCls);
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    var _a;
    return {
      resizableTextArea: (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea,
      focus: function focus(option) {
        var _a, _b;
        Input_triggerFocus((_b = (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea) === null || _b === void 0 ? void 0 : _b.textArea, option);
      },
      blur: function blur() {
        var _a;
        return (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.blur();
      }
    };
  });
  var textArea = /*#__PURE__*/_react_18_2_0_react.createElement(_rc_textarea_0_4_7_rc_textarea_es, (0,esm_extends/* default */.Z)({}, (0,es_omit/* default */.Z)(props, ['allowClear']), {
    disabled: mergedDisabled,
    className: _classnames_2_3_2_classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-borderless"), !bordered), (0,defineProperty/* default */.Z)(_classNames, className, className && !showCount), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-sm"), size === 'small' || customizeSize === 'small'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-lg"), size === 'large' || customizeSize === 'large'), _classNames), getStatusClassNames(prefixCls, mergedStatus)),
    style: showCount ? {
      resize: style === null || style === void 0 ? void 0 : style.resize
    } : style,
    prefixCls: prefixCls,
    onCompositionStart: onInternalCompositionStart,
    onChange: handleChange,
    onBlur: handleBlur,
    onFocus: handleFocus,
    onCompositionEnd: onInternalCompositionEnd,
    ref: innerRef
  }));
  var val = Input_fixControlledValue(value);
  if (!compositing && hasMaxLength && (props.value === null || props.value === undefined)) {
    // fix #27612 将value转为数组进行截取，解决 '😂'.length === 2 等emoji表情导致的截取乱码的问题
    val = fixEmojiLength(val, maxLength);
  }
  // TextArea
  var textareaNode = /*#__PURE__*/_react_18_2_0_react.createElement(input_ClearableLabeledInput, (0,esm_extends/* default */.Z)({
    disabled: mergedDisabled,
    focused: focused
  }, props, {
    prefixCls: prefixCls,
    direction: direction,
    inputType: "text",
    value: val,
    element: textArea,
    handleReset: handleReset,
    ref: clearableInputRef,
    bordered: bordered,
    status: customStatus,
    style: showCount ? undefined : style
  }));
  // Only show text area wrapper when needed
  if (showCount || hasFeedback) {
    var _classNames2;
    var valueLength = (0,toConsumableArray/* default */.Z)(val).length;
    var dataCount = '';
    if ((0,esm_typeof/* default */.Z)(showCount) === 'object') {
      dataCount = showCount.formatter({
        value: val,
        count: valueLength,
        maxLength: maxLength
      });
    } else {
      dataCount = "".concat(valueLength).concat(hasMaxLength ? " / ".concat(maxLength) : '');
    }
    return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      hidden: hidden,
      className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-textarea"), (_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-textarea-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-textarea-show-count"), showCount), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-textarea-in-form-item"), isFormItemInput), _classNames2), getStatusClassNames("".concat(prefixCls, "-textarea"), mergedStatus, hasFeedback), className),
      style: style,
      "data-count": dataCount
    }, textareaNode, hasFeedback && /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-textarea-suffix")
    }, feedbackIcon));
  }
  return textareaNode;
});
/* harmony default export */ var input_TextArea = (TextArea_TextArea);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/input/index.js





var es_input_Input = input_Input;
es_input_Input.Group = input_Group;
es_input_Input.Search = input_Search;
es_input_Input.TextArea = input_TextArea;
es_input_Input.Password = input_Password;
/* harmony default export */ var input = (es_input_Input);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/speakerInput/styled.js

var speakerInput_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;align-items:center;.ant-input{width:", "px;height:24px;border-radius:4px;border:1px solid #605CE5;background:#FFFFFF;line-height:16px;font-size:12px;padding:0 10px;box-shadow:none;outline:none;transition:width 0.2s;:focus{box-shadow:none;}}"], function (props) {
  return props.miniMode ? 140 : 300;
});
var styled_Button = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["user-select:none;touch-action:manipulation;font-size:12px;line-height:22px;padding:0px 16px;border-radius:4px;border:1px solid #E9E9ED;cursor:pointer;transition:all 0.2s;background-color:#FFFFFF;&:hover{border-color:#605CE5;color:#605CE5;}", ""], function (props) {
  return props.primary && "\n    background-color: #605CE5;\n    border-color: #605CE5;\n    color: #FFFFFF;\n    &:hover {\n      color: #FFFFFF;\n      background-color: #7470E7;\n      border-color: #7470E7;\n    }\n    &:active {\n      background-color: #5B57CE;\n      border-color: #5B57CE;\n    }\n  ";
});
var DropdownOverlay = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["background:#FFFFFF;box-shadow:0 3px 6px -4px rgba(39,38,77,0.12),0 6px 16px 0 rgba(39,38,77,0.08),0 9px 28px 8px rgba(39,38,77,0.05);border-radius:4px;padding:20px 0 12px 0;user-select:none;"]);
var CompanyPeopleList = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["max-height:240px;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;"]);
var CompanyPeople = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["cursor:pointer;display:flex;align-items:center;height:60px;padding:0 24px;flex-shrink:0;&:hover{background-color:rgba(96,92,229,0.08);}"]);
var CompanyPeopleAvatar = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;justify-content:center;align-items:center;margin-right:8px;overflow:hidden;&,img{width:32px;height:32px;border-radius:32px;}"]);
var CompanyPeopleInfo = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["flex:1 1;display:flex;flex-direction:column;overflow:hidden;"]);
var CompanyPeopleTitle = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["font-size:14px;line-height:24px;color:#27264D;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;.highlight{color:#605CE5;}"]);
var CompanyPeopleSubTitle = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["font-size:12px;color:rgba(39,38,77,0.65);line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);
var CurrentListTitle = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["height:20px;font-weight:400;font-size:12px;color:#27264D;letter-spacing:0;line-height:20px;position:relative;z-index:1;background:#fff;margin-left:24px;"]);
var CurrentListDescribe = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:228px;font-weight:400;font-size:12px;color:rgba(39,38,77,0.5);letter-spacing:0;line-height:20px;margin-bottom:10px;position:relative;z-index:1;background:#fff;margin-left:24px;"]);
var RelatedSpeakerList = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["max-height:195px;overflow:hidden;"]);
var RelatedSpeakerListContain = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;flex-wrap:wrap;overflow-y:auto;max-height:153px;padding-left:24px;padding-right:16px;"]);
var StarContainer = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:15px;height:15px;margin-top:-1px;color:#7d7d94;&:hover{color:", ";}"], function (props) {
  return props.isColleted ? '#474667' : '#fccc75';
});
var CommonUseSpeakeLine = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["height:1px;width:254px;background-color:rgba(39,38,77,0.12);position:sticky;top:0;margin-top:9px;margin-bottom:12px;"]);
var CurrentCommonUseListTitle = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;align-items:center;width:100%;font-weight:400;font-size:12px;color:#27264D;letter-spacing:0;line-height:20px;background:#fff;position:relative;z-index:1;"]);
var CurrentCommonUseListDescribe = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:100%;font-weight:400;font-size:12px;color:rgba(39,38,77,0.5);letter-spacing:0;line-height:20px;margin-bottom:5px;padding-right:24px;;position:relative;z-index:1;background:#fff;"]);
var CommonUseListTitleWord = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["margin-right:4px;margin-top:-1px;"]);
var CommonUseListContain = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;flex-wrap:wrap;width:100%;position:relative;top:0;overflow:scroll;"]);
var CommonUseSpeakerList = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["padding:0 0 0 24px;overflow:hidden;"]);
var RelatedSpeakerText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["flex:1 1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);
var DeleteIconBox = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;align-items:center;margin:0 3px;color:#7d7d94;&:hover{color:#605ce5;}"]);
var StarTooltip = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["position:absolute;z-index:1;top:-36px;left:-60px;height:31px;width:100px;"])));
var DeleteTooltip = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["position:absolute;z-index:1;top:-36px;left:-15px;height:31px;width:40px;"])));
var DeleteTripleContent = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["width:0;height:0;border-top:7px solid rgb(39,38,77);border-right:4px solid transparent;border-left:5px solid transparent;margin-top:-1px;z-index:1;position:absolute;left:17px;"])));
var StarTooltipText = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["background-color:rgb(39,38,77);box-shadow:rgb(90 68 151 / 10%) 0px 2px 8px 0px;border-radius:8px;font-weight:400;font-size:12px;color:rgb(255,255,255);padding:4px 8px;line-height:20px;"])));
var TripleContent = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["width:0;height:0;border-top:7px solid rgb(39,38,77);border-right:4px solid transparent;border-left:5px solid transparent;margin-top:-1px;z-index:1;position:absolute;left:62px;"])));
var StarBox = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["margin-left:1px;position:relative;"]);
var RelatedSpeaker = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["border:1px solid rgba(39,38,77,0.12);border-radius:16px;height:30px;padding:3px;display:flex;align-items:center;cursor:pointer;margin-right:8px;margin-bottom:8px;font-size:12px;max-width:200px;.relatedSpeakerText{margin-left:6px;margin-right:9px;}.starTooltip{display:none;}.star{display:none;&:hover{.starTooltip{display:block;}}}&:hover{.star{display:block;}.relatedSpeakerText{margin-left:0;margin-right:0;}}"]);
var RelatedCommonUseSpeaker = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["border:1px solid rgba(39,38,77,0.12);border-radius:16px;height:30px;padding:3px;display:flex;align-items:center;cursor:pointer;margin-right:8px;margin-bottom:8px;font-size:12px;max-width:200px;.relatedSpeakerText{margin-left:6px;margin-right:9px;}.deleteTooltip{display:none;}.deleteIcon{display:none;&:hover{.deleteTooltip{display:block;}}}&:hover{.deleteIcon{display:flex;align-items:center;}.relatedSpeakerText{margin-left:0;margin-right:0;}}"]);
var RelatedSpeakerIcon = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["margin-right:4px;overflow:hidden;&,img{width:24px;height:24px;border-radius:24px;}"]);
var DefaultAvatarIcon = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:24px;height:24px;background:url(\"https://img.alicdn.com/imgextra/i2/O1CN01bYk4v01bIU3act9rE_!!6000000003442-2-tps-72-72.png\");background-position:center 0px;background-size:cover;"]);
var HorizontalDivider = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["background-color:rgba(39,38,77,0.12);height:1px;margin:19.5px 24px;"]);
var AlibabaEmpty = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["font-size:14px;color:rgba(39,38,77,0.65);line-height:24px;padding:0 24px;"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/highlight.js
var getHighlightFragments = function getHighlightFragments(text, keyword) {
  var splits = text.split(keyword);
  var result = [];
  splits.forEach(function (title, index) {
    result.push({
      title: title,
      isKeyword: false
    });
    if (index < splits.length - 1) {
      result.push({
        title: keyword,
        isKeyword: true
      });
    }
  }, result);
  return result;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/highlightText/highlightText.js


var highlightText_excluded = ["text", "keyword", "highlightStyle", "highlightClassName", "inline", "className", "style"];

var highlightText_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;

var HighlightText = function HighlightText(props) {
  var text = props.text,
    keyword = props.keyword,
    highlightStyle = props.highlightStyle,
    highlightClassName = props.highlightClassName,
    _props$inline = props.inline,
    inline = _props$inline === void 0 ? false : _props$inline,
    className = props.className,
    _props$style = props.style,
    style = _props$style === void 0 ? {} : _props$style,
    restProps = (0,objectWithoutPropertiesLoose/* default */.Z)(props, highlightText_excluded);
  var fragments = (0,_react_18_2_0_react.useMemo)(function () {
    return getHighlightFragments(text, keyword);
  }, [text, keyword]);
  var calcStyle = (0,_react_18_2_0_react.useMemo)(function () {
    return (0,esm_extends/* default */.Z)({}, style, {
      display: inline ? 'inline' : 'block'
    });
  }, [style, inline]);
  return /*#__PURE__*/highlightText_createElement("div", (0,esm_extends/* default */.Z)({
    className: className,
    style: calcStyle
  }, restProps), fragments.map(function (_ref, index) {
    var _title = _ref.title,
      isKeyword = _ref.isKeyword;
    if (isKeyword) {
      return /*#__PURE__*/highlightText_createElement("span", {
        style: highlightStyle,
        className: highlightClassName,
        key: _title + "_" + index
      }, _title);
    }
    return _title;
  }));
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/utils/speaker.js
var getSpeaker = function getSpeaker(uid, speakers) {
  var found = speakers.find(function (speaker) {
    return speaker.uid === uid;
  });
  return found;
};
var getDisplayAlibabaEmployeeName = function getDisplayAlibabaEmployeeName(employee) {
  return "" + employee.name + (employee.nickName ? "(" + employee.nickName + ")" : '');
};
var getSpeakerName = function getSpeakerName(speaker, getDefaultName) {
  return speaker && speaker.name || getDefaultName(speaker);
};
var UID_START_WORD = 'c';
var isInCommonSpeakers = function isInCommonSpeakers(speaker, currentUseSpeakersListData) {
  var canFind = false;
  for (var i = 0; i < currentUseSpeakersListData.length; i++) {
    if (speaker.bizUid == currentUseSpeakersListData[i].bizUid && speaker.name === currentUseSpeakersListData[i].name) {
      canFind = true;
    }
  }
  return canFind;
};
var findDeleteCommonSpeakerIndex = function findDeleteCommonSpeakerIndex(speaker, currentUseSpeakersListData) {
  var num = -1;
  for (var i = 0; i < currentUseSpeakersListData.length; i++) {
    if (speaker.bizUid == currentUseSpeakersListData[i].bizUid && speaker.name === currentUseSpeakersListData[i].name) {
      num = i;
    }
  }
  return num;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/speakerInput/speakerInput.js



var speakerInput_excluded = ["onFocus", "onBlur", "style", "controller", "pid", "isUnfix", "emptyUnfix", "defaultName", "onFinishEditing", "getParagraphContainer"];
var _DefaultAvatarIcon, _DefaultAvatarIcon2, _Icon, _CurrentListTitle, _CurrentListDescribe, _CurrentCommonUseList, _AlibabaEmpty, _HorizontalDivider;


var speakerInput_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;







var DEFAULT_AVATAR_URL = 'https://img.alicdn.com/imgextra/i2/O1CN01ZNuOEG253lmJp2lwB_!!6000000007471-55-tps-77-77.svg';
var EMPTY_OVERLAY = /*#__PURE__*/speakerInput_createElement("div", null);
var renderCompanyPeople = function renderCompanyPeople(inputText, employee, onSelect) {
  return /*#__PURE__*/speakerInput_createElement(CompanyPeople, {
    key: employee.bizUid,
    onClick: function onClick() {
      return onSelect(employee);
    }
  }, /*#__PURE__*/speakerInput_createElement(CompanyPeopleAvatar, null, /*#__PURE__*/speakerInput_createElement("img", {
    src: employee.avatarUrl || DEFAULT_AVATAR_URL
  })), /*#__PURE__*/speakerInput_createElement(CompanyPeopleInfo, null, /*#__PURE__*/speakerInput_createElement(CompanyPeopleTitle, null, /*#__PURE__*/speakerInput_createElement(HighlightText, {
    text: getDisplayAlibabaEmployeeName(employee),
    keyword: inputText,
    highlightClassName: 'highlight',
    inline: true
  }), employee.bizUid ? " - " + employee.bizUid : ''), /*#__PURE__*/speakerInput_createElement(CompanyPeopleSubTitle, null, employee.departName)));
};
var renderCompanyPeoples = function renderCompanyPeoples(inputText, alibabaEmployees, onSelect) {
  return /*#__PURE__*/speakerInput_createElement(CompanyPeopleList, null, alibabaEmployees.map(function (employee) {
    return renderCompanyPeople(inputText, employee, onSelect);
  }));
};
var RenderSpeaker = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var speaker = props.speaker,
    onSelect = props.onSelect,
    getDefaultSpeakerName = props.getDefaultSpeakerName,
    currentUseSpeakersList = props.currentUseSpeakersList,
    renderAvatar = props.renderAvatar,
    onCollectSpeaker = props.onCollectSpeaker,
    toolTipInnerStyle = props.toolTipInnerStyle;
  var avatarIcon = renderAvatar && renderAvatar(speaker.uid) || _DefaultAvatarIcon || (_DefaultAvatarIcon = /*#__PURE__*/speakerInput_createElement(DefaultAvatarIcon, null));
  var handleClick = (0,_react_18_2_0_react.useCallback)(function (event) {
    event.stopPropagation();
    if (onCollectSpeaker) {
      onCollectSpeaker(speaker, !isInCommonSpeakers(speaker, currentUseSpeakersList));
    }
  }, [onCollectSpeaker, speaker, currentUseSpeakersList]);
  var starColor = (0,_react_18_2_0_react.useMemo)(function () {
    return isInCommonSpeakers(speaker, currentUseSpeakersList) ? '#FCCC75' : '';
  }, [currentUseSpeakersList, speaker]);
  var handleClickSpeaker = (0,_react_18_2_0_react.useCallback)(function () {
    onSelect(speaker);
  }, [onSelect, speaker]);
  var toolTipinnerText = (0,_react_18_2_0_react.useMemo)(function () {
    return isInCommonSpeakers(speaker, currentUseSpeakersList) ? '取消常用发言人' : '设为常用发言人';
  }, [currentUseSpeakersList, speaker]);
  return /*#__PURE__*/speakerInput_createElement(RelatedSpeaker, {
    key: speaker.uid,
    onClick: handleClickSpeaker
  }, /*#__PURE__*/speakerInput_createElement(RelatedSpeakerIcon, null, avatarIcon), /*#__PURE__*/speakerInput_createElement(RelatedSpeakerText, {
    className: "relatedSpeakerText"
  }, getSpeakerName(speaker, getDefaultSpeakerName)), /*#__PURE__*/speakerInput_createElement(tooltip, {
    overlayInnerStyle: toolTipInnerStyle,
    title: toolTipinnerText,
    placement: "top",
    color: 'rgba(39,38,77,1)',
    zIndex: 1200
  }, /*#__PURE__*/speakerInput_createElement(StarBox, {
    className: "star",
    onClick: handleClick
  }, /*#__PURE__*/speakerInput_createElement(StarContainer, {
    isColleted: !isInCommonSpeakers(speaker, currentUseSpeakersList)
  }, /*#__PURE__*/speakerInput_createElement(Icon, {
    type: 'tingwu-favorites',
    size: 15,
    color: starColor
  })))));
});
var RenderCommonUseSpeaker = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var speaker = props.speaker,
    onSelect = props.onSelect,
    getDefaultSpeakerName = props.getDefaultSpeakerName,
    renderCommonUseAvatar = props.renderCommonUseAvatar,
    onCollectSpeaker = props.onCollectSpeaker,
    toolTipInnerStyle = props.toolTipInnerStyle;
  var avatarIcon = renderCommonUseAvatar && renderCommonUseAvatar(speaker) || _DefaultAvatarIcon2 || (_DefaultAvatarIcon2 = /*#__PURE__*/speakerInput_createElement(DefaultAvatarIcon, null));
  var handleClick = (0,_react_18_2_0_react.useCallback)(function (event) {
    event.stopPropagation();
    if (onCollectSpeaker) {
      onCollectSpeaker(speaker, false);
    }
  }, [onCollectSpeaker, speaker]);
  return /*#__PURE__*/speakerInput_createElement(RelatedCommonUseSpeaker, {
    key: speaker.name + "-" + speaker.bizUid,
    onClick: function onClick() {
      return onSelect(speaker);
    }
  }, /*#__PURE__*/speakerInput_createElement(RelatedSpeakerIcon, null, avatarIcon), /*#__PURE__*/speakerInput_createElement(RelatedSpeakerText, {
    className: "relatedSpeakerText"
  }, getDefaultSpeakerName && getSpeakerName(speaker, getDefaultSpeakerName)), /*#__PURE__*/speakerInput_createElement(tooltip, {
    overlayInnerStyle: toolTipInnerStyle,
    title: "\u5220\u9664",
    placement: "top",
    color: 'rgba(39,38,77,1)',
    zIndex: 1200
  }, /*#__PURE__*/speakerInput_createElement(DeleteIconBox, {
    className: "deleteIcon",
    onClick: handleClick
  }, _Icon || (_Icon = /*#__PURE__*/speakerInput_createElement(Icon, {
    type: 'tingwu-close',
    size: 9
  })))));
});
var RenderSpeakerList = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var speakers = props.speakers,
    onSelect = props.onSelect,
    getDefaultSpeakerName = props.getDefaultSpeakerName,
    currentUseSpeakersList = props.currentUseSpeakersList,
    renderAvatar = props.renderAvatar,
    onCollectSpeaker = props.onCollectSpeaker,
    toolTipInnerStyle = props.toolTipInnerStyle;
  return /*#__PURE__*/speakerInput_createElement(RelatedSpeakerList, null, _CurrentListTitle || (_CurrentListTitle = /*#__PURE__*/speakerInput_createElement(CurrentListTitle, null, "\u5F53\u524D\u8BB0\u5F55\u53D1\u8A00\u4EBA")), _CurrentListDescribe || (_CurrentListDescribe = /*#__PURE__*/speakerInput_createElement(CurrentListDescribe, null, "\u9009\u4E2D\u53D1\u8A00\u4EBA\u70B9\u51FB\u661F\u6807\uFF0C\u5373\u53EF\u8BBE\u4E3A\u5E38\u7528\u53D1\u8A00\u4EBA")), /*#__PURE__*/speakerInput_createElement(RelatedSpeakerListContain, null, speakers.map(function (speaker, index) {
    return /*#__PURE__*/speakerInput_createElement(RenderSpeaker, {
      key: speaker.name + "/" + index,
      speaker: speaker,
      onSelect: onSelect,
      getDefaultSpeakerName: getDefaultSpeakerName,
      currentUseSpeakersList: currentUseSpeakersList,
      renderAvatar: renderAvatar,
      onCollectSpeaker: onCollectSpeaker,
      toolTipInnerStyle: toolTipInnerStyle
    });
  })));
});
var RenderCommonUseSpeakerList = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var speakers = props.speakers,
    isMaxHeight = props.isMaxHeight,
    isEmpyt = props.isEmpyt,
    onSelect = props.onSelect,
    getDefaultSpeakerName = props.getDefaultSpeakerName,
    renderCommonUseAvatar = props.renderCommonUseAvatar,
    onCollectSpeaker = props.onCollectSpeaker,
    toolTipInnerStyle = props.toolTipInnerStyle;
  var heightNum = (0,_react_18_2_0_react.useMemo)(function () {
    return isMaxHeight ? 137 : 194;
  }, [isMaxHeight]);
  var listHeightNum = (0,_react_18_2_0_react.useMemo)(function () {
    return isMaxHeight ? 82 : 158;
  }, [isMaxHeight]);
  var isBlock = (0,_react_18_2_0_react.useMemo)(function () {
    return speakers.length > 0 ? 'inline-flex' : 'none';
  }, [speakers.length]);
  return /*#__PURE__*/speakerInput_createElement(CommonUseSpeakerList, {
    style: {
      height: '100%',
      maxHeight: heightNum
    }
  }, /*#__PURE__*/speakerInput_createElement(CommonUseSpeakeLine, {
    style: {
      display: isMaxHeight ? 'block' : 'none'
    }
  }), _CurrentCommonUseList || (_CurrentCommonUseList = /*#__PURE__*/speakerInput_createElement(CurrentCommonUseListTitle, null, /*#__PURE__*/speakerInput_createElement(CommonUseListTitleWord, null, "\u5E38\u7528\u53D1\u8A00\u4EBA"), /*#__PURE__*/speakerInput_createElement(StarContainer, null, /*#__PURE__*/speakerInput_createElement(Icon, {
    type: 'tingwu-favorites',
    size: 15,
    color: '#FCCC75'
  })))), /*#__PURE__*/speakerInput_createElement(CurrentCommonUseListDescribe, null, !isEmpyt ? '常用发言人会展示在所有记录中' : '选中当前记录发言人并点击星标，即可设为常用发言人，常用发言人会展示在所有记录中'), /*#__PURE__*/speakerInput_createElement(CommonUseListContain, {
    style: {
      display: isBlock,
      height: '100%',
      maxHeight: !isEmpyt ? listHeightNum : 0
    }
  }, speakers.map(function (speaker, index) {
    return /*#__PURE__*/speakerInput_createElement(RenderCommonUseSpeaker, {
      key: speaker.name + "/" + index,
      speaker: speaker,
      onSelect: onSelect,
      getDefaultSpeakerName: getDefaultSpeakerName,
      renderCommonUseAvatar: renderCommonUseAvatar,
      onCollectSpeaker: onCollectSpeaker,
      toolTipInnerStyle: toolTipInnerStyle
    });
  })));
});
var SpeakerInput = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var _RenderSpeakerList;
  var onFocus = props.onFocus,
    onBlur = props.onBlur,
    style = props.style,
    controller = props.controller,
    pid = props.pid,
    _props$isUnfix = props.isUnfix,
    isUnfix = _props$isUnfix === void 0 ? false : _props$isUnfix,
    _props$emptyUnfix = props.emptyUnfix,
    emptyUnfix = _props$emptyUnfix === void 0 ? false : _props$emptyUnfix,
    _props$defaultName = props.defaultName,
    defaultName = _props$defaultName === void 0 ? '' : _props$defaultName,
    onFinishEditing = props.onFinishEditing,
    getParagraphContainer = props.getParagraphContainer,
    resetProps = (0,objectWithoutPropertiesLoose/* default */.Z)(props, speakerInput_excluded);
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['onFetchAlibabaEmployees', 'getTranscriptionContainer', 'getAvailableSpeakers', 'renderAvatar', 'enableSelectAlibabaEmployee', 'getDefaultSpeakerName', 'onEvent', 'getCommonUseSpeakers', 'addCommonUseSpeaker', 'renderCommonUseAvatar']),
    onFetchAlibabaEmployees = _useTranscriptionHook.onFetchAlibabaEmployees,
    getTranscriptionContainer = _useTranscriptionHook.getTranscriptionContainer,
    getAvailableSpeakers = _useTranscriptionHook.getAvailableSpeakers,
    renderAvatar = _useTranscriptionHook.renderAvatar,
    enableSelectAlibabaEmployee = _useTranscriptionHook.enableSelectAlibabaEmployee,
    getDefaultSpeakerName = _useTranscriptionHook.getDefaultSpeakerName,
    onEvent = _useTranscriptionHook.onEvent,
    getCommonUseSpeakers = _useTranscriptionHook.getCommonUseSpeakers,
    renderCommonUseAvatar = _useTranscriptionHook.renderCommonUseAvatar,
    addCommonUseSpeaker = _useTranscriptionHook.addCommonUseSpeaker;
  var isLivingMode = controller.getLivingMode(); // don't use `useMemo`, will be have mistake

  var availableSpeakers = getAvailableSpeakers ? getAvailableSpeakers() : [];
  var commonUseSpeakers = getCommonUseSpeakers ? getCommonUseSpeakers() : [];
  var displayAvailableSpeakers = availableSpeakers.filter(function (speaker) {
    return speaker.uid.startsWith(UID_START_WORD);
  });
  var _useState = (0,_react_18_2_0_react.useState)(false),
    dropdownVisible = _useState[0],
    setDropdownVisible = _useState[1];
  var _useState2 = (0,_react_18_2_0_react.useState)([]),
    alibabaEmployees = _useState2[0],
    setAlibabaEmployees = _useState2[1];
  var _useState3 = (0,_react_18_2_0_react.useState)(defaultName),
    inputValue = _useState3[0],
    setInputValue = _useState3[1];
  var _useState4 = (0,_react_18_2_0_react.useState)(),
    selectedSpeaker = _useState4[0],
    setSelectedSpeaker = _useState4[1];
  var _useState5 = (0,_react_18_2_0_react.useState)(),
    selectedAlibabaEmployee = _useState5[0],
    setSelectedAlibabaEmployee = _useState5[1];
  var _useState6 = (0,_react_18_2_0_react.useState)(false),
    fetchingAlibabaEmployees = _useState6[0],
    setFetchingAlibabaEmployees = _useState6[1];
  var _useState7 = (0,_react_18_2_0_react.useState)(false),
    fetchedAlibabaEmployees = _useState7[0],
    setFetchedAlibabaEmployees = _useState7[1];
  var _useState8 = (0,_react_18_2_0_react.useState)(commonUseSpeakers),
    currentUseSpeakersList = _useState8[0],
    setCurrentUseSpeakersList = _useState8[1];
  var transController = getTranscriptionController(controller);
  var _useState9 = (0,_react_18_2_0_react.useState)(transController.getIsMiniMode()),
    miniMode = _useState9[0],
    setMiniMode = _useState9[1];
  (0,_react_18_2_0_react.useEffect)(function () {
    return transController.on('miniModeChange', function (_ref) {
      var isMiniMode = _ref.isMiniMode;
      setMiniMode(isMiniMode);
    });
  }, [transController]);
  var stateRef = (0,_react_18_2_0_react.useRef)({
    fetchId: 0,
    timeout: undefined
  });
  var handleCommitOneOnEmptyUnfix = (0,_react_18_2_0_react.useCallback)(function () {
    onEvent && onEvent('didEditSpeaker', {
      emptyUnfix: true,
      oldSpeaker: defaultName,
      newSpeaker: (selectedSpeaker == null ? void 0 : selectedSpeaker.name) || (selectedAlibabaEmployee == null ? void 0 : selectedAlibabaEmployee.name) || inputValue,
      isMutiple: false
    });
    if (selectedSpeaker) {
      controller.updateOneByHistorySpeakerOnEmptyUnfix(selectedSpeaker);
    } else if (selectedAlibabaEmployee) {
      controller.updateOneByAlibabaEmployeeOnEmptyUnfix(selectedAlibabaEmployee);
    } else {
      controller.updateOneByInputTextOnEmptyUnfix(defaultName, inputValue.trim());
    }
    onFinishEditing && onFinishEditing();
  }, [selectedSpeaker, controller, inputValue, onFinishEditing, selectedAlibabaEmployee, defaultName, onEvent]);
  var handleCommitOne = (0,_react_18_2_0_react.useCallback)(function () {
    if (!pid) {
      return;
    }
    onEvent && onEvent('didEditSpeaker', {
      pid: pid,
      emptyUnfix: false,
      oldSpeaker: defaultName,
      newSpeaker: (selectedSpeaker == null ? void 0 : selectedSpeaker.name) || (selectedAlibabaEmployee == null ? void 0 : selectedAlibabaEmployee.name) || inputValue.trim(),
      isMutiple: false
    });
    if (selectedSpeaker) {
      controller.updateOneByHistorySpeaker(pid, selectedSpeaker);
    } else if (selectedAlibabaEmployee) {
      controller.updateOneByAlibabaEmployee(pid, selectedAlibabaEmployee);
    } else {
      controller.updateOneByInputText(pid, defaultName, inputValue.trim());
    }
    onFinishEditing && onFinishEditing();
  }, [inputValue, controller, pid, selectedSpeaker, selectedAlibabaEmployee, onFinishEditing, defaultName, onEvent]);
  var handleCommitAll = (0,_react_18_2_0_react.useCallback)(function () {
    if (!pid) {
      return;
    }
    onEvent && onEvent('didEditSpeaker', {
      pid: pid,
      emptyUnfix: false,
      oldSpeaker: defaultName,
      newSpeaker: (selectedSpeaker == null ? void 0 : selectedSpeaker.name) || (selectedAlibabaEmployee == null ? void 0 : selectedAlibabaEmployee.name) || inputValue.trim(),
      isMutiple: true
    });
    if (selectedSpeaker) {
      controller.updateManyByHistorySpeaker(pid, selectedSpeaker);
    } else if (selectedAlibabaEmployee) {
      controller.updateManyByAlibabaEmployee(pid, selectedAlibabaEmployee);
    } else {
      controller.updateManyByInputText(pid, defaultName, inputValue.trim());
    }
    onFinishEditing && onFinishEditing();
  }, [pid, onEvent, defaultName, selectedSpeaker, selectedAlibabaEmployee, inputValue, onFinishEditing, controller]);
  var toolTipInnerStyle = (0,_react_18_2_0_react.useMemo)(function () {
    return {
      backgroundColor: 'rgba(39,38,77,1)',
      boxShadow: '0 2px 8px 0 rgba(90, 68, 151, 0.1)',
      borderRadius: 8,
      fontWeight: 400,
      fontSize: 12,
      color: '#ffffff',
      padding: '4px 12px',
      paddingTop: '6px',
      lineHeight: '20px'
    };
  }, []);
  var handleCancel = (0,_react_18_2_0_react.useCallback)(function () {
    if (ref) {
      ref.current.blur();
    }
  }, [ref]);
  var _useState10 = (0,_react_18_2_0_react.useState)(false),
    nextCommit = _useState10[0],
    setNextCommit = _useState10[1];
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!nextCommit) {
      return;
    }
    setNextCommit(false);
    if (emptyUnfix) {
      handleCommitOneOnEmptyUnfix();
    } else {
      handleCommitOne();
    }
  }, [nextCommit, emptyUnfix, handleCommitOneOnEmptyUnfix, handleCommitOne]);
  var commitFunc = (0,_react_18_2_0_react.useCallback)(function () {
    setNextCommit(true);
  }, []);
  var onSelectSpeaker = (0,_react_18_2_0_react.useCallback)(function (speaker) {
    setSelectedSpeaker(speaker);
    setSelectedAlibabaEmployee(undefined);
    setInputValue(speaker.name);
    if (ref) {
      ref.current.focus();
    }
    if (isLivingMode) {
      commitFunc();
    }
  }, [ref, commitFunc, isLivingMode]);
  var canAddCommonUseSpeaker = (0,_react_18_2_0_react.useCallback)( /*#__PURE__*/function () {
    var _ref2 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(speaker) {
      var result, newSpeakerList;
      return regenerator_default().wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              if (addCommonUseSpeaker) {
                _context.next = 4;
                break;
              }
              console.error('`addCommonUseSpeaker` not found');
              _context.next = 8;
              break;
            case 4:
              _context.next = 6;
              return addCommonUseSpeaker(speaker);
            case 6:
              result = _context.sent;
              if (result.code === '0') {
                newSpeakerList = [speaker].concat(currentUseSpeakersList);
                setCurrentUseSpeakersList(newSpeakerList);
                controller.updateCommonUseSpeakersList(newSpeakerList);
              }
            case 8:
            case "end":
              return _context.stop();
          }
        }
      }, _callee);
    }));
    return function (_x) {
      return _ref2.apply(this, arguments);
    };
  }(), [addCommonUseSpeaker, controller, currentUseSpeakersList]);
  var onCollectSpeaker = (0,_react_18_2_0_react.useCallback)(function (speaker, isCollect) {
    var index = findDeleteCommonSpeakerIndex(speaker, currentUseSpeakersList);
    if (isCollect) {
      if (index < 0) {
        canAddCommonUseSpeaker(speaker);
      }
    } else if (index > -1) {
      onEvent && onEvent('cancelCollectSpeaker', speaker);
      var newSpeakerList = currentUseSpeakersList.filter(function (_item, i) {
        return i !== index;
      });
      setCurrentUseSpeakersList(newSpeakerList);
      controller.updateCommonUseSpeakersList(newSpeakerList);
    }
    if (ref) {
      ref.current.focus();
    }
  }, [canAddCommonUseSpeaker, controller, currentUseSpeakersList, onEvent, ref]);
  var onSelectAlibabaEmployees = (0,_react_18_2_0_react.useCallback)(function (employee) {
    setSelectedSpeaker(undefined);
    setSelectedAlibabaEmployee(employee);
    setInputValue(getDisplayAlibabaEmployeeName(employee));
    setAlibabaEmployees([]);
    setFetchedAlibabaEmployees(false);
    if (ref) {
      ref.current.focus();
    }
    if (isLivingMode) {
      commitFunc();
    }
  }, [commitFunc, isLivingMode, ref]);
  var fetchAlibabaEmployeeById = (0,_react_18_2_0_react.useCallback)( /*#__PURE__*/function () {
    var _ref3 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2(keyword) {
      var result, targetEmployee;
      return regenerator_default().wrap(function _callee2$(_context2) {
        while (1) {
          switch (_context2.prev = _context2.next) {
            case 0:
              if (onFetchAlibabaEmployees) {
                _context2.next = 4;
                break;
              }
              console.error('`onFetchAlibabaEmployees` not found');
              _context2.next = 9;
              break;
            case 4:
              _context2.next = 6;
              return onFetchAlibabaEmployees(keyword);
            case 6:
              result = _context2.sent;
              targetEmployee = result.filter(function (v) {
                return v.bizUid === keyword;
              });
              targetEmployee && targetEmployee.length && onSelectAlibabaEmployees(targetEmployee[0]);
            case 9:
            case "end":
              return _context2.stop();
          }
        }
      }, _callee2);
    }));
    return function (_x2) {
      return _ref3.apply(this, arguments);
    };
  }(), [onFetchAlibabaEmployees, onSelectAlibabaEmployees]);
  var onSelectCommonUseSpeaker = (0,_react_18_2_0_react.useCallback)(function (speaker) {
    if (speaker.bizUid) {
      fetchAlibabaEmployeeById(speaker.bizUid);
    } else {
      setSelectedAlibabaEmployee(undefined);
      setInputValue(speaker.name);
      if (isLivingMode) {
        commitFunc();
      }
    }
    onEvent && onEvent('selectCommonUseSpeaker', speaker);
    if (ref) {
      ref.current.focus();
    }
  }, [commitFunc, fetchAlibabaEmployeeById, isLivingMode, ref, onEvent]);
  var overlay = (0,_react_18_2_0_react.useMemo)(function () {
    var fetchedAlibabaEmployeesAndEmpty = !fetchingAlibabaEmployees && fetchedAlibabaEmployees && alibabaEmployees.length === 0;
    return /*#__PURE__*/speakerInput_createElement(DropdownOverlay, {
      style: {
        width: 300
      }
    }, fetchedAlibabaEmployeesAndEmpty && inputValue && /*#__PURE__*/speakerInput_createElement(_react_18_2_0_react.Fragment, null, _AlibabaEmpty || (_AlibabaEmpty = /*#__PURE__*/speakerInput_createElement(AlibabaEmpty, null, "\u65E0\u5BF9\u5E94\u96C6\u56E2\u7528\u6237\uFF0C\u4F60\u53EF\u4EE5\u76F4\u63A5\u6DFB\u52A0")), displayAvailableSpeakers.length > 0 && (_HorizontalDivider || (_HorizontalDivider = /*#__PURE__*/speakerInput_createElement(HorizontalDivider, null)))), alibabaEmployees.length > 0 && /*#__PURE__*/speakerInput_createElement(_react_18_2_0_react.Fragment, null, renderCompanyPeoples(inputValue, alibabaEmployees, onSelectAlibabaEmployees)), alibabaEmployees.length === 0 && displayAvailableSpeakers.length > 0 && (_RenderSpeakerList || (_RenderSpeakerList = /*#__PURE__*/speakerInput_createElement(RenderSpeakerList, {
      speakers: displayAvailableSpeakers,
      onSelect: onSelectSpeaker,
      getDefaultSpeakerName: getDefaultSpeakerName,
      currentUseSpeakersList: currentUseSpeakersList,
      renderAvatar: renderAvatar,
      onCollectSpeaker: onCollectSpeaker,
      toolTipInnerStyle: toolTipInnerStyle
    }))), alibabaEmployees.length === 0 && /*#__PURE__*/speakerInput_createElement(RenderCommonUseSpeakerList, {
      speakers: currentUseSpeakersList,
      isMaxHeight: displayAvailableSpeakers.length > 0,
      isEmpyt: displayAvailableSpeakers.length === 0 && currentUseSpeakersList.length === 0,
      onSelect: onSelectCommonUseSpeaker,
      getDefaultSpeakerName: getDefaultSpeakerName,
      renderCommonUseAvatar: renderCommonUseAvatar,
      onCollectSpeaker: onCollectSpeaker,
      toolTipInnerStyle: toolTipInnerStyle
    }));
  }, [fetchingAlibabaEmployees, fetchedAlibabaEmployees, alibabaEmployees, displayAvailableSpeakers, getDefaultSpeakerName, onSelectAlibabaEmployees, onSelectSpeaker, onSelectCommonUseSpeaker, renderAvatar, renderCommonUseAvatar, inputValue, currentUseSpeakersList, onCollectSpeaker, toolTipInnerStyle]);
  var handleFocus = (0,_react_18_2_0_react.useCallback)(function (event) {
    setDropdownVisible(true);
    onFocus && onFocus(event);
    if (stateRef.current.timeout) {
      clearTimeout(stateRef.current.timeout);
      stateRef.current.timeout = undefined;
    }
  }, [onFocus]);
  var handleBlur = (0,_react_18_2_0_react.useCallback)(function (event) {
    stateRef.current.timeout = setTimeout(function () {
      setDropdownVisible(false);
      setFetchedAlibabaEmployees(false);
      stateRef.current.timeout = undefined;
      onFinishEditing && onFinishEditing();
    }, 300);
    onBlur && onBlur(event);
  }, [onBlur, onFinishEditing]);
  var fetchAlibabaEmployees = (0,_react_18_2_0_react.useCallback)( /*#__PURE__*/function () {
    var _ref4 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee3(keyword) {
      var fetchId, result;
      return regenerator_default().wrap(function _callee3$(_context3) {
        while (1) {
          switch (_context3.prev = _context3.next) {
            case 0:
              if (onFetchAlibabaEmployees) {
                _context3.next = 4;
                break;
              }
              console.error('`onFetchAlibabaEmployees` not found');
              _context3.next = 23;
              break;
            case 4:
              fetchId = ++stateRef.current.fetchId;
              setFetchingAlibabaEmployees(true);
              _context3.prev = 6;
              _context3.next = 9;
              return onFetchAlibabaEmployees(keyword);
            case 9:
              result = _context3.sent;
              if (!(fetchId !== stateRef.current.fetchId)) {
                _context3.next = 12;
                break;
              }
              return _context3.abrupt("return");
            case 12:
              if (result && result.length > 0) {
                setAlibabaEmployees(result);
              } else {
                setAlibabaEmployees([]);
              }
              _context3.next = 19;
              break;
            case 15:
              _context3.prev = 15;
              _context3.t0 = _context3["catch"](6);
              setAlibabaEmployees([]);
              throw _context3.t0;
            case 19:
              _context3.prev = 19;
              setFetchedAlibabaEmployees(true);
              setFetchingAlibabaEmployees(false);
              return _context3.finish(19);
            case 23:
            case "end":
              return _context3.stop();
          }
        }
      }, _callee3, null, [[6, 15, 19, 23]]);
    }));
    return function (_x3) {
      return _ref4.apply(this, arguments);
    };
  }(), [onFetchAlibabaEmployees]);
  var handleKeydown = (0,_react_18_2_0_react.useCallback)(function (event) {
    event.stopPropagation();
    if (isEnterHotkey(event.keyCode)) {
      commitFunc();
    }
  }, [commitFunc]);
  var handleChange = (0,_react_18_2_0_react.useCallback)( /*#__PURE__*/function () {
    var _ref5 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee4(event) {
      var text, formatedText;
      return regenerator_default().wrap(function _callee4$(_context4) {
        while (1) {
          switch (_context4.prev = _context4.next) {
            case 0:
              text = event.target.value;
              formatedText = text.trim();
              if (enableSelectAlibabaEmployee) {
                fetchAlibabaEmployees(formatedText);
              }
              setInputValue(text);
              setSelectedSpeaker(undefined);
              setSelectedAlibabaEmployee(undefined);
            case 6:
            case "end":
              return _context4.stop();
          }
        }
      }, _callee4);
    }));
    return function (_x4) {
      return _ref5.apply(this, arguments);
    };
  }(), [fetchAlibabaEmployees, enableSelectAlibabaEmployee]);
  return /*#__PURE__*/speakerInput_createElement(speakerInput_styled_Wrapper, {
    miniMode: miniMode
  }, /*#__PURE__*/speakerInput_createElement(es_dropdown, {
    visible: dropdownVisible && overlay != null,
    overlay: overlay || EMPTY_OVERLAY,
    getPopupContainer: isUnfix ? getParagraphContainer : getTranscriptionContainer,
    align: {
      overflow: {
        adjustY: false
      }
    }
  }, /*#__PURE__*/speakerInput_createElement(input, (0,esm_extends/* default */.Z)({}, resetProps, {
    ref: ref,
    value: inputValue,
    onKeyDown: handleKeydown,
    onChange: handleChange,
    onFocus: handleFocus,
    onBlur: handleBlur,
    placeholder: '请输入发言人',
    style: style,
    maxLength: 10
  }))), /*#__PURE__*/speakerInput_createElement(styled_Button, {
    primary: true,
    onMouseDown: emptyUnfix ? handleCommitOneOnEmptyUnfix : handleCommitOne,
    style: {
      marginLeft: 12
    }
  }, isLivingMode ? '确定' : '单个'), !isLivingMode && /*#__PURE__*/speakerInput_createElement(styled_Button, {
    onMouseDown: handleCommitAll,
    style: {
      marginLeft: 8
    }
  }, "\u5168\u5C40"), isLivingMode && /*#__PURE__*/speakerInput_createElement(styled_Button, {
    onMouseDown: handleCancel,
    style: {
      marginLeft: 8
    }
  }, "\u53D6\u6D88"));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/noRecordTip/styled.js

var noRecordTip_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["padding:11px 12px;background-color:#ffffff;border-radius:8px;display:flex;align-items:center;font-size:12px;letter-spacing:0;line-height:18px;margin-left:8px;margin-bottom:3px;"]);
var ContentText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["color:rgba(39,38,77,0.65);margin-left:7px;"]);
var LintBotton = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["color:#605ce5;cursor:pointer;margin-left:4px;"]);
var CloseButton = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;align-items:center;height:14px;cursor:pointer;margin-left:6px;color:#7D7D94;&:hover{color:#605CE5;}"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/noRecordTip/noRecordTip.js
var _SYSTEM_CONFIG_, noRecordTip_Icon, _ContentText, _Icon2;

var noRecordTip_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;



// 异常帮助文档页跳转
var env = ((_SYSTEM_CONFIG_ = window._SYSTEM_CONFIG_) == null ? void 0 : _SYSTEM_CONFIG_.primaryVersion) || 'tongyi';
var helpcenterPuth = env === 'cloud' || env === 'tongyi' ? '/4769d5' : '/01714b';
var NoRecordTip = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var controller = props.controller,
    visible = props.visible,
    onVisibleChange = props.onVisibleChange;
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['onEvent']),
    onEvent = _useTranscriptionHook.onEvent;
  var gotoExceptionHelp = (0,_react_18_2_0_react.useCallback)(function () {
    onEvent && onEvent('clickNoWordHelp', {});
    var url = location.origin + "/helpcenter" + helpcenterPuth;
    window.open(url);
  }, [onEvent, helpcenterPuth]); // close tip change showSpeakerTip

  var closeNoRecordTip = (0,_react_18_2_0_react.useCallback)(function () {
    onVisibleChange(false);
    onEvent && onEvent('detectEmptyContentClose', {});
  }, [onEvent, onVisibleChange]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('addFixParagraph', function () {
      controller.clearNoRecordTip();
    });
  }, [controller]);
  if (!visible) {
    return null;
  }
  return /*#__PURE__*/noRecordTip_createElement(noRecordTip_styled_Wrapper, null, noRecordTip_Icon || (noRecordTip_Icon = /*#__PURE__*/noRecordTip_createElement(Icon, {
    type: 'tingwu-tip',
    color: '#605CE5'
  })), _ContentText || (_ContentText = /*#__PURE__*/noRecordTip_createElement(ContentText, {
    "data-e2e-test-id": "trans_noResult_div"
  }, "\u65E0\u8BC6\u522B\u7ED3\u679C\uFF1F")), /*#__PURE__*/noRecordTip_createElement(LintBotton, {
    onClick: gotoExceptionHelp
  }, "\u67E5\u770B\u5E2E\u52A9"), /*#__PURE__*/noRecordTip_createElement(CloseButton, {
    onClick: closeNoRecordTip
  }, _Icon2 || (_Icon2 = /*#__PURE__*/noRecordTip_createElement(Icon, {
    type: 'tingwu-close',
    size: 8
  }))));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/ellipsis/styled.js

var cycleKeyframes = /*#__PURE__*/(0,styled_components_browser_esm/* keyframes */.F4)(["0%{transform:scale(1);}50%{transform:scale(1.66666667);}100%{transform:scale(1);}"]);
var EllipsisStyled = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;align-items:center;"]);
var EllipsisDot = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["animation:", " 1200ms ease-in infinite;display:block;width:3px;height:3px;border-radius:3px;background-color:", ";margin-right:3px;&:last-child{margin-right:none;}&:nth-child(1){animation-delay:0ms;}&:nth-child(2){animation-delay:400ms;}&:nth-child(3){animation-delay:800ms;}"], cycleKeyframes, function (props) {
  return props.color || 'rgba(39, 37, 96, .45)';
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/ellipsis/ellipsis.js

var ellipsis_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;

var Ellipsis = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var color = props.color;
  return /*#__PURE__*/ellipsis_createElement(EllipsisStyled, null, /*#__PURE__*/ellipsis_createElement(EllipsisDot, {
    color: color
  }), /*#__PURE__*/ellipsis_createElement(EllipsisDot, {
    color: color
  }), /*#__PURE__*/ellipsis_createElement(EllipsisDot, {
    color: color
  }));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/translateStatus/styled.js

var TranslateError = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;align-items:center;color:#272560;opacity:0.45;cursor:pointer;svg{margin-right:5px;}&:hover{color:#605CE5;opacity:1;}"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/translateStatus/translateStatus.js
var translateStatus_Icon, _Ellipsis;



var translateStatus_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;




var TranslateStatus = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var controller = props.controller,
    pid = props.pid;
  var _useState = (0,_react_18_2_0_react.useState)('normal'),
    status = _useState[0],
    setStatus = _useState[1];
  var translateMode = controller.getTranslateMode();
  var forceUpdate = useForceUpdate();
  useSyncEffect(function () {
    return controller.on('translateModeChange', forceUpdate);
  }, [controller, forceUpdate]);
  useSyncEffect(function () {
    return controller.on('fixParagraphTranslateChange', function (_ref) {
      var translate = _ref.translate;
      if (pid === translate.pid) {
        if (translate.isTranslating) {
          setStatus('translating');
        } else if (translate.isTranslateError) {
          setStatus('error');
        } else {
          setStatus('normal');
        }
      }
    });
  }, [controller, pid]);
  var handleRetryTranslate = (0,_react_18_2_0_react.useCallback)(function () {
    controller.emitParagraphNeedTranslate(pid);
  }, [controller, pid]);
  if (translateMode === translateController/* TranslateMode */.R.Disabled || status === 'normal') {
    return null;
  }
  if (status === 'error') {
    return /*#__PURE__*/translateStatus_createElement(TranslateError, {
      onClick: handleRetryTranslate
    }, translateStatus_Icon || (translateStatus_Icon = /*#__PURE__*/translateStatus_createElement(Icon, {
      type: 'tingwu-refresh1'
    })), " \u7FFB\u8BD1\u5931\u8D25\u8BF7\u91CD\u8BD5");
  }
  if (status === 'translating') {
    return _Ellipsis || (_Ellipsis = /*#__PURE__*/translateStatus_createElement(Ellipsis, null));
  }
  return null;
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/liveSpeakerTip/styled.js

var liveSpeakerTip_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["background-color:#FFFFFF;border-radius:8px;font-size:12px;color:rgba(39,38,77,0.65);height:36px;line-height:20px;padding:0 12px;display:flex;align-items:center;position:relative;margin-left:11px;"]);
var Text = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["margin-left:6px;margin-right:8px;"]);
var styled_CloseButton = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:12px;height:12px;display:flex;justify-content:center;align-items:center;cursor:pointer;position:relative;color:#7D7D94;&:hover{color:#605CE5;}&:after{position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;}"]);
var Triple = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:0;height:0;border-top:4px solid transparent;border-bottom:5px solid transparent;position:absolute;left:-7px;border-right:7px solid #fff;"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/liveSpeakerTip/liveSpeakerTip.js
var _Triple, liveSpeakerTip_Icon, _Text, liveSpeakerTip_Icon2;

var liveSpeakerTip_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;


var LiveSpeakerTip = function LiveSpeakerTip(_ref) {
  var onClose = _ref.onClose;
  var timeoutRef = (0,_react_18_2_0_react.useRef)();
  var handleClose = (0,_react_18_2_0_react.useCallback)(function () {
    clearTimeout(timeoutRef.current);
    onClose && onClose(true);
  }, [onClose]);
  (0,_react_18_2_0_react.useEffect)(function () {
    clearTimeout(timeoutRef.current);
    timeoutRef.current = setTimeout(function () {
      onClose && onClose(false);
    }, 6000);
    return function () {
      clearTimeout(timeoutRef.current);
    };
  }, [onClose]);
  return /*#__PURE__*/liveSpeakerTip_createElement(liveSpeakerTip_styled_Wrapper, null, _Triple || (_Triple = /*#__PURE__*/liveSpeakerTip_createElement(Triple, null)), liveSpeakerTip_Icon || (liveSpeakerTip_Icon = /*#__PURE__*/liveSpeakerTip_createElement(Icon, {
    type: 'tingwu-tip',
    color: '#605CE5'
  })), _Text || (_Text = /*#__PURE__*/liveSpeakerTip_createElement(Text, null, "\u53D1\u8A00\u4EBA\u540D\u79F0\u53EF\u7F16\u8F91\uFF0C\u7ED3\u675F\u540E\u652F\u6301\u667A\u80FD\u533A\u5206\u53D1\u8A00\u4EBA")), /*#__PURE__*/liveSpeakerTip_createElement(styled_CloseButton, {
    onClick: handleClose
  }, liveSpeakerTip_Icon2 || (liveSpeakerTip_Icon2 = /*#__PURE__*/liveSpeakerTip_createElement(Icon, {
    type: 'tingwu-close',
    size: 8
  }))));
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/paragraphContent/paragraphHeading.js
var _ParagraphSpeaking, _DefaultAvatar, paragraphHeading_Icon;

var paragraphHeading_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;









var ParagraphHeading = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var _ParagraphHeadingTime, _ParagraphSpeakerText, _ParagraphHeadingTime2;
  var controller = props.controller,
    pid = props.pid,
    paragraph = props.paragraph,
    words = props.words,
    isUnfix = props.isUnfix,
    emptyUnfix = props.emptyUnfix,
    _props$readonly = props.readonly,
    readonly = _props$readonly === void 0 ? false : _props$readonly,
    _props$showBackground = props.showBackground,
    showBackground = _props$showBackground === void 0 ? false : _props$showBackground,
    _props$isParagraphMou = props.isParagraphMouseEnter,
    isParagraphMouseEnter = _props$isParagraphMou === void 0 ? false : _props$isParagraphMou,
    isEditorFocus = props.isEditorFocus,
    translateMode = props.translateMode,
    getParagraphContainer = props.getParagraphContainer;
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['getAvailableSpeakers', 'renderAvatar', 'enableShowSpeaker', 'getDefaultSpeakerName', 'enableEditSpeaker', 'onEvent']),
    getAvailableSpeakers = _useTranscriptionHook.getAvailableSpeakers,
    renderAvatar = _useTranscriptionHook.renderAvatar,
    enableShowSpeaker = _useTranscriptionHook.enableShowSpeaker,
    getDefaultSpeakerName = _useTranscriptionHook.getDefaultSpeakerName,
    enableEditSpeaker = _useTranscriptionHook.enableEditSpeaker,
    onEvent = _useTranscriptionHook.onEvent;
  var transController = getTranscriptionController(controller);
  var forceUpdate = useForceUpdate();
  var _useState = (0,_react_18_2_0_react.useState)(false),
    editingSpeaker = _useState[0],
    setEditingSpeaker = _useState[1];
  var _useState2 = (0,_react_18_2_0_react.useState)(false),
    showSpeakerTip = _useState2[0],
    setShowSpeakerTip = _useState2[1];
  var _useState3 = (0,_react_18_2_0_react.useState)(false),
    noRecordNodeVisible = _useState3[0],
    setNoRecordNodeVisible = _useState3[1];
  var _useState4 = (0,_react_18_2_0_react.useState)(true),
    showHeadingExtra = _useState4[0],
    setShowHeadingExtra = _useState4[1];
  var _useState5 = (0,_react_18_2_0_react.useState)(false),
    isDropdownShowUp = _useState5[0],
    setIsDropdownShowUp = _useState5[1];
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!isUnfix) {
      setShowSpeakerTip(false);
      return;
    }
    var isShow = controller.isFirstUnfixPid(pid) && myLocalStorage.getItem('showedLiveSpeakerTip') !== true && !transController.getIsDidShowUnfixSpeakerTip();
    setShowSpeakerTip(isShow);
  }, [isUnfix, pid, controller, transController]);
  var uid = function () {
    if (paragraph) {
      return paragraph.uid;
    } else if (emptyUnfix) {
      return controller.getEmptyUnfixTempUid();
    }
  }();
  var getName = (0,_react_18_2_0_react.useCallback)(function () {
    return controller.renderSpeakerName(uid);
  }, [uid, getAvailableSpeakers, getDefaultSpeakerName]);
  var _useState6 = (0,_react_18_2_0_react.useState)(function () {
      return getName();
    }),
    name = _useState6[0],
    setName = _useState6[1];
  useSyncEffect(function () {
    if (!emptyUnfix) {
      return;
    }
    controller.on('emptyUnfixSpeakerChange', forceUpdate);
  }, [controller, emptyUnfix, forceUpdate]);
  var initName = (0,_react_18_2_0_react.useCallback)(function () {
    setName(getName());
  }, [getName]);
  useSyncEffect(function () {
    if (!uid) {
      return;
    }
    return controller.on('speakerNameChange', function (_ref) {
      var _uid = _ref.uid;
      if (uid === _uid) {
        initName();
      }
    });
  }, [controller, uid, initName]);
  (0,_react_18_2_0_react.useEffect)(function () {
    initName();
  }, [initName]);
  var beginTimeFormated = (0,_react_18_2_0_react.useMemo)(function () {
    if (words && words.length > 0) {
      return (0,datetime/* getFlexibleTime */.iQ)(words[0].beginTime);
    } else {
      var paras = controller.getParagraphs();
      var lastParagraph = paras.length > 0 ? paras[paras.length - 1] : undefined;
      if (lastParagraph && lastParagraph.wids.length > 0) {
        var word = controller.getWord(lastParagraph.wids[lastParagraph.wids.length - 1]);
        return (0,datetime/* getFlexibleTime */.iQ)(word.beginTime);
      } else {
        return (0,datetime/* getFlexibleTime */.iQ)(0);
      }
    }
  }, [words, controller]);
  var inputRef = (0,_react_18_2_0_react.useRef)(null);
  var handleInputFocus = (0,_react_18_2_0_react.useCallback)(function () {
    setShowHeadingExtra(false);
  }, []);
  var isCurrentPid = (0,_react_18_2_0_react.useCallback)(function (_pid) {
    return emptyUnfix && _pid === 'emptyUnfixPid' || _pid && _pid === pid;
  }, [emptyUnfix, pid]);
  var handleEditing = (0,_react_18_2_0_react.useCallback)(function () {
    if (enableEditSpeaker) {
      onEvent && onEvent('willEditSpeaker', {
        pid: pid,
        emptyUnfix: Boolean(emptyUnfix),
        oldSpeaker: name
      });
      transController.setCurrentEditingSpeakerPid(emptyUnfix ? 'emptyUnfixPid' : pid);
      setEditingSpeaker(true);
      setTimeout(function () {
        var _inputRef$current;
        (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
      });
    }
  }, [enableEditSpeaker, transController, emptyUnfix, pid, onEvent, name]);
  var handleFinishEditing = (0,_react_18_2_0_react.useCallback)(function () {
    transController.setCurrentEditingSpeakerPid(undefined);
    setEditingSpeaker(false);
    setShowHeadingExtra(true);
  }, [transController]);
  useSyncEffect(function () {
    if (!editingSpeaker) {
      return;
    }
    return transController.on('currentEditingSpeakerPidChange', function (_ref2) {
      var _pid = _ref2.pid;
      if (!isCurrentPid(_pid)) {
        setEditingSpeaker(false);
      }
    });
  }, [transController, pid, emptyUnfix, isCurrentPid, editingSpeaker]);
  var invisibleSpeakerNode = (0,_react_18_2_0_react.useMemo)(function () {
    var isUnfixRender = transController.getIsRenderUnfixSpeakerPlaceholder();
    if (isUnfix && isUnfixRender) {
      return _ParagraphSpeaking || (_ParagraphSpeaking = /*#__PURE__*/paragraphHeading_createElement(ParagraphSpeaking, null, "\u53D1\u8A00\u4EBA\u6B63\u5728\u8BB2\u8BDD\u2026"));
    } else {
      return beginTimeFormated ? _ParagraphHeadingTime || (_ParagraphHeadingTime = /*#__PURE__*/paragraphHeading_createElement(ParagraphHeadingTime, {
        className: "time"
      }, beginTimeFormated)) : null;
    }
  }, [isUnfix, beginTimeFormated, transController]);
  var liveSpeakerTipNode = (0,_react_18_2_0_react.useMemo)(function () {
    return /*#__PURE__*/paragraphHeading_createElement(LiveSpeakerTip, {
      onClose: function onClose(isUserAction) {
        if (isUserAction) {
          myLocalStorage.setItem('showedLiveSpeakerTip', true);
        }
        transController.setIsDidShowUnfixSpeakerTip(true);
        setShowSpeakerTip(false);
      }
    });
  }, [transController]);
  useSyncEffect(function () {
    if (!isUnfix) {
      // 只需要在是unfix的时候监听，非unfix不用监听
      return;
    }
    return controller.on('detectEmptyContent', function () {
      setNoRecordNodeVisible(true);
      onEvent && onEvent('detectEmptyContentOpen', {});
    });
  }, [isUnfix]);
  useSyncEffect(function () {
    if (!isUnfix) {
      // 只需要在是unfix的时候监听，非unfix不用监听
      return;
    }
    return controller.on('closeNoRecordTip', function () {
      setNoRecordNodeVisible(false);
    });
  }, [isUnfix]);
  var noRecordNode = (0,_react_18_2_0_react.useMemo)(function () {
    return !editingSpeaker && /*#__PURE__*/paragraphHeading_createElement(NoRecordTip, {
      controller: controller,
      visible: noRecordNodeVisible,
      onVisibleChange: function onVisibleChange() {
        setNoRecordNodeVisible(false);
      }
    });
  }, [noRecordNodeVisible, editingSpeaker, controller]);
  var speakerNode = (0,_react_18_2_0_react.useMemo)(function () {
    var avatarIcon = uid && renderAvatar && renderAvatar(uid) || _DefaultAvatar || (_DefaultAvatar = /*#__PURE__*/paragraphHeading_createElement(DefaultAvatar, null));
    return /*#__PURE__*/paragraphHeading_createElement(_react_18_2_0_react.Fragment, null, /*#__PURE__*/paragraphHeading_createElement(ParagraphSpeakerWrapper, {
      visible: enableShowSpeaker,
      disableHoverEffect: readonly,
      "data-e2e-test-id": "trans_paragraphHead_speaker_div"
    }, /*#__PURE__*/paragraphHeading_createElement(ParagraphAvatar, null, avatarIcon), editingSpeaker ? /*#__PURE__*/paragraphHeading_createElement(SpeakerInput, {
      controller: controller,
      pid: pid,
      ref: inputRef,
      onFocus: handleInputFocus,
      defaultName: name,
      onFinishEditing: handleFinishEditing,
      emptyUnfix: emptyUnfix,
      isUnfix: isUnfix,
      getParagraphContainer: getParagraphContainer
    }) : /*#__PURE__*/paragraphHeading_createElement(_react_18_2_0_react.Fragment, null, /*#__PURE__*/paragraphHeading_createElement(ParagraphSpeaker, {
      className: "speaker",
      readonly: readonly,
      onClick: !readonly ? handleEditing : undefined
    }, _ParagraphSpeakerText || (_ParagraphSpeakerText = /*#__PURE__*/paragraphHeading_createElement(ParagraphSpeakerText, null, name)), paragraphHeading_Icon || (paragraphHeading_Icon = /*#__PURE__*/paragraphHeading_createElement(Icon, {
      type: 'tingwu-edits',
      size: 12
    }))), beginTimeFormated ? _ParagraphHeadingTime2 || (_ParagraphHeadingTime2 = /*#__PURE__*/paragraphHeading_createElement(ParagraphHeadingTime, {
      className: "time",
      readonly: readonly
    }, beginTimeFormated)) : null, showSpeakerTip ? liveSpeakerTipNode : null), noRecordNode), !enableShowSpeaker && invisibleSpeakerNode);
  }, [enableShowSpeaker, beginTimeFormated, controller, editingSpeaker, handleInputFocus, name, handleFinishEditing, pid, handleEditing, uid, renderAvatar, emptyUnfix, invisibleSpeakerNode, showSpeakerTip, readonly, liveSpeakerTipNode, noRecordNode, isUnfix, getParagraphContainer]);
  var tranController = generateTranscriptionController(controller);
  useSyncEffect(function () {
    return tranController.on('onDropdownShowUp', function (_ref3) {
      var _pid = _ref3.pid;
      if (_pid === pid) {
        setIsDropdownShowUp(true);
      }
    });
  }, [tranController]);
  useSyncEffect(function () {
    return tranController.on('onDropdownHideOff', function () {
      setIsDropdownShowUp(false);
    });
  }, [tranController]);
  var extra = transController.renderParagraphHeadingExtra({
    isMouseEnter: isParagraphMouseEnter,
    pid: pid,
    emptyUnfix: emptyUnfix,
    isUnfix: isUnfix,
    isDropdownShowUp: isDropdownShowUp,
    isEditorFocus: isEditorFocus,
    readonly: readonly,
    translateMode: translateMode
  });
  var headingExtra = showHeadingExtra && extra || pid && /*#__PURE__*/paragraphHeading_createElement(TranslateStatus, {
    controller: controller,
    pid: pid
  });
  return /*#__PURE__*/paragraphHeading_createElement(ParagraphHeadingStyled, {
    showBackground: showBackground,
    enableShowSpeaker: enableShowSpeaker
  }, /*#__PURE__*/paragraphHeading_createElement(ParagraphHeadingSpeakerWrapper, null, speakerNode), /*#__PURE__*/paragraphHeading_createElement(ParagraphHeadingExtra, {
    "data-e2e-test-id": "trans_paragraphHead_tag_div"
  }, headingExtra));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/translateContent/styled.js



var styled_paragraph = config.theme.paragraph;
var ParagraphTranslate = /*#__PURE__*/(0,styled_components_browser_esm/* default */.ZP)(WordsStyled)(["width:100%;position:relative;font-size:14px;font-family:", ";line-height:24px;padding:", "px ", "px;background-color:", ";color:rgba(39,38,77,0.85);border-bottom-left-radius:8px;border-bottom-right-radius:8px;caret-color:transparent;outline:none;cursor:text;user-select:text;span::selection{background-color:rgba(159,156,238,0.60);color:", ";}", " ", " ", " ", " &:before{content:' ';display:", ";background-color:#F0F0F0;height:1px;position:absolute;top:0;left:", "px;right:", "px;}"], function (props) {
  return props.theme.editorFontFamily;
}, function (props) {
  return props.theme.paragraphVerticalPadding;
}, function (props) {
  return props.theme.paragraphHorizontalPadding;
}, styled_paragraph.backgroundColor, function (props) {
  return props.isHighlight ? '#FFFFFF' : 'rgba(39,38,77,0.85)';
}, function (props) {
  return props.isUnfix && (0,styled_components_browser_esm/* css */.iv)(["min-height:96px;user-select:none;cursor:default;"]);
}, function (props) {
  return props.showOrigin && (0,styled_components_browser_esm/* css */.iv)(["padding-top:8px;"]);
}, function (props) {
  return !props.showOrigin && (0,styled_components_browser_esm/* css */.iv)(["border-top-left-radius:8px;border-top-right-radius:8px;"]);
}, function (props) {
  return props.isHighlight && (0,styled_components_browser_esm/* css */.iv)(["background-color:#605CE5;color:rgba(255,255,255,0.6);"]);
}, function (props) {
  return props.showOrigin && !props.isHighlight ? 'block' : 'none';
}, function (props) {
  return props.theme.paragraphHorizontalPadding;
}, function (props) {
  return props.theme.paragraphHorizontalPadding;
});
var FixText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.span(["color:", ";"], function (props) {
  return props.isHighlight ? 'rgba(255, 255, 255, 1)' : 'rgba(39, 38, 77, 0.85)';
});
var styled_UnfixText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.span(["color:rgba(255,255,255,0.6);"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/translateContent/translateContent.js

var translateContent_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;






var doNothing = function doNothing(id) {
  return id;
};
var TranslateContent = function TranslateContent(props) {
  var controller = props.controller,
    pid = props.pid,
    isUnfix = props.isUnfix,
    translateSelections = props.translateSelections,
    activeFoundSelection = props.activeFoundSelection,
    playingWord = props.playingWord,
    _props$showOrigin = props.showOrigin,
    showOrigin = _props$showOrigin === void 0 ? false : _props$showOrigin,
    _props$isHighlight = props.isHighlight,
    isHighlight = _props$isHighlight === void 0 ? false : _props$isHighlight;
  var transController = getTranscriptionController(controller);
  var isReadonly = (0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(isReadonlyState);
  var stateRef = (0,_react_18_2_0_react.useRef)({
    lastActiveWord: undefined
  });
  var containerRef = (0,_react_18_2_0_react.useRef)(null);
  var fixedRef = (0,_react_18_2_0_react.useRef)(null);
  var _useState = (0,_react_18_2_0_react.useState)(0),
    updateId = _useState[0],
    setUpdateId = _useState[1];
  var getRange = function getRange(callback, fallback, debug) {
    if (!containerRef.current) {
      return;
    }
    var range = getFirstRange(containerRef.current);
    if (!range) {
      fallback && fallback();
      return;
    }
    callback(range);
  };
  var getFixParagraphTranslateViewWords = (0,_react_18_2_0_react.useCallback)(function () {
    doNothing(updateId);
    if (!pid) {
      return [[], ''];
    }
    var translate = controller.getTranslate(pid);
    if (!translate) {
      return [[], ''];
    }
    var vws = generateViewedWords(translate.translateResult, translateSelections, activeFoundSelection, playingWord, true);
    return [vws, ''];
  }, [pid, translateSelections, activeFoundSelection, playingWord, controller, updateId]);
  var getUnfixParagraphTranslateViewWords = (0,_react_18_2_0_react.useCallback)(function () {
    doNothing(updateId);
    var _controller$getUnfixT = controller.getUnfixTranslate(),
      fixContentTranslate = _controller$getUnfixT.fixContentTranslate,
      unfixContentTranslate = _controller$getUnfixT.unfixContentTranslate;
    var vws = generateViewedWords(fixContentTranslate, translateSelections, activeFoundSelection, playingWord, true);
    return [vws, unfixContentTranslate];
  }, [translateSelections, activeFoundSelection, playingWord, controller, updateId]);
  var _useMemo = (0,_react_18_2_0_react.useMemo)(function () {
      return isUnfix ? getUnfixParagraphTranslateViewWords() : getFixParagraphTranslateViewWords();
    }, [isUnfix, getFixParagraphTranslateViewWords, getUnfixParagraphTranslateViewWords]),
    viewedWords = _useMemo[0],
    extraContent = _useMemo[1];
  (0,_react_18_2_0_react.useEffect)(function () {
    var length = viewedWords.length;
    if (!pid || length === 0) {
      return;
    }
    viewedWords.some(function (viewedWord, index) {
      if (viewedWord.searchedOffsets) {
        var found = viewedWord.searchedOffsets.find(function (offset) {
          return offset.isActive;
        });
        if (found) {
          var _ref = stateRef.current || {},
            lastActiveWord = _ref.lastActiveWord;
          if (!lastActiveWord || lastActiveWord.wid !== viewedWord.wid) {
            stateRef.current.lastActiveWord = viewedWord;
            transController.emitAsync('onDisplayWordShowUp', {
              pid: pid,
              word: viewedWord
            });
          }
          return true;
        }
      }
      if (index === length - 1) {
        stateRef.current.lastActiveWord = undefined;
      }
      return false;
    });
  }, [viewedWords, pid, transController]);
  var allContent = (0,_react_18_2_0_react.useMemo)(function () {
    return viewedWords.map(function (word) {
      return word.text;
    }).join('') + extraContent;
  }, [viewedWords, extraContent]);
  var isEmptyContent = viewedWords.length === 0 && !extraContent;
  var viewedWordDiff = (0,_react_18_2_0_react.useMemo)(function () {
    return generateViewedWordDiff();
  }, []);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!fixedRef.current || isEmptyContent) {
      return;
    }
    updateAllWords(fixedRef.current, viewedWords);
  }, [viewedWords, isEmptyContent, viewedWordDiff]);
  useSyncEffect(function () {
    return controller.on('fixParagraphTranslateChange', function (_ref2) {
      var _pid = _ref2.pid;
      if (_pid === pid) {
        setUpdateId(function (prev) {
          return prev + 1;
        });
      }
    });
  }, [controller, pid]);
  useSyncEffect(function () {
    if (!isUnfix) {
      return;
    }
    return controller.on('unfixParagraphTranslateChange', function () {
      setUpdateId(function (prev) {
        return prev + 1;
      });
    });
  }, [controller, isUnfix]);
  var handleMouseUp = (0,_react_18_2_0_react.useCallback)(function () {}, []);
  var preventDefault = (0,_react_18_2_0_react.useCallback)(function (event) {
    event.preventDefault();
  }, []);
  var handleComposition = (0,_react_18_2_0_react.useCallback)(function (event) {
    var _containerRef$current;
    event.preventDefault();
    (_containerRef$current = containerRef.current) == null ? void 0 : _containerRef$current.blur();
  }, []);
  var handleKeyDown = (0,_react_18_2_0_react.useCallback)(function (event) {
    if (!event.metaKey && !event.ctrlKey) {
      event.preventDefault();
    }
  }, []);
  var handleInput = (0,_react_18_2_0_react.useCallback)(function (event) {
    event.preventDefault();
  }, []);
  var handleSelect = (0,_react_18_2_0_react.useCallback)(function (event) {
    var _ref3 = event.nativeEvent,
      clientX = _ref3.clientX,
      clientY = _ref3.clientY,
      type = _ref3.type;
    if (!transController.getIsShowTranslatePopup()) {
      return;
    }
    getRange(function (_ref4) {
      var startOffset = _ref4.startOffset,
        endOffset = _ref4.endOffset,
        range = _ref4.range;
      if (startOffset !== endOffset) {
        var rangeRect = range.getBoundingClientRect();
        if (type === 'mouseup') {
          setTimeout(function () {
            transController.emit('onTranslateMenuShowUp', {
              clientX: clientX,
              clientY: clientY,
              rangeRect: rangeRect,
              isUnfix: isUnfix,
              pid: pid,
              startOffset: startOffset,
              endOffset: endOffset,
              content: allContent
            });
          }, 100);
        }
      } else {
        transController.emit('onTranslateMenuHideOff', {});
      }
    }, function () {});
  }, [pid, transController, isUnfix, allContent]);
  var handleBlur = (0,_react_18_2_0_react.useCallback)(function () {
    transController.emit('onTranslateMenuHideOff', {});
  }, [transController]);
  if (isEmptyContent) {
    return null;
  }
  return /*#__PURE__*/translateContent_createElement(ParagraphTranslate, {
    contentEditable: !isUnfix && !isReadonly,
    onMouseUp: handleMouseUp,
    onFocus: preventDefault,
    onBlur: handleBlur,
    onInput: handleInput,
    onCompositionStart: handleComposition,
    onCompositionEnd: handleComposition,
    onCut: preventDefault,
    onPaste: preventDefault,
    onKeyDown: handleKeyDown,
    onSelect: handleSelect,
    showOrigin: showOrigin,
    isHighlight: isHighlight,
    isUnfix: isUnfix,
    spellCheck: false,
    ref: containerRef
  }, /*#__PURE__*/translateContent_createElement(FixText, {
    isHighlight: isHighlight,
    ref: fixedRef
  }), extraContent && /*#__PURE__*/translateContent_createElement(styled_UnfixText, null, extraContent));
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/editWordTip/background.js
var background = 'url(\'data:image/png;base64, \')';
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/editWordTip/styled.js


var editWordTip_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["background:", " 0 0 no-repeat;width:397px;height:195px;padding-top:26px;padding-left:34px;user-select:none;"], background);
var styled_Title = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:185px;height:48px;font-size:15px;", ";line-height:24px;margin-top:26px;margin-left:24px;color:rgba(255,255,255,0.7);overflow:hidden;"], function (props) {
  return props.bold && (0,styled_components_browser_esm/* css */.iv)(["font-weight:bold;"]);
});
var TitlePrefix = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.span(["color:#FFFFFF;"]);
var MessagePrefix = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.span(["color:#FFFFFF;"]);
var OkButton = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:inline-block;font-size:15px;color:#FFFFFF;line-height:20px;margin-top:12px;margin-left:24px;cursor:pointer;"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/editWordTip/editWordTip.js

var editWordTip_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;

var EditWordTip = function EditWordTip(props) {
  var _props$prefixTitle = props.prefixTitle,
    prefixTitle = _props$prefixTitle === void 0 ? '点击文字，' : _props$prefixTitle,
    _props$message = props.message,
    message = _props$message === void 0 ? '可以编辑/摘取到右侧编辑区' : _props$message,
    className = props.className,
    style = props.style,
    onFinish = props.onFinish,
    _props$bold = props.bold,
    bold = _props$bold === void 0 ? false : _props$bold;
  var intervalRef = (0,_react_18_2_0_react.useRef)();
  var _useState = (0,_react_18_2_0_react.useState)(4),
    timer = _useState[0],
    setTimer = _useState[1];
  var handleFinish = (0,_react_18_2_0_react.useCallback)(function () {
    onFinish && onFinish();
  }, [onFinish]);
  (0,_react_18_2_0_react.useEffect)(function () {
    intervalRef.current = setInterval(function () {
      setTimer(function (prev) {
        if (prev > 0) {
          return prev - 1;
        } else {
          onFinish && onFinish();
          return prev;
        }
      });
    }, 1000);
  }, [onFinish]);
  return /*#__PURE__*/editWordTip_createElement(editWordTip_styled_Wrapper, {
    className: className,
    style: style
  }, /*#__PURE__*/editWordTip_createElement(styled_Title, {
    bold: bold
  }, /*#__PURE__*/editWordTip_createElement(TitlePrefix, null, prefixTitle), /*#__PURE__*/editWordTip_createElement(MessagePrefix, null, message)), /*#__PURE__*/editWordTip_createElement(OkButton, {
    onClick: handleFinish
  }, "\u6211\u77E5\u9053\u4E86", timer > 0 && "(" + timer + ")"));
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/editWordTip/editWordTipContainer.js

var editWordTipContainer_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;



var EditWordTipContainer = function EditWordTipContainer(props) {
  var controller = props.controller,
    pid = props.pid,
    isUnfix = props.isUnfix;
  var _useTransition = (0,_react_18_2_0_react.useTransition)(),
    startTransition = _useTransition[1];
  var _useState = (0,_react_18_2_0_react.useState)(false),
    visible = _useState[0],
    setVisible = _useState[1];
  var _useState2 = (0,_react_18_2_0_react.useState)(''),
    message = _useState2[0],
    setMessage = _useState2[1];
  var liveMode = controller.getLivingMode();
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['enableOfflineEditWordTip', 'onFinishEnableOfflineEditWordTip']),
    enableOfflineEditWordTip = _useTranscriptionHook.enableOfflineEditWordTip,
    onFinishEnableOfflineEditWordTip = _useTranscriptionHook.onFinishEnableOfflineEditWordTip;
  (0,_react_18_2_0_react.useEffect)(function () {
    if (isUnfix || !pid || !liveMode || !enableOfflineEditWordTip) {
      return;
    }
    var showedLiveEditWordTip = myLocalStorage.getItem('showedLiveEditWordTip');
    if (showedLiveEditWordTip) {
      return;
    }
    var pids = controller.getPids();
    var isVisible = pids[0] === pid;
    startTransition(function () {
      setVisible(isVisible);
      setMessage('可以编辑/标记/摘取到右侧编辑区');
    });
  }, [controller, isUnfix, pid, liveMode, enableOfflineEditWordTip]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (isUnfix || !pid || liveMode || !enableOfflineEditWordTip) {
      return;
    }
    var showedOfflineEditWordTip = myLocalStorage.getItem('showedOfflineEditWordTip');
    if (showedOfflineEditWordTip) {
      return;
    }
    var pids = controller.getPids();
    var isVisible = pids[0] === pid;
    startTransition(function () {
      setVisible(isVisible);
      setMessage('可以编辑/标记重点/摘取到右侧笔记');
    });
  }, [controller, isUnfix, pid, liveMode, enableOfflineEditWordTip]);
  var calcStyle = (0,_react_18_2_0_react.useMemo)(function () {
    return {
      position: 'absolute',
      left: -36,
      top: 'calc(100% - 28px - 20px)',
      zIndex: 400
    };
  }, []);
  var handleFinish = (0,_react_18_2_0_react.useCallback)(function () {
    startTransition(function () {
      setVisible(false);
    });
    if (liveMode) {
      myLocalStorage.setItem('showedLiveEditWordTip', true);
    } else {
      // offline mode
      myLocalStorage.setItem('showedOfflineEditWordTip', true);
      onFinishEnableOfflineEditWordTip && onFinishEnableOfflineEditWordTip();
    }
  }, [liveMode, onFinishEnableOfflineEditWordTip]);
  if (!visible) {
    return null;
  }
  return /*#__PURE__*/editWordTipContainer_createElement(EditWordTip, {
    message: message,
    style: calcStyle,
    onFinish: handleFinish,
    bold: liveMode
  });
};
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/range.js
var range = __webpack_require__(7839);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/paragraphContent/paragraphContent.js


var paragraphContent_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;













var ParagraphContent = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var _TranslateContent;
  var pid = props.pid,
    isUnfix = props.isUnfix,
    controller = props.controller,
    timestamp = props.timestamp,
    selections = props.selections,
    translateSelections = props.translateSelections,
    renderBeforeMask = props.renderBeforeMask,
    _props$visible = props.visible,
    visible = _props$visible === void 0 ? true : _props$visible,
    qnaSids = props.qnaSids,
    activeQnaSids = props.activeQnaSids;
  var transController = getTranscriptionController(controller);
  var _useState = (0,_react_18_2_0_react.useState)(false),
    editorFocus = _useState[0],
    setEditorFocus = _useState[1];
  var _useState2 = (0,_react_18_2_0_react.useState)(false),
    isMouseEnter = _useState2[0],
    setIsMouseEnter = _useState2[1];
  var emptyUnfix = isUnfix && !pid;
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['theme']),
    theme = _useTranscriptionHook.theme;
  var handleMouseEnter = (0,_react_18_2_0_react.useCallback)(function () {
    setIsMouseEnter(true);
  }, []);
  var handleMouseLeave = (0,_react_18_2_0_react.useCallback)(function () {
    setIsMouseEnter(false);
  }, []);
  var forceUpdate = useForceUpdate();
  var paragraphRef = (0,_react_18_2_0_react.useRef)(null);
  var containerRef = (0,_react_18_2_0_react.useRef)(null);
  var textEditorRef = (0,_react_18_2_0_react.useRef)(null);
  var readonly = controller.getReadonly();
  useSyncEffect(function () {
    return controller.on('readonlyChange', forceUpdate);
  }, [controller, forceUpdate]);
  var paragraph = pid ? controller.getParagraph(pid) : undefined;
  useSyncEffect(function () {
    if (emptyUnfix) {
      return;
    }
    return controller.on('paragraphChange', function (_ref) {
      var _pid = _ref.pid;
      if (_pid !== pid) {
        return;
      }
      forceUpdate();
    });
  }, [pid, controller, forceUpdate, emptyUnfix]);
  useSyncEffect(function () {
    return controller.on('livingModeChange', forceUpdate);
  }, [controller, forceUpdate]);
  var handleClick = (0,_react_18_2_0_react.useCallback)(function (event) {
    if (event.target === containerRef.current) {
      var _textEditorRef$curren;
      (_textEditorRef$curren = textEditorRef.current) == null ? void 0 : _textEditorRef$curren.focus();
    }
  }, []);
  useSyncEffect(function () {
    return controller.on('playingVoiceWordChange', function (args) {
      var _pid = args.pid;
      if (_pid === pid) {
        forceUpdate();
      }
    });
  }, [controller, pid, forceUpdate]);
  var handleEditorFocus = (0,_react_18_2_0_react.useCallback)(function () {
    setEditorFocus(true);
  }, []);
  var handleEditorBlur = (0,_react_18_2_0_react.useCallback)(function () {
    setEditorFocus(false);
  }, []);
  var livingMode = controller.getLivingMode(); // eslint-disable-next-line react-hooks/exhaustive-deps

  var words = pid ? controller.getWords(pid) : [];
  var textContent = words.map(function (word) {
    return word.text;
  }).join(''); // 如果有pid 且 打开了音字对照功能，才会获取playingWord

  var playingWord = pid && controller.getIsEnablePlayingVoice() ? controller.getPlayingWord(pid) : undefined;
  var activeFoundSelection = controller.getActiveFoundSelection();
  var activeAgendaHighlightSids = controller.getActiveAgendaHighlightSids();
  var notHasSid = words.every(function (word) {
    return !activeAgendaHighlightSids.includes(word.sentenceId);
  });
  var viewedWords = (0,_react_18_2_0_react.useMemo)(function () {
    if (emptyUnfix) {
      return [];
    }
    return generateViewedWords(words, selections, activeFoundSelection, playingWord, false, activeAgendaHighlightSids, qnaSids, activeQnaSids);
  }, [playingWord, words, paragraph, selections, activeFoundSelection, emptyUnfix, !notHasSid ? activeAgendaHighlightSids.join(' ') : '', qnaSids, activeQnaSids]);
  var translateMode = controller.getTranslateMode(pid);
  useSyncEffect(function () {
    return controller.on('translateModeChange', forceUpdate);
  }, [controller, forceUpdate]);
  useSyncEffect(function () {
    // 当translateMode强制为disabled时的时候，如果有translate值了，需要看下translateMode是不是变化触发刷新
    return controller.on('fixParagraphTranslateChange', function (_ref2) {
      var _pid = _ref2.pid;
      if (_pid === pid && controller.getTranslateMode() !== translateMode) {
        forceUpdate();
      }
    });
  }, [controller, forceUpdate, pid, translateMode]);
  useSyncEffect(function () {
    return controller.on('playingVoiceWordEnableChange', forceUpdate);
  }, [controller, forceUpdate]);
  useSyncEffect(function () {
    return controller.on('activeAgendaChange', forceUpdate);
  }, [controller, forceUpdate]);
  useSyncEffect(function () {
    if (!emptyUnfix) {
      return;
    }
    return controller.on('emptyUnfixParagraphChange', forceUpdate);
  }, [controller, forceUpdate, emptyUnfix]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!isUnfix) {
      return;
    }
    var setUnfixMarked = function setUnfixMarked() {
      if (emptyUnfix) {
        var currentMark = controller.getEmptyUnfixTempParagraphMark();
        controller.setEmptyUnfixTempParagraphMark(!currentMark ? 'blue' : '');
      } else {
        var isBlueTag = controller.isHasParagraphMarkColor(pid, 'blue');
        controller.setParagraphMark(pid, !isBlueTag ? 'blue' : '');
      }
    };
    var handler = function handler(event) {
      var isPressE = event.key === 'e' || event.keyCode === 69; // key: e

      if (isPressE && (isMacOS && event.metaKey || event.ctrlKey)) {
        event.preventDefault();
        setUnfixMarked();
      }
    };
    window.addEventListener('keydown', handler);
    return function () {
      window.removeEventListener('keydown', handler);
    };
  }, [controller, isUnfix, emptyUnfix, pid]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!paragraphRef.current || !isUnfix) {
      return;
    }
    transController.setUnfixElement(paragraphRef.current);
    return function () {
      transController.setUnfixElement(undefined);
    };
  }, [isUnfix, transController]);
  var showTranslate = translateMode === translateController/* TranslateMode */.R.OriginAndTranslate || translateMode === translateController/* TranslateMode */.R.TranslateOnly;
  var showOrigin = translateMode === translateController/* TranslateMode */.R.Disabled || translateMode === translateController/* TranslateMode */.R.OriginAndTranslate;
  var isHighlight = isUnfix || Boolean(playingWord);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (isUnfix && textContent.length === 0) {
      setEditorFocus(false);
    }
  }, [textContent, isUnfix]);
  var originNode = (0,_react_18_2_0_react.useMemo)(function () {
    if (!showOrigin) {
      return null;
    }
    var _isHighlight = isHighlight && !showTranslate;
    var isPlaying = Boolean(playingWord);
    return /*#__PURE__*/paragraphContent_createElement(ParagraphOrigin, {
      showTranslate: showTranslate,
      isHighlight: _isHighlight,
      isLivingMode: livingMode,
      isUnfix: isUnfix,
      isPlaying: isPlaying
    }, /*#__PURE__*/paragraphContent_createElement(ParagraphInner, null, !emptyUnfix && /*#__PURE__*/paragraphContent_createElement(TextEditor, {
      ref: textEditorRef,
      isHighlight: _isHighlight,
      isUnfix: isUnfix,
      textContent: textContent,
      viewedWords: viewedWords,
      pid: pid,
      controller: controller,
      timestamp: timestamp,
      onFocus: handleEditorFocus,
      onBlur: handleEditorBlur,
      readonly: readonly,
      isPlaying: isPlaying
    }), isUnfix && /*#__PURE__*/paragraphContent_createElement(UnfixSentense, {
      controller: controller,
      emptyUnfix: emptyUnfix,
      pid: pid,
      isHighlight: _isHighlight
    })));
  }, [showOrigin, showTranslate, controller, emptyUnfix, handleEditorBlur, handleEditorFocus, isUnfix, livingMode, pid, textContent, timestamp, viewedWords, isHighlight, readonly, playingWord]);
  var translateNode = (0,_react_18_2_0_react.useMemo)(function () {
    if (!showTranslate) {
      return null;
    }
    return _TranslateContent || (_TranslateContent = /*#__PURE__*/paragraphContent_createElement(TranslateContent, {
      showOrigin: showOrigin,
      isHighlight: isHighlight,
      controller: controller,
      pid: pid,
      isUnfix: isUnfix,
      translateSelections: translateSelections,
      activeFoundSelection: activeFoundSelection,
      playingWord: playingWord
    }));
  }, [showOrigin, showTranslate, controller, isUnfix, pid, translateSelections, activeFoundSelection, playingWord, isHighlight]);
  var getParagraphContainer = (0,_react_18_2_0_react.useCallback)(function () {
    return paragraphRef.current;
  }, []);
  var agendas = (0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(agendasState);
  var agendasAttrs = (0,_react_18_2_0_react.useMemo)(function () {
    if (isUnfix || !paragraph) {
      return {};
    }
    var wids = paragraph.wids;
    var firstWid = wids[0];
    var lastWid = wids[wids.length - 1];
    var firstWord = controller.getWord(firstWid);
    var lastWord = controller.getWord(lastWid);
    var attrs = {};
    agendas.forEach(function (agenda) {
      var isIntersect = (0,range/* isIntersectRanges */.s)({
        start: agenda.beginTime,
        end: agenda.endTime
      }, {
        start: firstWord.beginTime,
        end: lastWord.endTime
      });
      if (isIntersect) {
        attrs["data-in-agenda-" + agenda.id] = true;
      }
    });
    return attrs;
  }, [agendas, isUnfix, paragraph, controller]);
  return /*#__PURE__*/paragraphContent_createElement(paragraphContent_styled_Wrapper, (0,esm_extends/* default */.Z)({
    ref: paragraphRef,
    sticky: isUnfix ? theme.unfixParagraphContentSticky : false,
    "data-paragraph-id": pid,
    "data-paragraph-is-unfix": isUnfix,
    visible: visible,
    onMouseEnter: handleMouseEnter,
    onMouseLeave: handleMouseLeave
  }, agendasAttrs), renderBeforeMask && /*#__PURE__*/paragraphContent_createElement(styled_Mask, null, /*#__PURE__*/paragraphContent_createElement(MaskInner, null, renderBeforeMask())), /*#__PURE__*/paragraphContent_createElement(ParagraphWrapper, {
    isUnfix: isUnfix,
    "data-e2e-test-id": "trans_paragraph_unfix_div"
  }, /*#__PURE__*/paragraphContent_createElement(ParagraphHeading, {
    getParagraphContainer: getParagraphContainer
    /* 当有renderBeforeMask的时候，需要heading有个背景色 */,

    showBackground: Boolean(renderBeforeMask),
    isUnfix: isUnfix,
    emptyUnfix: emptyUnfix,
    controller: controller,
    pid: pid,
    paragraph: paragraph,
    words: words,
    readonly: readonly,
    isParagraphMouseEnter: isMouseEnter,
    isEditorFocus: editorFocus,
    translateMode: translateMode
  }), /*#__PURE__*/paragraphContent_createElement(ParagraphStyledWrapper, null, /*#__PURE__*/paragraphContent_createElement(ParagraphStyled, {
    ref: containerRef,
    onClick: emptyUnfix ? handleClick : undefined,
    isUnfix: isUnfix,
    focus: editorFocus,
    showOutline: showOrigin && !readonly
  }, originNode, translateNode), pid && !readonly && /*#__PURE__*/paragraphContent_createElement(EditWordTipContainer, {
    controller: controller,
    pid: pid,
    isUnfix: isUnfix
  }))));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/scrollToBottom/styled.js

var scrollToBottom_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["&:after{content:' ';display:block;height:20px;background-color:#F2F5FB;}"]);
var Background = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:100%;height:88px;background-image:linear-gradient(180deg,rgba(242,245,251,0) 0%,#F2F5FB 100%);display:flex;flex-direction:column;justify-content:flex-end;align-items:center;"]);
var ReturnButton = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["background:#FFFFFF;box-shadow:0 2px 8px 0 rgba(90,68,151,0.12);border-radius:8px;font-size:14px;color:#605CE5;line-height:24px;height:40px;white-space:nowrap;padding:0 16px;display:flex;justify-content:center;align-items:center;cursor:pointer;user-select:none;svg{margin-right:8px;}"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/scrollToBottom/scrollToBottom.js

var scrollToBottom_Icon;
var scrollToBottom_excluded = ["onClick"];

var scrollToBottom_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;


var ScrollToBottom = function ScrollToBottom(props) {
  var _props$onClick = props.onClick,
    onClick = _props$onClick === void 0 ? function () {} : _props$onClick,
    otherProps = (0,objectWithoutPropertiesLoose/* default */.Z)(props, scrollToBottom_excluded);
  return /*#__PURE__*/scrollToBottom_createElement(scrollToBottom_styled_Wrapper, otherProps, /*#__PURE__*/scrollToBottom_createElement(Background, null, /*#__PURE__*/scrollToBottom_createElement(ReturnButton, {
    "data-e2e-test-id": "trans_returnNew_button",
    onClick: onClick
  }, scrollToBottom_Icon || (scrollToBottom_Icon = /*#__PURE__*/scrollToBottom_createElement(Icon, {
    type: 'tingwu-return-down1',
    size: 20
  })), "\u56DE\u5230\u6700\u65B0\u5185\u5BB9")));
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/empty/background.js
var backgroundUrl = 'https://img.alicdn.com/imgextra/i2/O1CN01ohwVyB1K8Xy63y86Q_!!6000000001119-2-tps-350-340.png';
var miniBackgroundUrl = 'https://img.alicdn.com/imgextra/i1/O1CN01sqhbnD1IIVLRcqY6e_!!6000000000870-2-tps-230-223.png';
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/empty/styled.js


var empty_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["display:flex;flex-direction:column;justify-content:center;align-items:center;", ""], function (props) {
  return props.fullscreen && "\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n  ";
});
var styled_Image = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:relative;background-repeat:no-repeat;", " ", ""], function (props) {
  return !props.isMini && "\n      width: 350px;\n      height: 340px;\n      background-image: url(" + backgroundUrl + ");\n    ";
}, function (props) {
  return props.isMini && "\n      width: 230px;\n      height: 223px;\n      background-image: url(" + miniBackgroundUrl + ");\n    ";
});
var styled_Text = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["font-size:14px;color:rgba(39,38,77,0.65);line-height:24px;margin-top:16px;"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/empty/empty.js

var empty_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;

var Empty = function Empty(props) {
  var _props$fullscreen = props.fullscreen,
    fullscreen = _props$fullscreen === void 0 ? false : _props$fullscreen,
    _props$message = props.message,
    message = _props$message === void 0 ? '这里空空如也～' : _props$message;
  return /*#__PURE__*/empty_createElement(empty_styled_Wrapper, {
    fullscreen: fullscreen
  }, /*#__PURE__*/empty_createElement(styled_Image, {
    isMini: !fullscreen
  }), /*#__PURE__*/empty_createElement(styled_Text, null, message));
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/transcriptionContent/styled.js

var transcriptionContent_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["padding-left:", "px;padding-right:", "px;min-height:100%;padding-top:", ";", ""], function (props) {
  return props.theme.transHorizontalPadding;
}, function (props) {
  return props.theme.transHorizontalPadding;
}, function (props) {
  return props.showPaddingTop ? props.theme.transVerticalPadding + "px" : '0px';
}, function (props) {
  return (!props.livingMode || !props.isHasUnfix) && (0,styled_components_browser_esm/* css */.iv)(["padding-bottom:", "px;"], props.theme.transPaddingBottom);
});
var FixParagraphList = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:relative;"]);
var ParagraphContentBox = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:absolute;left:0;right:0;"]);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/throttle.js
var _lodash_es_4_17_21_lodash_es_throttle = __webpack_require__(1812);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/debounce.js + 1 modules
var debounce = __webpack_require__(5573);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/utils/calc.js

/**
 * Sample:
 *
 * calcCustomHeight()
 *  .getContainer((container) => {
 *    container.style.width = '100px';
 *  })
 *  .andWidth(100)
 *  .andText('testsdfjsdklfj')
 *  .getHeight(122);
 */

var calcCustomHeight = function calcCustomHeight() {
  return {
    getElement: function getElement(callback) {
      var id = 'custom-calc-content';
      var container = document.getElementById(id);
      if (!container) {
        container = document.createElement('div');
        container.id = id;
        container.style.background = '#FFFFFF';
        container.style.zIndex = '9999';
        container.style.position = 'absolute';
        container.style.top = '-9999px';
        container.style.left = '-9999px';
        container.style.visibility = 'hidden';
        document.body.append(container);
      }
      var content = container.querySelector('div');
      if (!content) {
        content = document.createElement('div');
        container.append(content);
      }
      content.removeAttribute('style');
      callback(content);
      return {
        andWidth: function andWidth(width) {
          container.style.width = width + "px";
          return {
            andNodes: function andNodes(nodes) {
              if (content) {
                content.innerHTML = '';
              }
              nodes.forEach(function (node) {
                var _content;
                (_content = content) == null ? void 0 : _content.appendChild(node);
              });
              return {
                getHeight: function getHeight(added) {
                  if (added === void 0) {
                    added = 0;
                  }
                  return container.clientHeight + added;
                }
              };
            }
          };
        }
      };
    }
  };
};
var prepareContentCalc = function prepareContentCalc(params) {
  var id = 'calc-content';
  var container = document.getElementById(id);
  if (!container) {
    container = document.createElement('div');
    container.id = id;
    container.style.boxSizing = 'border-box';
    container.style.background = '#FFFFFF';
    container.style.zIndex = '9999';
    container.style.position = 'absolute';
    container.style.top = '-9999px';
    container.style.left = '-9999px';
    container.style.visibility = 'hidden';
    container.style.fontSize = '14px';
    container.style.lineHeight = '24px';
    container.style.fontFamily = params.theme.editorFontFamily;
    container.style.overflowWrap = 'anywhere';
    container.style.wordBreak = 'break-word';
    container.style.whiteSpace = 'pre-wrap';
    var content = document.createElement('div');
    content.style.minHeight = '24px';
    container.append(content);
    document.body.append(container);
  }
  return container;
};
var getFormatedElements = function getFormatedElements(words) {
  var fragment = document.createDocumentFragment();
  words.forEach(function (word) {
    var span = document.createElement('span');
    span.style.overflowWrap = 'anywhere';
    span.textContent = format_getFormatText(word.text);
    fragment.append(span);
  });
  return fragment;
};
var replaceWords = function replaceWords(container, words) {
  container.innerHTML = '';
  container.appendChild(getFormatedElements(words));
};
var calcParagraphHeight = function calcParagraphHeight(params) {
  var controller = params.controller,
    pid = params.pid,
    theme = params.theme,
    _params$showOrigin = params.showOrigin,
    showOrigin = _params$showOrigin === void 0 ? true : _params$showOrigin,
    _params$showTranslate = params.showTranslate,
    showTranslate = _params$showTranslate === void 0 ? false : _params$showTranslate,
    containerWidth = params.containerWidth;
  var localContainerWidth = containerWidth;
  localContainerWidth -= 4; // 4 is border and padding for paragraphContent

  var headerHeight = 24 + 8;
  var container = prepareContentCalc(params);
  var content = container.querySelector('div');
  container.style.paddingLeft = theme.paragraphHorizontalPadding + "px";
  container.style.paddingRight = theme.paragraphHorizontalPadding + "px";
  var contentHeight = function () {
    if (!showOrigin) {
      return 0;
    }
    var words = controller.getWords(pid);
    container.style.width = localContainerWidth + "px";
    container.style.paddingTop = theme.paragraphVerticalPadding + "px";
    if (showTranslate) {
      container.style.paddingBottom = '8px';
    } else {
      container.style.paddingBottom = theme.paragraphVerticalPadding + "px";
    }
    replaceWords(content, words);
    return container.clientHeight;
  }();
  var translateHeight = function () {
    if (!showTranslate) {
      return 0;
    }
    var translate = controller.getTranslate(pid);
    if (!translate) {
      return 0;
    }
    container.style.width = localContainerWidth + "px";
    if (showOrigin) {
      container.style.paddingTop = '8px';
    } else {
      container.style.paddingTop = theme.paragraphVerticalPadding + "px";
    }
    container.style.paddingBottom = theme.paragraphVerticalPadding + "px";
    replaceWords(content, translate.translateResult);
    return container.clientHeight;
  }();
  var extraHeight = 4; // 4 is border and padding for paragraphContent

  var paragraphHeight = headerHeight + extraHeight + Math.max(translateHeight + contentHeight, 56);
  return paragraphHeight;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/scrollView/scrollView.js



var scrollView_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;





var SPLIT_PADDING = 20;
var hi = function hi(arg) {
  return arg;
};
var useScrollView = function useScrollView(params) {
  var controller = params.controller,
    transController = params.transController,
    theme = params.theme;
  var playingWordController = transController.playingWordController;
  var forceUpdate = useForceUpdate();
  var stateRef = (0,_react_18_2_0_react.useRef)({
    pidSizeMapping: {}
  });
  var _useState = (0,_react_18_2_0_react.useState)(0),
    calcCount = _useState[0],
    setCalcCount = _useState[1];
  var livingMode = controller.getLivingMode();
  var readonly = controller.getReadonly();
  var _useState2 = (0,_react_18_2_0_react.useState)(),
    container = _useState2[0],
    setContainer = _useState2[1];
  var _useState3 = (0,_react_18_2_0_react.useState)(),
    documentElem = _useState3[0],
    setDocumentElem = _useState3[1];
  var _useState4 = (0,_react_18_2_0_react.useState)(0),
    scrollTop = _useState4[0],
    setScrollTop = _useState4[1];
  var _useState5 = (0,_react_18_2_0_react.useState)(0),
    containerWidth = _useState5[0],
    setContainerWidth = _useState5[1];
  var translateMode = controller.getTranslateMode();
  var showOrigin = translateMode === translateController/* TranslateMode */.R.Disabled || translateMode === translateController/* TranslateMode */.R.OriginAndTranslate;
  var showTranslate = translateMode === translateController/* TranslateMode */.R.OriginAndTranslate || translateMode === translateController/* TranslateMode */.R.TranslateOnly;
  var getBeforeRenderHeight = (0,_react_18_2_0_react.useCallback)(function () {
    if (!container || !documentElem) {
      return 0;
    }
    var containerRect = container.getBoundingClientRect();
    var documentRect = documentElem.getBoundingClientRect();
    return documentRect.top - containerRect.top + container.scrollTop;
  }, [container, documentElem]);
  var beforeRenderHeight = getBeforeRenderHeight();
  (0,_react_18_2_0_react.useEffect)(function () {
    var interval = setInterval(function () {
      if (beforeRenderHeight !== getBeforeRenderHeight()) {
        forceUpdate();
      }
    }, 200);
    return function () {
      clearInterval(interval);
    };
  }, [forceUpdate, getBeforeRenderHeight, beforeRenderHeight]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('translateModeChange', forceUpdate);
  }, [controller, forceUpdate]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('readonlyChange', forceUpdate);
  }, [controller, forceUpdate]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('livingModeChange', forceUpdate);
  }, [controller, forceUpdate]);
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['beforeCoverHeight']),
    beforeCoverHeight = _useTranscriptionHook.beforeCoverHeight;
  (0,_react_18_2_0_react.useEffect)(function () {
    setTimeout(function () {
      var _transController$getH = transController.getHooks(),
        getTranscriptionContainer = _transController$getH.getTranscriptionContainer,
        getTranscriptionDocument = _transController$getH.getTranscriptionDocument;
      var elem = getTranscriptionContainer ? getTranscriptionContainer() : undefined;
      var _documentElem = getTranscriptionDocument ? getTranscriptionDocument() : undefined;
      setContainer(elem);
      setDocumentElem(_documentElem);
    }, 200);
  }, [transController]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!container) {
      return;
    }
    var handleScroll = (0,_lodash_es_4_17_21_lodash_es_throttle/* default */.Z)(function () {
      setScrollTop(container.scrollTop);
    }, 100);
    container.addEventListener('scroll', handleScroll, false);
    return function () {
      container.removeEventListener('scroll', handleScroll, false);
    };
  }, [container]);
  var calcHeight = (0,_react_18_2_0_react.useCallback)(function (pid) {
    if (!containerWidth) {
      return 0;
    }
    var height = calcParagraphHeight({
      controller: controller,
      transController: transController,
      pid: pid,
      theme: theme,
      livingMode: livingMode,
      readonly: readonly,
      showOrigin: showOrigin,
      showTranslate: showTranslate,
      containerWidth: containerWidth
    });
    stateRef.current.pidSizeMapping[pid] = {
      width: containerWidth,
      height: height
    };
  }, [controller, transController, theme, livingMode, readonly, showOrigin, showTranslate, containerWidth]);
  var calcAll = (0,_react_18_2_0_react.useCallback)(function () {
    setTimeout(function () {
      var pids = controller.getPids();
      pids.forEach(function (pid) {
        calcHeight(pid);
      });
      setCalcCount(function (prev) {
        return prev + 1;
      });
    });
  }, [controller, calcHeight]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!container) {
      return;
    }
    var elem = document.querySelector('.transcriptionContent');
    if (elem) {
      var paddingLeft = parseInt(getComputedStyle(elem).paddingLeft, 10);
      var paddingRight = parseInt(getComputedStyle(elem).paddingRight, 10);
      setContainerWidth(elem.clientWidth - paddingLeft - paddingRight);
    }
    return transController.on('contentRectChange', function (_ref) {
      var rect = _ref.rect;
      setContainerWidth(rect.width);
    });
  }, [transController, container]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('modelValueChange', function () {
      calcAll();
    });
  }, [controller, calcAll]);
  (0,_react_18_2_0_react.useEffect)(function () {
    calcAll();
  }, [calcAll]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('bookParagraphChangeSpecific', function (event) {
      var addParagraphPids = event.addParagraphPids,
        removeParagraphPids = event.removeParagraphPids,
        updateParagraphPids = event.updateParagraphPids;
      addParagraphPids.forEach(calcHeight);
      updateParagraphPids.forEach(calcHeight);
      removeParagraphPids.forEach(function (pid) {
        delete stateRef.current.pidSizeMapping[pid];
      });
      setCalcCount(function (prev) {
        return prev + 1;
      });
    });
  }, [controller, calcHeight]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('fixParagraphTranslateChange', function (_ref2) {
      var pid = _ref2.pid;
      calcHeight(pid);
      setCalcCount(function (prev) {
        return prev + 1;
      });
    });
  }, [controller, calcHeight]);
  var isRoughlyTranscriping = (0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(isRoughlyTranscripingState);
  var isRenderUnfixParagraph = (0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(isRenderUnfixParagraphState);
  var unfixPid = livingMode ? controller.getUnfixPid() : undefined;
  var filteredPids = controller.getPids(true);
  var displayPids = isRoughlyTranscriping ? filteredPids.filter(function (pid) {
    return pid !== unfixPid;
  }) : filteredPids;
  var _useState6 = (0,_react_18_2_0_react.useState)(),
    playingVoicePid = _useState6[0],
    setPlayingVoicePid = _useState6[1];
  (0,_react_18_2_0_react.useEffect)(function () {
    return transController.on('needRefresh', function () {
      setCalcCount(function (prev) {
        return prev + 1;
      });
    });
  }, [transController]);
  var _useMemo = (0,_react_18_2_0_react.useMemo)(function () {
      hi(calcCount);
      var pidSizeMapping = stateRef.current.pidSizeMapping;
      var top = 0;
      var result = [];
      displayPids.some(function (pid) {
        var node = pidSizeMapping[pid];
        if (!node) {
          return true;
        }
        var width = node.width,
          height = node.height;
        if (height === undefined) {
          return true;
        }
        var renderHeight = height;
        var getBeforeContent = function getBeforeContent() {
          return null;
        };
        var paragraphTopParams = {
          pid: pid,
          width: width
        };
        var beforeContentHeight = 0;
        if (transController.isHasParagraphTop(paragraphTopParams)) {
          beforeContentHeight = transController.getParagraphTopHeight(paragraphTopParams);
          renderHeight += beforeContentHeight;
          getBeforeContent = function getBeforeContent() {
            return /*#__PURE__*/scrollView_createElement("div", {
              style: {
                width: width,
                height: beforeContentHeight
              }
            }, transController.renderParagraphTop(paragraphTopParams));
          }; // 如果不是第一段，且有额外渲染，则抵消top的边距

          if (top !== 0) {
            top -= SPLIT_PADDING;
          }
        }
        result.push({
          pid: pid,
          style: {
            top: top,
            width: width,
            height: renderHeight
          },
          getBeforeContent: getBeforeContent,
          beforeContentHeight: beforeContentHeight
        });
        top += renderHeight + SPLIT_PADDING;
        return false;
      });
      if (!isRenderUnfixParagraph) {
        top -= SPLIT_PADDING;
      }
      return [result, Math.max(0, top)];
    }, [displayPids, calcCount, isRenderUnfixParagraph, transController]),
    pidsWithStyle = _useMemo[0],
    containerHeight = _useMemo[1];
  var playingVoicePara = (0,_react_18_2_0_react.useMemo)(function () {
    return pidsWithStyle.find(function (_ref3) {
      var pid = _ref3.pid;
      return pid === playingVoicePid;
    });
  }, [pidsWithStyle, playingVoicePid]);
  var scrollViewPids = (0,_react_18_2_0_react.useMemo)(function () {
    if (scrollTop == null || !container) {
      return [];
    }
    var scrollViewHeight = container.clientHeight;
    var startAt = scrollTop - scrollViewHeight * 2 - beforeRenderHeight;
    var endAt = scrollTop + scrollViewHeight * 3 - beforeRenderHeight;
    var pids = pidsWithStyle.filter(function (_ref4) {
      var style = _ref4.style;
      // 计算两个区间[a,b] [c,d]是否有重叠, 通过判断min(b,d) > max(a,c)来判断是否重叠
      return Math.min(style.top + style.height, endAt) > Math.max(style.top, startAt);
    });
    if (playingVoicePid && !pids.find(function (_ref5) {
      var pid = _ref5.pid;
      return pid === playingVoicePid;
    })) {
      if (playingVoicePara) {
        pids.push(playingVoicePara);
      }
    }
    return pids;
  }, [pidsWithStyle, scrollTop, container, playingVoicePid, playingVoicePara, beforeRenderHeight]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('playingVoiceWordChange', function (_ref6) {
      var pid = _ref6.pid,
        word = _ref6.word;
      if (!word) {
        return;
      }
      setPlayingVoicePid(pid);
    });
  }, [controller]);
  var debounceCalcPlayingWordVisible = (0,_react_18_2_0_react.useMemo)(function () {
    return (0,debounce/* default */.Z)(function (playingParagraphTop, playingParagraphHeight, newScrollTop, scrollViewHeight) {
      return playingWordController.calcPlayingWordVisible(playingParagraphTop, playingParagraphHeight, newScrollTop, scrollViewHeight);
    }, 200);
  }, [playingWordController]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!playingVoicePara || !container) {
      playingWordController.disablePlayingWord();
      return;
    }
    var beforeHeight = playingVoicePara.beforeContentHeight;
    debounceCalcPlayingWordVisible(playingVoicePara.style.top + beforeRenderHeight + beforeHeight, playingVoicePara.style.height - beforeHeight, scrollTop, container.clientHeight);
  }, [playingWordController, playingVoicePara, scrollTop, container, beforeRenderHeight, debounceCalcPlayingWordVisible]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!container) {
      return;
    }
    return playingWordController.on('paragraphShowUp', function (_ref7) {
      var _pid = _ref7.pid,
        force = _ref7.force,
        seekWithExtContent = _ref7.seekWithExtContent;
      var para = pidsWithStyle.find(function (_ref8) {
        var pid = _ref8.pid;
        return pid === _pid;
      });
      if (para) {
        var paddingBottom = 0;
        if (livingMode) {
          var unfixPara = container.querySelector('[data-paragraph-is-unfix="true"]');
          if (unfixPara && controller.getUnfixPid() !== _pid) {
            paddingBottom = Math.min(unfixPara.getBoundingClientRect().height, container.clientHeight);
          }
        }
        var top = para.style.top + beforeRenderHeight;
        var bottom = top + para.style.height;
        var scrollBottom = container.scrollTop + container.clientHeight - paddingBottom;
        if (!seekWithExtContent) {
          var extContentHeight = transController.getParagraphTopHeight({
            pid: _pid,
            width: containerWidth
          });
          if (extContentHeight) {
            top += extContentHeight;
          }
        }
        if (beforeCoverHeight) {
          top -= beforeCoverHeight;
        }
        var direction = getDirection(top, bottom, container.scrollTop, scrollBottom);
        if (force || direction) {
          container.scrollTo({
            top: top
          });
        }
      }
    });
  }, [playingWordController, beforeRenderHeight, pidsWithStyle, container, livingMode, controller, transController, containerWidth, beforeCoverHeight]);
  var isFirstParagraphBeforeContent = pidsWithStyle.length > 0 ? pidsWithStyle[0].beforeContentHeight > 0 : false;
  return {
    pidsWithStyle: pidsWithStyle,
    scrollViewPids: scrollViewPids,
    containerHeight: containerHeight,
    isFirstParagraphBeforeContent: isFirstParagraphBeforeContent
  };
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-sphere@0.3.71@@ali/tingwu-sphere/dist-web/components/provider/useSphereState.js


var useSphereState = function useSphereState(controller, stateKey) {
  var value = controller == null ? void 0 : controller.getState(stateKey);
  var forceUpdate = useForceUpdate();
  useSyncEffect(function () {
    if (!controller) {
      return;
    }
    return controller.onStateChange(function (event) {
      var key = event.key;
      if (key === stateKey) {
        forceUpdate();
      }
    });
  }, [controller, stateKey, forceUpdate]);
  return value;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/transcriptionContent/transcriptionContent.js


var transcriptionContent_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;











var TranscriptionContent = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var _ScrollToBottom;
  var controller = props.controller,
    className = props.className,
    style = props.style,
    isShowingLivingScrollToBottom = props.isShowingLivingScrollToBottom,
    onScrollToBottom = props.onScrollToBottom,
    _props$hasExtraConten = props.hasExtraContent,
    hasExtraContent = _props$hasExtraConten === void 0 ? false : _props$hasExtraConten,
    theme = props.theme;
  var transController = generateTranscriptionController(controller);
  var containerRef = (0,_react_18_2_0_react.useRef)(null);
  var isLivingMode = controller.getLivingMode();
  var originPids = controller.getPids();
  var displayPids = controller.getPids(true);
  var _useState = (0,_react_18_2_0_react.useState)({}),
    timestampMap = _useState[0],
    setTimestampMap = _useState[1];
  var forceUpdate = useForceUpdate();
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['qnaController']),
    qnaController = _useTranscriptionHook.qnaController;
  var isRoughlyTranscriping = (0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(isRoughlyTranscripingState);
  var isRenderUnfixParagraph = (0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(isRenderUnfixParagraphState);
  useSyncEffect(function () {
    return controller.on('paragraphListChange', function (_ref) {
      var maybeChangedPids = _ref.maybeChangedPids;
      var timestamp = String(new Date().getTime());
      if (maybeChangedPids.length > 0) {
        setTimestampMap(function (prevTimestampMap) {
          return maybeChangedPids.reduce(function (result, pid) {
            // eslint-disable-next-line no-param-reassign
            result[pid] = timestamp;
            return result;
          }, (0,esm_extends/* default */.Z)({}, prevTimestampMap));
        });
      }
      forceUpdate();
    });
  }, [controller, forceUpdate]);
  useSyncEffect(function () {
    return controller.on('paragraphFilterChange', forceUpdate);
  }, [controller, forceUpdate]);
  useSyncEffect(function () {
    return controller.on('paragraphChange', function (_ref2) {
      var _Object$assign;
      var pid = _ref2.pid;
      var timestamp = String(new Date().getTime());
      setTimestampMap(Object.assign({}, timestampMap, (_Object$assign = {}, _Object$assign[pid] = timestamp, _Object$assign)));
      forceUpdate();
    });
  }, [timestampMap, controller, forceUpdate]);
  var renderBeforeMask = (0,_react_18_2_0_react.useCallback)(function () {
    var params = {
      onClick: onScrollToBottom
    };
    var elem = transController.renderUnfixMask(params);
    if (elem) {
      return elem;
    }
    return _ScrollToBottom || (_ScrollToBottom = /*#__PURE__*/transcriptionContent_createElement(ScrollToBottom, {
      onClick: onScrollToBottom
    }));
  }, [transController, onScrollToBottom]);
  var getRenderMaskFunc = (0,_react_18_2_0_react.useCallback)(function (pid) {
    if (!isShowingLivingScrollToBottom) {
      return;
    }
    if (pid != null) {
      var paragraph = controller.getParagraph(pid);
      if (paragraph.isUnfix) {
        return renderBeforeMask;
      }
    } else if (isRoughlyTranscriping) {
      return renderBeforeMask;
    }
  }, [isShowingLivingScrollToBottom, controller, renderBeforeMask, isRoughlyTranscriping]);
  var emptyText = originPids.length === 0 ? '这里空空如也～' : '没有结果，请更换筛选项';
  var unfixPid = isLivingMode ? controller.getUnfixPid() : undefined;
  var unfixFoundResult = unfixPid ? controller.getFoundSelectionsByPid(unfixPid) : undefined;
  (0,_react_18_2_0_react.useEffect)(function () {
    var container = containerRef.current;
    if (!window.ResizeObserver || !container) {
      return;
    } //
    // User will manual import `resize-observer-polyfill` if he need.

    var resizeObserver = new ResizeObserver(function (entries) {
      if (entries.length === 0) {
        return;
      }
      transController.emit('contentRectChange', {
        rect: entries[0].contentRect
      });
    });
    resizeObserver.observe(container);
    return function () {
      resizeObserver.disconnect();
    };
  }, [transController]);
  var _useScrollView = useScrollView({
      controller: controller,
      transController: transController,
      theme: theme
    }),
    scrollViewPids = _useScrollView.scrollViewPids,
    containerHeight = _useScrollView.containerHeight,
    isFirstParagraphBeforeContent = _useScrollView.isFirstParagraphBeforeContent; // 这里以displayPids为准，因为scrollViewPids可能计算较慢，导致有一帧会返回空数组

  var isShowEmpty = !isLivingMode && displayPids.length === 0;
  var _useState2 = (0,_react_18_2_0_react.useState)([]),
    qnaSids = _useState2[0],
    setQnaSids = _useState2[1];
  var _useState3 = (0,_react_18_2_0_react.useState)([]),
    activeQnaSids = _useState3[0],
    setActiveQnaSids = _useState3[1];
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!qnaController) {
      return;
    }
    setQnaSids(qnaController.getEffectSids());
    return qnaController.onStateChange(function (event) {
      if (event.key === 'qnaList') {
        setQnaSids(qnaController.getEffectSids());
      }
    });
  }, [qnaController]);
  var activeQnaIndex = useSphereState(qnaController, 'activeQnaIndex');
  var displayQnaList = useSphereState(qnaController, 'displayQnaList');
  (0,_react_18_2_0_react.useEffect)(function () {
    if (displayQnaList == null || activeQnaIndex == null) {
      return;
    }
    var qna = displayQnaList[activeQnaIndex];
    setActiveQnaSids(qna ? qna.question.sids : []);
  }, [displayQnaList, activeQnaIndex]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!qnaController) {
      return;
    }
    return qnaController.on('userChangeActiveQna', function (event) {
      var qna = event.qna;
      var sids = qna == null ? void 0 : qna.question.sids;
      if (!sids || sids.length === 0) {
        return;
      }
      var firstWord = controller.getFirstWordBySid(sids[0]);
      if (firstWord) {
        var _paragraph = controller.getParagraphByWid(firstWord.wid);
        if (_paragraph) {
          controller.seekToWord(firstWord);
        }
      }
      var paragraph = controller.getVisibleParagraphBySids(sids);
      if (!paragraph) {
        return;
      }
      transController.playingWordController.emit('paragraphShowUp', {
        pid: paragraph.pid
      });
    });
  }, [controller, transController, qnaController]);
  return /*#__PURE__*/transcriptionContent_createElement(transcriptionContent_styled_Wrapper, {
    className: className,
    style: style,
    ref: containerRef,
    livingMode: isLivingMode,
    isHasUnfix: isRenderUnfixParagraph,
    showPaddingTop: !isFirstParagraphBeforeContent
  }, isShowEmpty && /*#__PURE__*/transcriptionContent_createElement(Empty, {
    fullscreen: !hasExtraContent,
    message: emptyText
  }), /*#__PURE__*/transcriptionContent_createElement(FixParagraphList, {
    className: "fixParagraphList",
    style: {
      height: containerHeight
    }
  }, scrollViewPids.map(function (_ref3) {
    var pid = _ref3.pid,
      bstyle = _ref3.style,
      getBeforeContent = _ref3.getBeforeContent;
    var foundResult = controller.getFoundSelectionsByPid(pid);
    return /*#__PURE__*/transcriptionContent_createElement(ParagraphContentBox, {
      style: bstyle,
      key: pid
    }, getBeforeContent(), /*#__PURE__*/transcriptionContent_createElement(ParagraphContent, {
      isUnfix: false,
      renderBeforeMask: getRenderMaskFunc(pid),
      pid: pid,
      controller: controller,
      timestamp: timestampMap[pid],
      selections: foundResult == null ? void 0 : foundResult.origin,
      translateSelections: foundResult == null ? void 0 : foundResult.translate,
      qnaSids: qnaSids,
      activeQnaSids: activeQnaSids
    }));
  })), isRenderUnfixParagraph && /*#__PURE__*/transcriptionContent_createElement(ParagraphContent, {
    isUnfix: true,
    renderBeforeMask: getRenderMaskFunc(unfixPid),
    pid: unfixPid,
    controller: controller,
    timestamp: unfixPid ? timestampMap[unfixPid] : undefined,
    selections: unfixFoundResult == null ? void 0 : unfixFoundResult.origin,
    translateSelections: unfixFoundResult == null ? void 0 : unfixFoundResult.translate
  }));
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/transcription/styled.js

var transcription_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:relative;display:flex;overflow:hidden;min-width:", "px;"], function (props) {
  return props.theme.transMinWidth;
});
var ScrollContainer = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["overflow:auto;overflow:overlay;overflow-x:hidden;overscroll-behavior:contain;position:relative;padding-bottom:10px;flex:1 1;"]);
var ScrollContainerInner = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["min-height:100%;"]);
var AutoScrollButton = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:absolute;left:50%;transform:translateX(-50%);bottom:9px;cursor:pointer;padding:0 16px;background:#FFFFFF;box-shadow:0 2px 8px 0 rgba(90,68,151,0.12);border-radius:8px;font-size:14px;color:#605CE5;line-height:22px;height:40px;display:flex;justify-content:center;align-items:center;z-index:300;.arrow-down{margin-right:8px;", "}"], function (props) {
  return props.direction === 'top' && (0,styled_components_browser_esm/* css */.iv)(["transform:rotate(180deg);"]);
});
var TranscriptionContentWrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div([""]);
var DoubleArrowDownPng = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:20px;height:20px;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAACQJJREFUeF7tnGuMG1cZht9v9gKtVCQoRYnHCZcKVaU/EBI3gUD9gwAh6B87SddObLdNKAWhcgsIAe2KVsCWqkUFWjbJ+jgz3oRdIcpNkcpFK2hBqKC2qgQU0aoXOynQiEtpINm1P+RNnN0m6/XMnDk758wc//Sc75z3e9/Hx57x2AT7yLQDlOnubfOwAGQcAguABSDjDmS8fbsDWAAy7kDG27c7gAUg4w5kvH27A1gAMu5Axtu3O4AFIOMOZLx9uwNYADLuQMbbtzuABSDjDmS8fbsDWAAy7kDG27c7gAUg4w5kvH27A1gAMu5Axtu3O4AFIOMOZLx9I3aAWunYG+rNzX8wMaubruTRyQVa0lW79gBUy0+/CzR6N0ZQECL3J12NXEtXdWerSExXj3Voz/Sh3HM6atcagNpE+yp2cA+ATQAe7TpcOHgw/2cdjTxXUy98MM2dfp4WRjC6+4D/qr/opl1bACrldo2AAz33Vpn2yAi6hQP+Fu2MXB3si8M/e+QRcGe3aG59UCcItASgUmp9ioi+vpZRBDyE7kihPrvpCZ2M7GsZEH7/8NMArhO++1NdtGsHQLXcuhWgzw8x6PdYcgri8OYndTGyp2NI+Gek0vOg7rXCy8/roF0rACrl9j4CrgtmDD/YISp4ntt7VSX+CBb+KplEe4SX25e0cC0AmJh46uXjzmgDwAfDGcK/XWQUms18K1xdvKNDh7+y/F7hu7fFqybcbIkDUKn89VLqLB4C6C3hpJ8d/WtnqVOcObz1aMR6qTKJ8JfXZeavNJr5YW95UhrXK04UgNrOZ9/G3OmdKm2V6ZCA+/nkqaKYf+2zMvOErZUNv78eg+9u+Pkbwq4fx/jEAKjtal/FXfTCH4+jEQC/pDGnUK9v/ntM8607TVzhr0CAQw3fndgI7avXSAyAnohqqT0HQjG+pmmh63R7F4uOxzfn+TPFHf7yCsTbkjgzSBQANRDgF6e6S4XZ2Vf/QwUEaQp/mTsVJoWdM+6dgBk/e8mpCwrT86/4V1gt641PW/jaAKBiJ2DgvpHx8cLMzCXPxwFBGsPXCgAVEBDoyBI5Rc/b9IIMBGkNXzsAVEAA0E9eONkpzs9v+W8UCNIcvpYAqIEAP7ro+IniXUdefzIMBGkPX1sAlEBA+MH4BceK09NvXgwCQRbC1xoAFRAQ8P3/nHygOD+/rZO1T/uD+tXiNHDdMGK/WMTfE36+d/GJ11o3K6/8fu/aA6BiJwBwL7o8KWbzD6+GoFpq3QiiO4K8RQQek9AVvqD6jABAEQT/BOjnAD8BoovAfCmA9wQ1LtA4zcPX/jPAuSbHfcUwUIhRBxkQvnEAKNoJokY8uM6Q8I0EQHsIDArfWAC0hcCw8I0GQDsIDAzfeAC0gcDQ8FMBQOIQGBx+agBIDALDw08VABsOQQrCTx0AGwZBSsJPJQDKIUhR+KkFQBkEKQs/1QDEDkEKw089ALFBkNLwMwGANAQpDt8IAEql4y8bw//2i6a7TeZru0hfJUuG3/t3sy46Vzea+S/KaFdZq/UNIbUd7S08RvvA/F4Qvis8d4eMGZVyq0GgXcPmIOA5Jr5B5rd6vfDZ4TkwXwGiO4WX+8SwdZM4ri0AlcqxK6jT3Q/g7X1jGPK/oK2WWteD6BYAF69pOGHGYUzN+O5jUQN5UfgrkxwQvhvw30+irhy+TksAauX2OxiYAXDZGi01he+Ww7e6UnFNufXGLjtvJcLlDFxG6LYAepSBx2T/wGlA+MuLEzA3duGxctBb02V6DFqrHQDV8tH3gfggGJcMaoJAB+t+rhK0yY0at174K7sYH1nsdkqqfr0ctletAKiV2tuZMAvAGdoIQ4imWxs6boMGBAl/RQr9ipa4VD/sPrNB8gYuow0A1Z1Hd4N5OpQhhBnhudeGqlEwOFz4ZwU83KHFCc97zR8VSAo8pRYAVMvtzwL4amDVqwYysL/hu7uj1MZREzH8M0vT4w5hx4yX+10cWqLMkTgA1XJ7CsBnoojv1xB4uu7nPywzR5RaufDPrvg3wNku/M0LUTTI1iQKQLXc7p3mxbOFM98jmvmPyBoStD6m8E8vRzhBXd5eb+Z/HHT9uMYlBoCa3+DhW8JzPxaXOYPmiTX8/psBMFf33e2qtZ87f2IA9IQoguAu4bkfV2WkovAP1RP4i7jTm0/CDyUQgL4h/NyNcbemInwG+Q0/tzNurUHnSxwAVTsBge6o+7lPBjVi2DgV4QPUEH6uOmxtlce1AEAZBITb6577aVkDlYSvyTUMbQBQBQGA24Tv7o0KgZrwaZ/wcnuiaoqzTisAFELwNeG7nwtrnJLwwd8Rfv76sFpUjdcOAFUQhP1bdkXhf1v4+Y+qCjPKvFoCoAoCIr617uW/MMwoJeETlJ6eDutp0HFtAVAFAcBfFn7+S4MMURI+852imbd3BEWhVM11gu6k8LfcfK6eavmZK0Ej31y+jSumBzHfXm/mpc9EYpJz3jRa7wB9tWogoAUm9p1R54dYWnodM94PODfFaTQzphpNt/dNp7YPIwBQ93agLpewHzrVKVl/ZmMAMAkCZr5F51vBVyNhFACGQDApfPe8zxdJvcKHrWscAJpDcLPw3clhput03EgANIXAuPB7PhoLgGYQGBm+8QBoAoGx4acCgIQhMDr81ACQEATGh58qADYYglSEnzoANgiC1ISfSgAUQ5Cq8FMLgCIIUhd+qgGIGYJUhp96AGKCILXhZwIASQhSHX5mAIgGwdp3Den0RU4cWoz+LiCsAZVS+50g7CXgQ4NqCXiICVPCcw+Hnd/E8ZkCoB9QtdS+Bg59gJnfTcArzzx/H9D9zfiFI1PT07kTJoYZRXMmAVht1K5d7Td1Oi99vNm8+N9RDDS9JvMAmB6grH4LgKyDhtdbAAwPUFa+BUDWQcPrLQCGBygr3wIg66Dh9RYAwwOUlW8BkHXQ8HoLgOEBysq3AMg6aHi9BcDwAGXlWwBkHTS83gJgeICy8i0Asg4aXm8BMDxAWfkWAFkHDa+3ABgeoKx8C4Csg4bXWwAMD1BWvgVA1kHD6y0AhgcoK98CIOug4fUWAMMDlJX/fyg0w65KxCJ8AAAAAElFTkSuQmCC');background-position:0 0;background-repeat:no-repeat;background-size:contain;"]);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/dropdownMenu/styled.js

var DROPDOWN_WIDTH = 248;
var DROPDOWN_HEIGHT = 148;
var DROPDOWN_ONE_ITEM_HEIGHT = 128;
var DROPDOWN_PADDING = 10;
var styled_Dropdown = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:absolute;z-index:100;top:-9999px;left:-9999px;user-select:none;width:", "px;"], function (props) {
  return props["short"] ? 128 : 248;
});
var styled_Menu = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["border-radius:8px;padding:8px 0;background:#FFFFFF;box-shadow:0 3px 6px -4px rgba(39,38,77,0.12),0 6px 16px 0 rgba(39,38,77,0.08),0 9px 28px 8px rgba(39,38,77,0.05);"]);
var styled_MenuItem = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["height:44px;display:flex;align-items:center;font-size:14px;color:#27264D;line-height:24px;padding:0 16px;cursor:pointer;&:hover{background:rgba(96,92,229,0.08);}"]);
var MenuItemIcon = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:20px;height:20px;display:flex;justify-content:center;align-items:center;margin-right:12px;"]);
var MenuItemText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["white-space:nowrap;"]);
var MenuColorWrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["flex:1 1;display:flex;justify-content:flex-end;align-items:center;"]);
var MenuColorTag = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["width:16px;height:16px;border-radius:16px;cursor:pointer;margin-right:12px;display:flex;justify-content:center;align-items:center;position:relative;&:after{position:absolute;content:' ';top:0;left:0;width:16px;height:16px;border-radius:16px;z-index:1;transition:all 0.2s;transform-origin:center center;}&:hover:after{transform:scale(125%);}svg{display:none;position:relative;z-index:2;}", " ", " ", " ", ""], function (props) {
  return props.color === 'blue' && "\n    &:after {\n      background-color: #9AE4FF;\n    }\n  ";
}, function (props) {
  return props.color === 'yellow' && "\n    &:after {\n      background-color: #F9FA6F;\n    }\n  ";
}, function (props) {
  return props.color === 'red' && "\n    &:after {\n      background-color: #F8BAD7;\n    }\n  ";
}, function (props) {
  return props.active && "\n    &:after {\n      transform: scale(125%);\n    }\n    svg {\n      display: block;\n    }\n  ";
})));
var MenuCloseTagWraper = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["width:16px;height:16px;cursor:pointer;&:hover{svg{transition:all 0.2s;transform-origin:center center;transform:scale(125%);}}"])));
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/utils/position.js

var getNearestFixedParent = function getNearestFixedParent(container) {
  var element = container.parentElement;
  while (element) {
    var _getComputedStyle = getComputedStyle(element),
      position = _getComputedStyle.position;
    if (position === 'fixed' || element === document.body) {
      return element;
    }
    element = element.parentElement;
  }
  return undefined;
};
var getDropdownPosition = function getDropdownPosition(mouseX, mouseY, rangeRect, container, documentContainer, dropdownWidth, dropdownHeight, dropdownMargin, isCreatedByFixParagraph, unfixParagraphHeight) {
  if (isCreatedByFixParagraph === void 0) {
    isCreatedByFixParagraph = true;
  }
  if (unfixParagraphHeight === void 0) {
    unfixParagraphHeight = 0;
  }
  var containerRect = container.getBoundingClientRect();
  var documentContainerRect = documentContainer.getBoundingClientRect();
  var minX = Math.max(rangeRect.left - containerRect.left - dropdownWidth, 22);
  var maxX = rangeRect.left + rangeRect.width - containerRect.left;
  var calcX = Math.min(maxX, Math.max(minX, mouseX));
  var top = rangeRect.bottom - containerRect.top + dropdownMargin + container.scrollTop;
  var left = calcX + dropdownMargin;
  if (left > container.scrollWidth - dropdownWidth) {
    left = mouseX - containerRect.left - dropdownWidth - dropdownMargin;
  }
  left = Math.max(dropdownMargin, left);
  top = Math.min(top, container.scrollHeight - dropdownHeight - dropdownMargin);
  var maxScreenTop = container.scrollTop + containerRect.height - dropdownHeight - dropdownMargin;
  if (top > maxScreenTop) {
    top = Math.max(0, rangeRect.top - containerRect.top - dropdownHeight - dropdownMargin + container.scrollTop);
  }
  top = Math.max(documentContainerRect.top + container.scrollTop - containerRect.top, top);
  if (isCreatedByFixParagraph && unfixParagraphHeight) {
    var containerInner = container.querySelector('.transcriptionContent');
    var childHeight = (containerInner == null ? void 0 : containerInner.clientHeight) || 0;
    var containerHeight = Math.min(childHeight, container.scrollHeight);
    top = Math.min(top, Math.max(0, containerHeight - dropdownHeight - unfixParagraphHeight - dropdownMargin));
  }
  if (!isCreatedByFixParagraph) {
    // unfix
    top = top - container.scrollTop + containerRect.top;
    left = left - container.scrollLeft + containerRect.left;
    var fixedParent = getNearestFixedParent(container);
    if (fixedParent) {
      var fixedParentRect = fixedParent.getBoundingClientRect();
      top -= fixedParentRect.top;
      left -= fixedParentRect.left;
    }
  }
  var extStyles = isCreatedByFixParagraph ? {
    position: 'absolute',
    zIndex: 100
  } : {
    position: 'fixed',
    zIndex: 300
  };
  return (0,esm_extends/* default */.Z)({
    top: top,
    left: left
  }, extStyles);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/dropdownMenu/dropdownMenu.js

var _MenuItemIcon, _MenuItemText, _MenuItemIcon2, _MenuItemText2, _MenuItemIcon3, _MenuItemText3, _MenuItemIcon4, _MenuItemText4;

var dropdownMenu_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;






var DropdownMenu = function DropdownMenu(props) {
  var controller = props.controller;
  var tranController = generateTranscriptionController(controller);
  var getHooks = function getHooks() {
    return tranController.getHooks();
  };
  var isLivingMode = controller.getLivingMode();
  var _useState = (0,_react_18_2_0_react.useState)(false),
    isShowUp = _useState[0],
    setIsShowUp = _useState[1];
  var showUpTimeoutRef = (0,_react_18_2_0_react.useRef)();
  var dropdownRef = (0,_react_18_2_0_react.useRef)(null);
  var stateRef = (0,_react_18_2_0_react.useRef)({
    holdNextHide: false,
    currentSelection: controller.getCurrentSelection()
  });
  useSyncEffect(function () {
    return controller.on('addFixParagraph', function () {
      setIsShowUp(false);
    });
  }, [controller]);
  var _useState2 = (0,_react_18_2_0_react.useState)({}),
    calcStyle = _useState2[0],
    setCalcStyle = _useState2[1];
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['getTranscriptionContainer', 'getTranscriptionDocument', 'qnaController', 'onDeleteQnas']),
    getTranscriptionContainer = _useTranscriptionHook.getTranscriptionContainer,
    getTranscriptionDocument = _useTranscriptionHook.getTranscriptionDocument,
    qnaController = _useTranscriptionHook.qnaController,
    onDeleteQnas = _useTranscriptionHook.onDeleteQnas;
  var getUnfixHeight = (0,_react_18_2_0_react.useCallback)(function () {
    var unfixElement = tranController.getUnfixElement();
    if (!unfixElement) {
      return 0;
    }
    return unfixElement.getBoundingClientRect().height;
  }, [tranController]);
  useSyncEffect(function () {
    return tranController.on('onDropdownShowUp', function (_ref) {
      var clientX = _ref.clientX,
        clientY = _ref.clientY,
        rangeRect = _ref.rangeRect,
        isUnfix = _ref.isUnfix;
      clearTimeout(showUpTimeoutRef.current);
      showUpTimeoutRef.current = setTimeout(function () {
        if (getTranscriptionContainer && getTranscriptionDocument) {
          var tranContainer = getTranscriptionContainer();
          var documentContainer = getTranscriptionDocument();
          var contextMenuSize = tranController.getContextMenuSize() || {
            width: DROPDOWN_WIDTH,
            height: isLivingMode ? DROPDOWN_ONE_ITEM_HEIGHT : DROPDOWN_HEIGHT
          }; // todo: 应去除unfix区的高度

          setCalcStyle(getDropdownPosition(clientX, clientY, rangeRect, tranContainer, documentContainer, contextMenuSize.width, contextMenuSize.height, DROPDOWN_PADDING, !isUnfix, getUnfixHeight()));
        } else {
          setCalcStyle({
            top: clientY,
            left: clientX + DROPDOWN_PADDING
          });
        }
        setIsShowUp(true);
      }, 150);
    });
  }, [getTranscriptionContainer, tranController, getUnfixHeight, isLivingMode]);
  useSyncEffect(function () {
    return tranController.on('onDropdownHideOff', function () {
      if (stateRef.current.holdNextHide) {
        stateRef.current.holdNextHide = false;
      } else {
        setTimeout(function () {
          setIsShowUp(false);
        }, 200);
      }
    });
  }, [tranController]);
  var generatedStyle = (0,_react_18_2_0_react.useMemo)(function () {
    return (0,esm_extends/* default */.Z)({}, calcStyle, {
      display: isShowUp ? 'block' : 'none'
    });
  }, [calcStyle, isShowUp]);
  var matchedQnas = (0,_react_18_2_0_react.useMemo)(function () {
    var currentSelection = controller.getCurrentSelection();
    if (!isShowUp || !qnaController || !currentSelection) {
      return [];
    }
    var words = controller.getWordsBySelection(currentSelection);
    var sidsMap = {};
    words.forEach(function (word) {
      sidsMap[word.sentenceId] = true;
    });
    var qnaList = qnaController.getState('qnaList');
    return qnaList.filter(function (qna) {
      var isSelect = false;
      qna.question.sids.forEach(function (sid) {
        if (sidsMap[sid]) {
          isSelect = true;
        }
      });
      return isSelect;
    });
  }, [controller, qnaController, isShowUp]);
  var handleExtraContents = (0,_react_18_2_0_react.useCallback)(function () {
    if (stateRef.current.currentSelection) {
      controller.extraSelectContents(stateRef.current.currentSelection, 'origin');
    }
  }, [controller]);
  var onClickQuestion = (0,_react_18_2_0_react.useCallback)(function () {
    if (stateRef.current.currentSelection) {
      var _getHooks = getHooks(),
        onEvent = _getHooks.onEvent;
      onEvent && onEvent('toggleMarkParagraph', {
        isMark: true,
        markColor: 'red',
        isParagraphMark: false
      });
      controller.markSelectContents(stateRef.current.currentSelection, 'red');
    }
  }, [controller]);
  var onClickNail = (0,_react_18_2_0_react.useCallback)(function () {
    if (stateRef.current.currentSelection) {
      var _getHooks2 = getHooks(),
        onEvent = _getHooks2.onEvent;
      onEvent && onEvent('toggleMarkParagraph', {
        isMark: true,
        markColor: 'blue',
        isParagraphMark: false
      });
      controller.markSelectContents(stateRef.current.currentSelection, 'blue');
    }
  }, [controller]);
  var onClickTodo = (0,_react_18_2_0_react.useCallback)(function () {
    if (stateRef.current.currentSelection) {
      var _getHooks3 = getHooks(),
        onEvent = _getHooks3.onEvent;
      onEvent && onEvent('toggleMarkParagraph', {
        isMark: true,
        markColor: 'yellow',
        isParagraphMark: false
      });
      controller.markSelectContents(stateRef.current.currentSelection, 'yellow');
    }
  }, [controller]);
  var onClickReset = (0,_react_18_2_0_react.useCallback)(function () {
    if (stateRef.current.currentSelection) {
      var _getHooks4 = getHooks(),
        onEvent = _getHooks4.onEvent;
      onEvent && onEvent('toggleMarkParagraph', {
        isMark: false,
        markColor: '',
        isParagraphMark: false
      });
      controller.markSelectContents(stateRef.current.currentSelection, undefined);
    }
  }, [controller]);
  var handlePlayVoice = (0,_react_18_2_0_react.useCallback)(function () {
    if (stateRef.current.currentSelection) {
      controller.needStartPlayVoiceWithSelection(stateRef.current.currentSelection);
    }
  }, [controller]);
  var handleDeleteQna = (0,_react_18_2_0_react.useCallback)(function () {
    if (matchedQnas.length === 0 || !onDeleteQnas) {
      return;
    }
    onDeleteQnas && onDeleteQnas(matchedQnas);
  }, [matchedQnas, onDeleteQnas]);
  (0,_react_18_2_0_react.useEffect)(function () {
    stateRef.current.currentSelection = controller.getCurrentSelection();
  }, [controller, isShowUp]);
  var extContextMenu = (0,_react_18_2_0_react.useMemo)(function () {
    if (!isShowUp) {
      return null;
    }
    var currentSelection = controller.getCurrentSelection();
    if (!currentSelection) {
      return null;
    }
    var params = {
      currentSelection: currentSelection
    };
    return tranController.renderSelectionContextMenu(params);
  }, [isShowUp, controller, tranController]);
  var originMenu = /*#__PURE__*/dropdownMenu_createElement(styled_Menu, null, /*#__PURE__*/dropdownMenu_createElement(styled_MenuItem, {
    onClick: handleExtraContents,
    "data-e2e-test-id": "trans_menu_extract_div"
  }, _MenuItemIcon || (_MenuItemIcon = /*#__PURE__*/dropdownMenu_createElement(MenuItemIcon, null, /*#__PURE__*/dropdownMenu_createElement(Icon, {
    type: 'tingwu-pick',
    size: 20,
    color: '#474667'
  }))), _MenuItemText || (_MenuItemText = /*#__PURE__*/dropdownMenu_createElement(MenuItemText, null, "\u4E00\u952E\u6458\u53D6"))), /*#__PURE__*/dropdownMenu_createElement(styled_MenuItem, {
    "data-e2e-test-id": "trans_menu_tag_div"
  }, _MenuItemIcon2 || (_MenuItemIcon2 = /*#__PURE__*/dropdownMenu_createElement(MenuItemIcon, null, /*#__PURE__*/dropdownMenu_createElement(Icon, {
    type: 'tingwu-spin',
    size: 15,
    color: '#474667'
  }))), _MenuItemText2 || (_MenuItemText2 = /*#__PURE__*/dropdownMenu_createElement(MenuItemText, null, "\u6807\u8BB0")), /*#__PURE__*/dropdownMenu_createElement(MenuColorWrapper, null, /*#__PURE__*/dropdownMenu_createElement(TagControlBar, {
    onClickNail: onClickNail,
    onClickQuestion: onClickQuestion,
    onClickTodo: onClickTodo,
    onClickReset: onClickReset,
    tagControlBarSpaceBetween: 16,
    useHover: true
  }))), !isLivingMode && /*#__PURE__*/dropdownMenu_createElement(styled_MenuItem, {
    onClick: handlePlayVoice,
    "data-e2e-test-id": "trans_menu_play_div"
  }, _MenuItemIcon3 || (_MenuItemIcon3 = /*#__PURE__*/dropdownMenu_createElement(MenuItemIcon, null, /*#__PURE__*/dropdownMenu_createElement(Icon, {
    type: 'tingwu-play-filled',
    size: 16.5,
    color: '#474667'
  }))), _MenuItemText3 || (_MenuItemText3 = /*#__PURE__*/dropdownMenu_createElement(MenuItemText, null, "\u64AD\u653E\u97F3\u9891"))), matchedQnas.length > 0 && /*#__PURE__*/dropdownMenu_createElement(styled_MenuItem, {
    onClick: handleDeleteQna
  }, _MenuItemIcon4 || (_MenuItemIcon4 = /*#__PURE__*/dropdownMenu_createElement(MenuItemIcon, null, /*#__PURE__*/dropdownMenu_createElement(Icon, {
    type: 'tingwu-question',
    size: 17,
    color: '#474667'
  }))), _MenuItemText4 || (_MenuItemText4 = /*#__PURE__*/dropdownMenu_createElement(MenuItemText, null, "\u6211\u4E0D\u5173\u5FC3\u8FD9\u4E2A\u95EE\u9898"))));
  var menu = extContextMenu || originMenu;
  return /*#__PURE__*/dropdownMenu_createElement(styled_Dropdown, {
    "short": false //   short={isLivingMode} 实时和离线都采用一个width
    ,

    ref: dropdownRef,
    style: generatedStyle
  }, menu);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/utils/lastUnfixPid.js
var generateGetJustFixPid = function generateGetJustFixPid(controller) {
  var destroyGetJustFixPid;
  var lastPid;
  var timer;
  function listen() {
    destroyGetJustFixPid = controller.on('addFixParagraph', function () {
      clearTimeout(timer);
      var pids = controller.getPids();
      lastPid = pids.length > 0 ? pids[pids.length - 1] : undefined;
      timer = setTimeout(function () {
        lastPid = undefined;
      }, 500);
    });
  }
  function getJustFixPid() {
    return lastPid;
  }
  listen();
  return {
    getJustFixPid: getJustFixPid,
    destroyGetJustFixPid: destroyGetJustFixPid
  };
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/transcription/extend.js

var _DoubleArrowDownPng;

/* eslint-disable react-hooks/rules-of-hooks */



var extend_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;



var generateExtension = function generateExtension(extParams) {
  var controller = extParams.controller,
    tranController = extParams.tranController,
    getTranscriptionElem = extParams.getTranscriptionElem,
    getContainerElem = extParams.getContainerElem;
  var getHooks = function getHooks() {
    return tranController.getHooks();
  };
  return {
    extendByPlayingWord: function extendByPlayingWord(props) {
      var _AutoScrollButton;
      var renderContent = props.renderContent,
        onScroll = props.onScroll,
        onDisplayWordShowUp = props.onDisplayWordShowUp;
      var isEnabled = !controller.getLivingMode();
      var _useState = (0,_react_18_2_0_react.useState)(false),
        isPlaying = _useState[0],
        setIsPlaying = _useState[1];
      var _useState2 = (0,_react_18_2_0_react.useState)(false),
        userScrolled = _useState2[0],
        setUserScrolled = _useState2[1];
      var stateRef = (0,_react_18_2_0_react.useRef)({
        nextWordShowUp: false,
        scrollBySystem: false
      });
      var handleClearUserScrolled = (0,_react_18_2_0_react.useCallback)(function () {
        var _getHooks = getHooks(),
          onEvent = _getHooks.onEvent;
        onEvent && onEvent('clickReturnToPlayingWord', {});
        stateRef.current.nextWordShowUp = true;
        var _controller$getPlayin = controller.getPlayingPidAndWord(),
          pid = _controller$getPlayin[0];
        var playingWordController = tranController.playingWordController;
        if (pid) {
          playingWordController.emit('paragraphShowUp', {
            pid: pid,
            force: true
          });
        }
        setUserScrolled(false);
        stateRef.current.scrollBySystem = true;
      }, []);
      useSyncEffect(function () {
        if (!isEnabled) {
          return;
        }
        return controller.on('playingVoiceWordEnableChange', function (_ref) {
          var enable = _ref.enable;
          setIsPlaying(enable);
          if (enable) {
            setUserScrolled(false);
          }
        });
      }, [isEnabled]);
      useSyncEffect(function () {
        if (!isEnabled) {
          return;
        }
        return controller.on('searchReplaceChange', function (_ref2) {
          var selections = _ref2.selections;
          if (selections.length > 0) {
            setUserScrolled(true);
          }
        });
      }, [isEnabled]);
      useSyncEffect(function () {
        if (!isEnabled) {
          return;
        }
        return controller.on('editorFocusChange', function () {
          setUserScrolled(true);
        });
      }, [isEnabled]);
      var _useState3 = (0,_react_18_2_0_react.useState)(false),
        visible = _useState3[0],
        setVisible = _useState3[1];
      var _useState4 = (0,_react_18_2_0_react.useState)(),
        direction = _useState4[0],
        setDirection = _useState4[1];
      (0,_react_18_2_0_react.useEffect)(function () {
        if (!isEnabled) {
          return;
        }
        var playingWordController = tranController.playingWordController;
        return playingWordController.on('playingParagraphVisibleChange', function (event) {
          if (event.enable) {
            setDirection(event.direction);
            setVisible(!event.visible);
          } else {
            setVisible(false);
          }
        });
      }, [isEnabled]);
      return (0,esm_extends/* default */.Z)({}, props, {
        onScroll: (0,_react_18_2_0_react.useCallback)(function () {
          onScroll && onScroll();
          if (isEnabled) {
            if (!stateRef.current.scrollBySystem) {
              setUserScrolled(true);
            } else {
              stateRef.current.scrollBySystem = false;
            }
          }
        }, [isEnabled, onScroll]),
        renderContent: (0,_react_18_2_0_react.useCallback)(function (_params) {
          if (isEnabled) {
            return /*#__PURE__*/extend_createElement(_react_18_2_0_react.Fragment, null, renderContent(_params), visible && (_AutoScrollButton || (_AutoScrollButton = /*#__PURE__*/extend_createElement(AutoScrollButton, {
              direction: direction,
              onClick: handleClearUserScrolled,
              "data-e2e-test-id": "trans_autoScroll_button"
            }, _DoubleArrowDownPng || (_DoubleArrowDownPng = /*#__PURE__*/extend_createElement(DoubleArrowDownPng, {
              className: "arrow-down"
            })), "\u56DE\u5230\u5F53\u524D\u4F4D\u7F6E"))));
          } else {
            return renderContent(_params);
          }
        }, [isEnabled, renderContent, handleClearUserScrolled, visible, direction]),
        onDisplayWordShowUp: (0,_react_18_2_0_react.useCallback)(function (event) {
          if (isEnabled) {
            var _isPlaying = event.isPlaying,
              forceDisplay = event.forceDisplay; // 有段落激活的时候，不要滚动到对应playingWord

            if (_isPlaying && controller.getEditorFocusPid() != null) {
              return;
            }
            if (isPlaying) {
              if (_isPlaying && !stateRef.current.nextWordShowUp && userScrolled) {
                if (!forceDisplay) {
                  return;
                } else {
                  setUserScrolled(false);
                }
              }
            }
          }
          stateRef.current.nextWordShowUp = false;
          stateRef.current.scrollBySystem = true;
          onDisplayWordShowUp && onDisplayWordShowUp(event);
        }, [isEnabled, onDisplayWordShowUp, isPlaying, userScrolled])
      });
    },
    extendByCheckAgenda: function extendByCheckAgenda(props) {
      var onScroll = props.onScroll;
      var isEnabled = controller.getEnableActiveAgenda();
      var forceUpdate = useForceUpdate();
      var lastActiveAgendaTimeRef = (0,_react_18_2_0_react.useRef)();
      useSyncEffect(function () {
        return controller.on('activeAgendaChange', function () {
          lastActiveAgendaTimeRef.current = new Date().getTime();
          forceUpdate();
        });
      }, [forceUpdate]);
      var checkDisplayAgendas = (0,_react_18_2_0_react.useCallback)((0,_lodash_es_4_17_21_lodash_es_throttle/* default */.Z)(function () {
        if (lastActiveAgendaTimeRef.current != null && new Date().getTime() - lastActiveAgendaTimeRef.current < 1000) {
          return;
        }
        var transcriptionElem = getTranscriptionElem();
        var containerElem = getContainerElem();
        if (!transcriptionElem || !containerElem) {
          return;
        }
        var containerRect = containerElem.getBoundingClientRect();
        var agendas = controller.getAgendas();
        agendas.some(function (agenda) {
          var foundsRects = [];
          [].forEach.call(transcriptionElem.querySelectorAll("[data-in-agenda-" + agenda.id + "]"), function (element) {
            var rect = element.getBoundingClientRect();
            var elementTop = rect.top - containerRect.top + containerElem.scrollTop;
            if (elementTop > containerElem.scrollTop && elementTop < containerElem.scrollTop + containerRect.height) {
              foundsRects.push({
                rect: rect,
                element: element
              });
            }
          });
          if (foundsRects.length === 0) {
            return false;
          }
          var lastFound = foundsRects[foundsRects.length - 1];
          var lastFoundTop = lastFound.rect.top - containerRect.top + containerElem.scrollTop;
          if (lastFoundTop > containerElem.scrollTop) {
            controller.detectedFirstShowUpAgenda(agenda);
            return true;
          }
          return false;
        });
      }, 500), []);
      return (0,esm_extends/* default */.Z)({}, props, {
        onScroll: (0,_react_18_2_0_react.useCallback)(function () {
          onScroll && onScroll();
          if (isEnabled) {
            checkDisplayAgendas();
          }
        }, [isEnabled, onScroll, checkDisplayAgendas])
      });
    },
    extendByLivingScrollEnd: function extendByLivingScrollEnd(props) {
      var onScroll = props.onScroll;
      var _useState5 = (0,_react_18_2_0_react.useState)(true),
        needScrollToEnd = _useState5[0],
        setNeedScrollToEnd = _useState5[1];
      var _useState6 = (0,_react_18_2_0_react.useState)(true),
        isScrollEnd = _useState6[0],
        setIsScrollEnd = _useState6[1];
      var _useState7 = (0,_react_18_2_0_react.useState)(false),
        isEditorFocus = _useState7[0],
        setIsEditorFocus = _useState7[1]; // 不包含unfix段落

      var displayPids = controller.getPids(true);
      var hasUnfixParagraph = displayPids.filter(function (pid) {
        return !controller.getParagraph(pid).isUnfix;
      }).length > 0;
      var livingMode = controller.getLivingMode();
      var isEnabled = livingMode && hasUnfixParagraph;
      var isShowingLivingScrollToBottom = isEnabled && !isScrollEnd;
      var forceUpdate = useForceUpdate();
      var scrollToBottom = (0,_react_18_2_0_react.useCallback)(function () {
        var containerElem = getContainerElem();
        if (!containerElem) {
          return;
        }
        containerElem.scrollTo({
          top: containerElem.scrollHeight
        });
        setIsScrollEnd(true);
        setNeedScrollToEnd(true);
      }, []);
      var handleScrollToBottom = (0,_react_18_2_0_react.useCallback)(function () {
        var _getHooks2 = getHooks(),
          onEvent = _getHooks2.onEvent;
        onEvent && onEvent('clickScrollToBottom', {});
        scrollToBottom();
      }, [scrollToBottom]);
      (0,_react_18_2_0_react.useEffect)(function () {
        if (!isEnabled) {
          return;
        }
        return controller.on('uglyUserManualAddParagraph', function () {
          setTimeout(scrollToBottom, 100);
        });
      }, [isEnabled, scrollToBottom]);
      var checkIsScrollEnd = (0,_react_18_2_0_react.useCallback)(function () {
        var containerElem = getContainerElem();
        if (!containerElem) {
          return;
        }
        var buffer = 50;
        var _isScrollEnd = containerElem.scrollTop + containerElem.clientHeight >= containerElem.scrollHeight - buffer;
        setIsScrollEnd(_isScrollEnd);
        setNeedScrollToEnd(_isScrollEnd);
      }, []); // todo: 临时解决带unfix区focus时成段，导致无法scrollToBottom
      // 其中插入Dom和rectResize之间会有一次scroll事件发生，导致检查scrollToBottom为false
      // 其中editPidChange会被重新触发，导致检查对应上屏pid变为普通pid

      var _useMemo = (0,_react_18_2_0_react.useMemo)(function () {
          return generateGetJustFixPid(controller);
        }, []),
        getJustFixPid = _useMemo.getJustFixPid,
        destroyGetJustFixPid = _useMemo.destroyGetJustFixPid;
      (0,_react_18_2_0_react.useEffect)(function () {
        return destroyGetJustFixPid;
      }, [destroyGetJustFixPid]);
      var handleScroll = (0,_react_18_2_0_react.useCallback)(function () {
        if (getJustFixPid()) {
          return;
        }
        checkIsScrollEnd();
      }, [checkIsScrollEnd, getJustFixPid]);
      useSyncEffect(function () {
        if (!isEnabled) {
          return;
        }
        return controller.on('searchReplaceChange', checkIsScrollEnd);
      }, [isEnabled, checkIsScrollEnd]);
      useSyncEffect(function () {
        return controller.on('livingModeChange', forceUpdate);
      }, [forceUpdate]);
      useSyncEffect(function () {
        if (!livingMode) {
          return;
        }
        return controller.on('paragraphListChange', forceUpdate);
      }, [livingMode, forceUpdate]);
      useSyncEffect(function () {
        if (!isEnabled) {
          return;
        }
        return controller.on('editorFocusChange', function (_ref3) {
          var pid = _ref3.pid;
          var isFocus;
          if (getJustFixPid()) {
            return;
          }
          if (pid) {
            var paragraph = controller.getParagraph(pid);
            isFocus = !paragraph.isUnfix;
          } else {
            isFocus = false;
          }
          setIsEditorFocus(isFocus);
          checkIsScrollEnd();
        });
      }, [isEnabled, checkIsScrollEnd, getJustFixPid]);
      useSyncEffect(function () {
        if (!isEnabled) {
          return;
        }
        return tranController.on('contentRectChange', function () {
          if (needScrollToEnd && !isEditorFocus) {
            scrollToBottom();
          } else {
            checkIsScrollEnd();
          }
        });
      }, [isEnabled, needScrollToEnd, isEditorFocus, scrollToBottom, checkIsScrollEnd]);
      return (0,esm_extends/* default */.Z)({}, props, {
        onScroll: (0,_react_18_2_0_react.useCallback)(function () {
          onScroll && onScroll();
          if (isEnabled) {
            handleScroll();
          }
        }, [isEnabled, onScroll, handleScroll]),
        isShowingLivingScrollToBottom: isShowingLivingScrollToBottom,
        onScrollToBottom: handleScrollToBottom
      });
    },
    extendByNothing: function extendByNothing(props) {
      return props;
    }
  };
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/translateMenu/styled.js

var styled_DROPDOWN_WIDTH = 128;
var styled_DROPDOWN_HEIGHT = 148;
var styled_DROPDOWN_ONE_ITEM_HEIGHT = 52;
var styled_DROPDOWN_PADDING = 10;
var translateMenu_styled_Dropdown = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["position:absolute;z-index:100;top:-9999px;left:-9999px;user-select:none;width:128px;"]);
var translateMenu_styled_Menu = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["border-radius:8px;padding:4px 0;background:#FFFFFF;box-shadow:0 3px 6px -4px rgba(39,38,77,0.12),0 6px 16px 0 rgba(39,38,77,0.08),0 9px 28px 8px rgba(39,38,77,0.05);"]);
var translateMenu_styled_MenuItem = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["height:44px;display:flex;align-items:center;font-size:14px;color:#27264D;line-height:24px;padding:0 16px;cursor:pointer;&:hover{background:rgba(96,92,229,0.08);}"]);
var styled_MenuItemIcon = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["width:20px;height:20px;display:flex;justify-content:center;align-items:center;margin-right:12px;"]);
var styled_MenuItemText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["white-space:nowrap;"]);
var styled_MenuColorWrapper = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["flex:1 1;display:flex;justify-content:flex-end;align-items:center;"])));
var styled_MenuColorTag = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["width:16px;height:16px;border-radius:16px;cursor:pointer;margin-right:12px;display:flex;justify-content:center;align-items:center;position:relative;&:after{position:absolute;content:' ';top:0;left:0;width:16px;height:16px;border-radius:16px;z-index:1;transition:all 0.2s;transform-origin:center center;}&:hover:after{transform:scale(125%);}svg{display:none;position:relative;z-index:2;}", " ", " ", " ", ""], function (props) {
  return props.color === 'blue' && "\n    &:after {\n      background-color: #9AE4FF;\n    }\n  ";
}, function (props) {
  return props.color === 'yellow' && "\n    &:after {\n      background-color: #F9FA6F;\n    }\n  ";
}, function (props) {
  return props.color === 'red' && "\n    &:after {\n      background-color: #F8BAD7;\n    }\n  ";
}, function (props) {
  return props.active && "\n    &:after {\n      transform: scale(125%);\n    }\n    svg {\n      display: block;\n    }\n  ";
})));
var styled_MenuCloseTagWraper = /*#__PURE__*/(/* unused pure expression or super */ null && (styled.div(["width:16px;height:16px;cursor:pointer;&:hover{svg{transition:all 0.2s;transform-origin:center center;transform:scale(125%);}}"])));
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/translateMenu/translateMenu.js

var translateMenu_MenuItemIcon, translateMenu_MenuItemText;

var translateMenu_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;





var TranslateMenu = function TranslateMenu(props) {
  var controller = props.controller;
  var tranController = generateTranscriptionController(controller);
  var isLivingMode = controller.getLivingMode();
  var _useState = (0,_react_18_2_0_react.useState)(false),
    isShowUp = _useState[0],
    setIsShowUp = _useState[1];
  var showUpTimeoutRef = (0,_react_18_2_0_react.useRef)();
  var dropdownRef = (0,_react_18_2_0_react.useRef)(null);
  var selectContentRef = (0,_react_18_2_0_react.useRef)('');
  var stateRef = (0,_react_18_2_0_react.useRef)({
    holdNextHide: false,
    currentSelection: controller.getCurrentSelection()
  });
  useSyncEffect(function () {
    return controller.on('addFixParagraph', function () {
      setIsShowUp(false);
    });
  }, [controller]);
  var _useState2 = (0,_react_18_2_0_react.useState)({}),
    calcStyle = _useState2[0],
    setCalcStyle = _useState2[1];
  var _useTranscriptionHook = useTranscriptionHooks(controller, ['getTranscriptionContainer', 'getTranscriptionDocument']),
    getTranscriptionContainer = _useTranscriptionHook.getTranscriptionContainer,
    getTranscriptionDocument = _useTranscriptionHook.getTranscriptionDocument;
  var getUnfixHeight = (0,_react_18_2_0_react.useCallback)(function () {
    var unfixElement = tranController.getUnfixElement();
    if (!unfixElement) {
      return 0;
    }
    return unfixElement.getBoundingClientRect().height;
  }, [tranController]);
  useSyncEffect(function () {
    return tranController.on('onTranslateMenuShowUp', function (_ref) {
      var clientX = _ref.clientX,
        clientY = _ref.clientY,
        rangeRect = _ref.rangeRect,
        isUnfix = _ref.isUnfix,
        startOffset = _ref.startOffset,
        endOffset = _ref.endOffset,
        content = _ref.content;
      selectContentRef.current = content.slice(startOffset, endOffset);
      clearTimeout(showUpTimeoutRef.current);
      showUpTimeoutRef.current = setTimeout(function () {
        if (getTranscriptionContainer && getTranscriptionDocument) {
          var tranContainer = getTranscriptionContainer();
          var documentContainer = getTranscriptionDocument();
          var contextMenuSize = {
            width: styled_DROPDOWN_WIDTH,
            height: styled_DROPDOWN_ONE_ITEM_HEIGHT
          }; // todo: 应去除unfix区的高度

          setCalcStyle(getDropdownPosition(clientX, clientY, rangeRect, tranContainer, documentContainer, contextMenuSize.width, contextMenuSize.height, styled_DROPDOWN_PADDING, !isUnfix, getUnfixHeight()));
        } else {
          setCalcStyle({
            top: clientY,
            left: clientX + styled_DROPDOWN_PADDING
          });
        }
        setIsShowUp(true);
      }, 150);
    });
  }, [getTranscriptionContainer, tranController, getUnfixHeight, isLivingMode]);
  useSyncEffect(function () {
    return tranController.on('onTranslateMenuHideOff', function () {
      if (stateRef.current.holdNextHide) {
        stateRef.current.holdNextHide = false;
      } else {
        setTimeout(function () {
          setIsShowUp(false);
        }, 200);
      }
    });
  }, [tranController]);
  var generatedStyle = (0,_react_18_2_0_react.useMemo)(function () {
    return (0,esm_extends/* default */.Z)({}, calcStyle, {
      display: isShowUp ? 'block' : 'none'
    });
  }, [calcStyle, isShowUp]);
  var handleExtraContents = (0,_react_18_2_0_react.useCallback)(function () {
    if (selectContentRef.current) {
      controller.extraContent([selectContentRef.current], 'translate');
    }
  }, [controller]);
  (0,_react_18_2_0_react.useEffect)(function () {
    stateRef.current.currentSelection = controller.getCurrentSelection();
  }, [controller, isShowUp]);
  var originMenu = /*#__PURE__*/translateMenu_createElement(translateMenu_styled_Menu, null, /*#__PURE__*/translateMenu_createElement(translateMenu_styled_MenuItem, {
    onClick: handleExtraContents
  }, translateMenu_MenuItemIcon || (translateMenu_MenuItemIcon = /*#__PURE__*/translateMenu_createElement(styled_MenuItemIcon, null, /*#__PURE__*/translateMenu_createElement(Icon, {
    type: 'tingwu-pick',
    size: 20,
    color: '#474667'
  }))), translateMenu_MenuItemText || (translateMenu_MenuItemText = /*#__PURE__*/translateMenu_createElement(styled_MenuItemText, null, "\u4E00\u952E\u6458\u53D6"))));
  return /*#__PURE__*/translateMenu_createElement(translateMenu_styled_Dropdown, {
    ref: dropdownRef,
    style: generatedStyle
  }, originMenu);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/transcription/transcription.js

var transcription_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;













var Transcription = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var _DropdownMenu, _TranslateMenu;
  var className = props.className,
    style = props.style,
    renderBefore = props.renderBefore,
    renderAfter = props.renderAfter,
    onFetchAlibabaEmployees = props.onFetchAlibabaEmployees,
    getAvailableSpeakers = props.getAvailableSpeakers,
    setAvailableSpeakers = props.setAvailableSpeakers,
    renderAvatar = props.renderAvatar,
    enableSelectAlibabaEmployee = props.enableSelectAlibabaEmployee,
    enableShowSpeaker = props.enableShowSpeaker,
    getDefaultSpeakerName = props.getDefaultSpeakerName,
    enableEditSpeaker = props.enableEditSpeaker,
    enableOfflineEditWordTip = props.enableOfflineEditWordTip,
    onFinishEnableOfflineEditWordTip = props.onFinishEnableOfflineEditWordTip,
    onEvent = props.onEvent,
    _props$extensions = props.extensions,
    extensions = _props$extensions === void 0 ? [] : _props$extensions,
    theme = props.theme,
    getCommonUseSpeakers = props.getCommonUseSpeakers,
    setCommonUseSpeakers = props.setCommonUseSpeakers,
    addCommonUseSpeaker = props.addCommonUseSpeaker,
    renderCommonUseAvatar = props.renderCommonUseAvatar,
    qnaController = props.qnaController,
    onDeleteQnas = props.onDeleteQnas,
    beforeCoverHeight = props.beforeCoverHeight;
  var _useContext = (0,_react_18_2_0_react.useContext)(TingwuContext),
    getController = _useContext.getController;
  var controller = (0,_react_18_2_0_react.useMemo)(function () {
    return getController();
  }, [getController]);
  var containerRef = (0,_react_18_2_0_react.useRef)(null);
  var transcriptionRef = (0,_react_18_2_0_react.useRef)(null);
  var tranController = generateTranscriptionController(controller);
  var playingWordController = tranController.playingWordController;
  var genedTheme = (0,_react_18_2_0_react.useMemo)(function () {
    return generateTheme(theme);
  }, [theme]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return function () {
      removeTranscriptionController(controller.id);
    };
  }, [controller.id]);
  var getTranscriptionContainer = (0,_react_18_2_0_react.useCallback)(function () {
    return containerRef.current;
  }, []);
  var getTranscriptionDocument = (0,_react_18_2_0_react.useCallback)(function () {
    return transcriptionRef.current;
  }, []);
  (0,_react_18_2_0_react.useEffect)(function () {
    tranController.setHooks({
      getTranscriptionContainer: getTranscriptionContainer,
      getTranscriptionDocument: getTranscriptionDocument,
      onFetchAlibabaEmployees: onFetchAlibabaEmployees,
      getAvailableSpeakers: getAvailableSpeakers,
      getCommonUseSpeakers: getCommonUseSpeakers,
      setCommonUseSpeakers: setCommonUseSpeakers,
      setAvailableSpeakers: setAvailableSpeakers,
      addCommonUseSpeaker: addCommonUseSpeaker,
      renderCommonUseAvatar: renderCommonUseAvatar,
      renderAvatar: renderAvatar,
      enableSelectAlibabaEmployee: enableSelectAlibabaEmployee,
      enableShowSpeaker: enableShowSpeaker,
      getDefaultSpeakerName: getDefaultSpeakerName,
      enableEditSpeaker: enableEditSpeaker,
      enableOfflineEditWordTip: enableOfflineEditWordTip,
      onFinishEnableOfflineEditWordTip: onFinishEnableOfflineEditWordTip,
      onEvent: onEvent,
      qnaController: qnaController,
      onDeleteQnas: onDeleteQnas,
      theme: genedTheme,
      beforeCoverHeight: beforeCoverHeight
    });
  }, [tranController, onFetchAlibabaEmployees, getAvailableSpeakers, getCommonUseSpeakers, setCommonUseSpeakers, addCommonUseSpeaker, renderCommonUseAvatar, setAvailableSpeakers, renderAvatar, enableSelectAlibabaEmployee, enableShowSpeaker, getDefaultSpeakerName, enableEditSpeaker, getTranscriptionContainer, getTranscriptionDocument, enableOfflineEditWordTip, onFinishEnableOfflineEditWordTip, onEvent, qnaController, onDeleteQnas, genedTheme, beforeCoverHeight]);
  var isLivingMode = (0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(isLivingModeState);
  (0,_react_18_2_0_react.useEffect)(function () {
    tranController.setExtensions(extensions);
  }, [tranController, extensions]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (setAvailableSpeakers) {
      controller.injectSpeakersSetter(setAvailableSpeakers);
    }
  }, [controller, setAvailableSpeakers]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (getAvailableSpeakers) {
      controller.injectSpeakersGetter(getAvailableSpeakers);
    }
  }, [controller, getAvailableSpeakers]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (renderAvatar) {
      controller.injectRenderAvatarGetter(renderAvatar);
    }
  }, [controller, renderAvatar]); // 设置常用发言人列表

  (0,_react_18_2_0_react.useEffect)(function () {
    if (getCommonUseSpeakers) {
      controller.injectCommonUseSpeakersGetter(getCommonUseSpeakers);
    }
  }, [controller, getCommonUseSpeakers]); // 设置常用发言人列表

  (0,_react_18_2_0_react.useEffect)(function () {
    if (setCommonUseSpeakers) {
      controller.injectCommonUseSpeakersSetter(setCommonUseSpeakers);
    }
  }, [controller, setCommonUseSpeakers]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (getDefaultSpeakerName) {
      controller.injectDefaultSpeakerNameGetter(getDefaultSpeakerName);
    }
  }, [controller, getDefaultSpeakerName]);
  var transController = getTranscriptionController(controller);
  (0,_react_18_2_0_react.useEffect)(function () {
    return function () {
      transController.clean();
    };
  }, [transController]);
  var beforeContent = (0,_react_18_2_0_react.useMemo)(function () {
    return renderBefore && renderBefore(controller) || null;
  }, [renderBefore, controller]);
  var afterContent = (0,_react_18_2_0_react.useMemo)(function () {
    return renderAfter && renderAfter(controller) || null;
  }, [renderAfter, controller]);
  var hasExtraContent = Boolean(beforeContent || afterContent);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('searchReplaceChange', function (event) {
      var selections = event.selections,
        activeIndex = event.activeIndex,
        enableScroll = event.enableScroll;
      if (!enableScroll || selections.length === 0) {
        return;
      }
      var selection = selections[activeIndex]; // 实时模式允许因翻译内容变化触发

      if (selection.readonly && !isLivingMode) {
        return;
      }
      transController.emit('onDisplayWordShowUp', {
        pid: selection.pid
      });
    });
  }, [controller, transController, isLivingMode]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return controller.on('playingVoiceWordChange', function (event) {
      var pid = event.pid,
        word = event.word,
        forceDisplay = event.forceDisplay,
        seekWithExtContent = event.seekWithExtContent,
        _event$isPlaying = event.isPlaying,
        isPlaying = _event$isPlaying === void 0 ? true : _event$isPlaying;
      if (!word) {
        return;
      }
      transController.emitAsync('onDisplayWordShowUp', {
        pid: pid,
        word: word,
        forceDisplay: forceDisplay,
        seekWithExtContent: seekWithExtContent,
        isPlaying: isPlaying
      });
    });
  }, [controller, transController]);
  var onDisplayWordShowUpStrategy = (0,_react_18_2_0_react.useCallback)(function (event) {
    var transcriptionElem = transcriptionRef.current;
    if (!transcriptionElem) {
      return;
    }
    var pid = event.pid,
      seekWithExtContent = event.seekWithExtContent;
    playingWordController.emit('paragraphShowUp', {
      pid: pid,
      seekWithExtContent: seekWithExtContent
    });
  }, [playingWordController]);
  (0,_react_18_2_0_react.useEffect)(function () {
    var keydownHandler = function keydownHandler(event) {
      if (isSpaceHotKey(event.keyCode) && event.target === document.body) {
        event.preventDefault();
      }
    };
    window.addEventListener('keydown', keydownHandler);
    return function () {
      window.removeEventListener('keydown', keydownHandler);
    };
  }, []);
  var renderContentStrategy = (0,_react_18_2_0_react.useCallback)(function (params) {
    var onWhell = params.onWhell,
      onScroll = params.onScroll,
      isShowingLivingScrollToBottom = params.isShowingLivingScrollToBottom,
      onScrollToBottom = params.onScrollToBottom;
    return /*#__PURE__*/transcription_createElement(ScrollContainer, {
      ref: containerRef,
      onWheel: onWhell,
      onScroll: onScroll
    }, /*#__PURE__*/transcription_createElement(ScrollContainerInner, null, beforeContent, /*#__PURE__*/transcription_createElement(TranscriptionContentWrapper, {
      ref: transcriptionRef,
      "data-e2e-test-id": "trans_container_div"
    }, /*#__PURE__*/transcription_createElement(TranscriptionContent, {
      isShowingLivingScrollToBottom: isShowingLivingScrollToBottom,
      onScrollToBottom: onScrollToBottom,
      controller: controller,
      hasExtraContent: hasExtraContent,
      theme: genedTheme,
      className: "transcriptionContent"
    })), afterContent), _DropdownMenu || (_DropdownMenu = /*#__PURE__*/transcription_createElement(DropdownMenu, {
      controller: controller
    })), _TranslateMenu || (_TranslateMenu = /*#__PURE__*/transcription_createElement(TranslateMenu, {
      controller: controller
    })));
  }, [beforeContent, afterContent, controller, hasExtraContent, genedTheme]);
  var onContainerRectChangeStrategy = (0,_react_18_2_0_react.useCallback)(function (rect) {
    var width = rect.width,
      height = rect.height; // This method will call in component initialze

    transController.setContainerRect({
      width: width,
      height: height
    });
  }, [transController]);
  var localExtensions = (0,_react_18_2_0_react.useMemo)(function () {
    var getTranscriptionElem = function getTranscriptionElem() {
      return transcriptionRef.current;
    };
    var getContainerElem = function getContainerElem() {
      return containerRef.current;
    };
    return generateExtension({
      controller: controller,
      tranController: tranController,
      getTranscriptionElem: getTranscriptionElem,
      getContainerElem: getContainerElem
    });
  }, [controller, tranController]);
  var _ref = function () {
      var extendByPlayingWord = localExtensions.extendByPlayingWord,
        extendByCheckAgenda = localExtensions.extendByCheckAgenda,
        extendByLivingScrollEnd = localExtensions.extendByLivingScrollEnd;
      var params = {
        renderContent: renderContentStrategy,
        onDisplayWordShowUp: onDisplayWordShowUpStrategy,
        onContainerRectChange: onContainerRectChangeStrategy
      };
      params = extendByPlayingWord(params);
      params = extendByCheckAgenda(params);
      params = extendByLivingScrollEnd(params);
      return params;
    }(),
    onWhell = _ref.onWhell,
    onScroll = _ref.onScroll,
    renderContent = _ref.renderContent,
    onDisplayWordShowUp = _ref.onDisplayWordShowUp,
    isShowingLivingScrollToBottom = _ref.isShowingLivingScrollToBottom,
    onScrollToBottom = _ref.onScrollToBottom,
    onContainerRectChange = _ref.onContainerRectChange;
  useSyncEffect(function () {
    if (!onDisplayWordShowUp) {
      return;
    }
    return transController.on('onDisplayWordShowUp', onDisplayWordShowUp);
  }, [transController, onDisplayWordShowUp]);
  (0,_react_18_2_0_react.useEffect)(function () {
    var container = containerRef.current;
    if (!window.ResizeObserver || !container) {
      return;
    } //
    // User will manual import `resize-observer-polyfill` if he need.

    var resizeObserver = new ResizeObserver(function (entries) {
      if (entries.length === 0) {
        return;
      }
      onContainerRectChange(entries[0].contentRect);
    });
    resizeObserver.observe(container);
    return function () {
      resizeObserver.disconnect();
    };
  }, [onContainerRectChange]);
  var transcriptingState = (0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(transcriptingStateState);
  var scrollToBottomButton = (0,_react_18_2_0_react.useMemo)(function () {
    if (!isShowingLivingScrollToBottom) {
      return null;
    }
    if (transcriptingState === dist_web_controller/* TranscriptingState */.FR.Disabled) {
      return null;
    }
    return tranController.renderScrollToBottomButton({
      isShowingLivingScrollToBottom: isShowingLivingScrollToBottom,
      onScrollToBottom: onScrollToBottom
    });
  }, [tranController, onScrollToBottom, isShowingLivingScrollToBottom, transcriptingState]);
  return /*#__PURE__*/transcription_createElement(styled_components_browser_esm/* ThemeProvider */.f6, {
    theme: genedTheme
  }, /*#__PURE__*/transcription_createElement(transcription_styled_Wrapper, {
    className: className,
    style: style
  }, renderContent({
    onWhell: onWhell,
    onScroll: onScroll,
    isShowingLivingScrollToBottom: isShowingLivingScrollToBottom,
    onScrollToBottom: onScrollToBottom
  }), scrollToBottomButton));
});
;// CONCATENATED MODULE: ./src/components/marksGuide/styled.tsx
var styled_templateObject,styled_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;var styled_Content=styled_components_browser_esm/* default */.ZP.div(styled_templateObject||(styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  background: rgb(242, 245, 251);\n  padding: 12.5px 16px 6px;\n"])));var GuideBox=styled_components_browser_esm/* default */.ZP.div(styled_templateObject2||(styled_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n  height: 98px;\n  width: 288px;\n  background-color: #ffffff;\n  border: 0.5px solid #dfe3ed;\n  border-radius: 8px;\n  padding: 12px 16px;\n"])));var Header=styled_components_browser_esm/* default */.ZP.div(_templateObject3||(_templateObject3=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  font-size: 12px;\n  color: #26314d;\n  margin-bottom: 12px;\n  height: 18px;\n"])));var marksGuide_styled_CloseButton=styled_components_browser_esm/* default */.ZP.div(_templateObject4||(_templateObject4=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  background-repeat: no-repeat;\n  background-position: center center;\n  width: 12px;\n  height: 12px;\n  cursor: pointer;\n  transition: all 0.3s;\n  &:hover {\n    background-image: url(",");\n  }\n\n  &:active {\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL('closeSmall.svg'),chrome.runtime.getURL('closeHoverSmall.svg'),chrome.runtime.getURL('closeActiveSmall.svg'));var MarksItemWrap=styled_components_browser_esm/* default */.ZP.div(_templateObject5||(_templateObject5=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  flex-wrap: wrap;\n"])));var MarksItem=styled_components_browser_esm/* default */.ZP.div(_templateObject6||(_templateObject6=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  align-items: center;\n  color: rgba(39, 38, 77, 0.65);\n  font-size: 12px;\n  margin: 0 20px 8px 0;\n"])));var MarksImg=styled_components_browser_esm/* default */.ZP.div(_templateObject7||(_templateObject7=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-size: contain;\n  background-repeat: no-repeat;\n  background-position: center center;\n  width: 16px;\n  height: 16px;\n  margin-right: 6px;\n"])));
// EXTERNAL MODULE: ./src/models/index.ts + 5 modules
var models = __webpack_require__(2585);
;// CONCATENATED MODULE: ./src/components/marksGuide/marksGuide.tsx
var marksArr=[{text:"标记为重点内容",src:"".concat(chrome.runtime.getURL("marksGuideBlue.svg"))},{text:"标记为讨论问题",src:"".concat(chrome.runtime.getURL("marksGuideRed.svg"))},{text:"标记为待办事项",src:"".concat(chrome.runtime.getURL("marksGuideYellow.svg"))}];var MarksGuide=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var changeMarksGuide=props.changeMarksGuide;var marksGuide=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* marksGuideState */.rV);return/*#__PURE__*/(0,jsx_runtime.jsx)(styled_Content,{style:{display:marksGuide===0?"block":"none"},children:/*#__PURE__*/(0,jsx_runtime.jsxs)(GuideBox,{children:[/*#__PURE__*/(0,jsx_runtime.jsxs)(Header,{children:["\u5F55\u97F3\u4E2D\u9009\u4E2D\u6587\u5B57\u968F\u65F6\u6807\u8BB0\u4F60\u7684\u91CD\u8981\u4FE1\u606F",/*#__PURE__*/(0,jsx_runtime.jsx)(marksGuide_styled_CloseButton,{onClick:function onClick(){return changeMarksGuide();}})]}),/*#__PURE__*/(0,jsx_runtime.jsx)(MarksItemWrap,{children:marksArr.map(function(item,index){var src=item.src,text=item.text;return/*#__PURE__*/(0,jsx_runtime.jsxs)(MarksItem,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(MarksImg,{style:{backgroundImage:"url(".concat(src,")")}}),text]},+index);})})]})});});
;// CONCATENATED MODULE: ./src/components/marksGuide/index.ts

// EXTERNAL MODULE: ./src/models/log.ts
var log = __webpack_require__(4395);
;// CONCATENATED MODULE: ./src/components/transContainer/transContainer.tsx
var extensions=[new ChromeExtension()];var theme={transMinWidth:320,transHorizontalPadding:16,transVerticalPadding:10,paragraphHorizontalPadding:12,paragraphVerticalPadding:16,paragraphMarginBottom:16,unfixParagraphContentSticky:false};var TransContainer=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var controller=props.controller,isExpand=props.isExpand,panelHeight=props.panelHeight;var _useRecoilState=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* marksGuideState */.rV),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,2),marksGuide=_useRecoilState2[0],setMarksGuide=_useRecoilState2[1];var tranStyle=(0,_react_18_2_0_react.useMemo)(function(){return{borderRadius:'0 0 12px 12px',background:'#F2F5FB',// transition: 'all 0.2s',
height:isExpand?panelHeight-75:0// minHeight: isExpand ? 485 : 0,
// maxHeight: 645,
};},[isExpand,panelHeight]);var onEvent=function onEvent(e,transId){if(e==='userEditParagraph'){(0,log/* sendLog */.gp)('edit_paragraph',{et:'INPUT',c1:transId});}};return/*#__PURE__*/(0,jsx_runtime.jsx)(Provider,{controller:controller,children:/*#__PURE__*/(0,jsx_runtime.jsx)(Transcription,{enableSelectAlibabaEmployee:false,enableShowSpeaker:false,enableOfflineEditWordTip:false,extensions:extensions,theme:theme,style:tranStyle,renderBefore:function renderBefore(){return marksGuide===0?/*#__PURE__*/(0,jsx_runtime.jsx)(MarksGuide,{changeMarksGuide:/*#__PURE__*/(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(){return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:setMarksGuide(1);_context.next=3;return services/* service */.X.setMarksGuideStatus(1);case 3:case"end":return _context.stop();}},_callee);}))}):null;},onEvent:onEvent})});});
;// CONCATENATED MODULE: ./src/components/transContainer/index.ts

// EXTERNAL MODULE: ./node_modules/_react-draggable@4.4.5@react-draggable/build/cjs/cjs.js
var cjs = __webpack_require__(1710);
var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
// EXTERNAL MODULE: ./node_modules/_react-resizable@3.0.5@react-resizable/index.js
var _react_resizable_3_0_5_react_resizable = __webpack_require__(3350);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.8@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(5448);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.8@dayjs/plugin/duration.js
var duration = __webpack_require__(1376);
var duration_default = /*#__PURE__*/__webpack_require__.n(duration);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/utils.js
function preloadImage(urls) {
  return Promise.all(urls.map(function (url) {
    return new Promise(function (resolve, reject) {
      var img = new Image();
      img.onload = function () {
        resolve(img);
      };
      img.onerror = function (err) {
        reject(err);
      };
      img.src = url;
    });
  }));
}
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/noise-A.js

/* harmony default export */ var noise_A = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".applaudA,.laughA,.musicA,.networkA,.tableA{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-applaudA;animation-duration:1s;animation-delay:0s;animation-iteration-count:1;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-applaudA{0%{width:64px;height:64px;background-image:url(", ");}4.00%{background-position:-64px 0px;}8.00%{background-position:-128px 0px;}12.00%{background-position:-192px 0px;}16.00%{background-position:-256px 0px;}20.00%{background-position:-320px 0px;}24.00%{background-position:-384px 0px;}28.00%{background-position:-448px 0px;}32.00%{background-position:-512px 0px;}36.00%{background-position:-576px 0px;}40.00%{background-position:-640px 0px;}44.00%{background-position:-704px 0px;}48.00%{background-position:-768px 0px;}52.00%{background-position:-832px 0px;}56.00%{background-position:-896px 0px;}60.00%{background-position:-960px 0px;}64.00%{background-position:-1024px 0px;}68.00%{background-position:-1088px 0px;}72.00%{background-position:-1152px 0px;}76.00%{background-position:-1216px 0px;}80.00%{background-position:-1280px 0px;}84.00%{background-position:-1344px 0px;}88.00%{background-position:-1408px 0px;}92.00%{background-position:-1472px 0px;}96.00%,100%{background-position:-1536px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/applaud-B.js

/* harmony default export */ var applaud_B = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".applaudB{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-applaudB;animation-duration:13.6s;animation-delay:0s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-applaudB{0%{width:64px;height:64px;background-image:url(", ");}0.29%{background-position:-64px 0px;}0.59%{background-position:-128px 0px;}0.88%{background-position:-192px 0px;}1.18%{background-position:-256px 0px;}1.47%{background-position:-320px 0px;}1.76%{background-position:-384px 0px;}2.06%{background-position:-448px 0px;}2.35%{background-position:-512px 0px;}2.65%{background-position:-576px 0px;}2.94%{background-position:-640px 0px;}3.24%{background-position:-704px 0px;}3.53%{background-position:-768px 0px;}3.82%{background-position:-832px 0px;}4.12%{background-position:-896px 0px;}4.41%{background-position:-960px 0px;}4.71%{background-position:-1024px 0px;}5.00%{background-position:-1088px 0px;}5.29%{background-position:-1152px 0px;}5.59%{background-position:-1216px 0px;}5.88%{background-position:-1280px 0px;}6.18%{background-position:-1344px 0px;}6.47%{background-position:-1408px 0px;}6.76%{background-position:-1472px 0px;}7.06%{background-position:-1536px 0px;}7.35%{background-position:-1600px 0px;}7.65%{background-position:-1664px 0px;}7.94%{background-position:-1728px 0px;}8.24%{background-position:-1792px 0px;}8.53%{background-position:-1856px 0px;}8.82%{background-position:-1920px 0px;}9.12%{background-position:-1984px 0px;}9.41%{background-position:-2048px 0px;}9.71%{background-position:-2112px 0px;}10.00%{background-position:-2176px 0px;}10.29%{background-position:-2240px 0px;}10.59%{background-position:-2304px 0px;}10.88%{background-position:-2368px 0px;}11.18%{background-position:-2432px 0px;}11.47%{background-position:-2496px 0px;}11.76%{background-position:-2560px 0px;}12.06%{background-position:-2624px 0px;}12.35%{background-position:-2688px 0px;}12.65%{background-position:-2752px 0px;}12.94%{background-position:-2816px 0px;}13.24%{background-position:-2880px 0px;}13.53%{background-position:-2944px 0px;}13.82%{background-position:-3008px 0px;}14.12%{background-position:-3072px 0px;}14.41%{background-position:-3136px 0px;}14.71%{background-position:-3200px 0px;}15.00%{background-position:-3264px 0px;}15.29%{background-position:-3328px 0px;}15.59%{background-position:-3392px 0px;}15.88%{background-position:-3456px 0px;}16.18%{background-position:-3520px 0px;}16.47%{background-position:-3584px 0px;}16.76%{background-position:-3648px 0px;}17.06%{background-position:-3712px 0px;}17.35%{background-position:-3776px 0px;}17.65%{background-position:-3840px 0px;}17.94%{background-position:-3904px 0px;}18.24%{background-position:-3968px 0px;}18.53%{background-position:-4032px 0px;}18.82%{background-position:-4096px 0px;}19.12%{background-position:-4160px 0px;}19.41%{background-position:-4224px 0px;}19.71%{background-position:-4288px 0px;}20.00%{background-position:-4352px 0px;}20.29%{background-position:-4416px 0px;}20.59%{background-position:-4480px 0px;}20.88%{background-position:-4544px 0px;}21.18%{background-position:-4608px 0px;}21.47%{background-position:-4672px 0px;}21.76%{background-position:-4736px 0px;}22.06%{background-position:-4800px 0px;}22.35%{background-position:-4864px 0px;}22.65%{background-position:-4928px 0px;}22.94%{background-position:-4992px 0px;}23.24%{background-position:-5056px 0px;}23.53%{background-position:-5120px 0px;}23.82%{background-position:-5184px 0px;}24.12%{background-position:-5248px 0px;}24.41%{background-position:-5312px 0px;}24.71%{background-position:-5376px 0px;}25.00%{background-position:-5440px 0px;}25.29%{background-position:-5504px 0px;}25.59%{background-position:-5568px 0px;}25.88%{background-position:-5632px 0px;}26.18%{background-position:-5696px 0px;}26.47%{background-position:-5760px 0px;}26.76%{background-position:-5824px 0px;}27.06%{background-position:-5888px 0px;}27.35%{background-position:-5952px 0px;}27.65%{background-position:-6016px 0px;}27.94%{background-position:-6080px 0px;}28.24%{background-position:-6144px 0px;}28.53%{background-position:-6208px 0px;}28.82%{background-position:-6272px 0px;}29.12%{background-position:-6336px 0px;}29.41%{background-position:-6400px 0px;}29.71%{background-position:-6464px 0px;}30.00%{background-position:-6528px 0px;}30.29%{background-position:-6592px 0px;}30.59%{background-position:-6656px 0px;}30.88%{background-position:-6720px 0px;}31.18%{background-position:-6784px 0px;}31.47%{background-position:-6848px 0px;}31.76%{background-position:-6912px 0px;}32.06%{background-position:-6976px 0px;}32.35%{background-position:-7040px 0px;}32.65%{background-position:-7104px 0px;}32.94%{background-position:-7168px 0px;}33.24%{background-position:-7232px 0px;}33.53%{background-position:-7296px 0px;}33.82%{background-position:-7360px 0px;}34.12%{background-position:-7424px 0px;}34.41%{background-position:-7488px 0px;}34.71%{background-position:-7552px 0px;}35.00%{background-position:-7616px 0px;}35.29%{background-position:-7680px 0px;}35.59%{background-position:-7744px 0px;}35.88%{background-position:-7808px 0px;}36.18%{background-position:-7872px 0px;}36.47%{background-position:-7936px 0px;}36.76%{background-position:-8000px 0px;}37.06%{background-position:-8064px 0px;}37.35%{background-position:-8128px 0px;}37.65%{background-position:-8192px 0px;}37.94%{background-position:-8256px 0px;}38.24%{background-position:-8320px 0px;}38.53%{background-position:-8384px 0px;}38.82%{background-position:-8448px 0px;}39.12%{background-position:-8512px 0px;}39.41%{background-position:-8576px 0px;}39.71%{background-position:-8640px 0px;}40.00%{background-position:-8704px 0px;}40.29%{background-position:-8768px 0px;}40.59%{background-position:-8832px 0px;}40.88%{background-position:-8896px 0px;}41.18%{background-position:-8960px 0px;}41.47%{background-position:-9024px 0px;}41.76%{background-position:-9088px 0px;}42.06%{background-position:-9152px 0px;}42.35%{background-position:-9216px 0px;}42.65%{background-position:-9280px 0px;}42.94%{background-position:-9344px 0px;}43.24%{background-position:-9408px 0px;}43.53%{background-position:-9472px 0px;}43.82%{background-position:-9536px 0px;}44.12%{background-position:-9600px 0px;}44.41%{background-position:-9664px 0px;}44.71%{background-position:-9728px 0px;}45.00%{background-position:-9792px 0px;}45.29%{background-position:-9856px 0px;}45.59%{background-position:-9920px 0px;}45.88%{background-position:-9984px 0px;}46.18%{background-position:-10048px 0px;}46.47%{background-position:-10112px 0px;}46.76%{background-position:-10176px 0px;}47.06%{background-position:-10240px 0px;}47.35%{background-position:-10304px 0px;}47.65%{background-position:-10368px 0px;}47.94%{background-position:-10432px 0px;}48.24%{background-position:-10496px 0px;}48.53%{background-position:-10560px 0px;}48.82%{background-position:-10624px 0px;}49.12%{background-position:-10688px 0px;}49.41%{background-position:-10752px 0px;}49.71%{background-position:-10816px 0px;}50.00%{background-position:-10880px 0px;}50.29%{background-position:-10944px 0px;}50.59%{background-position:-11008px 0px;}50.88%{background-position:-11072px 0px;}51.18%{background-position:-11136px 0px;}51.47%{background-position:-11200px 0px;}51.76%{background-position:-11264px 0px;}52.06%{background-position:-11328px 0px;}52.35%{background-position:-11392px 0px;}52.65%{background-position:-11456px 0px;}52.94%{background-position:-11520px 0px;}53.24%{background-position:-11584px 0px;}53.53%{background-position:-11648px 0px;}53.82%{background-position:-11712px 0px;}54.12%{background-position:-11776px 0px;}54.41%{background-position:-11840px 0px;}54.71%{background-position:-11904px 0px;}55.00%{background-position:-11968px 0px;}55.29%{background-position:-12032px 0px;}55.59%{background-position:-12096px 0px;}55.88%{background-position:-12160px 0px;}56.18%{background-position:-12224px 0px;}56.47%{background-position:-12288px 0px;}56.76%{background-position:-12352px 0px;}57.06%{background-position:-12416px 0px;}57.35%{background-position:-12480px 0px;}57.65%{background-position:-12544px 0px;}57.94%{background-position:-12608px 0px;}58.24%{background-position:-12672px 0px;}58.53%{background-position:-12736px 0px;}58.82%{background-position:-12800px 0px;}59.12%{background-position:-12864px 0px;}59.41%{background-position:-12928px 0px;}59.71%{background-position:-12992px 0px;}60.00%{background-position:-13056px 0px;}60.29%{background-position:-13120px 0px;}60.59%{background-position:-13184px 0px;}60.88%{background-position:-13248px 0px;}61.18%{background-position:-13312px 0px;}61.47%{background-position:-13376px 0px;}61.76%{background-position:-13440px 0px;}62.06%{background-position:-13504px 0px;}62.35%{background-position:-13568px 0px;}62.65%{background-position:-13632px 0px;}62.94%{background-position:-13696px 0px;}63.24%{background-position:-13760px 0px;}63.53%{background-position:-13824px 0px;}63.82%{background-position:-13888px 0px;}64.12%{background-position:-13952px 0px;}64.41%{background-position:-14016px 0px;}64.71%{background-position:-14080px 0px;}65.00%{background-position:-14144px 0px;}65.29%{background-position:-14208px 0px;}65.59%{background-position:-14272px 0px;}65.88%{background-position:-14336px 0px;}66.18%{background-position:-14400px 0px;}66.47%{background-position:-14464px 0px;}66.76%{background-position:-14528px 0px;}67.06%{background-position:-14592px 0px;}67.35%{background-position:-14656px 0px;}67.65%{background-position:-14720px 0px;}67.94%{background-position:-14784px 0px;}68.24%{background-position:-14848px 0px;}68.53%{background-position:-14912px 0px;}68.82%{background-position:-14976px 0px;}69.12%{background-position:-15040px 0px;}69.41%{background-position:-15104px 0px;}69.71%{background-position:-15168px 0px;}70.00%{background-position:-15232px 0px;}70.29%{background-position:-15296px 0px;}70.59%{background-position:-15360px 0px;}70.88%{background-position:-15424px 0px;}71.18%{background-position:-15488px 0px;}71.47%{background-position:-15552px 0px;}71.76%{background-position:-15616px 0px;}72.06%{background-position:-15680px 0px;}72.35%{background-position:-15744px 0px;}72.65%{background-position:-15808px 0px;}72.94%{background-position:-15872px 0px;}73.24%{background-position:-15936px 0px;}73.53%{background-position:-16000px 0px;}73.82%{background-position:-16064px 0px;}74.12%{background-position:-16128px 0px;}74.41%{background-position:-16192px 0px;}74.71%{background-position:-16256px 0px;}75.00%{background-position:-16320px 0px;}75.29%{background-position:-16384px 0px;}75.59%{background-position:-16448px 0px;}75.88%{background-position:-16512px 0px;}76.18%{background-position:-16576px 0px;}76.47%{background-position:-16640px 0px;}76.76%{background-position:-16704px 0px;}77.06%{background-position:-16768px 0px;}77.35%{background-position:-16832px 0px;}77.65%{background-position:-16896px 0px;}77.94%{background-position:-16960px 0px;}78.24%{background-position:-17024px 0px;}78.53%{background-position:-17088px 0px;}78.82%{background-position:-17152px 0px;}79.12%{background-position:-17216px 0px;}79.41%{background-position:-17280px 0px;}79.71%{background-position:-17344px 0px;}80.00%{background-position:-17408px 0px;}80.29%{background-position:-17472px 0px;}80.59%{background-position:-17536px 0px;}80.88%{background-position:-17600px 0px;}81.18%{background-position:-17664px 0px;}81.47%{background-position:-17728px 0px;}81.76%{background-position:-17792px 0px;}82.06%{background-position:-17856px 0px;}82.35%{background-position:-17920px 0px;}82.65%{background-position:-17984px 0px;}82.94%{background-position:-18048px 0px;}83.24%{background-position:-18112px 0px;}83.53%{background-position:-18176px 0px;}83.82%{background-position:-18240px 0px;}84.12%{background-position:-18304px 0px;}84.41%{background-position:-18368px 0px;}84.71%{background-position:-18432px 0px;}85.00%{background-position:-18496px 0px;}85.29%{background-position:-18560px 0px;}85.59%{background-position:-18624px 0px;}85.88%{background-position:-18688px 0px;}86.18%{background-position:-18752px 0px;}86.47%{background-position:-18816px 0px;}86.76%{background-position:-18880px 0px;}87.06%{background-position:-18944px 0px;}87.35%{background-position:-19008px 0px;}87.65%{background-position:-19072px 0px;}87.94%{background-position:-19136px 0px;}88.24%{background-position:-19200px 0px;}88.53%{background-position:-19264px 0px;}88.82%{background-position:-19328px 0px;}89.12%{background-position:-19392px 0px;}89.41%{background-position:-19456px 0px;}89.71%{background-position:-19520px 0px;}90.00%{background-position:-19584px 0px;}90.29%{background-position:-19648px 0px;}90.59%{background-position:-19712px 0px;}90.88%{background-position:-19776px 0px;}91.18%{background-position:-19840px 0px;}91.47%{background-position:-19904px 0px;}91.76%{background-position:-19968px 0px;}92.06%{background-position:-20032px 0px;}92.35%{background-position:-20096px 0px;}92.65%{background-position:-20160px 0px;}92.94%{background-position:-20224px 0px;}93.24%{background-position:-20288px 0px;}93.53%{background-position:-20352px 0px;}93.82%{background-position:-20416px 0px;}94.12%{background-position:-20480px 0px;}94.41%{background-position:-20544px 0px;}94.71%{background-position:-20608px 0px;}95.00%{background-position:-20672px 0px;}95.29%{background-position:-20736px 0px;}95.59%{background-position:-20800px 0px;}95.88%{background-position:-20864px 0px;}96.18%{background-position:-20928px 0px;}96.47%{background-position:-20992px 0px;}96.76%{background-position:-21056px 0px;}97.06%{background-position:-21120px 0px;}97.35%{background-position:-21184px 0px;}97.65%{background-position:-21248px 0px;}97.94%{background-position:-21312px 0px;}98.24%{background-position:-21376px 0px;}98.53%{background-position:-21440px 0px;}98.82%{background-position:-21504px 0px;}99.12%{background-position:-21568px 0px;}99.41%{background-position:-21632px 0px;}99.71%,100%{background-position:-21696px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/noise-C.js

/* harmony default export */ var noise_C = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".applaudC,.laughC,.musicC,.networkC,.tableC{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-applaudC;animation-duration:0.8s;animation-delay:0s;animation-iteration-count:1;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-applaudC{0%{width:64px;height:64px;background-image:url(", ");}5.00%{background-position:-64px 0px;}10.00%{background-position:-128px 0px;}15.00%{background-position:-192px 0px;}20.00%{background-position:-256px 0px;}25.00%{background-position:-320px 0px;}30.00%{background-position:-384px 0px;}35.00%{background-position:-448px 0px;}40.00%{background-position:-512px 0px;}45.00%{background-position:-576px 0px;}50.00%{background-position:-640px 0px;}55.00%{background-position:-704px 0px;}60.00%{background-position:-768px 0px;}65.00%{background-position:-832px 0px;}70.00%{background-position:-896px 0px;}75.00%{background-position:-960px 0px;}80.00%{background-position:-1024px 0px;}85.00%{background-position:-1088px 0px;}90.00%{background-position:-1152px 0px;}95.00%,100%{background-position:-1216px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/stop-A.js

/* harmony default export */ var stop_A = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".stopA{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-stopA;animation-duration:1.24s;animation-delay:0s;animation-iteration-count:1;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-stopA{0%{width:64px;height:64px;background-image:url(", ");}3.23%{background-position:-64px 0px;}6.45%{background-position:-128px 0px;}9.68%{background-position:-192px 0px;}12.90%{background-position:-256px 0px;}16.13%{background-position:-320px 0px;}19.35%{background-position:-384px 0px;}22.58%{background-position:-448px 0px;}25.81%{background-position:-512px 0px;}29.03%{background-position:-576px 0px;}32.26%{background-position:-640px 0px;}35.48%{background-position:-704px 0px;}38.71%{background-position:-768px 0px;}41.94%{background-position:-832px 0px;}45.16%{background-position:-896px 0px;}48.39%{background-position:-960px 0px;}51.61%{background-position:-1024px 0px;}54.84%{background-position:-1088px 0px;}58.06%{background-position:-1152px 0px;}61.29%{background-position:-1216px 0px;}64.52%{background-position:-1280px 0px;}67.74%{background-position:-1344px 0px;}70.97%{background-position:-1408px 0px;}74.19%{background-position:-1472px 0px;}77.42%{background-position:-1536px 0px;}80.65%{background-position:-1600px 0px;}83.87%{background-position:-1664px 0px;}87.10%{background-position:-1728px 0px;}90.32%{background-position:-1792px 0px;}93.55%{background-position:-1856px 0px;}96.77%,100%{background-position:-1920px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/stop-B.js

/* harmony default export */ var stop_B = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".stopB{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-stopB;animation-duration:0.04s;animation-delay:0s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-stopB{0%,100%{width:64px;height:64px;background-image:url(", ");}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/stop-C.js

/* harmony default export */ var stop_C = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".stopC{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-stopC;animation-duration:1.24s;animation-delay:0s;animation-iteration-count:1;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-stopC{0%{width:64px;height:64px;background-image:url(", ");}3.23%{background-position:-64px 0px;}6.45%{background-position:-128px 0px;}9.68%{background-position:-192px 0px;}12.90%{background-position:-256px 0px;}16.13%{background-position:-320px 0px;}19.35%{background-position:-384px 0px;}22.58%{background-position:-448px 0px;}25.81%{background-position:-512px 0px;}29.03%{background-position:-576px 0px;}32.26%{background-position:-640px 0px;}35.48%{background-position:-704px 0px;}38.71%{background-position:-768px 0px;}41.94%{background-position:-832px 0px;}45.16%{background-position:-896px 0px;}48.39%{background-position:-960px 0px;}51.61%{background-position:-1024px 0px;}54.84%{background-position:-1088px 0px;}58.06%{background-position:-1152px 0px;}61.29%{background-position:-1216px 0px;}64.52%{background-position:-1280px 0px;}67.74%{background-position:-1344px 0px;}70.97%{background-position:-1408px 0px;}74.19%{background-position:-1472px 0px;}77.42%{background-position:-1536px 0px;}80.65%{background-position:-1600px 0px;}83.87%{background-position:-1664px 0px;}87.10%{background-position:-1728px 0px;}90.32%{background-position:-1792px 0px;}93.55%{background-position:-1856px 0px;}96.77%,100%{background-position:-1920px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/recording-B.js

/* harmony default export */ var recording_B = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".recordingB{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-recordingB;animation-duration:3.6s;animation-delay:0s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-recordingB{0%{width:64px;height:64px;background-image:url(", ");}1.11%{background-position:-64px 0px;}2.22%{background-position:-128px 0px;}3.33%{background-position:-192px 0px;}4.44%{background-position:-256px 0px;}5.56%{background-position:-320px 0px;}6.67%{background-position:-384px 0px;}7.78%{background-position:-448px 0px;}8.89%{background-position:-512px 0px;}10.00%{background-position:-576px 0px;}11.11%{background-position:-640px 0px;}12.22%{background-position:-704px 0px;}13.33%{background-position:-768px 0px;}14.44%{background-position:-832px 0px;}15.56%{background-position:-896px 0px;}16.67%{background-position:-960px 0px;}17.78%{background-position:-1024px 0px;}18.89%{background-position:-1088px 0px;}20.00%{background-position:-1152px 0px;}21.11%{background-position:-1216px 0px;}22.22%{background-position:-1280px 0px;}23.33%{background-position:-1344px 0px;}24.44%{background-position:-1408px 0px;}25.56%{background-position:-1472px 0px;}26.67%{background-position:-1536px 0px;}27.78%{background-position:-1600px 0px;}28.89%{background-position:-1664px 0px;}30.00%{background-position:-1728px 0px;}31.11%{background-position:-1792px 0px;}32.22%{background-position:-1856px 0px;}33.33%{background-position:-1920px 0px;}34.44%{background-position:-1984px 0px;}35.56%{background-position:-2048px 0px;}36.67%{background-position:-2112px 0px;}37.78%{background-position:-2176px 0px;}38.89%{background-position:-2240px 0px;}40.00%{background-position:-2304px 0px;}41.11%{background-position:-2368px 0px;}42.22%{background-position:-2432px 0px;}43.33%{background-position:-2496px 0px;}44.44%{background-position:-2560px 0px;}45.56%{background-position:-2624px 0px;}46.67%{background-position:-2688px 0px;}47.78%{background-position:-2752px 0px;}48.89%{background-position:-2816px 0px;}50.00%{background-position:-2880px 0px;}51.11%{background-position:-2944px 0px;}52.22%{background-position:-3008px 0px;}53.33%{background-position:-3072px 0px;}54.44%{background-position:-3136px 0px;}55.56%{background-position:-3200px 0px;}56.67%{background-position:-3264px 0px;}57.78%{background-position:-3328px 0px;}58.89%{background-position:-3392px 0px;}60.00%{background-position:-3456px 0px;}61.11%{background-position:-3520px 0px;}62.22%{background-position:-3584px 0px;}63.33%{background-position:-3648px 0px;}64.44%{background-position:-3712px 0px;}65.56%{background-position:-3776px 0px;}66.67%{background-position:-3840px 0px;}67.78%{background-position:-3904px 0px;}68.89%{background-position:-3968px 0px;}70.00%{background-position:-4032px 0px;}71.11%{background-position:-4096px 0px;}72.22%{background-position:-4160px 0px;}73.33%{background-position:-4224px 0px;}74.44%{background-position:-4288px 0px;}75.56%{background-position:-4352px 0px;}76.67%{background-position:-4416px 0px;}77.78%{background-position:-4480px 0px;}78.89%{background-position:-4544px 0px;}80.00%{background-position:-4608px 0px;}81.11%{background-position:-4672px 0px;}82.22%{background-position:-4736px 0px;}83.33%{background-position:-4800px 0px;}84.44%{background-position:-4864px 0px;}85.56%{background-position:-4928px 0px;}86.67%{background-position:-4992px 0px;}87.78%{background-position:-5056px 0px;}88.89%{background-position:-5120px 0px;}90.00%{background-position:-5184px 0px;}91.11%{background-position:-5248px 0px;}92.22%{background-position:-5312px 0px;}93.33%{background-position:-5376px 0px;}94.44%{background-position:-5440px 0px;}95.56%{background-position:-5504px 0px;}96.67%{background-position:-5568px 0px;}97.78%{background-position:-5632px 0px;}98.89%,100%{background-position:-5696px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/music-B.js

/* harmony default export */ var music_B = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".musicB{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-musicB;animation-duration:13.6s;animation-delay:0s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-musicB{0%{width:64px;height:64px;background-image:url(", ");}0.29%{background-position:-64px 0px;}0.59%{background-position:-128px 0px;}0.88%{background-position:-192px 0px;}1.18%{background-position:-256px 0px;}1.47%{background-position:-320px 0px;}1.76%{background-position:-384px 0px;}2.06%{background-position:-448px 0px;}2.35%{background-position:-512px 0px;}2.65%{background-position:-576px 0px;}2.94%{background-position:-640px 0px;}3.24%{background-position:-704px 0px;}3.53%{background-position:-768px 0px;}3.82%{background-position:-832px 0px;}4.12%{background-position:-896px 0px;}4.41%{background-position:-960px 0px;}4.71%{background-position:-1024px 0px;}5.00%{background-position:-1088px 0px;}5.29%{background-position:-1152px 0px;}5.59%{background-position:-1216px 0px;}5.88%{background-position:-1280px 0px;}6.18%{background-position:-1344px 0px;}6.47%{background-position:-1408px 0px;}6.76%{background-position:-1472px 0px;}7.06%{background-position:-1536px 0px;}7.35%{background-position:-1600px 0px;}7.65%{background-position:-1664px 0px;}7.94%{background-position:-1728px 0px;}8.24%{background-position:-1792px 0px;}8.53%{background-position:-1856px 0px;}8.82%{background-position:-1920px 0px;}9.12%{background-position:-1984px 0px;}9.41%{background-position:-2048px 0px;}9.71%{background-position:-2112px 0px;}10.00%{background-position:-2176px 0px;}10.29%{background-position:-2240px 0px;}10.59%{background-position:-2304px 0px;}10.88%{background-position:-2368px 0px;}11.18%{background-position:-2432px 0px;}11.47%{background-position:-2496px 0px;}11.76%{background-position:-2560px 0px;}12.06%{background-position:-2624px 0px;}12.35%{background-position:-2688px 0px;}12.65%{background-position:-2752px 0px;}12.94%{background-position:-2816px 0px;}13.24%{background-position:-2880px 0px;}13.53%{background-position:-2944px 0px;}13.82%{background-position:-3008px 0px;}14.12%{background-position:-3072px 0px;}14.41%{background-position:-3136px 0px;}14.71%{background-position:-3200px 0px;}15.00%{background-position:-3264px 0px;}15.29%{background-position:-3328px 0px;}15.59%{background-position:-3392px 0px;}15.88%{background-position:-3456px 0px;}16.18%{background-position:-3520px 0px;}16.47%{background-position:-3584px 0px;}16.76%{background-position:-3648px 0px;}17.06%{background-position:-3712px 0px;}17.35%{background-position:-3776px 0px;}17.65%{background-position:-3840px 0px;}17.94%{background-position:-3904px 0px;}18.24%{background-position:-3968px 0px;}18.53%{background-position:-4032px 0px;}18.82%{background-position:-4096px 0px;}19.12%{background-position:-4160px 0px;}19.41%{background-position:-4224px 0px;}19.71%{background-position:-4288px 0px;}20.00%{background-position:-4352px 0px;}20.29%{background-position:-4416px 0px;}20.59%{background-position:-4480px 0px;}20.88%{background-position:-4544px 0px;}21.18%{background-position:-4608px 0px;}21.47%{background-position:-4672px 0px;}21.76%{background-position:-4736px 0px;}22.06%{background-position:-4800px 0px;}22.35%{background-position:-4864px 0px;}22.65%{background-position:-4928px 0px;}22.94%{background-position:-4992px 0px;}23.24%{background-position:-5056px 0px;}23.53%{background-position:-5120px 0px;}23.82%{background-position:-5184px 0px;}24.12%{background-position:-5248px 0px;}24.41%{background-position:-5312px 0px;}24.71%{background-position:-5376px 0px;}25.00%{background-position:-5440px 0px;}25.29%{background-position:-5504px 0px;}25.59%{background-position:-5568px 0px;}25.88%{background-position:-5632px 0px;}26.18%{background-position:-5696px 0px;}26.47%{background-position:-5760px 0px;}26.76%{background-position:-5824px 0px;}27.06%{background-position:-5888px 0px;}27.35%{background-position:-5952px 0px;}27.65%{background-position:-6016px 0px;}27.94%{background-position:-6080px 0px;}28.24%{background-position:-6144px 0px;}28.53%{background-position:-6208px 0px;}28.82%{background-position:-6272px 0px;}29.12%{background-position:-6336px 0px;}29.41%{background-position:-6400px 0px;}29.71%{background-position:-6464px 0px;}30.00%{background-position:-6528px 0px;}30.29%{background-position:-6592px 0px;}30.59%{background-position:-6656px 0px;}30.88%{background-position:-6720px 0px;}31.18%{background-position:-6784px 0px;}31.47%{background-position:-6848px 0px;}31.76%{background-position:-6912px 0px;}32.06%{background-position:-6976px 0px;}32.35%{background-position:-7040px 0px;}32.65%{background-position:-7104px 0px;}32.94%{background-position:-7168px 0px;}33.24%{background-position:-7232px 0px;}33.53%{background-position:-7296px 0px;}33.82%{background-position:-7360px 0px;}34.12%{background-position:-7424px 0px;}34.41%{background-position:-7488px 0px;}34.71%{background-position:-7552px 0px;}35.00%{background-position:-7616px 0px;}35.29%{background-position:-7680px 0px;}35.59%{background-position:-7744px 0px;}35.88%{background-position:-7808px 0px;}36.18%{background-position:-7872px 0px;}36.47%{background-position:-7936px 0px;}36.76%{background-position:-8000px 0px;}37.06%{background-position:-8064px 0px;}37.35%{background-position:-8128px 0px;}37.65%{background-position:-8192px 0px;}37.94%{background-position:-8256px 0px;}38.24%{background-position:-8320px 0px;}38.53%{background-position:-8384px 0px;}38.82%{background-position:-8448px 0px;}39.12%{background-position:-8512px 0px;}39.41%{background-position:-8576px 0px;}39.71%{background-position:-8640px 0px;}40.00%{background-position:-8704px 0px;}40.29%{background-position:-8768px 0px;}40.59%{background-position:-8832px 0px;}40.88%{background-position:-8896px 0px;}41.18%{background-position:-8960px 0px;}41.47%{background-position:-9024px 0px;}41.76%{background-position:-9088px 0px;}42.06%{background-position:-9152px 0px;}42.35%{background-position:-9216px 0px;}42.65%{background-position:-9280px 0px;}42.94%{background-position:-9344px 0px;}43.24%{background-position:-9408px 0px;}43.53%{background-position:-9472px 0px;}43.82%{background-position:-9536px 0px;}44.12%{background-position:-9600px 0px;}44.41%{background-position:-9664px 0px;}44.71%{background-position:-9728px 0px;}45.00%{background-position:-9792px 0px;}45.29%{background-position:-9856px 0px;}45.59%{background-position:-9920px 0px;}45.88%{background-position:-9984px 0px;}46.18%{background-position:-10048px 0px;}46.47%{background-position:-10112px 0px;}46.76%{background-position:-10176px 0px;}47.06%{background-position:-10240px 0px;}47.35%{background-position:-10304px 0px;}47.65%{background-position:-10368px 0px;}47.94%{background-position:-10432px 0px;}48.24%{background-position:-10496px 0px;}48.53%{background-position:-10560px 0px;}48.82%{background-position:-10624px 0px;}49.12%{background-position:-10688px 0px;}49.41%{background-position:-10752px 0px;}49.71%{background-position:-10816px 0px;}50.00%{background-position:-10880px 0px;}50.29%{background-position:-10944px 0px;}50.59%{background-position:-11008px 0px;}50.88%{background-position:-11072px 0px;}51.18%{background-position:-11136px 0px;}51.47%{background-position:-11200px 0px;}51.76%{background-position:-11264px 0px;}52.06%{background-position:-11328px 0px;}52.35%{background-position:-11392px 0px;}52.65%{background-position:-11456px 0px;}52.94%{background-position:-11520px 0px;}53.24%{background-position:-11584px 0px;}53.53%{background-position:-11648px 0px;}53.82%{background-position:-11712px 0px;}54.12%{background-position:-11776px 0px;}54.41%{background-position:-11840px 0px;}54.71%{background-position:-11904px 0px;}55.00%{background-position:-11968px 0px;}55.29%{background-position:-12032px 0px;}55.59%{background-position:-12096px 0px;}55.88%{background-position:-12160px 0px;}56.18%{background-position:-12224px 0px;}56.47%{background-position:-12288px 0px;}56.76%{background-position:-12352px 0px;}57.06%{background-position:-12416px 0px;}57.35%{background-position:-12480px 0px;}57.65%{background-position:-12544px 0px;}57.94%{background-position:-12608px 0px;}58.24%{background-position:-12672px 0px;}58.53%{background-position:-12736px 0px;}58.82%{background-position:-12800px 0px;}59.12%{background-position:-12864px 0px;}59.41%{background-position:-12928px 0px;}59.71%{background-position:-12992px 0px;}60.00%{background-position:-13056px 0px;}60.29%{background-position:-13120px 0px;}60.59%{background-position:-13184px 0px;}60.88%{background-position:-13248px 0px;}61.18%{background-position:-13312px 0px;}61.47%{background-position:-13376px 0px;}61.76%{background-position:-13440px 0px;}62.06%{background-position:-13504px 0px;}62.35%{background-position:-13568px 0px;}62.65%{background-position:-13632px 0px;}62.94%{background-position:-13696px 0px;}63.24%{background-position:-13760px 0px;}63.53%{background-position:-13824px 0px;}63.82%{background-position:-13888px 0px;}64.12%{background-position:-13952px 0px;}64.41%{background-position:-14016px 0px;}64.71%{background-position:-14080px 0px;}65.00%{background-position:-14144px 0px;}65.29%{background-position:-14208px 0px;}65.59%{background-position:-14272px 0px;}65.88%{background-position:-14336px 0px;}66.18%{background-position:-14400px 0px;}66.47%{background-position:-14464px 0px;}66.76%{background-position:-14528px 0px;}67.06%{background-position:-14592px 0px;}67.35%{background-position:-14656px 0px;}67.65%{background-position:-14720px 0px;}67.94%{background-position:-14784px 0px;}68.24%{background-position:-14848px 0px;}68.53%{background-position:-14912px 0px;}68.82%{background-position:-14976px 0px;}69.12%{background-position:-15040px 0px;}69.41%{background-position:-15104px 0px;}69.71%{background-position:-15168px 0px;}70.00%{background-position:-15232px 0px;}70.29%{background-position:-15296px 0px;}70.59%{background-position:-15360px 0px;}70.88%{background-position:-15424px 0px;}71.18%{background-position:-15488px 0px;}71.47%{background-position:-15552px 0px;}71.76%{background-position:-15616px 0px;}72.06%{background-position:-15680px 0px;}72.35%{background-position:-15744px 0px;}72.65%{background-position:-15808px 0px;}72.94%{background-position:-15872px 0px;}73.24%{background-position:-15936px 0px;}73.53%{background-position:-16000px 0px;}73.82%{background-position:-16064px 0px;}74.12%{background-position:-16128px 0px;}74.41%{background-position:-16192px 0px;}74.71%{background-position:-16256px 0px;}75.00%{background-position:-16320px 0px;}75.29%{background-position:-16384px 0px;}75.59%{background-position:-16448px 0px;}75.88%{background-position:-16512px 0px;}76.18%{background-position:-16576px 0px;}76.47%{background-position:-16640px 0px;}76.76%{background-position:-16704px 0px;}77.06%{background-position:-16768px 0px;}77.35%{background-position:-16832px 0px;}77.65%{background-position:-16896px 0px;}77.94%{background-position:-16960px 0px;}78.24%{background-position:-17024px 0px;}78.53%{background-position:-17088px 0px;}78.82%{background-position:-17152px 0px;}79.12%{background-position:-17216px 0px;}79.41%{background-position:-17280px 0px;}79.71%{background-position:-17344px 0px;}80.00%{background-position:-17408px 0px;}80.29%{background-position:-17472px 0px;}80.59%{background-position:-17536px 0px;}80.88%{background-position:-17600px 0px;}81.18%{background-position:-17664px 0px;}81.47%{background-position:-17728px 0px;}81.76%{background-position:-17792px 0px;}82.06%{background-position:-17856px 0px;}82.35%{background-position:-17920px 0px;}82.65%{background-position:-17984px 0px;}82.94%{background-position:-18048px 0px;}83.24%{background-position:-18112px 0px;}83.53%{background-position:-18176px 0px;}83.82%{background-position:-18240px 0px;}84.12%{background-position:-18304px 0px;}84.41%{background-position:-18368px 0px;}84.71%{background-position:-18432px 0px;}85.00%{background-position:-18496px 0px;}85.29%{background-position:-18560px 0px;}85.59%{background-position:-18624px 0px;}85.88%{background-position:-18688px 0px;}86.18%{background-position:-18752px 0px;}86.47%{background-position:-18816px 0px;}86.76%{background-position:-18880px 0px;}87.06%{background-position:-18944px 0px;}87.35%{background-position:-19008px 0px;}87.65%{background-position:-19072px 0px;}87.94%{background-position:-19136px 0px;}88.24%{background-position:-19200px 0px;}88.53%{background-position:-19264px 0px;}88.82%{background-position:-19328px 0px;}89.12%{background-position:-19392px 0px;}89.41%{background-position:-19456px 0px;}89.71%{background-position:-19520px 0px;}90.00%{background-position:-19584px 0px;}90.29%{background-position:-19648px 0px;}90.59%{background-position:-19712px 0px;}90.88%{background-position:-19776px 0px;}91.18%{background-position:-19840px 0px;}91.47%{background-position:-19904px 0px;}91.76%{background-position:-19968px 0px;}92.06%{background-position:-20032px 0px;}92.35%{background-position:-20096px 0px;}92.65%{background-position:-20160px 0px;}92.94%{background-position:-20224px 0px;}93.24%{background-position:-20288px 0px;}93.53%{background-position:-20352px 0px;}93.82%{background-position:-20416px 0px;}94.12%{background-position:-20480px 0px;}94.41%{background-position:-20544px 0px;}94.71%{background-position:-20608px 0px;}95.00%{background-position:-20672px 0px;}95.29%{background-position:-20736px 0px;}95.59%{background-position:-20800px 0px;}95.88%{background-position:-20864px 0px;}96.18%{background-position:-20928px 0px;}96.47%{background-position:-20992px 0px;}96.76%{background-position:-21056px 0px;}97.06%{background-position:-21120px 0px;}97.35%{background-position:-21184px 0px;}97.65%{background-position:-21248px 0px;}97.94%{background-position:-21312px 0px;}98.24%{background-position:-21376px 0px;}98.53%{background-position:-21440px 0px;}98.82%{background-position:-21504px 0px;}99.12%{background-position:-21568px 0px;}99.41%{background-position:-21632px 0px;}99.71%,100%{background-position:-21696px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/table-B.js

/* harmony default export */ var table_B = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".tableB{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-tableB;animation-duration:13.6s;animation-delay:0s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-tableB{0%{width:64px;height:64px;background-image:url(", ");}0.29%{background-position:-64px 0px;}0.59%{background-position:-128px 0px;}0.88%{background-position:-192px 0px;}1.18%{background-position:-256px 0px;}1.47%{background-position:-320px 0px;}1.76%{background-position:-384px 0px;}2.06%{background-position:-448px 0px;}2.35%{background-position:-512px 0px;}2.65%{background-position:-576px 0px;}2.94%{background-position:-640px 0px;}3.24%{background-position:-704px 0px;}3.53%{background-position:-768px 0px;}3.82%{background-position:-832px 0px;}4.12%{background-position:-896px 0px;}4.41%{background-position:-960px 0px;}4.71%{background-position:-1024px 0px;}5.00%{background-position:-1088px 0px;}5.29%{background-position:-1152px 0px;}5.59%{background-position:-1216px 0px;}5.88%{background-position:-1280px 0px;}6.18%{background-position:-1344px 0px;}6.47%{background-position:-1408px 0px;}6.76%{background-position:-1472px 0px;}7.06%{background-position:-1536px 0px;}7.35%{background-position:-1600px 0px;}7.65%{background-position:-1664px 0px;}7.94%{background-position:-1728px 0px;}8.24%{background-position:-1792px 0px;}8.53%{background-position:-1856px 0px;}8.82%{background-position:-1920px 0px;}9.12%{background-position:-1984px 0px;}9.41%{background-position:-2048px 0px;}9.71%{background-position:-2112px 0px;}10.00%{background-position:-2176px 0px;}10.29%{background-position:-2240px 0px;}10.59%{background-position:-2304px 0px;}10.88%{background-position:-2368px 0px;}11.18%{background-position:-2432px 0px;}11.47%{background-position:-2496px 0px;}11.76%{background-position:-2560px 0px;}12.06%{background-position:-2624px 0px;}12.35%{background-position:-2688px 0px;}12.65%{background-position:-2752px 0px;}12.94%{background-position:-2816px 0px;}13.24%{background-position:-2880px 0px;}13.53%{background-position:-2944px 0px;}13.82%{background-position:-3008px 0px;}14.12%{background-position:-3072px 0px;}14.41%{background-position:-3136px 0px;}14.71%{background-position:-3200px 0px;}15.00%{background-position:-3264px 0px;}15.29%{background-position:-3328px 0px;}15.59%{background-position:-3392px 0px;}15.88%{background-position:-3456px 0px;}16.18%{background-position:-3520px 0px;}16.47%{background-position:-3584px 0px;}16.76%{background-position:-3648px 0px;}17.06%{background-position:-3712px 0px;}17.35%{background-position:-3776px 0px;}17.65%{background-position:-3840px 0px;}17.94%{background-position:-3904px 0px;}18.24%{background-position:-3968px 0px;}18.53%{background-position:-4032px 0px;}18.82%{background-position:-4096px 0px;}19.12%{background-position:-4160px 0px;}19.41%{background-position:-4224px 0px;}19.71%{background-position:-4288px 0px;}20.00%{background-position:-4352px 0px;}20.29%{background-position:-4416px 0px;}20.59%{background-position:-4480px 0px;}20.88%{background-position:-4544px 0px;}21.18%{background-position:-4608px 0px;}21.47%{background-position:-4672px 0px;}21.76%{background-position:-4736px 0px;}22.06%{background-position:-4800px 0px;}22.35%{background-position:-4864px 0px;}22.65%{background-position:-4928px 0px;}22.94%{background-position:-4992px 0px;}23.24%{background-position:-5056px 0px;}23.53%{background-position:-5120px 0px;}23.82%{background-position:-5184px 0px;}24.12%{background-position:-5248px 0px;}24.41%{background-position:-5312px 0px;}24.71%{background-position:-5376px 0px;}25.00%{background-position:-5440px 0px;}25.29%{background-position:-5504px 0px;}25.59%{background-position:-5568px 0px;}25.88%{background-position:-5632px 0px;}26.18%{background-position:-5696px 0px;}26.47%{background-position:-5760px 0px;}26.76%{background-position:-5824px 0px;}27.06%{background-position:-5888px 0px;}27.35%{background-position:-5952px 0px;}27.65%{background-position:-6016px 0px;}27.94%{background-position:-6080px 0px;}28.24%{background-position:-6144px 0px;}28.53%{background-position:-6208px 0px;}28.82%{background-position:-6272px 0px;}29.12%{background-position:-6336px 0px;}29.41%{background-position:-6400px 0px;}29.71%{background-position:-6464px 0px;}30.00%{background-position:-6528px 0px;}30.29%{background-position:-6592px 0px;}30.59%{background-position:-6656px 0px;}30.88%{background-position:-6720px 0px;}31.18%{background-position:-6784px 0px;}31.47%{background-position:-6848px 0px;}31.76%{background-position:-6912px 0px;}32.06%{background-position:-6976px 0px;}32.35%{background-position:-7040px 0px;}32.65%{background-position:-7104px 0px;}32.94%{background-position:-7168px 0px;}33.24%{background-position:-7232px 0px;}33.53%{background-position:-7296px 0px;}33.82%{background-position:-7360px 0px;}34.12%{background-position:-7424px 0px;}34.41%{background-position:-7488px 0px;}34.71%{background-position:-7552px 0px;}35.00%{background-position:-7616px 0px;}35.29%{background-position:-7680px 0px;}35.59%{background-position:-7744px 0px;}35.88%{background-position:-7808px 0px;}36.18%{background-position:-7872px 0px;}36.47%{background-position:-7936px 0px;}36.76%{background-position:-8000px 0px;}37.06%{background-position:-8064px 0px;}37.35%{background-position:-8128px 0px;}37.65%{background-position:-8192px 0px;}37.94%{background-position:-8256px 0px;}38.24%{background-position:-8320px 0px;}38.53%{background-position:-8384px 0px;}38.82%{background-position:-8448px 0px;}39.12%{background-position:-8512px 0px;}39.41%{background-position:-8576px 0px;}39.71%{background-position:-8640px 0px;}40.00%{background-position:-8704px 0px;}40.29%{background-position:-8768px 0px;}40.59%{background-position:-8832px 0px;}40.88%{background-position:-8896px 0px;}41.18%{background-position:-8960px 0px;}41.47%{background-position:-9024px 0px;}41.76%{background-position:-9088px 0px;}42.06%{background-position:-9152px 0px;}42.35%{background-position:-9216px 0px;}42.65%{background-position:-9280px 0px;}42.94%{background-position:-9344px 0px;}43.24%{background-position:-9408px 0px;}43.53%{background-position:-9472px 0px;}43.82%{background-position:-9536px 0px;}44.12%{background-position:-9600px 0px;}44.41%{background-position:-9664px 0px;}44.71%{background-position:-9728px 0px;}45.00%{background-position:-9792px 0px;}45.29%{background-position:-9856px 0px;}45.59%{background-position:-9920px 0px;}45.88%{background-position:-9984px 0px;}46.18%{background-position:-10048px 0px;}46.47%{background-position:-10112px 0px;}46.76%{background-position:-10176px 0px;}47.06%{background-position:-10240px 0px;}47.35%{background-position:-10304px 0px;}47.65%{background-position:-10368px 0px;}47.94%{background-position:-10432px 0px;}48.24%{background-position:-10496px 0px;}48.53%{background-position:-10560px 0px;}48.82%{background-position:-10624px 0px;}49.12%{background-position:-10688px 0px;}49.41%{background-position:-10752px 0px;}49.71%{background-position:-10816px 0px;}50.00%{background-position:-10880px 0px;}50.29%{background-position:-10944px 0px;}50.59%{background-position:-11008px 0px;}50.88%{background-position:-11072px 0px;}51.18%{background-position:-11136px 0px;}51.47%{background-position:-11200px 0px;}51.76%{background-position:-11264px 0px;}52.06%{background-position:-11328px 0px;}52.35%{background-position:-11392px 0px;}52.65%{background-position:-11456px 0px;}52.94%{background-position:-11520px 0px;}53.24%{background-position:-11584px 0px;}53.53%{background-position:-11648px 0px;}53.82%{background-position:-11712px 0px;}54.12%{background-position:-11776px 0px;}54.41%{background-position:-11840px 0px;}54.71%{background-position:-11904px 0px;}55.00%{background-position:-11968px 0px;}55.29%{background-position:-12032px 0px;}55.59%{background-position:-12096px 0px;}55.88%{background-position:-12160px 0px;}56.18%{background-position:-12224px 0px;}56.47%{background-position:-12288px 0px;}56.76%{background-position:-12352px 0px;}57.06%{background-position:-12416px 0px;}57.35%{background-position:-12480px 0px;}57.65%{background-position:-12544px 0px;}57.94%{background-position:-12608px 0px;}58.24%{background-position:-12672px 0px;}58.53%{background-position:-12736px 0px;}58.82%{background-position:-12800px 0px;}59.12%{background-position:-12864px 0px;}59.41%{background-position:-12928px 0px;}59.71%{background-position:-12992px 0px;}60.00%{background-position:-13056px 0px;}60.29%{background-position:-13120px 0px;}60.59%{background-position:-13184px 0px;}60.88%{background-position:-13248px 0px;}61.18%{background-position:-13312px 0px;}61.47%{background-position:-13376px 0px;}61.76%{background-position:-13440px 0px;}62.06%{background-position:-13504px 0px;}62.35%{background-position:-13568px 0px;}62.65%{background-position:-13632px 0px;}62.94%{background-position:-13696px 0px;}63.24%{background-position:-13760px 0px;}63.53%{background-position:-13824px 0px;}63.82%{background-position:-13888px 0px;}64.12%{background-position:-13952px 0px;}64.41%{background-position:-14016px 0px;}64.71%{background-position:-14080px 0px;}65.00%{background-position:-14144px 0px;}65.29%{background-position:-14208px 0px;}65.59%{background-position:-14272px 0px;}65.88%{background-position:-14336px 0px;}66.18%{background-position:-14400px 0px;}66.47%{background-position:-14464px 0px;}66.76%{background-position:-14528px 0px;}67.06%{background-position:-14592px 0px;}67.35%{background-position:-14656px 0px;}67.65%{background-position:-14720px 0px;}67.94%{background-position:-14784px 0px;}68.24%{background-position:-14848px 0px;}68.53%{background-position:-14912px 0px;}68.82%{background-position:-14976px 0px;}69.12%{background-position:-15040px 0px;}69.41%{background-position:-15104px 0px;}69.71%{background-position:-15168px 0px;}70.00%{background-position:-15232px 0px;}70.29%{background-position:-15296px 0px;}70.59%{background-position:-15360px 0px;}70.88%{background-position:-15424px 0px;}71.18%{background-position:-15488px 0px;}71.47%{background-position:-15552px 0px;}71.76%{background-position:-15616px 0px;}72.06%{background-position:-15680px 0px;}72.35%{background-position:-15744px 0px;}72.65%{background-position:-15808px 0px;}72.94%{background-position:-15872px 0px;}73.24%{background-position:-15936px 0px;}73.53%{background-position:-16000px 0px;}73.82%{background-position:-16064px 0px;}74.12%{background-position:-16128px 0px;}74.41%{background-position:-16192px 0px;}74.71%{background-position:-16256px 0px;}75.00%{background-position:-16320px 0px;}75.29%{background-position:-16384px 0px;}75.59%{background-position:-16448px 0px;}75.88%{background-position:-16512px 0px;}76.18%{background-position:-16576px 0px;}76.47%{background-position:-16640px 0px;}76.76%{background-position:-16704px 0px;}77.06%{background-position:-16768px 0px;}77.35%{background-position:-16832px 0px;}77.65%{background-position:-16896px 0px;}77.94%{background-position:-16960px 0px;}78.24%{background-position:-17024px 0px;}78.53%{background-position:-17088px 0px;}78.82%{background-position:-17152px 0px;}79.12%{background-position:-17216px 0px;}79.41%{background-position:-17280px 0px;}79.71%{background-position:-17344px 0px;}80.00%{background-position:-17408px 0px;}80.29%{background-position:-17472px 0px;}80.59%{background-position:-17536px 0px;}80.88%{background-position:-17600px 0px;}81.18%{background-position:-17664px 0px;}81.47%{background-position:-17728px 0px;}81.76%{background-position:-17792px 0px;}82.06%{background-position:-17856px 0px;}82.35%{background-position:-17920px 0px;}82.65%{background-position:-17984px 0px;}82.94%{background-position:-18048px 0px;}83.24%{background-position:-18112px 0px;}83.53%{background-position:-18176px 0px;}83.82%{background-position:-18240px 0px;}84.12%{background-position:-18304px 0px;}84.41%{background-position:-18368px 0px;}84.71%{background-position:-18432px 0px;}85.00%{background-position:-18496px 0px;}85.29%{background-position:-18560px 0px;}85.59%{background-position:-18624px 0px;}85.88%{background-position:-18688px 0px;}86.18%{background-position:-18752px 0px;}86.47%{background-position:-18816px 0px;}86.76%{background-position:-18880px 0px;}87.06%{background-position:-18944px 0px;}87.35%{background-position:-19008px 0px;}87.65%{background-position:-19072px 0px;}87.94%{background-position:-19136px 0px;}88.24%{background-position:-19200px 0px;}88.53%{background-position:-19264px 0px;}88.82%{background-position:-19328px 0px;}89.12%{background-position:-19392px 0px;}89.41%{background-position:-19456px 0px;}89.71%{background-position:-19520px 0px;}90.00%{background-position:-19584px 0px;}90.29%{background-position:-19648px 0px;}90.59%{background-position:-19712px 0px;}90.88%{background-position:-19776px 0px;}91.18%{background-position:-19840px 0px;}91.47%{background-position:-19904px 0px;}91.76%{background-position:-19968px 0px;}92.06%{background-position:-20032px 0px;}92.35%{background-position:-20096px 0px;}92.65%{background-position:-20160px 0px;}92.94%{background-position:-20224px 0px;}93.24%{background-position:-20288px 0px;}93.53%{background-position:-20352px 0px;}93.82%{background-position:-20416px 0px;}94.12%{background-position:-20480px 0px;}94.41%{background-position:-20544px 0px;}94.71%{background-position:-20608px 0px;}95.00%{background-position:-20672px 0px;}95.29%{background-position:-20736px 0px;}95.59%{background-position:-20800px 0px;}95.88%{background-position:-20864px 0px;}96.18%{background-position:-20928px 0px;}96.47%{background-position:-20992px 0px;}96.76%{background-position:-21056px 0px;}97.06%{background-position:-21120px 0px;}97.35%{background-position:-21184px 0px;}97.65%{background-position:-21248px 0px;}97.94%{background-position:-21312px 0px;}98.24%{background-position:-21376px 0px;}98.53%{background-position:-21440px 0px;}98.82%{background-position:-21504px 0px;}99.12%{background-position:-21568px 0px;}99.41%{background-position:-21632px 0px;}99.71%,100%{background-position:-21696px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/laugh-B.js

/* harmony default export */ var laugh_B = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".laughB{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-laughB;animation-duration:13.6s;animation-delay:0s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-laughB{0%{width:64px;height:64px;background-image:url(", ");}0.29%{background-position:-64px 0px;}0.59%{background-position:-128px 0px;}0.88%{background-position:-192px 0px;}1.18%{background-position:-256px 0px;}1.47%{background-position:-320px 0px;}1.76%{background-position:-384px 0px;}2.06%{background-position:-448px 0px;}2.35%{background-position:-512px 0px;}2.65%{background-position:-576px 0px;}2.94%{background-position:-640px 0px;}3.24%{background-position:-704px 0px;}3.53%{background-position:-768px 0px;}3.82%{background-position:-832px 0px;}4.12%{background-position:-896px 0px;}4.41%{background-position:-960px 0px;}4.71%{background-position:-1024px 0px;}5.00%{background-position:-1088px 0px;}5.29%{background-position:-1152px 0px;}5.59%{background-position:-1216px 0px;}5.88%{background-position:-1280px 0px;}6.18%{background-position:-1344px 0px;}6.47%{background-position:-1408px 0px;}6.76%{background-position:-1472px 0px;}7.06%{background-position:-1536px 0px;}7.35%{background-position:-1600px 0px;}7.65%{background-position:-1664px 0px;}7.94%{background-position:-1728px 0px;}8.24%{background-position:-1792px 0px;}8.53%{background-position:-1856px 0px;}8.82%{background-position:-1920px 0px;}9.12%{background-position:-1984px 0px;}9.41%{background-position:-2048px 0px;}9.71%{background-position:-2112px 0px;}10.00%{background-position:-2176px 0px;}10.29%{background-position:-2240px 0px;}10.59%{background-position:-2304px 0px;}10.88%{background-position:-2368px 0px;}11.18%{background-position:-2432px 0px;}11.47%{background-position:-2496px 0px;}11.76%{background-position:-2560px 0px;}12.06%{background-position:-2624px 0px;}12.35%{background-position:-2688px 0px;}12.65%{background-position:-2752px 0px;}12.94%{background-position:-2816px 0px;}13.24%{background-position:-2880px 0px;}13.53%{background-position:-2944px 0px;}13.82%{background-position:-3008px 0px;}14.12%{background-position:-3072px 0px;}14.41%{background-position:-3136px 0px;}14.71%{background-position:-3200px 0px;}15.00%{background-position:-3264px 0px;}15.29%{background-position:-3328px 0px;}15.59%{background-position:-3392px 0px;}15.88%{background-position:-3456px 0px;}16.18%{background-position:-3520px 0px;}16.47%{background-position:-3584px 0px;}16.76%{background-position:-3648px 0px;}17.06%{background-position:-3712px 0px;}17.35%{background-position:-3776px 0px;}17.65%{background-position:-3840px 0px;}17.94%{background-position:-3904px 0px;}18.24%{background-position:-3968px 0px;}18.53%{background-position:-4032px 0px;}18.82%{background-position:-4096px 0px;}19.12%{background-position:-4160px 0px;}19.41%{background-position:-4224px 0px;}19.71%{background-position:-4288px 0px;}20.00%{background-position:-4352px 0px;}20.29%{background-position:-4416px 0px;}20.59%{background-position:-4480px 0px;}20.88%{background-position:-4544px 0px;}21.18%{background-position:-4608px 0px;}21.47%{background-position:-4672px 0px;}21.76%{background-position:-4736px 0px;}22.06%{background-position:-4800px 0px;}22.35%{background-position:-4864px 0px;}22.65%{background-position:-4928px 0px;}22.94%{background-position:-4992px 0px;}23.24%{background-position:-5056px 0px;}23.53%{background-position:-5120px 0px;}23.82%{background-position:-5184px 0px;}24.12%{background-position:-5248px 0px;}24.41%{background-position:-5312px 0px;}24.71%{background-position:-5376px 0px;}25.00%{background-position:-5440px 0px;}25.29%{background-position:-5504px 0px;}25.59%{background-position:-5568px 0px;}25.88%{background-position:-5632px 0px;}26.18%{background-position:-5696px 0px;}26.47%{background-position:-5760px 0px;}26.76%{background-position:-5824px 0px;}27.06%{background-position:-5888px 0px;}27.35%{background-position:-5952px 0px;}27.65%{background-position:-6016px 0px;}27.94%{background-position:-6080px 0px;}28.24%{background-position:-6144px 0px;}28.53%{background-position:-6208px 0px;}28.82%{background-position:-6272px 0px;}29.12%{background-position:-6336px 0px;}29.41%{background-position:-6400px 0px;}29.71%{background-position:-6464px 0px;}30.00%{background-position:-6528px 0px;}30.29%{background-position:-6592px 0px;}30.59%{background-position:-6656px 0px;}30.88%{background-position:-6720px 0px;}31.18%{background-position:-6784px 0px;}31.47%{background-position:-6848px 0px;}31.76%{background-position:-6912px 0px;}32.06%{background-position:-6976px 0px;}32.35%{background-position:-7040px 0px;}32.65%{background-position:-7104px 0px;}32.94%{background-position:-7168px 0px;}33.24%{background-position:-7232px 0px;}33.53%{background-position:-7296px 0px;}33.82%{background-position:-7360px 0px;}34.12%{background-position:-7424px 0px;}34.41%{background-position:-7488px 0px;}34.71%{background-position:-7552px 0px;}35.00%{background-position:-7616px 0px;}35.29%{background-position:-7680px 0px;}35.59%{background-position:-7744px 0px;}35.88%{background-position:-7808px 0px;}36.18%{background-position:-7872px 0px;}36.47%{background-position:-7936px 0px;}36.76%{background-position:-8000px 0px;}37.06%{background-position:-8064px 0px;}37.35%{background-position:-8128px 0px;}37.65%{background-position:-8192px 0px;}37.94%{background-position:-8256px 0px;}38.24%{background-position:-8320px 0px;}38.53%{background-position:-8384px 0px;}38.82%{background-position:-8448px 0px;}39.12%{background-position:-8512px 0px;}39.41%{background-position:-8576px 0px;}39.71%{background-position:-8640px 0px;}40.00%{background-position:-8704px 0px;}40.29%{background-position:-8768px 0px;}40.59%{background-position:-8832px 0px;}40.88%{background-position:-8896px 0px;}41.18%{background-position:-8960px 0px;}41.47%{background-position:-9024px 0px;}41.76%{background-position:-9088px 0px;}42.06%{background-position:-9152px 0px;}42.35%{background-position:-9216px 0px;}42.65%{background-position:-9280px 0px;}42.94%{background-position:-9344px 0px;}43.24%{background-position:-9408px 0px;}43.53%{background-position:-9472px 0px;}43.82%{background-position:-9536px 0px;}44.12%{background-position:-9600px 0px;}44.41%{background-position:-9664px 0px;}44.71%{background-position:-9728px 0px;}45.00%{background-position:-9792px 0px;}45.29%{background-position:-9856px 0px;}45.59%{background-position:-9920px 0px;}45.88%{background-position:-9984px 0px;}46.18%{background-position:-10048px 0px;}46.47%{background-position:-10112px 0px;}46.76%{background-position:-10176px 0px;}47.06%{background-position:-10240px 0px;}47.35%{background-position:-10304px 0px;}47.65%{background-position:-10368px 0px;}47.94%{background-position:-10432px 0px;}48.24%{background-position:-10496px 0px;}48.53%{background-position:-10560px 0px;}48.82%{background-position:-10624px 0px;}49.12%{background-position:-10688px 0px;}49.41%{background-position:-10752px 0px;}49.71%{background-position:-10816px 0px;}50.00%{background-position:-10880px 0px;}50.29%{background-position:-10944px 0px;}50.59%{background-position:-11008px 0px;}50.88%{background-position:-11072px 0px;}51.18%{background-position:-11136px 0px;}51.47%{background-position:-11200px 0px;}51.76%{background-position:-11264px 0px;}52.06%{background-position:-11328px 0px;}52.35%{background-position:-11392px 0px;}52.65%{background-position:-11456px 0px;}52.94%{background-position:-11520px 0px;}53.24%{background-position:-11584px 0px;}53.53%{background-position:-11648px 0px;}53.82%{background-position:-11712px 0px;}54.12%{background-position:-11776px 0px;}54.41%{background-position:-11840px 0px;}54.71%{background-position:-11904px 0px;}55.00%{background-position:-11968px 0px;}55.29%{background-position:-12032px 0px;}55.59%{background-position:-12096px 0px;}55.88%{background-position:-12160px 0px;}56.18%{background-position:-12224px 0px;}56.47%{background-position:-12288px 0px;}56.76%{background-position:-12352px 0px;}57.06%{background-position:-12416px 0px;}57.35%{background-position:-12480px 0px;}57.65%{background-position:-12544px 0px;}57.94%{background-position:-12608px 0px;}58.24%{background-position:-12672px 0px;}58.53%{background-position:-12736px 0px;}58.82%{background-position:-12800px 0px;}59.12%{background-position:-12864px 0px;}59.41%{background-position:-12928px 0px;}59.71%{background-position:-12992px 0px;}60.00%{background-position:-13056px 0px;}60.29%{background-position:-13120px 0px;}60.59%{background-position:-13184px 0px;}60.88%{background-position:-13248px 0px;}61.18%{background-position:-13312px 0px;}61.47%{background-position:-13376px 0px;}61.76%{background-position:-13440px 0px;}62.06%{background-position:-13504px 0px;}62.35%{background-position:-13568px 0px;}62.65%{background-position:-13632px 0px;}62.94%{background-position:-13696px 0px;}63.24%{background-position:-13760px 0px;}63.53%{background-position:-13824px 0px;}63.82%{background-position:-13888px 0px;}64.12%{background-position:-13952px 0px;}64.41%{background-position:-14016px 0px;}64.71%{background-position:-14080px 0px;}65.00%{background-position:-14144px 0px;}65.29%{background-position:-14208px 0px;}65.59%{background-position:-14272px 0px;}65.88%{background-position:-14336px 0px;}66.18%{background-position:-14400px 0px;}66.47%{background-position:-14464px 0px;}66.76%{background-position:-14528px 0px;}67.06%{background-position:-14592px 0px;}67.35%{background-position:-14656px 0px;}67.65%{background-position:-14720px 0px;}67.94%{background-position:-14784px 0px;}68.24%{background-position:-14848px 0px;}68.53%{background-position:-14912px 0px;}68.82%{background-position:-14976px 0px;}69.12%{background-position:-15040px 0px;}69.41%{background-position:-15104px 0px;}69.71%{background-position:-15168px 0px;}70.00%{background-position:-15232px 0px;}70.29%{background-position:-15296px 0px;}70.59%{background-position:-15360px 0px;}70.88%{background-position:-15424px 0px;}71.18%{background-position:-15488px 0px;}71.47%{background-position:-15552px 0px;}71.76%{background-position:-15616px 0px;}72.06%{background-position:-15680px 0px;}72.35%{background-position:-15744px 0px;}72.65%{background-position:-15808px 0px;}72.94%{background-position:-15872px 0px;}73.24%{background-position:-15936px 0px;}73.53%{background-position:-16000px 0px;}73.82%{background-position:-16064px 0px;}74.12%{background-position:-16128px 0px;}74.41%{background-position:-16192px 0px;}74.71%{background-position:-16256px 0px;}75.00%{background-position:-16320px 0px;}75.29%{background-position:-16384px 0px;}75.59%{background-position:-16448px 0px;}75.88%{background-position:-16512px 0px;}76.18%{background-position:-16576px 0px;}76.47%{background-position:-16640px 0px;}76.76%{background-position:-16704px 0px;}77.06%{background-position:-16768px 0px;}77.35%{background-position:-16832px 0px;}77.65%{background-position:-16896px 0px;}77.94%{background-position:-16960px 0px;}78.24%{background-position:-17024px 0px;}78.53%{background-position:-17088px 0px;}78.82%{background-position:-17152px 0px;}79.12%{background-position:-17216px 0px;}79.41%{background-position:-17280px 0px;}79.71%{background-position:-17344px 0px;}80.00%{background-position:-17408px 0px;}80.29%{background-position:-17472px 0px;}80.59%{background-position:-17536px 0px;}80.88%{background-position:-17600px 0px;}81.18%{background-position:-17664px 0px;}81.47%{background-position:-17728px 0px;}81.76%{background-position:-17792px 0px;}82.06%{background-position:-17856px 0px;}82.35%{background-position:-17920px 0px;}82.65%{background-position:-17984px 0px;}82.94%{background-position:-18048px 0px;}83.24%{background-position:-18112px 0px;}83.53%{background-position:-18176px 0px;}83.82%{background-position:-18240px 0px;}84.12%{background-position:-18304px 0px;}84.41%{background-position:-18368px 0px;}84.71%{background-position:-18432px 0px;}85.00%{background-position:-18496px 0px;}85.29%{background-position:-18560px 0px;}85.59%{background-position:-18624px 0px;}85.88%{background-position:-18688px 0px;}86.18%{background-position:-18752px 0px;}86.47%{background-position:-18816px 0px;}86.76%{background-position:-18880px 0px;}87.06%{background-position:-18944px 0px;}87.35%{background-position:-19008px 0px;}87.65%{background-position:-19072px 0px;}87.94%{background-position:-19136px 0px;}88.24%{background-position:-19200px 0px;}88.53%{background-position:-19264px 0px;}88.82%{background-position:-19328px 0px;}89.12%{background-position:-19392px 0px;}89.41%{background-position:-19456px 0px;}89.71%{background-position:-19520px 0px;}90.00%{background-position:-19584px 0px;}90.29%{background-position:-19648px 0px;}90.59%{background-position:-19712px 0px;}90.88%{background-position:-19776px 0px;}91.18%{background-position:-19840px 0px;}91.47%{background-position:-19904px 0px;}91.76%{background-position:-19968px 0px;}92.06%{background-position:-20032px 0px;}92.35%{background-position:-20096px 0px;}92.65%{background-position:-20160px 0px;}92.94%{background-position:-20224px 0px;}93.24%{background-position:-20288px 0px;}93.53%{background-position:-20352px 0px;}93.82%{background-position:-20416px 0px;}94.12%{background-position:-20480px 0px;}94.41%{background-position:-20544px 0px;}94.71%{background-position:-20608px 0px;}95.00%{background-position:-20672px 0px;}95.29%{background-position:-20736px 0px;}95.59%{background-position:-20800px 0px;}95.88%{background-position:-20864px 0px;}96.18%{background-position:-20928px 0px;}96.47%{background-position:-20992px 0px;}96.76%{background-position:-21056px 0px;}97.06%{background-position:-21120px 0px;}97.35%{background-position:-21184px 0px;}97.65%{background-position:-21248px 0px;}97.94%{background-position:-21312px 0px;}98.24%{background-position:-21376px 0px;}98.53%{background-position:-21440px 0px;}98.82%{background-position:-21504px 0px;}99.12%{background-position:-21568px 0px;}99.41%{background-position:-21632px 0px;}99.71%,100%{background-position:-21696px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/inlineStyles/network-B.js

/* harmony default export */ var network_B = (function (assetUrl) {
  return (0,styled_components_browser_esm/* css */.iv)([".networkB{width:64px;height:64px;background-image:url(", ");background-repeat:no-repeat;animation-name:keyframes-networkB;animation-duration:13.6s;animation-delay:0s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-timing-function:steps(1);}@keyframes keyframes-networkB{0%{width:64px;height:64px;background-image:url(", ");}0.29%{background-position:-64px 0px;}0.59%{background-position:-128px 0px;}0.88%{background-position:-192px 0px;}1.18%{background-position:-256px 0px;}1.47%{background-position:-320px 0px;}1.76%{background-position:-384px 0px;}2.06%{background-position:-448px 0px;}2.35%{background-position:-512px 0px;}2.65%{background-position:-576px 0px;}2.94%{background-position:-640px 0px;}3.24%{background-position:-704px 0px;}3.53%{background-position:-768px 0px;}3.82%{background-position:-832px 0px;}4.12%{background-position:-896px 0px;}4.41%{background-position:-960px 0px;}4.71%{background-position:-1024px 0px;}5.00%{background-position:-1088px 0px;}5.29%{background-position:-1152px 0px;}5.59%{background-position:-1216px 0px;}5.88%{background-position:-1280px 0px;}6.18%{background-position:-1344px 0px;}6.47%{background-position:-1408px 0px;}6.76%{background-position:-1472px 0px;}7.06%{background-position:-1536px 0px;}7.35%{background-position:-1600px 0px;}7.65%{background-position:-1664px 0px;}7.94%{background-position:-1728px 0px;}8.24%{background-position:-1792px 0px;}8.53%{background-position:-1856px 0px;}8.82%{background-position:-1920px 0px;}9.12%{background-position:-1984px 0px;}9.41%{background-position:-2048px 0px;}9.71%{background-position:-2112px 0px;}10.00%{background-position:-2176px 0px;}10.29%{background-position:-2240px 0px;}10.59%{background-position:-2304px 0px;}10.88%{background-position:-2368px 0px;}11.18%{background-position:-2432px 0px;}11.47%{background-position:-2496px 0px;}11.76%{background-position:-2560px 0px;}12.06%{background-position:-2624px 0px;}12.35%{background-position:-2688px 0px;}12.65%{background-position:-2752px 0px;}12.94%{background-position:-2816px 0px;}13.24%{background-position:-2880px 0px;}13.53%{background-position:-2944px 0px;}13.82%{background-position:-3008px 0px;}14.12%{background-position:-3072px 0px;}14.41%{background-position:-3136px 0px;}14.71%{background-position:-3200px 0px;}15.00%{background-position:-3264px 0px;}15.29%{background-position:-3328px 0px;}15.59%{background-position:-3392px 0px;}15.88%{background-position:-3456px 0px;}16.18%{background-position:-3520px 0px;}16.47%{background-position:-3584px 0px;}16.76%{background-position:-3648px 0px;}17.06%{background-position:-3712px 0px;}17.35%{background-position:-3776px 0px;}17.65%{background-position:-3840px 0px;}17.94%{background-position:-3904px 0px;}18.24%{background-position:-3968px 0px;}18.53%{background-position:-4032px 0px;}18.82%{background-position:-4096px 0px;}19.12%{background-position:-4160px 0px;}19.41%{background-position:-4224px 0px;}19.71%{background-position:-4288px 0px;}20.00%{background-position:-4352px 0px;}20.29%{background-position:-4416px 0px;}20.59%{background-position:-4480px 0px;}20.88%{background-position:-4544px 0px;}21.18%{background-position:-4608px 0px;}21.47%{background-position:-4672px 0px;}21.76%{background-position:-4736px 0px;}22.06%{background-position:-4800px 0px;}22.35%{background-position:-4864px 0px;}22.65%{background-position:-4928px 0px;}22.94%{background-position:-4992px 0px;}23.24%{background-position:-5056px 0px;}23.53%{background-position:-5120px 0px;}23.82%{background-position:-5184px 0px;}24.12%{background-position:-5248px 0px;}24.41%{background-position:-5312px 0px;}24.71%{background-position:-5376px 0px;}25.00%{background-position:-5440px 0px;}25.29%{background-position:-5504px 0px;}25.59%{background-position:-5568px 0px;}25.88%{background-position:-5632px 0px;}26.18%{background-position:-5696px 0px;}26.47%{background-position:-5760px 0px;}26.76%{background-position:-5824px 0px;}27.06%{background-position:-5888px 0px;}27.35%{background-position:-5952px 0px;}27.65%{background-position:-6016px 0px;}27.94%{background-position:-6080px 0px;}28.24%{background-position:-6144px 0px;}28.53%{background-position:-6208px 0px;}28.82%{background-position:-6272px 0px;}29.12%{background-position:-6336px 0px;}29.41%{background-position:-6400px 0px;}29.71%{background-position:-6464px 0px;}30.00%{background-position:-6528px 0px;}30.29%{background-position:-6592px 0px;}30.59%{background-position:-6656px 0px;}30.88%{background-position:-6720px 0px;}31.18%{background-position:-6784px 0px;}31.47%{background-position:-6848px 0px;}31.76%{background-position:-6912px 0px;}32.06%{background-position:-6976px 0px;}32.35%{background-position:-7040px 0px;}32.65%{background-position:-7104px 0px;}32.94%{background-position:-7168px 0px;}33.24%{background-position:-7232px 0px;}33.53%{background-position:-7296px 0px;}33.82%{background-position:-7360px 0px;}34.12%{background-position:-7424px 0px;}34.41%{background-position:-7488px 0px;}34.71%{background-position:-7552px 0px;}35.00%{background-position:-7616px 0px;}35.29%{background-position:-7680px 0px;}35.59%{background-position:-7744px 0px;}35.88%{background-position:-7808px 0px;}36.18%{background-position:-7872px 0px;}36.47%{background-position:-7936px 0px;}36.76%{background-position:-8000px 0px;}37.06%{background-position:-8064px 0px;}37.35%{background-position:-8128px 0px;}37.65%{background-position:-8192px 0px;}37.94%{background-position:-8256px 0px;}38.24%{background-position:-8320px 0px;}38.53%{background-position:-8384px 0px;}38.82%{background-position:-8448px 0px;}39.12%{background-position:-8512px 0px;}39.41%{background-position:-8576px 0px;}39.71%{background-position:-8640px 0px;}40.00%{background-position:-8704px 0px;}40.29%{background-position:-8768px 0px;}40.59%{background-position:-8832px 0px;}40.88%{background-position:-8896px 0px;}41.18%{background-position:-8960px 0px;}41.47%{background-position:-9024px 0px;}41.76%{background-position:-9088px 0px;}42.06%{background-position:-9152px 0px;}42.35%{background-position:-9216px 0px;}42.65%{background-position:-9280px 0px;}42.94%{background-position:-9344px 0px;}43.24%{background-position:-9408px 0px;}43.53%{background-position:-9472px 0px;}43.82%{background-position:-9536px 0px;}44.12%{background-position:-9600px 0px;}44.41%{background-position:-9664px 0px;}44.71%{background-position:-9728px 0px;}45.00%{background-position:-9792px 0px;}45.29%{background-position:-9856px 0px;}45.59%{background-position:-9920px 0px;}45.88%{background-position:-9984px 0px;}46.18%{background-position:-10048px 0px;}46.47%{background-position:-10112px 0px;}46.76%{background-position:-10176px 0px;}47.06%{background-position:-10240px 0px;}47.35%{background-position:-10304px 0px;}47.65%{background-position:-10368px 0px;}47.94%{background-position:-10432px 0px;}48.24%{background-position:-10496px 0px;}48.53%{background-position:-10560px 0px;}48.82%{background-position:-10624px 0px;}49.12%{background-position:-10688px 0px;}49.41%{background-position:-10752px 0px;}49.71%{background-position:-10816px 0px;}50.00%{background-position:-10880px 0px;}50.29%{background-position:-10944px 0px;}50.59%{background-position:-11008px 0px;}50.88%{background-position:-11072px 0px;}51.18%{background-position:-11136px 0px;}51.47%{background-position:-11200px 0px;}51.76%{background-position:-11264px 0px;}52.06%{background-position:-11328px 0px;}52.35%{background-position:-11392px 0px;}52.65%{background-position:-11456px 0px;}52.94%{background-position:-11520px 0px;}53.24%{background-position:-11584px 0px;}53.53%{background-position:-11648px 0px;}53.82%{background-position:-11712px 0px;}54.12%{background-position:-11776px 0px;}54.41%{background-position:-11840px 0px;}54.71%{background-position:-11904px 0px;}55.00%{background-position:-11968px 0px;}55.29%{background-position:-12032px 0px;}55.59%{background-position:-12096px 0px;}55.88%{background-position:-12160px 0px;}56.18%{background-position:-12224px 0px;}56.47%{background-position:-12288px 0px;}56.76%{background-position:-12352px 0px;}57.06%{background-position:-12416px 0px;}57.35%{background-position:-12480px 0px;}57.65%{background-position:-12544px 0px;}57.94%{background-position:-12608px 0px;}58.24%{background-position:-12672px 0px;}58.53%{background-position:-12736px 0px;}58.82%{background-position:-12800px 0px;}59.12%{background-position:-12864px 0px;}59.41%{background-position:-12928px 0px;}59.71%{background-position:-12992px 0px;}60.00%{background-position:-13056px 0px;}60.29%{background-position:-13120px 0px;}60.59%{background-position:-13184px 0px;}60.88%{background-position:-13248px 0px;}61.18%{background-position:-13312px 0px;}61.47%{background-position:-13376px 0px;}61.76%{background-position:-13440px 0px;}62.06%{background-position:-13504px 0px;}62.35%{background-position:-13568px 0px;}62.65%{background-position:-13632px 0px;}62.94%{background-position:-13696px 0px;}63.24%{background-position:-13760px 0px;}63.53%{background-position:-13824px 0px;}63.82%{background-position:-13888px 0px;}64.12%{background-position:-13952px 0px;}64.41%{background-position:-14016px 0px;}64.71%{background-position:-14080px 0px;}65.00%{background-position:-14144px 0px;}65.29%{background-position:-14208px 0px;}65.59%{background-position:-14272px 0px;}65.88%{background-position:-14336px 0px;}66.18%{background-position:-14400px 0px;}66.47%{background-position:-14464px 0px;}66.76%{background-position:-14528px 0px;}67.06%{background-position:-14592px 0px;}67.35%{background-position:-14656px 0px;}67.65%{background-position:-14720px 0px;}67.94%{background-position:-14784px 0px;}68.24%{background-position:-14848px 0px;}68.53%{background-position:-14912px 0px;}68.82%{background-position:-14976px 0px;}69.12%{background-position:-15040px 0px;}69.41%{background-position:-15104px 0px;}69.71%{background-position:-15168px 0px;}70.00%{background-position:-15232px 0px;}70.29%{background-position:-15296px 0px;}70.59%{background-position:-15360px 0px;}70.88%{background-position:-15424px 0px;}71.18%{background-position:-15488px 0px;}71.47%{background-position:-15552px 0px;}71.76%{background-position:-15616px 0px;}72.06%{background-position:-15680px 0px;}72.35%{background-position:-15744px 0px;}72.65%{background-position:-15808px 0px;}72.94%{background-position:-15872px 0px;}73.24%{background-position:-15936px 0px;}73.53%{background-position:-16000px 0px;}73.82%{background-position:-16064px 0px;}74.12%{background-position:-16128px 0px;}74.41%{background-position:-16192px 0px;}74.71%{background-position:-16256px 0px;}75.00%{background-position:-16320px 0px;}75.29%{background-position:-16384px 0px;}75.59%{background-position:-16448px 0px;}75.88%{background-position:-16512px 0px;}76.18%{background-position:-16576px 0px;}76.47%{background-position:-16640px 0px;}76.76%{background-position:-16704px 0px;}77.06%{background-position:-16768px 0px;}77.35%{background-position:-16832px 0px;}77.65%{background-position:-16896px 0px;}77.94%{background-position:-16960px 0px;}78.24%{background-position:-17024px 0px;}78.53%{background-position:-17088px 0px;}78.82%{background-position:-17152px 0px;}79.12%{background-position:-17216px 0px;}79.41%{background-position:-17280px 0px;}79.71%{background-position:-17344px 0px;}80.00%{background-position:-17408px 0px;}80.29%{background-position:-17472px 0px;}80.59%{background-position:-17536px 0px;}80.88%{background-position:-17600px 0px;}81.18%{background-position:-17664px 0px;}81.47%{background-position:-17728px 0px;}81.76%{background-position:-17792px 0px;}82.06%{background-position:-17856px 0px;}82.35%{background-position:-17920px 0px;}82.65%{background-position:-17984px 0px;}82.94%{background-position:-18048px 0px;}83.24%{background-position:-18112px 0px;}83.53%{background-position:-18176px 0px;}83.82%{background-position:-18240px 0px;}84.12%{background-position:-18304px 0px;}84.41%{background-position:-18368px 0px;}84.71%{background-position:-18432px 0px;}85.00%{background-position:-18496px 0px;}85.29%{background-position:-18560px 0px;}85.59%{background-position:-18624px 0px;}85.88%{background-position:-18688px 0px;}86.18%{background-position:-18752px 0px;}86.47%{background-position:-18816px 0px;}86.76%{background-position:-18880px 0px;}87.06%{background-position:-18944px 0px;}87.35%{background-position:-19008px 0px;}87.65%{background-position:-19072px 0px;}87.94%{background-position:-19136px 0px;}88.24%{background-position:-19200px 0px;}88.53%{background-position:-19264px 0px;}88.82%{background-position:-19328px 0px;}89.12%{background-position:-19392px 0px;}89.41%{background-position:-19456px 0px;}89.71%{background-position:-19520px 0px;}90.00%{background-position:-19584px 0px;}90.29%{background-position:-19648px 0px;}90.59%{background-position:-19712px 0px;}90.88%{background-position:-19776px 0px;}91.18%{background-position:-19840px 0px;}91.47%{background-position:-19904px 0px;}91.76%{background-position:-19968px 0px;}92.06%{background-position:-20032px 0px;}92.35%{background-position:-20096px 0px;}92.65%{background-position:-20160px 0px;}92.94%{background-position:-20224px 0px;}93.24%{background-position:-20288px 0px;}93.53%{background-position:-20352px 0px;}93.82%{background-position:-20416px 0px;}94.12%{background-position:-20480px 0px;}94.41%{background-position:-20544px 0px;}94.71%{background-position:-20608px 0px;}95.00%{background-position:-20672px 0px;}95.29%{background-position:-20736px 0px;}95.59%{background-position:-20800px 0px;}95.88%{background-position:-20864px 0px;}96.18%{background-position:-20928px 0px;}96.47%{background-position:-20992px 0px;}96.76%{background-position:-21056px 0px;}97.06%{background-position:-21120px 0px;}97.35%{background-position:-21184px 0px;}97.65%{background-position:-21248px 0px;}97.94%{background-position:-21312px 0px;}98.24%{background-position:-21376px 0px;}98.53%{background-position:-21440px 0px;}98.82%{background-position:-21504px 0px;}99.12%{background-position:-21568px 0px;}99.41%{background-position:-21632px 0px;}99.71%,100%{background-position:-21696px 0px;}}"], assetUrl, assetUrl);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/styled.js












var Ball = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.svg(["width:64px;height:64px;", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
  return noise_A(props.assetUrls.noiseA);
}, function (props) {
  return applaud_B(props.assetUrls.applaudB);
}, function (props) {
  return noise_C(props.assetUrls.noiseC);
}, function (props) {
  return stop_A(props.assetUrls.stopA);
}, function (props) {
  return stop_B(props.assetUrls.stopB);
}, function (props) {
  return stop_C(props.assetUrls.stopC);
}, function (props) {
  return recording_B(props.assetUrls.recordingB);
}, function (props) {
  return music_B(props.assetUrls.musicB);
}, function (props) {
  return table_B(props.assetUrls.tableB);
}, function (props) {
  return laugh_B(props.assetUrls.laughB);
}, function (props) {
  return network_B(props.assetUrls.networkB);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/tingwuBall/tingwuBall.js

var tingwuBall_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;


var defaultTingwuBallAssetUrls = {
  applaudB: 'https://img.alicdn.com/imgextra/i1/O1CN01ZoQ5ff1NUTmKZoPDL_!!6000000001573-2-tps-21760-64.png',
  laughB: 'https://img.alicdn.com/imgextra/i4/O1CN01coyLMt1tgRpYOVo6l_!!6000000005931-2-tps-21760-64.png',
  musicB: 'https://img.alicdn.com/imgextra/i2/O1CN01TdrAvV1YI4pJ1sw1o_!!6000000003035-2-tps-21760-64.png',
  networkB: 'https://img.alicdn.com/imgextra/i4/O1CN017TbJtm1PU8iScxq9N_!!6000000001843-2-tps-21760-64.png',
  noiseA: 'https://img.alicdn.com/imgextra/i4/O1CN01sxNCzg1d0HW58u2E2_!!6000000003673-2-tps-1600-64.png',
  noiseC: 'https://img.alicdn.com/imgextra/i1/O1CN01ieEQeZ1yPZJbrUCDn_!!6000000006571-2-tps-1280-64.png',
  recordingB: 'https://img.alicdn.com/imgextra/i1/O1CN01AV7f1E1kwAtJHELpc_!!6000000004747-2-tps-5760-64.png',
  recordingC: 'https://img.alicdn.com/imgextra/i2/O1CN01e4OwQV1F5H3X0W3rV_!!6000000000435-2-tps-5760-64.png',
  stopA: 'https://img.alicdn.com/imgextra/i3/O1CN01VncQUl1yMowNciQtc_!!6000000006565-2-tps-1984-64.png',
  stopB: 'https://img.alicdn.com/imgextra/i3/O1CN01O2W9LQ1XolTfKii1e_!!6000000002971-2-tps-64-64.png',
  stopC: 'https://img.alicdn.com/imgextra/i1/O1CN01N5DT8y20dsvYx7glW_!!6000000006873-2-tps-1984-64.png',
  tableB: 'https://img.alicdn.com/imgextra/i1/O1CN011RiVV21tHiRpciuSu_!!6000000005877-2-tps-21760-64.png'
};
var ballSize = 64;
var preloadUrls = ['https://img.alicdn.com/imgextra/i3/O1CN01VncQUl1yMowNciQtc_!!6000000006565-2-tps-1984-64.png', 'https://img.alicdn.com/imgextra/i3/O1CN01O2W9LQ1XolTfKii1e_!!6000000002971-2-tps-64-64.png', 'https://img.alicdn.com/imgextra/i1/O1CN01N5DT8y20dsvYx7glW_!!6000000006873-2-tps-1984-64.png', 'https://img.alicdn.com/imgextra/i1/O1CN01AV7f1E1kwAtJHELpc_!!6000000004747-2-tps-5760-64.png', 'https://img.alicdn.com/imgextra/i4/O1CN01sxNCzg1d0HW58u2E2_!!6000000003673-2-tps-1600-64.png', 'https://img.alicdn.com/imgextra/i1/O1CN01ieEQeZ1yPZJbrUCDn_!!6000000006571-2-tps-1280-64.png', 'https://img.alicdn.com/imgextra/i1/O1CN01ZoQ5ff1NUTmKZoPDL_!!6000000001573-2-tps-21760-64.png', 'https://img.alicdn.com/imgextra/i4/O1CN01coyLMt1tgRpYOVo6l_!!6000000005931-2-tps-21760-64.png', 'https://img.alicdn.com/imgextra/i2/O1CN01TdrAvV1YI4pJ1sw1o_!!6000000003035-2-tps-21760-64.png', 'https://img.alicdn.com/imgextra/i4/O1CN017TbJtm1PU8iScxq9N_!!6000000001843-2-tps-21760-64.png', 'https://img.alicdn.com/imgextra/i1/O1CN011RiVV21tHiRpciuSu_!!6000000005877-2-tps-21760-64.png'];
function prefetchUrls() {
  return preloadImage(preloadUrls);
}
var TingwuBall = /*#__PURE__*/(0,_react_18_2_0_react.memo)(function (props) {
  var assetUrls = props.assetUrls,
    className = props.className,
    style = props.style,
    statusProp = props.status;
  var _useState = (0,_react_18_2_0_react.useState)('stop.run'),
    status = _useState[0],
    setStatus = _useState[1];
  var nextStatusRef = (0,_react_18_2_0_react.useRef)('stop.run');
  var _useState2 = (0,_react_18_2_0_react.useState)(Boolean(assetUrls)),
    loaded = _useState2[0],
    setLoaded = _useState2[1];
  var statusHandler = (0,_react_18_2_0_react.useMemo)(function () {
    return ['recording', 'stop', 'applaud', 'network', 'music', 'laugh', 'table'].reduce(function (acc, next) {
      acc[next] = {
        begin: {
          className: next + "A",
          onAnimationEnd: function onAnimationEnd() {
            setStatus(nextStatusRef.current);
          }
        },
        run: {
          className: next + "B"
        },
        end: {
          className: next + "C",
          onAnimationEnd: function onAnimationEnd() {
            setStatus(nextStatusRef.current);
          }
        }
      };
      return acc;
    },
    // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
    {});
  }, []);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (loaded) {
      return;
    }
    prefetchUrls().then(function () {
      setLoaded(true);
    });
  }, [loaded]);
  (0,_react_18_2_0_react.useEffect)(function () {
    if (!loaded) {
      return;
    }
    var _ref = status.split('.'),
      recordingStatus = _ref[0],
      action = _ref[1];
    if (recordingStatus === 'recording') {
      if (statusProp === 'recording') {
        return;
      }
      setStatus(statusProp + ".begin");
      nextStatusRef.current = statusProp + ".run";
    } else if (statusProp === 'recording') {
      setStatus(recordingStatus + ".end"); // feedback

      nextStatusRef.current = 'recording.run';
    } else if (recordingStatus !== statusProp) {
      if (recordingStatus === 'stop' || statusProp === 'stop' || action !== 'begin') {
        setStatus(statusProp + ".begin");
        nextStatusRef.current = statusProp + ".run";
      } else {
        nextStatusRef.current = statusProp + ".run";
      }
    } else if (recordingStatus === statusProp && action === 'end') {
      setStatus(statusProp + ".begin");
      nextStatusRef.current = statusProp + ".run";
    }
  }, [status, statusProp, loaded]);
  var item = (0,_react_18_2_0_react.useMemo)(function () {
    var _ref2 = status.split('.'),
      recordingStatus = _ref2[0],
      action = _ref2[1];
    return statusHandler[recordingStatus][action];
  }, [statusHandler, status]);
  return /*#__PURE__*/tingwuBall_createElement(Ball, {
    viewBox: "0, 0, " + ballSize + ", " + ballSize,
    style: style,
    className: className,
    assetUrls: assetUrls || defaultTingwuBallAssetUrls
  }, /*#__PURE__*/tingwuBall_createElement("foreignObject", {
    width: ballSize,
    height: ballSize
  }, /*#__PURE__*/tingwuBall_createElement("div", {
    className: item == null ? void 0 : item.className,
    onAnimationEnd: item == null ? void 0 : item.onAnimationEnd
  })));
});
;// CONCATENATED MODULE: ./src/components/recordControl/styled.tsx
var recordControl_styled_templateObject,recordControl_styled_templateObject2,styled_templateObject3,styled_templateObject4,styled_templateObject5,styled_templateObject6,styled_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12;var recordControl_styled_Content=styled_components_browser_esm/* default */.ZP.div(recordControl_styled_templateObject||(recordControl_styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  width: 100%;\n  height: 75px;\n  min-height: 75px;\n  display: flex;\n  align-items: center;\n  user-select: none;\n\n  .tweant-popover{\n    top: 47px !important;\n    left: 12px !important;\n  }\n"])));var RecordHeading=styled_components_browser_esm/* default */.ZP.div(recordControl_styled_templateObject2||(recordControl_styled_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  align-items: center;\n  margin-left: 17px;\n  flex: 1 1;\n"])));var RecordHeadingText=styled_components_browser_esm/* default */.ZP.div(styled_templateObject3||(styled_templateObject3=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: flex-start;\n  margin-left: 6px;\n"])));var RecordTitle=styled_components_browser_esm/* default */.ZP.div(styled_templateObject4||(styled_templateObject4=(0,taggedTemplateLiteral/* default */.Z)(["\n  font-size: 14px;\n  color: #27264D;\n  line-height: 14px;\n"])));var RecordDatetime=styled_components_browser_esm/* default */.ZP.div(styled_templateObject5||(styled_templateObject5=(0,taggedTemplateLiteral/* default */.Z)(["\n  margin-top: 4px;\n  font-size: 12px;\n  color: rgba(38,49,77,0.50);\n  line-height: 12px;\n"])));var ControlBox=styled_components_browser_esm/* default */.ZP.div(styled_templateObject6||(styled_templateObject6=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  justify-content: flex-end;\n  align-items: center;\n  margin-right: 23px;\n\n  .tweant-popover{\n    .tweant-popover-arrow{\n      display: none !important;\n    }\n    .tweant-popover-inner{\n      border-radius: 8px !important;\n      box-shadow: 0 3px 6px -4px rgba(39, 38, 77, 0.12),\n    0 6px 16px 0 rgba(39, 38, 77, 0.08), 0 9px 28px 8px rgba(39, 38, 77, 0.05) !important;\n      .tweant-popover-inner-content{\n        padding: 0 !important;\n      }\n    }\n  }\n"])));var StopButton=styled_components_browser_esm/* default */.ZP.div(styled_templateObject7||(styled_templateObject7=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  transition: all 0.3s;\n  &:hover{\n    background-image: url(",");\n  }\n  &:active{\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL('stopButton.svg'),chrome.runtime.getURL('stopButtonHover.svg'),chrome.runtime.getURL('stopButtonActive.svg'));var RestartButton=styled_components_browser_esm/* default */.ZP.div(_templateObject8||(_templateObject8=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  background-position: center center;\n  background-repeat: no-repeat;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 12px;\n  transition: all 0.3s;\n  &:hover{\n    background-image: url(",");\n  }\n  &:active{\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL('restartButton.svg'),chrome.runtime.getURL('restartButtonHover.svg'),chrome.runtime.getURL('restartButtonActive.svg'));var PauseButton=styled_components_browser_esm/* default */.ZP.div(_templateObject9||(_templateObject9=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 12px;\n  transition: all 0.3s;\n  &:hover{\n    background-image: url(",");\n  }\n  &:active{\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL('pauseButton.svg'),chrome.runtime.getURL('pauseButtonHover.svg'),chrome.runtime.getURL('pauseButtonActive.svg'));var CaptionButton=styled_components_browser_esm/* default */.ZP.div(_templateObject10||(_templateObject10=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 12px;\n  transition: all 0.3s;\n  &:hover{\n    background-image: url(",");\n  }\n  &:active{\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL('captionButton.svg'),chrome.runtime.getURL('captionButtonHover.svg'),chrome.runtime.getURL('captionButtonActive.svg'));var TranslateButton=styled_components_browser_esm/* default */.ZP.div(_templateObject11||(_templateObject11=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-size: contain;\n  background-position: center center;\n  background-repeat: no-repeat;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 12px;\n  transition: all 0.3s;\n"])));var ExpandButton=styled_components_browser_esm/* default */.ZP.div(_templateObject12||(_templateObject12=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  background-repeat: no-repeat;\n  background-position: center center;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 12px;\n  transition: all 0.3s;\n  &:hover{\n    background-image: url(",");\n  }\n\n  &:active{\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL('expandButton.svg'),chrome.runtime.getURL('expandButtonHover.svg'),chrome.runtime.getURL('expandButtonActive.svg'));
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/getRenderPropValue.js
var getRenderPropValue = function getRenderPropValue(propValue) {
  if (!propValue) {
    return null;
  }
  if (typeof propValue === 'function') {
    return propValue();
  }
  return propValue;
};
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/popover/index.js

var popover_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};





var Overlay = function Overlay(_ref) {
  var title = _ref.title,
    content = _ref.content,
    prefixCls = _ref.prefixCls;
  if (!title && !content) {
    return null;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, title && /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(prefixCls, "-title")
  }, getRenderPropValue(title)), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(prefixCls, "-inner-content")
  }, getRenderPropValue(content)));
};
var Popover = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var customizePrefixCls = props.prefixCls,
    title = props.title,
    content = props.content,
    _overlay = props._overlay,
    _props$placement = props.placement,
    placement = _props$placement === void 0 ? 'top' : _props$placement,
    _props$trigger = props.trigger,
    trigger = _props$trigger === void 0 ? 'hover' : _props$trigger,
    _props$mouseEnterDela = props.mouseEnterDelay,
    mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0.1 : _props$mouseEnterDela,
    _props$mouseLeaveDela = props.mouseLeaveDelay,
    mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,
    _props$overlayStyle = props.overlayStyle,
    overlayStyle = _props$overlayStyle === void 0 ? {} : _props$overlayStyle,
    otherProps = popover_rest(props, ["prefixCls", "title", "content", "_overlay", "placement", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle"]);
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls;
  var prefixCls = getPrefixCls('popover', customizePrefixCls);
  var rootPrefixCls = getPrefixCls();
  return /*#__PURE__*/_react_18_2_0_react.createElement(tooltip, (0,esm_extends/* default */.Z)({
    placement: placement,
    trigger: trigger,
    mouseEnterDelay: mouseEnterDelay,
    mouseLeaveDelay: mouseLeaveDelay,
    overlayStyle: overlayStyle
  }, otherProps, {
    prefixCls: prefixCls,
    ref: ref,
    overlay: _overlay || /*#__PURE__*/_react_18_2_0_react.createElement(Overlay, {
      prefixCls: prefixCls,
      title: title,
      content: content
    }),
    transitionName: (0,motion/* getTransitionName */.mL)(rootPrefixCls, 'zoom-big', otherProps.transitionName)
  }));
});
if (false) {}
/* harmony default export */ var popover = (Popover);
;// CONCATENATED MODULE: ./src/components/translatePopWindow/styled.tsx
var translatePopWindow_styled_templateObject,translatePopWindow_styled_templateObject2,translatePopWindow_styled_templateObject3,translatePopWindow_styled_templateObject4,translatePopWindow_styled_templateObject5;var TranslatePopWindowContainer=styled_components_browser_esm/* default */.ZP.div(translatePopWindow_styled_templateObject||(translatePopWindow_styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  user-select: none;\n  height: 136px;\n  width: 296px;\n  border-radius: 8px;\n  padding: 16px 0 24px 24px;\n  cursor: default;\n  .translate-title {\n    font-weight: 500;\n    font-size: 18px;\n    color: #27264d;\n    line-height: 28px;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n\n    .tweant-switch {\n      scale: 0.75;\n      margin-left: 4.5px;\n    }\n\n    .tweant-switch{\n      background: #D8D7F2 !important;\n    }\n\n    .tweant-switch-checked {\n      background: #605ce5 !important;\n    }\n  }\n  .translate-feedback {\n    display: none;\n  }\n  :hover {\n    .translate-feedback {\n      display: block;\n      color: #7d7d94;\n      cursor: pointer;\n      :hover {\n        color: #605ce5;\n      }\n    }\n  }\n  .translate-item {\n    margin-top: 16px;\n    display: flex;\n    align-items: center;\n    .translate-item-title {\n      font-weight: 400;\n      font-size: 12px;\n      color: rgba(39, 38, 77, 0.65);\n      margin-right: 16px;\n    }\n    .translate-item-des {\n      font-weight: 400;\n      font-size: 12px;\n      color: #27264d;\n      display: flex;\n      align-items: center;\n      .translate-item-des-item {\n        display: flex;\n        align-items: center;\n        cursor: pointer;\n        :hover {\n          color: rgba(39, 38, 77, 0.65);\n        }\n      }\n    }\n    .translate-item-des-unCheck {\n      color: rgba(39, 38, 77, 0.45) !important;\n      cursor: not-allowed !important;\n      .translate-item-des-item {\n        cursor: not-allowed;\n        :hover {\n          color: rgba(39, 38, 77, 0.45) !important;\n        }\n      }\n    }\n    .tweant-select {\n      font-size: 12px;\n      .tweant-select-selector {\n        height: 19px;\n        border: none !important;\n        box-shadow: none !important;\n        padding: 0 14px 0 0;\n        .label_item {\n          height: 19px;\n          line-height: 19px;\n          color: #27264d;\n        }\n      }\n      .tweant-select-arrow {\n        width: 12px;\n        height: 12px;\n        background: url(",")\n          center center no-repeat;\n\n        .anticon {\n          display: none;\n        }\n      }\n      .tweant-select-dropdown {\n        width: 296px !important;\n        height: 104px !important;\n        left: -200px !important;\n        border-radius: 8px !important;\n\n        .rc-virtual-list-holder {\n          max-height: 330px !important;\n          padding: 0 12px;\n        }\n\n        .tweant-select-item-option-active:not(.tweant-select-item-option-disabled) {\n          background: #ffffff;\n        }\n        \n        .tweant-select-item-option-selected:not(.tweant-select-item-option-disabled){\n          color: #605ce5 !important;\n          font-weight: 400 !important;\n          background-color: transparent !important;\n        }\n\n        .tweant-select-item {\n          height: 48px;\n          border-radius: 4px;\n          color: #27264D;\n          &:hover {\n            background: rgba(96, 92, 229, 0.08);\n          }\n          .tweant-select-item-option-content {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n          }\n        }\n      }\n    }\n    .tweant-select-open {\n      .tweant-select-selection-item {\n        .label_item {\n          color: #605ce5;\n        }\n      }\n      .tweant-select-arrow {\n        transform: rotate(180deg);\n        background: url(",")\n          center center no-repeat;\n      }\n    }\n  }\n  .caption-translate-title,\n  .caption-translate-item-title,\n  .caption-translate-item-des,\n  .caption-translate-item-des-item {\n    color: #fff !important;\n  }\n\n  .caption-translate-item-des-item:hover {\n    color: rgba(255, 255, 255, 0.85) !important;\n  }\n"])),chrome.runtime.getURL('translateSelectArrow.svg'),chrome.runtime.getURL('translateSelectArrowActive.svg'));var IconTranslateArrows=styled_components_browser_esm/* default */.ZP.div(translatePopWindow_styled_templateObject2||(translatePopWindow_styled_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n  width: 16px;\n  height: 16px;\n  margin: 0 16px;\n  /* background-image: url(","); */\n  background-size: contain;\n  background-repeat: no-repeat;\n  background-position: center center;\n"])),chrome.runtime.getURL('translateArrows.svg'));var IconTranslateDown=styled_components_browser_esm/* default */.ZP.div(translatePopWindow_styled_templateObject3||(translatePopWindow_styled_templateObject3=(0,taggedTemplateLiteral/* default */.Z)(["\n  width: 12px;\n  height: 12px;\n  background-size: contain;\n  background-repeat: no-repeat;\n  background-position: center center;\n"])));var IconTranslateCheck=styled_components_browser_esm/* default */.ZP.div(translatePopWindow_styled_templateObject4||(translatePopWindow_styled_templateObject4=(0,taggedTemplateLiteral/* default */.Z)(["\n  width: 10px;\n  height: 10px;\n  background-size: contain;\n  background-repeat: no-repeat;\n  background-position: center center;\n"])));var SelectIcon=styled_components_browser_esm/* default */.ZP.img(translatePopWindow_styled_templateObject5||(translatePopWindow_styled_templateObject5=(0,taggedTemplateLiteral/* default */.Z)(["\n  width: 16px;\n  height: 16px;\n"])));
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/message/index.js + 7 modules
var message = __webpack_require__(696);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useBaseProps.js
/**
 * BaseSelect provide some parsed data into context.
 * You can use this hooks to get them.
 */


var BaseSelectContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
function useBaseProps() {
  return _react_18_2_0_react.useContext(BaseSelectContext);
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useDelayReset.js



/**
 * Similar with `useLock`, but this hook will always execute last value.
 * When set to `true`, it will keep `true` for a short time even if `false` is set.
 */
function useDelayReset() {
  var timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
  var _React$useState = _react_18_2_0_react.useState(false),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    bool = _React$useState2[0],
    setBool = _React$useState2[1];
  var delayRef = _react_18_2_0_react.useRef(null);
  var cancelLatest = function cancelLatest() {
    window.clearTimeout(delayRef.current);
  };
  _react_18_2_0_react.useEffect(function () {
    return cancelLatest;
  }, []);
  var delaySetBool = function delaySetBool(value, callback) {
    cancelLatest();
    delayRef.current = window.setTimeout(function () {
      setBool(value);
      if (callback) {
        callback();
      }
    }, timeout);
  };
  return [bool, delaySetBool, cancelLatest];
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useLock.js


/**
 * Locker return cached mark.
 * If set to `true`, will return `true` in a short time even if set `false`.
 * If set to `false` and then set to `true`, will change to `true`.
 * And after time duration, it will back to `null` automatically.
 */
function useLock() {
  var duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 250;
  var lockRef = _react_18_2_0_react.useRef(null);
  var timeoutRef = _react_18_2_0_react.useRef(null);

  // Clean up
  _react_18_2_0_react.useEffect(function () {
    return function () {
      window.clearTimeout(timeoutRef.current);
    };
  }, []);
  function doLock(locked) {
    if (locked || lockRef.current === null) {
      lockRef.current = locked;
    }
    window.clearTimeout(timeoutRef.current);
    timeoutRef.current = window.setTimeout(function () {
      lockRef.current = null;
    }, duration);
  }
  return [function () {
    return lockRef.current;
  }, doLock];
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useSelectTriggerControl.js

function useSelectTriggerControl(elements, open, triggerOpen, customizedTrigger) {
  var propsRef = _react_18_2_0_react.useRef(null);
  propsRef.current = {
    open: open,
    triggerOpen: triggerOpen,
    customizedTrigger: customizedTrigger
  };
  _react_18_2_0_react.useEffect(function () {
    function onGlobalMouseDown(event) {
      var _propsRef$current;
      // If trigger is customized, Trigger will take control of popupVisible
      if ((_propsRef$current = propsRef.current) !== null && _propsRef$current !== void 0 && _propsRef$current.customizedTrigger) {
        return;
      }
      var target = event.target;
      if (target.shadowRoot && event.composed) {
        target = event.composedPath()[0] || target;
      }
      if (propsRef.current.open && elements().filter(function (element) {
        return element;
      }).every(function (element) {
        return !element.contains(target) && element !== target;
      })) {
        // Should trigger close
        propsRef.current.triggerOpen(false);
      }
    }
    window.addEventListener('mousedown', onGlobalMouseDown);
    return function () {
      return window.removeEventListener('mousedown', onGlobalMouseDown);
    };
  }, []);
}
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(766);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/TransBtn.js


var TransBtn = function TransBtn(_ref) {
  var className = _ref.className,
    customizeIcon = _ref.customizeIcon,
    customizeIconProps = _ref.customizeIconProps,
    _onMouseDown = _ref.onMouseDown,
    onClick = _ref.onClick,
    children = _ref.children;
  var icon;
  if (typeof customizeIcon === 'function') {
    icon = customizeIcon(customizeIconProps);
  } else {
    icon = customizeIcon;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: className,
    onMouseDown: function onMouseDown(event) {
      event.preventDefault();
      if (_onMouseDown) {
        _onMouseDown(event);
      }
    },
    style: {
      userSelect: 'none',
      WebkitUserSelect: 'none'
    },
    unselectable: "on",
    onClick: onClick,
    "aria-hidden": true
  }, icon !== undefined ? icon : /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: _classnames_2_3_2_classnames_default()(className.split(/\s+/).map(function (cls) {
      return "".concat(cls, "-icon");
    }))
  }, children));
};
/* harmony default export */ var es_TransBtn = (TransBtn);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/Selector/Input.js





var Selector_Input_Input = function Input(_ref, ref) {
  var _inputNode2, _inputNode2$props;
  var prefixCls = _ref.prefixCls,
    id = _ref.id,
    inputElement = _ref.inputElement,
    disabled = _ref.disabled,
    tabIndex = _ref.tabIndex,
    autoFocus = _ref.autoFocus,
    autoComplete = _ref.autoComplete,
    editable = _ref.editable,
    activeDescendantId = _ref.activeDescendantId,
    value = _ref.value,
    maxLength = _ref.maxLength,
    _onKeyDown = _ref.onKeyDown,
    _onMouseDown = _ref.onMouseDown,
    _onChange = _ref.onChange,
    onPaste = _ref.onPaste,
    _onCompositionStart = _ref.onCompositionStart,
    _onCompositionEnd = _ref.onCompositionEnd,
    open = _ref.open,
    attrs = _ref.attrs;
  var inputNode = inputElement || /*#__PURE__*/_react_18_2_0_react.createElement("input", null);
  var _inputNode = inputNode,
    originRef = _inputNode.ref,
    originProps = _inputNode.props;
  var onOriginKeyDown = originProps.onKeyDown,
    onOriginChange = originProps.onChange,
    onOriginMouseDown = originProps.onMouseDown,
    onOriginCompositionStart = originProps.onCompositionStart,
    onOriginCompositionEnd = originProps.onCompositionEnd,
    style = originProps.style;
  (0,es_warning/* warning */.Kp)(!('maxLength' in inputNode.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled.");
  inputNode = /*#__PURE__*/_react_18_2_0_react.cloneElement(inputNode, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
    type: 'search'
  }, originProps), {}, {
    // Override over origin props
    id: id,
    ref: (0,es_ref/* composeRef */.sQ)(ref, originRef),
    disabled: disabled,
    tabIndex: tabIndex,
    autoComplete: autoComplete || 'off',
    autoFocus: autoFocus,
    className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
    role: 'combobox',
    'aria-expanded': open,
    'aria-haspopup': 'listbox',
    'aria-owns': "".concat(id, "_list"),
    'aria-autocomplete': 'list',
    'aria-controls': "".concat(id, "_list"),
    'aria-activedescendant': activeDescendantId
  }, attrs), {}, {
    value: editable ? value : '',
    maxLength: maxLength,
    readOnly: !editable,
    unselectable: !editable ? 'on' : null,
    style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, style), {}, {
      opacity: editable ? null : 0
    }),
    onKeyDown: function onKeyDown(event) {
      _onKeyDown(event);
      if (onOriginKeyDown) {
        onOriginKeyDown(event);
      }
    },
    onMouseDown: function onMouseDown(event) {
      _onMouseDown(event);
      if (onOriginMouseDown) {
        onOriginMouseDown(event);
      }
    },
    onChange: function onChange(event) {
      _onChange(event);
      if (onOriginChange) {
        onOriginChange(event);
      }
    },
    onCompositionStart: function onCompositionStart(event) {
      _onCompositionStart(event);
      if (onOriginCompositionStart) {
        onOriginCompositionStart(event);
      }
    },
    onCompositionEnd: function onCompositionEnd(event) {
      _onCompositionEnd(event);
      if (onOriginCompositionEnd) {
        onOriginCompositionEnd(event);
      }
    },
    onPaste: onPaste
  }));
  return inputNode;
};
var RefInput = /*#__PURE__*/_react_18_2_0_react.forwardRef(Selector_Input_Input);
RefInput.displayName = 'Input';
/* harmony default export */ var Selector_Input = (RefInput);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/utils/commonUtil.js

function commonUtil_toArray(value) {
  if (Array.isArray(value)) {
    return value;
  }
  return value !== undefined ? [value] : [];
}
var isClient = typeof window !== 'undefined' && window.document && window.document.documentElement;

/** Is client side and not jsdom */
var isBrowserClient =  true && isClient;
function hasValue(value) {
  return value !== undefined && value !== null;
}
function isTitleType(title) {
  return ['string', 'number'].includes((0,esm_typeof/* default */.Z)(title));
}
function getTitle(item) {
  var title = undefined;
  if (item) {
    if (isTitleType(item.title)) {
      title = item.title.toString();
    } else if (isTitleType(item.label)) {
      title = item.label.toString();
    }
  }
  return title;
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useLayoutEffect.js
/* eslint-disable react-hooks/rules-of-hooks */



/**
 * Wrap `React.useLayoutEffect` which will not throw warning message in test env
 */
function useLayoutEffect_useLayoutEffect(effect, deps) {
  // Never happen in test env
  if (isBrowserClient) {
    /* istanbul ignore next */
    _react_18_2_0_react.useLayoutEffect(effect, deps);
  } else {
    _react_18_2_0_react.useEffect(effect, deps);
  }
}
/* eslint-enable */
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/Selector/MultipleSelector.js











function itemKey(value) {
  var _value$key;
  return (_value$key = value.key) !== null && _value$key !== void 0 ? _value$key : value.value;
}
var onPreventMouseDown = function onPreventMouseDown(event) {
  event.preventDefault();
  event.stopPropagation();
};
var SelectSelector = function SelectSelector(props) {
  var id = props.id,
    prefixCls = props.prefixCls,
    values = props.values,
    open = props.open,
    searchValue = props.searchValue,
    autoClearSearchValue = props.autoClearSearchValue,
    inputRef = props.inputRef,
    placeholder = props.placeholder,
    disabled = props.disabled,
    mode = props.mode,
    showSearch = props.showSearch,
    autoFocus = props.autoFocus,
    autoComplete = props.autoComplete,
    activeDescendantId = props.activeDescendantId,
    tabIndex = props.tabIndex,
    removeIcon = props.removeIcon,
    maxTagCount = props.maxTagCount,
    maxTagTextLength = props.maxTagTextLength,
    _props$maxTagPlacehol = props.maxTagPlaceholder,
    maxTagPlaceholder = _props$maxTagPlacehol === void 0 ? function (omittedValues) {
      return "+ ".concat(omittedValues.length, " ...");
    } : _props$maxTagPlacehol,
    tagRender = props.tagRender,
    onToggleOpen = props.onToggleOpen,
    onRemove = props.onRemove,
    onInputChange = props.onInputChange,
    onInputPaste = props.onInputPaste,
    onInputKeyDown = props.onInputKeyDown,
    onInputMouseDown = props.onInputMouseDown,
    onInputCompositionStart = props.onInputCompositionStart,
    onInputCompositionEnd = props.onInputCompositionEnd;
  var measureRef = _react_18_2_0_react.useRef(null);
  var _useState = (0,_react_18_2_0_react.useState)(0),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    inputWidth = _useState2[0],
    setInputWidth = _useState2[1];
  var _useState3 = (0,_react_18_2_0_react.useState)(false),
    _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2),
    focused = _useState4[0],
    setFocused = _useState4[1];
  var selectionPrefixCls = "".concat(prefixCls, "-selection");

  // ===================== Search ======================
  var inputValue = open || mode === "multiple" && autoClearSearchValue === false || mode === 'tags' ? searchValue : '';
  var inputEditable = mode === 'tags' || mode === "multiple" && autoClearSearchValue === false || showSearch && (open || focused);

  // We measure width and set to the input immediately
  useLayoutEffect_useLayoutEffect(function () {
    setInputWidth(measureRef.current.scrollWidth);
  }, [inputValue]);

  // ===================== Render ======================
  // >>> Render Selector Node. Includes Item & Rest
  function defaultRenderSelector(item, content, itemDisabled, closable, onClose) {
    return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: _classnames_2_3_2_classnames_default()("".concat(selectionPrefixCls, "-item"), (0,defineProperty/* default */.Z)({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
      title: getTitle(item)
    }, /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(selectionPrefixCls, "-item-content")
    }, content), closable && /*#__PURE__*/_react_18_2_0_react.createElement(es_TransBtn, {
      className: "".concat(selectionPrefixCls, "-item-remove"),
      onMouseDown: onPreventMouseDown,
      onClick: onClose,
      customizeIcon: removeIcon
    }, "\xD7"));
  }
  function customizeRenderSelector(value, content, itemDisabled, closable, onClose) {
    var onMouseDown = function onMouseDown(e) {
      onPreventMouseDown(e);
      onToggleOpen(!open);
    };
    return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      onMouseDown: onMouseDown
    }, tagRender({
      label: content,
      value: value,
      disabled: itemDisabled,
      closable: closable,
      onClose: onClose
    }));
  }
  function renderItem(valueItem) {
    var itemDisabled = valueItem.disabled,
      label = valueItem.label,
      value = valueItem.value;
    var closable = !disabled && !itemDisabled;
    var displayLabel = label;
    if (typeof maxTagTextLength === 'number') {
      if (typeof label === 'string' || typeof label === 'number') {
        var strLabel = String(displayLabel);
        if (strLabel.length > maxTagTextLength) {
          displayLabel = "".concat(strLabel.slice(0, maxTagTextLength), "...");
        }
      }
    }
    var onClose = function onClose(event) {
      if (event) event.stopPropagation();
      onRemove(valueItem);
    };
    return typeof tagRender === 'function' ? customizeRenderSelector(value, displayLabel, itemDisabled, closable, onClose) : defaultRenderSelector(valueItem, displayLabel, itemDisabled, closable, onClose);
  }
  function renderRest(omittedValues) {
    var content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
    return defaultRenderSelector({
      title: content
    }, content, false);
  }

  // >>> Input Node
  var inputNode = /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(selectionPrefixCls, "-search"),
    style: {
      width: inputWidth
    },
    onFocus: function onFocus() {
      setFocused(true);
    },
    onBlur: function onBlur() {
      setFocused(false);
    }
  }, /*#__PURE__*/_react_18_2_0_react.createElement(Selector_Input, {
    ref: inputRef,
    open: open,
    prefixCls: prefixCls,
    id: id,
    inputElement: null,
    disabled: disabled,
    autoFocus: autoFocus,
    autoComplete: autoComplete,
    editable: inputEditable,
    activeDescendantId: activeDescendantId,
    value: inputValue,
    onKeyDown: onInputKeyDown,
    onMouseDown: onInputMouseDown,
    onChange: onInputChange,
    onPaste: onInputPaste,
    onCompositionStart: onInputCompositionStart,
    onCompositionEnd: onInputCompositionEnd,
    tabIndex: tabIndex,
    attrs: (0,pickAttrs/* default */.Z)(props, true)
  }), /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    ref: measureRef,
    className: "".concat(selectionPrefixCls, "-search-mirror"),
    "aria-hidden": true
  }, inputValue, "\xA0"));

  // >>> Selections
  var selectionNode = /*#__PURE__*/_react_18_2_0_react.createElement(_rc_overflow_1_3_0_rc_overflow_es, {
    prefixCls: "".concat(selectionPrefixCls, "-overflow"),
    data: values,
    renderItem: renderItem,
    renderRest: renderRest,
    suffix: inputNode,
    itemKey: itemKey,
    maxCount: maxTagCount
  });
  return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, selectionNode, !values.length && !inputValue && /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: "".concat(selectionPrefixCls, "-placeholder")
  }, placeholder));
};
/* harmony default export */ var MultipleSelector = (SelectSelector);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/Selector/SingleSelector.js





var SingleSelector = function SingleSelector(props) {
  var inputElement = props.inputElement,
    prefixCls = props.prefixCls,
    id = props.id,
    inputRef = props.inputRef,
    disabled = props.disabled,
    autoFocus = props.autoFocus,
    autoComplete = props.autoComplete,
    activeDescendantId = props.activeDescendantId,
    mode = props.mode,
    open = props.open,
    values = props.values,
    placeholder = props.placeholder,
    tabIndex = props.tabIndex,
    showSearch = props.showSearch,
    searchValue = props.searchValue,
    activeValue = props.activeValue,
    maxLength = props.maxLength,
    onInputKeyDown = props.onInputKeyDown,
    onInputMouseDown = props.onInputMouseDown,
    onInputChange = props.onInputChange,
    onInputPaste = props.onInputPaste,
    onInputCompositionStart = props.onInputCompositionStart,
    onInputCompositionEnd = props.onInputCompositionEnd;
  var _React$useState = _react_18_2_0_react.useState(false),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    inputChanged = _React$useState2[0],
    setInputChanged = _React$useState2[1];
  var combobox = mode === 'combobox';
  var inputEditable = combobox || showSearch;
  var item = values[0];
  var inputValue = searchValue || '';
  if (combobox && activeValue && !inputChanged) {
    inputValue = activeValue;
  }
  _react_18_2_0_react.useEffect(function () {
    if (combobox) {
      setInputChanged(false);
    }
  }, [combobox, activeValue]);

  // Not show text when closed expect combobox mode
  var hasTextInput = mode !== 'combobox' && !open && !showSearch ? false : !!inputValue;

  // Get title
  var title = getTitle(item);
  var renderPlaceholder = function renderPlaceholder() {
    if (item) {
      return null;
    }
    var hiddenStyle = hasTextInput ? {
      visibility: 'hidden'
    } : undefined;
    return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-selection-placeholder"),
      style: hiddenStyle
    }, placeholder);
  };
  return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: "".concat(prefixCls, "-selection-search")
  }, /*#__PURE__*/_react_18_2_0_react.createElement(Selector_Input, {
    ref: inputRef,
    prefixCls: prefixCls,
    id: id,
    open: open,
    inputElement: inputElement,
    disabled: disabled,
    autoFocus: autoFocus,
    autoComplete: autoComplete,
    editable: inputEditable,
    activeDescendantId: activeDescendantId,
    value: inputValue,
    onKeyDown: onInputKeyDown,
    onMouseDown: onInputMouseDown,
    onChange: function onChange(e) {
      setInputChanged(true);
      onInputChange(e);
    },
    onPaste: onInputPaste,
    onCompositionStart: onInputCompositionStart,
    onCompositionEnd: onInputCompositionEnd,
    tabIndex: tabIndex,
    attrs: (0,pickAttrs/* default */.Z)(props, true),
    maxLength: combobox ? maxLength : undefined
  })), !combobox && item ? /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: "".concat(prefixCls, "-selection-item"),
    title: title
    // 当 Select 已经选中选项时，还需 selection 隐藏但留在原地占位
    // https://github.com/ant-design/ant-design/issues/27688
    // https://github.com/ant-design/ant-design/issues/41530
    ,

    style: hasTextInput ? {
      visibility: 'hidden'
    } : undefined
  }, item.label) : null, renderPlaceholder());
};
/* harmony default export */ var Selector_SingleSelector = (SingleSelector);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/utils/keyUtil.js


/** keyCode Judgment function */
function isValidateOpenKey(currentKeyCode) {
  return ![
  // System function button
  KeyCode/* default */.Z.ESC, KeyCode/* default */.Z.SHIFT, KeyCode/* default */.Z.BACKSPACE, KeyCode/* default */.Z.TAB, KeyCode/* default */.Z.WIN_KEY, KeyCode/* default */.Z.ALT, KeyCode/* default */.Z.META, KeyCode/* default */.Z.WIN_KEY_RIGHT, KeyCode/* default */.Z.CTRL, KeyCode/* default */.Z.SEMICOLON, KeyCode/* default */.Z.EQUALS, KeyCode/* default */.Z.CAPS_LOCK, KeyCode/* default */.Z.CONTEXT_MENU,
  // F1-F12
  KeyCode/* default */.Z.F1, KeyCode/* default */.Z.F2, KeyCode/* default */.Z.F3, KeyCode/* default */.Z.F4, KeyCode/* default */.Z.F5, KeyCode/* default */.Z.F6, KeyCode/* default */.Z.F7, KeyCode/* default */.Z.F8, KeyCode/* default */.Z.F9, KeyCode/* default */.Z.F10, KeyCode/* default */.Z.F11, KeyCode/* default */.Z.F12].includes(currentKeyCode);
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/Selector/index.js


/**
 * Cursor rule:
 * 1. Only `showSearch` enabled
 * 2. Only `open` is `true`
 * 3. When typing, set `open` to `true` which hit rule of 2
 *
 * Accessibility:
 * - https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html
 */








var Selector = function Selector(props, ref) {
  var inputRef = (0,_react_18_2_0_react.useRef)(null);
  var compositionStatusRef = (0,_react_18_2_0_react.useRef)(false);
  var prefixCls = props.prefixCls,
    open = props.open,
    mode = props.mode,
    showSearch = props.showSearch,
    tokenWithEnter = props.tokenWithEnter,
    autoClearSearchValue = props.autoClearSearchValue,
    onSearch = props.onSearch,
    onSearchSubmit = props.onSearchSubmit,
    onToggleOpen = props.onToggleOpen,
    onInputKeyDown = props.onInputKeyDown,
    domRef = props.domRef;

  // ======================= Ref =======================
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      focus: function focus() {
        inputRef.current.focus();
      },
      blur: function blur() {
        inputRef.current.blur();
      }
    };
  });

  // ====================== Input ======================
  var _useLock = useLock(0),
    _useLock2 = (0,slicedToArray/* default */.Z)(_useLock, 2),
    getInputMouseDown = _useLock2[0],
    setInputMouseDown = _useLock2[1];
  var onInternalInputKeyDown = function onInternalInputKeyDown(event) {
    var which = event.which;
    if (which === KeyCode/* default */.Z.UP || which === KeyCode/* default */.Z.DOWN) {
      event.preventDefault();
    }
    if (onInputKeyDown) {
      onInputKeyDown(event);
    }
    if (which === KeyCode/* default */.Z.ENTER && mode === 'tags' && !compositionStatusRef.current && !open) {
      // When menu isn't open, OptionList won't trigger a value change
      // So when enter is pressed, the tag's input value should be emitted here to let selector know
      onSearchSubmit === null || onSearchSubmit === void 0 ? void 0 : onSearchSubmit(event.target.value);
    }
    if (isValidateOpenKey(which)) {
      onToggleOpen(true);
    }
  };

  /**
   * We can not use `findDOMNode` sine it will get warning,
   * have to use timer to check if is input element.
   */
  var onInternalInputMouseDown = function onInternalInputMouseDown() {
    setInputMouseDown(true);
  };

  // When paste come, ignore next onChange
  var pastedTextRef = (0,_react_18_2_0_react.useRef)(null);
  var triggerOnSearch = function triggerOnSearch(value) {
    if (onSearch(value, true, compositionStatusRef.current) !== false) {
      onToggleOpen(true);
    }
  };
  var onInputCompositionStart = function onInputCompositionStart() {
    compositionStatusRef.current = true;
  };
  var onInputCompositionEnd = function onInputCompositionEnd(e) {
    compositionStatusRef.current = false;

    // Trigger search again to support `tokenSeparators` with typewriting
    if (mode !== 'combobox') {
      triggerOnSearch(e.target.value);
    }
  };
  var onInputChange = function onInputChange(event) {
    var value = event.target.value;

    // Pasted text should replace back to origin content
    if (tokenWithEnter && pastedTextRef.current && /[\r\n]/.test(pastedTextRef.current)) {
      // CRLF will be treated as a single space for input element
      var replacedText = pastedTextRef.current.replace(/[\r\n]+$/, '').replace(/\r\n/g, ' ').replace(/[\r\n]/g, ' ');
      value = value.replace(replacedText, pastedTextRef.current);
    }
    pastedTextRef.current = null;
    triggerOnSearch(value);
  };
  var onInputPaste = function onInputPaste(e) {
    var clipboardData = e.clipboardData;
    var value = clipboardData.getData('text');
    pastedTextRef.current = value;
  };
  var onClick = function onClick(_ref) {
    var target = _ref.target;
    if (target !== inputRef.current) {
      // Should focus input if click the selector
      var isIE = document.body.style.msTouchAction !== undefined;
      if (isIE) {
        setTimeout(function () {
          inputRef.current.focus();
        });
      } else {
        inputRef.current.focus();
      }
    }
  };
  var onMouseDown = function onMouseDown(event) {
    var inputMouseDown = getInputMouseDown();

    // when mode is combobox, don't prevent default behavior
    // https://github.com/ant-design/ant-design/issues/37320
    if (event.target !== inputRef.current && !inputMouseDown && mode !== 'combobox') {
      event.preventDefault();
    }
    if (mode !== 'combobox' && (!showSearch || !inputMouseDown) || !open) {
      if (open && autoClearSearchValue !== false) {
        onSearch('', true, false);
      }
      onToggleOpen();
    }
  };

  // ================= Inner Selector ==================
  var sharedProps = {
    inputRef: inputRef,
    onInputKeyDown: onInternalInputKeyDown,
    onInputMouseDown: onInternalInputMouseDown,
    onInputChange: onInputChange,
    onInputPaste: onInputPaste,
    onInputCompositionStart: onInputCompositionStart,
    onInputCompositionEnd: onInputCompositionEnd
  };
  var selectNode = mode === 'multiple' || mode === 'tags' ? /*#__PURE__*/_react_18_2_0_react.createElement(MultipleSelector, (0,esm_extends/* default */.Z)({}, props, sharedProps)) : /*#__PURE__*/_react_18_2_0_react.createElement(Selector_SingleSelector, (0,esm_extends/* default */.Z)({}, props, sharedProps));
  return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    ref: domRef,
    className: "".concat(prefixCls, "-selector"),
    onClick: onClick,
    onMouseDown: onMouseDown
  }, selectNode);
};
var ForwardSelector = /*#__PURE__*/_react_18_2_0_react.forwardRef(Selector);
ForwardSelector.displayName = 'Selector';
/* harmony default export */ var es_Selector = (ForwardSelector);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/SelectTrigger.js




var SelectTrigger_excluded = ["prefixCls", "disabled", "visible", "children", "popupElement", "containerWidth", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"];



var getBuiltInPlacements = function getBuiltInPlacements(dropdownMatchSelectWidth) {
  // Enable horizontal overflow auto-adjustment when a custom dropdown width is provided
  var adjustX = dropdownMatchSelectWidth === true ? 0 : 1;
  return {
    bottomLeft: {
      points: ['tl', 'bl'],
      offset: [0, 4],
      overflow: {
        adjustX: adjustX,
        adjustY: 1
      }
    },
    bottomRight: {
      points: ['tr', 'br'],
      offset: [0, 4],
      overflow: {
        adjustX: adjustX,
        adjustY: 1
      }
    },
    topLeft: {
      points: ['bl', 'tl'],
      offset: [0, -4],
      overflow: {
        adjustX: adjustX,
        adjustY: 1
      }
    },
    topRight: {
      points: ['br', 'tr'],
      offset: [0, -4],
      overflow: {
        adjustX: adjustX,
        adjustY: 1
      }
    }
  };
};
var SelectTrigger = function SelectTrigger(props, ref) {
  var prefixCls = props.prefixCls,
    disabled = props.disabled,
    visible = props.visible,
    children = props.children,
    popupElement = props.popupElement,
    containerWidth = props.containerWidth,
    animation = props.animation,
    transitionName = props.transitionName,
    dropdownStyle = props.dropdownStyle,
    dropdownClassName = props.dropdownClassName,
    _props$direction = props.direction,
    direction = _props$direction === void 0 ? 'ltr' : _props$direction,
    placement = props.placement,
    dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,
    dropdownRender = props.dropdownRender,
    dropdownAlign = props.dropdownAlign,
    getPopupContainer = props.getPopupContainer,
    empty = props.empty,
    getTriggerDOMNode = props.getTriggerDOMNode,
    onPopupVisibleChange = props.onPopupVisibleChange,
    onPopupMouseEnter = props.onPopupMouseEnter,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, SelectTrigger_excluded);
  var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
  var popupNode = popupElement;
  if (dropdownRender) {
    popupNode = dropdownRender(popupElement);
  }
  var builtInPlacements = _react_18_2_0_react.useMemo(function () {
    return getBuiltInPlacements(dropdownMatchSelectWidth);
  }, [dropdownMatchSelectWidth]);

  // ===================== Motion ======================
  var mergedTransitionName = animation ? "".concat(dropdownPrefixCls, "-").concat(animation) : transitionName;

  // ======================= Ref =======================
  var popupRef = _react_18_2_0_react.useRef(null);
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      getPopupElement: function getPopupElement() {
        return popupRef.current;
      }
    };
  });
  var popupStyle = (0,objectSpread2/* default */.Z)({
    minWidth: containerWidth
  }, dropdownStyle);
  if (typeof dropdownMatchSelectWidth === 'number') {
    popupStyle.width = dropdownMatchSelectWidth;
  } else if (dropdownMatchSelectWidth) {
    popupStyle.width = containerWidth;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_trigger_5_3_4_rc_trigger_es, (0,esm_extends/* default */.Z)({}, restProps, {
    showAction: onPopupVisibleChange ? ['click'] : [],
    hideAction: onPopupVisibleChange ? ['click'] : [],
    popupPlacement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
    builtinPlacements: builtInPlacements,
    prefixCls: dropdownPrefixCls,
    popupTransitionName: mergedTransitionName,
    popup: /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      ref: popupRef,
      onMouseEnter: onPopupMouseEnter
    }, popupNode),
    popupAlign: dropdownAlign,
    popupVisible: visible,
    getPopupContainer: getPopupContainer,
    popupClassName: _classnames_2_3_2_classnames_default()(dropdownClassName, (0,defineProperty/* default */.Z)({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
    popupStyle: popupStyle,
    getTriggerDOMNode: getTriggerDOMNode,
    onPopupVisibleChange: onPopupVisibleChange
  }), children);
};
var RefSelectTrigger = /*#__PURE__*/_react_18_2_0_react.forwardRef(SelectTrigger);
RefSelectTrigger.displayName = 'SelectTrigger';
/* harmony default export */ var es_SelectTrigger = (RefSelectTrigger);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/toArray.js
var esm_toArray = __webpack_require__(6408);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/utils/valueUtil.js




function getKey(data, index) {
  var key = data.key;
  var value;
  if ('value' in data) {
    value = data.value;
  }
  if (key !== null && key !== undefined) {
    return key;
  }
  if (value !== undefined) {
    return value;
  }
  return "rc-index-key-".concat(index);
}
function fillFieldNames(fieldNames, childrenAsData) {
  var _ref = fieldNames || {},
    label = _ref.label,
    value = _ref.value,
    options = _ref.options;
  return {
    label: label || (childrenAsData ? 'children' : 'label'),
    value: value || 'value',
    options: options || 'options'
  };
}

/**
 * Flat options into flatten list.
 * We use `optionOnly` here is aim to avoid user use nested option group.
 * Here is simply set `key` to the index if not provided.
 */
function flattenOptions(options) {
  var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
    fieldNames = _ref2.fieldNames,
    childrenAsData = _ref2.childrenAsData;
  var flattenList = [];
  var _fillFieldNames = fillFieldNames(fieldNames, false),
    fieldLabel = _fillFieldNames.label,
    fieldValue = _fillFieldNames.value,
    fieldOptions = _fillFieldNames.options;
  function dig(list, isGroupOption) {
    list.forEach(function (data) {
      var label = data[fieldLabel];
      if (isGroupOption || !(fieldOptions in data)) {
        var value = data[fieldValue];

        // Option
        flattenList.push({
          key: getKey(data, flattenList.length),
          groupOption: isGroupOption,
          data: data,
          label: label,
          value: value
        });
      } else {
        var grpLabel = label;
        if (grpLabel === undefined && childrenAsData) {
          grpLabel = data.label;
        }

        // Option Group
        flattenList.push({
          key: getKey(data, flattenList.length),
          group: true,
          data: data,
          label: grpLabel
        });
        dig(data[fieldOptions], true);
      }
    });
  }
  dig(options, false);
  return flattenList;
}

/**
 * Inject `props` into `option` for legacy usage
 */
function injectPropsWithOption(option) {
  var newOption = (0,objectSpread2/* default */.Z)({}, option);
  if (!('props' in newOption)) {
    Object.defineProperty(newOption, 'props', {
      get: function get() {
        (0,es_warning/* default */.ZP)(false, 'Return type is option instead of Option instance. Please read value directly instead of reading from `props`.');
        return newOption;
      }
    });
  }
  return newOption;
}
function getSeparatedContent(text, tokens) {
  if (!tokens || !tokens.length) {
    return null;
  }
  var match = false;
  function separate(str, _ref3) {
    var _ref4 = (0,esm_toArray/* default */.Z)(_ref3),
      token = _ref4[0],
      restTokens = _ref4.slice(1);
    if (!token) {
      return [str];
    }
    var list = str.split(token);
    match = match || list.length > 1;
    return list.reduce(function (prevList, unitStr) {
      return [].concat((0,toConsumableArray/* default */.Z)(prevList), (0,toConsumableArray/* default */.Z)(separate(unitStr, restTokens)));
    }, []).filter(function (unit) {
      return unit;
    });
  }
  var list = separate(text, tokens);
  return match ? list : null;
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/BaseSelect.js







var BaseSelect_excluded = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "showArrow", "inputIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"];















var DEFAULT_OMIT_PROPS = ['value', 'onChange', 'removeIcon', 'placeholder', 'autoFocus', 'maxTagCount', 'maxTagTextLength', 'maxTagPlaceholder', 'choiceTransitionName', 'onInputKeyDown', 'onPopupScroll', 'tabIndex'];
function BaseSelect_isMultiple(mode) {
  return mode === 'tags' || mode === 'multiple';
}
var BaseSelect = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var _customizeRawInputEle, _classNames2;
  var id = props.id,
    prefixCls = props.prefixCls,
    className = props.className,
    showSearch = props.showSearch,
    tagRender = props.tagRender,
    direction = props.direction,
    omitDomProps = props.omitDomProps,
    displayValues = props.displayValues,
    onDisplayValuesChange = props.onDisplayValuesChange,
    emptyOptions = props.emptyOptions,
    _props$notFoundConten = props.notFoundContent,
    notFoundContent = _props$notFoundConten === void 0 ? 'Not Found' : _props$notFoundConten,
    onClear = props.onClear,
    mode = props.mode,
    disabled = props.disabled,
    loading = props.loading,
    getInputElement = props.getInputElement,
    getRawInputElement = props.getRawInputElement,
    open = props.open,
    defaultOpen = props.defaultOpen,
    onDropdownVisibleChange = props.onDropdownVisibleChange,
    activeValue = props.activeValue,
    onActiveValueChange = props.onActiveValueChange,
    activeDescendantId = props.activeDescendantId,
    searchValue = props.searchValue,
    autoClearSearchValue = props.autoClearSearchValue,
    onSearch = props.onSearch,
    onSearchSplit = props.onSearchSplit,
    tokenSeparators = props.tokenSeparators,
    allowClear = props.allowClear,
    showArrow = props.showArrow,
    inputIcon = props.inputIcon,
    clearIcon = props.clearIcon,
    OptionList = props.OptionList,
    animation = props.animation,
    transitionName = props.transitionName,
    dropdownStyle = props.dropdownStyle,
    dropdownClassName = props.dropdownClassName,
    dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,
    dropdownRender = props.dropdownRender,
    dropdownAlign = props.dropdownAlign,
    placement = props.placement,
    getPopupContainer = props.getPopupContainer,
    _props$showAction = props.showAction,
    showAction = _props$showAction === void 0 ? [] : _props$showAction,
    onFocus = props.onFocus,
    onBlur = props.onBlur,
    onKeyUp = props.onKeyUp,
    onKeyDown = props.onKeyDown,
    onMouseDown = props.onMouseDown,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, BaseSelect_excluded);

  // ============================== MISC ==============================
  var multiple = BaseSelect_isMultiple(mode);
  var mergedShowSearch = (showSearch !== undefined ? showSearch : multiple) || mode === 'combobox';
  var domProps = (0,objectSpread2/* default */.Z)({}, restProps);
  DEFAULT_OMIT_PROPS.forEach(function (propName) {
    delete domProps[propName];
  });
  omitDomProps === null || omitDomProps === void 0 ? void 0 : omitDomProps.forEach(function (propName) {
    delete domProps[propName];
  });

  // ============================= Mobile =============================
  var _React$useState = _react_18_2_0_react.useState(false),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    mobile = _React$useState2[0],
    setMobile = _React$useState2[1];
  _react_18_2_0_react.useEffect(function () {
    // Only update on the client side
    setMobile(isMobile());
  }, []);

  // ============================== Refs ==============================
  var containerRef = _react_18_2_0_react.useRef(null);
  var selectorDomRef = _react_18_2_0_react.useRef(null);
  var triggerRef = _react_18_2_0_react.useRef(null);
  var selectorRef = _react_18_2_0_react.useRef(null);
  var listRef = _react_18_2_0_react.useRef(null);

  /** Used for component focused management */
  var _useDelayReset = useDelayReset(),
    _useDelayReset2 = (0,slicedToArray/* default */.Z)(_useDelayReset, 3),
    mockFocused = _useDelayReset2[0],
    setMockFocused = _useDelayReset2[1],
    cancelSetMockFocused = _useDelayReset2[2];

  // =========================== Imperative ===========================
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    var _selectorRef$current, _selectorRef$current2;
    return {
      focus: (_selectorRef$current = selectorRef.current) === null || _selectorRef$current === void 0 ? void 0 : _selectorRef$current.focus,
      blur: (_selectorRef$current2 = selectorRef.current) === null || _selectorRef$current2 === void 0 ? void 0 : _selectorRef$current2.blur,
      scrollTo: function scrollTo(arg) {
        var _listRef$current;
        return (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollTo(arg);
      }
    };
  });

  // ========================== Search Value ==========================
  var mergedSearchValue = _react_18_2_0_react.useMemo(function () {
    var _displayValues$;
    if (mode !== 'combobox') {
      return searchValue;
    }
    var val = (_displayValues$ = displayValues[0]) === null || _displayValues$ === void 0 ? void 0 : _displayValues$.value;
    return typeof val === 'string' || typeof val === 'number' ? String(val) : '';
  }, [searchValue, mode, displayValues]);

  // ========================== Custom Input ==========================
  // Only works in `combobox`
  var customizeInputElement = mode === 'combobox' && typeof getInputElement === 'function' && getInputElement() || null;

  // Used for customize replacement for `rc-cascader`
  var customizeRawInputElement = typeof getRawInputElement === 'function' && getRawInputElement();
  var customizeRawInputRef = (0,es_ref/* useComposeRef */.x1)(selectorDomRef, customizeRawInputElement === null || customizeRawInputElement === void 0 ? void 0 : (_customizeRawInputEle = customizeRawInputElement.props) === null || _customizeRawInputEle === void 0 ? void 0 : _customizeRawInputEle.ref);

  // ============================== Open ==============================
  var _useMergedState = (0,useMergedState/* default */.Z)(undefined, {
      defaultValue: defaultOpen,
      value: open
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    innerOpen = _useMergedState2[0],
    setInnerOpen = _useMergedState2[1];
  var mergedOpen = innerOpen;

  // Not trigger `open` in `combobox` when `notFoundContent` is empty
  var emptyListContent = !notFoundContent && emptyOptions;
  if (disabled || emptyListContent && mergedOpen && mode === 'combobox') {
    mergedOpen = false;
  }
  var triggerOpen = emptyListContent ? false : mergedOpen;
  var onToggleOpen = _react_18_2_0_react.useCallback(function (newOpen) {
    var nextOpen = newOpen !== undefined ? newOpen : !mergedOpen;
    if (!disabled) {
      setInnerOpen(nextOpen);
      if (mergedOpen !== nextOpen) {
        onDropdownVisibleChange === null || onDropdownVisibleChange === void 0 ? void 0 : onDropdownVisibleChange(nextOpen);
      }
    }
  }, [disabled, mergedOpen, setInnerOpen, onDropdownVisibleChange]);

  // ============================= Search =============================
  var tokenWithEnter = _react_18_2_0_react.useMemo(function () {
    return (tokenSeparators || []).some(function (tokenSeparator) {
      return ['\n', '\r\n'].includes(tokenSeparator);
    });
  }, [tokenSeparators]);
  var onInternalSearch = function onInternalSearch(searchText, fromTyping, isCompositing) {
    var ret = true;
    var newSearchText = searchText;
    onActiveValueChange === null || onActiveValueChange === void 0 ? void 0 : onActiveValueChange(null);

    // Check if match the `tokenSeparators`
    var patchLabels = isCompositing ? null : getSeparatedContent(searchText, tokenSeparators);

    // Ignore combobox since it's not split-able
    if (mode !== 'combobox' && patchLabels) {
      newSearchText = '';
      onSearchSplit === null || onSearchSplit === void 0 ? void 0 : onSearchSplit(patchLabels);

      // Should close when paste finish
      onToggleOpen(false);

      // Tell Selector that break next actions
      ret = false;
    }
    if (onSearch && mergedSearchValue !== newSearchText) {
      onSearch(newSearchText, {
        source: fromTyping ? 'typing' : 'effect'
      });
    }
    return ret;
  };

  // Only triggered when menu is closed & mode is tags
  // If menu is open, OptionList will take charge
  // If mode isn't tags, press enter is not meaningful when you can't see any option
  var onInternalSearchSubmit = function onInternalSearchSubmit(searchText) {
    // prevent empty tags from appearing when you click the Enter button
    if (!searchText || !searchText.trim()) {
      return;
    }
    onSearch(searchText, {
      source: 'submit'
    });
  };

  // Close will clean up single mode search text
  _react_18_2_0_react.useEffect(function () {
    if (!mergedOpen && !multiple && mode !== 'combobox') {
      onInternalSearch('', false, false);
    }
  }, [mergedOpen]);

  // ============================ Disabled ============================
  // Close dropdown & remove focus state when disabled change
  _react_18_2_0_react.useEffect(function () {
    if (innerOpen && disabled) {
      setInnerOpen(false);
    }
    if (disabled) {
      setMockFocused(false);
    }
  }, [disabled]);

  // ============================ Keyboard ============================
  /**
   * We record input value here to check if can press to clean up by backspace
   * - null: Key is not down, this is reset by key up
   * - true: Search text is empty when first time backspace down
   * - false: Search text is not empty when first time backspace down
   */
  var _useLock = useLock(),
    _useLock2 = (0,slicedToArray/* default */.Z)(_useLock, 2),
    getClearLock = _useLock2[0],
    setClearLock = _useLock2[1];

  // KeyDown
  var onInternalKeyDown = function onInternalKeyDown(event) {
    var clearLock = getClearLock();
    var which = event.which;
    if (which === KeyCode/* default */.Z.ENTER) {
      // Do not submit form when type in the input
      if (mode !== 'combobox') {
        event.preventDefault();
      }

      // We only manage open state here, close logic should handle by list component
      if (!mergedOpen) {
        onToggleOpen(true);
      }
    }
    setClearLock(!!mergedSearchValue);

    // Remove value by `backspace`
    if (which === KeyCode/* default */.Z.BACKSPACE && !clearLock && multiple && !mergedSearchValue && displayValues.length) {
      var cloneDisplayValues = (0,toConsumableArray/* default */.Z)(displayValues);
      var removedDisplayValue = null;
      for (var i = cloneDisplayValues.length - 1; i >= 0; i -= 1) {
        var current = cloneDisplayValues[i];
        if (!current.disabled) {
          cloneDisplayValues.splice(i, 1);
          removedDisplayValue = current;
          break;
        }
      }
      if (removedDisplayValue) {
        onDisplayValuesChange(cloneDisplayValues, {
          type: 'remove',
          values: [removedDisplayValue]
        });
      }
    }
    for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      rest[_key - 1] = arguments[_key];
    }
    if (mergedOpen && listRef.current) {
      var _listRef$current2;
      (_listRef$current2 = listRef.current).onKeyDown.apply(_listRef$current2, [event].concat(rest));
    }
    onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown.apply(void 0, [event].concat(rest));
  };

  // KeyUp
  var onInternalKeyUp = function onInternalKeyUp(event) {
    for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
      rest[_key2 - 1] = arguments[_key2];
    }
    if (mergedOpen && listRef.current) {
      var _listRef$current3;
      (_listRef$current3 = listRef.current).onKeyUp.apply(_listRef$current3, [event].concat(rest));
    }
    onKeyUp === null || onKeyUp === void 0 ? void 0 : onKeyUp.apply(void 0, [event].concat(rest));
  };

  // ============================ Selector ============================
  var onSelectorRemove = function onSelectorRemove(val) {
    var newValues = displayValues.filter(function (i) {
      return i !== val;
    });
    onDisplayValuesChange(newValues, {
      type: 'remove',
      values: [val]
    });
  };

  // ========================== Focus / Blur ==========================
  /** Record real focus status */
  var focusRef = _react_18_2_0_react.useRef(false);
  var onContainerFocus = function onContainerFocus() {
    setMockFocused(true);
    if (!disabled) {
      if (onFocus && !focusRef.current) {
        onFocus.apply(void 0, arguments);
      }

      // `showAction` should handle `focus` if set
      if (showAction.includes('focus')) {
        onToggleOpen(true);
      }
    }
    focusRef.current = true;
  };
  var onContainerBlur = function onContainerBlur() {
    setMockFocused(false, function () {
      focusRef.current = false;
      onToggleOpen(false);
    });
    if (disabled) {
      return;
    }
    if (mergedSearchValue) {
      // `tags` mode should move `searchValue` into values
      if (mode === 'tags') {
        onSearch(mergedSearchValue, {
          source: 'submit'
        });
      } else if (mode === 'multiple') {
        // `multiple` mode only clean the search value but not trigger event
        onSearch('', {
          source: 'blur'
        });
      }
    }
    if (onBlur) {
      onBlur.apply(void 0, arguments);
    }
  };

  // Give focus back of Select
  var activeTimeoutIds = [];
  _react_18_2_0_react.useEffect(function () {
    return function () {
      activeTimeoutIds.forEach(function (timeoutId) {
        return clearTimeout(timeoutId);
      });
      activeTimeoutIds.splice(0, activeTimeoutIds.length);
    };
  }, []);
  var onInternalMouseDown = function onInternalMouseDown(event) {
    var _triggerRef$current;
    var target = event.target;
    var popupElement = (_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 ? void 0 : _triggerRef$current.getPopupElement();

    // We should give focus back to selector if clicked item is not focusable
    if (popupElement && popupElement.contains(target)) {
      var timeoutId = setTimeout(function () {
        var index = activeTimeoutIds.indexOf(timeoutId);
        if (index !== -1) {
          activeTimeoutIds.splice(index, 1);
        }
        cancelSetMockFocused();
        if (!mobile && !popupElement.contains(document.activeElement)) {
          var _selectorRef$current3;
          (_selectorRef$current3 = selectorRef.current) === null || _selectorRef$current3 === void 0 ? void 0 : _selectorRef$current3.focus();
        }
      });
      activeTimeoutIds.push(timeoutId);
    }
    for (var _len3 = arguments.length, restArgs = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
      restArgs[_key3 - 1] = arguments[_key3];
    }
    onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown.apply(void 0, [event].concat(restArgs));
  };

  // ============================ Dropdown ============================
  var _React$useState3 = _react_18_2_0_react.useState(null),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    containerWidth = _React$useState4[0],
    setContainerWidth = _React$useState4[1];
  var _React$useState5 = _react_18_2_0_react.useState({}),
    _React$useState6 = (0,slicedToArray/* default */.Z)(_React$useState5, 2),
    forceUpdate = _React$useState6[1];
  // We need force update here since popup dom is render async
  function onPopupMouseEnter() {
    forceUpdate({});
  }
  (0,useLayoutEffect/* default */.Z)(function () {
    if (triggerOpen) {
      var _containerRef$current;
      var newWidth = Math.ceil((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.offsetWidth);
      if (containerWidth !== newWidth && !Number.isNaN(newWidth)) {
        setContainerWidth(newWidth);
      }
    }
  }, [triggerOpen]);

  // Used for raw custom input trigger
  var onTriggerVisibleChange;
  if (customizeRawInputElement) {
    onTriggerVisibleChange = function onTriggerVisibleChange(newOpen) {
      onToggleOpen(newOpen);
    };
  }

  // Close when click on non-select element
  useSelectTriggerControl(function () {
    var _triggerRef$current2;
    return [containerRef.current, (_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : _triggerRef$current2.getPopupElement()];
  }, triggerOpen, onToggleOpen, !!customizeRawInputElement);

  // ============================ Context =============================
  var baseSelectContext = _react_18_2_0_react.useMemo(function () {
    return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
      notFoundContent: notFoundContent,
      open: mergedOpen,
      triggerOpen: triggerOpen,
      id: id,
      showSearch: mergedShowSearch,
      multiple: multiple,
      toggleOpen: onToggleOpen
    });
  }, [props, notFoundContent, triggerOpen, mergedOpen, id, mergedShowSearch, multiple, onToggleOpen]);

  // ==================================================================
  // ==                            Render                            ==
  // ==================================================================

  // ============================= Arrow ==============================
  var mergedShowArrow = showArrow !== undefined ? showArrow : loading || !multiple && mode !== 'combobox';
  var arrowNode;
  if (mergedShowArrow) {
    arrowNode = /*#__PURE__*/_react_18_2_0_react.createElement(es_TransBtn, {
      className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-arrow"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-arrow-loading"), loading)),
      customizeIcon: inputIcon,
      customizeIconProps: {
        loading: loading,
        searchValue: mergedSearchValue,
        open: mergedOpen,
        focused: mockFocused,
        showSearch: mergedShowSearch
      }
    });
  }

  // ============================= Clear ==============================
  var clearNode;
  var onClearMouseDown = function onClearMouseDown() {
    var _selectorRef$current4;
    onClear === null || onClear === void 0 ? void 0 : onClear();
    (_selectorRef$current4 = selectorRef.current) === null || _selectorRef$current4 === void 0 ? void 0 : _selectorRef$current4.focus();
    onDisplayValuesChange([], {
      type: 'clear',
      values: displayValues
    });
    onInternalSearch('', false, false);
  };
  if (!disabled && allowClear && (displayValues.length || mergedSearchValue) && !(mode === 'combobox' && mergedSearchValue === '')) {
    clearNode = /*#__PURE__*/_react_18_2_0_react.createElement(es_TransBtn, {
      className: "".concat(prefixCls, "-clear"),
      onMouseDown: onClearMouseDown,
      customizeIcon: clearIcon
    }, "\xD7");
  }

  // =========================== OptionList ===========================
  var optionList = /*#__PURE__*/_react_18_2_0_react.createElement(OptionList, {
    ref: listRef
  });

  // ============================= Select =============================
  var mergedClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, (_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-multiple"), multiple), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-single"), !multiple), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-show-arrow"), mergedShowArrow), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-loading"), loading), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));

  // >>> Selector
  var selectorNode = /*#__PURE__*/_react_18_2_0_react.createElement(es_SelectTrigger, {
    ref: triggerRef,
    disabled: disabled,
    prefixCls: prefixCls,
    visible: triggerOpen,
    popupElement: optionList,
    containerWidth: containerWidth,
    animation: animation,
    transitionName: transitionName,
    dropdownStyle: dropdownStyle,
    dropdownClassName: dropdownClassName,
    direction: direction,
    dropdownMatchSelectWidth: dropdownMatchSelectWidth,
    dropdownRender: dropdownRender,
    dropdownAlign: dropdownAlign,
    placement: placement,
    getPopupContainer: getPopupContainer,
    empty: emptyOptions,
    getTriggerDOMNode: function getTriggerDOMNode() {
      return selectorDomRef.current;
    },
    onPopupVisibleChange: onTriggerVisibleChange,
    onPopupMouseEnter: onPopupMouseEnter
  }, customizeRawInputElement ? /*#__PURE__*/_react_18_2_0_react.cloneElement(customizeRawInputElement, {
    ref: customizeRawInputRef
  }) : /*#__PURE__*/_react_18_2_0_react.createElement(es_Selector, (0,esm_extends/* default */.Z)({}, props, {
    domRef: selectorDomRef,
    prefixCls: prefixCls,
    inputElement: customizeInputElement,
    ref: selectorRef,
    id: id,
    showSearch: mergedShowSearch,
    autoClearSearchValue: autoClearSearchValue,
    mode: mode,
    activeDescendantId: activeDescendantId,
    tagRender: tagRender,
    values: displayValues,
    open: mergedOpen,
    onToggleOpen: onToggleOpen,
    activeValue: activeValue,
    searchValue: mergedSearchValue,
    onSearch: onInternalSearch,
    onSearchSubmit: onInternalSearchSubmit,
    onRemove: onSelectorRemove,
    tokenWithEnter: tokenWithEnter
  })));

  // >>> Render
  var renderNode;

  // Render raw
  if (customizeRawInputElement) {
    renderNode = selectorNode;
  } else {
    renderNode = /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
      className: mergedClassName
    }, domProps, {
      ref: containerRef,
      onMouseDown: onInternalMouseDown,
      onKeyDown: onInternalKeyDown,
      onKeyUp: onInternalKeyUp,
      onFocus: onContainerFocus,
      onBlur: onContainerBlur
    }), mockFocused && !mergedOpen && /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      style: {
        width: 0,
        height: 0,
        position: 'absolute',
        overflow: 'hidden',
        opacity: 0
      },
      "aria-live": "polite"
    }, "".concat(displayValues.map(function (_ref) {
      var label = _ref.label,
        value = _ref.value;
      return ['number', 'string'].includes((0,esm_typeof/* default */.Z)(label)) ? label : value;
    }).join(', '))), selectorNode, arrowNode, clearNode);
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(BaseSelectContext.Provider, {
    value: baseSelectContext
  }, renderNode);
});

// Set display name for dev
if (false) {}
/* harmony default export */ var es_BaseSelect = (BaseSelect);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useCache.js


/**
 * Cache `value` related LabeledValue & options.
 */
/* harmony default export */ var useCache = (function (labeledValues, valueOptions) {
  var cacheRef = _react_18_2_0_react.useRef({
    values: new Map(),
    options: new Map()
  });
  var filledLabeledValues = _react_18_2_0_react.useMemo(function () {
    var _cacheRef$current = cacheRef.current,
      prevValueCache = _cacheRef$current.values,
      prevOptionCache = _cacheRef$current.options;

    // Fill label by cache
    var patchedValues = labeledValues.map(function (item) {
      if (item.label === undefined) {
        var _prevValueCache$get;
        return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, item), {}, {
          label: (_prevValueCache$get = prevValueCache.get(item.value)) === null || _prevValueCache$get === void 0 ? void 0 : _prevValueCache$get.label
        });
      }
      return item;
    });

    // Refresh cache
    var valueCache = new Map();
    var optionCache = new Map();
    patchedValues.forEach(function (item) {
      valueCache.set(item.value, item);
      optionCache.set(item.value, valueOptions.get(item.value) || prevOptionCache.get(item.value));
    });
    cacheRef.current.values = valueCache;
    cacheRef.current.options = optionCache;
    return patchedValues;
  }, [labeledValues, valueOptions]);
  var getOption = _react_18_2_0_react.useCallback(function (val) {
    return valueOptions.get(val) || cacheRef.current.options.get(val);
  }, [valueOptions]);
  return [filledLabeledValues, getOption];
});
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useFilterOptions.js





function includes(test, search) {
  return commonUtil_toArray(test).join('').toUpperCase().includes(search);
}
/* harmony default export */ var useFilterOptions = (function (options, fieldNames, searchValue, filterOption, optionFilterProp) {
  return _react_18_2_0_react.useMemo(function () {
    if (!searchValue || filterOption === false) {
      return options;
    }
    var fieldOptions = fieldNames.options,
      fieldLabel = fieldNames.label,
      fieldValue = fieldNames.value;
    var filteredOptions = [];
    var customizeFilter = typeof filterOption === 'function';
    var upperSearch = searchValue.toUpperCase();
    var filterFunc = customizeFilter ? filterOption : function (_, option) {
      // Use provided `optionFilterProp`
      if (optionFilterProp) {
        return includes(option[optionFilterProp], upperSearch);
      }

      // Auto select `label` or `value` by option type
      if (option[fieldOptions]) {
        // hack `fieldLabel` since `OptionGroup` children is not `label`
        return includes(option[fieldLabel !== 'children' ? fieldLabel : 'label'], upperSearch);
      }
      return includes(option[fieldValue], upperSearch);
    };
    var wrapOption = customizeFilter ? function (opt) {
      return injectPropsWithOption(opt);
    } : function (opt) {
      return opt;
    };
    options.forEach(function (item) {
      // Group should check child options
      if (item[fieldOptions]) {
        // Check group first
        var matchGroup = filterFunc(searchValue, wrapOption(item));
        if (matchGroup) {
          filteredOptions.push(item);
        } else {
          // Check option
          var subOptions = item[fieldOptions].filter(function (subItem) {
            return filterFunc(searchValue, wrapOption(subItem));
          });
          if (subOptions.length) {
            filteredOptions.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, item), {}, (0,defineProperty/* default */.Z)({}, fieldOptions, subOptions)));
          }
        }
        return;
      }
      if (filterFunc(searchValue, wrapOption(item))) {
        filteredOptions.push(item);
      }
    });
    return filteredOptions;
  }, [options, filterOption, optionFilterProp, searchValue, fieldNames]);
});
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useId.js



var uuid = 0;

/** Is client side and not jsdom */
var useId_isBrowserClient =  true && (0,canUseDom/* default */.Z)();

/** Get unique id for accessibility usage */
function getUUID() {
  var retId;

  // Test never reach
  /* istanbul ignore if */
  if (useId_isBrowserClient) {
    retId = uuid;
    uuid += 1;
  } else {
    retId = 'TEST_OR_SSR';
  }
  return retId;
}
function useId(id) {
  // Inner id for accessibility usage. Only work in client side
  var _React$useState = _react_18_2_0_react.useState(),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    innerId = _React$useState2[0],
    setInnerId = _React$useState2[1];
  _react_18_2_0_react.useEffect(function () {
    setInnerId("rc_select_".concat(getUUID()));
  }, []);
  return id || innerId;
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/utils/legacyUtil.js


var legacyUtil_excluded = ["children", "value"],
  legacyUtil_excluded2 = ["children"];


function convertNodeToOption(node) {
  var _ref = node,
    key = _ref.key,
    _ref$props = _ref.props,
    children = _ref$props.children,
    value = _ref$props.value,
    restProps = (0,objectWithoutProperties/* default */.Z)(_ref$props, legacyUtil_excluded);
  return (0,objectSpread2/* default */.Z)({
    key: key,
    value: value !== undefined ? value : key,
    children: children
  }, restProps);
}
function legacyUtil_convertChildrenToData(nodes) {
  var optionOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  return (0,Children_toArray/* default */.Z)(nodes).map(function (node, index) {
    if (! /*#__PURE__*/_react_18_2_0_react.isValidElement(node) || !node.type) {
      return null;
    }
    var _ref2 = node,
      isSelectOptGroup = _ref2.type.isSelectOptGroup,
      key = _ref2.key,
      _ref2$props = _ref2.props,
      children = _ref2$props.children,
      restProps = (0,objectWithoutProperties/* default */.Z)(_ref2$props, legacyUtil_excluded2);
    if (optionOnly || !isSelectOptGroup) {
      return convertNodeToOption(node);
    }
    return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
      key: "__RC_SELECT_GRP__".concat(key === null ? index : key, "__"),
      label: key
    }, restProps), {}, {
      options: legacyUtil_convertChildrenToData(children)
    });
  }).filter(function (data) {
    return data;
  });
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useOptions.js



/**
 * Parse `children` to `options` if `options` is not provided.
 * Then flatten the `options`.
 */
function useOptions(options, children, fieldNames, optionFilterProp, optionLabelProp) {
  return _react_18_2_0_react.useMemo(function () {
    var mergedOptions = options;
    var childrenAsData = !options;
    if (childrenAsData) {
      mergedOptions = legacyUtil_convertChildrenToData(children);
    }
    var valueOptions = new Map();
    var labelOptions = new Map();
    var setLabelOptions = function setLabelOptions(labelOptionsMap, option, key) {
      if (key && typeof key === 'string') {
        labelOptionsMap.set(option[key], option);
      }
    };
    function dig(optionList) {
      var isChildren = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
      // for loop to speed up collection speed
      for (var i = 0; i < optionList.length; i += 1) {
        var option = optionList[i];
        if (!option[fieldNames.options] || isChildren) {
          valueOptions.set(option[fieldNames.value], option);
          setLabelOptions(labelOptions, option, fieldNames.label);
          // https://github.com/ant-design/ant-design/issues/35304
          setLabelOptions(labelOptions, option, optionFilterProp);
          setLabelOptions(labelOptions, option, optionLabelProp);
        } else {
          dig(option[fieldNames.options], true);
        }
      }
    }
    dig(mergedOptions);
    return {
      options: mergedOptions,
      valueOptions: valueOptions,
      labelOptions: labelOptions
    };
  }, [options, children, fieldNames, optionFilterProp, optionLabelProp]);
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/hooks/useRefFunc.js


/**
 * Same as `React.useCallback` but always return a memoized function
 * but redirect to real function.
 */
function useRefFunc(callback) {
  var funcRef = _react_18_2_0_react.useRef();
  funcRef.current = callback;
  var cacheFn = _react_18_2_0_react.useCallback(function () {
    return funcRef.current.apply(funcRef, arguments);
  }, []);
  return cacheFn;
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/OptGroup.js
/* istanbul ignore file */

/** This is a placeholder, not real render in dom */
var OptGroup = function OptGroup() {
  return null;
};
OptGroup.isSelectOptGroup = true;
/* harmony default export */ var es_OptGroup = (OptGroup);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/Option.js
/* istanbul ignore file */

/** This is a placeholder, not real render in dom */
var Option = function Option() {
  return null;
};
Option.isSelectOption = true;
/* harmony default export */ var es_Option = (Option);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/Filler.js






/**
 * Fill component to provided the scroll content real height.
 */
var Filler = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (_ref, ref) {
  var height = _ref.height,
    offset = _ref.offset,
    children = _ref.children,
    prefixCls = _ref.prefixCls,
    onInnerResize = _ref.onInnerResize,
    innerProps = _ref.innerProps;
  var outerStyle = {};
  var innerStyle = {
    display: 'flex',
    flexDirection: 'column'
  };
  if (offset !== undefined) {
    outerStyle = {
      height: height,
      position: 'relative',
      overflow: 'hidden'
    };
    innerStyle = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, innerStyle), {}, {
      transform: "translateY(".concat(offset, "px)"),
      position: 'absolute',
      left: 0,
      right: 0,
      top: 0
    });
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    style: outerStyle
  }, /*#__PURE__*/_react_18_2_0_react.createElement(_rc_resize_observer_1_3_1_rc_resize_observer_es, {
    onResize: function onResize(_ref2) {
      var offsetHeight = _ref2.offsetHeight;
      if (offsetHeight && onInnerResize) {
        onInnerResize();
      }
    }
  }, /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
    style: innerStyle,
    className: _classnames_2_3_2_classnames_default()((0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
    ref: ref
  }, innerProps), children)));
});
Filler.displayName = 'Filler';
/* harmony default export */ var es_Filler = (Filler);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/ScrollBar.js









var MIN_SIZE = 20;
function getPageY(e) {
  return 'touches' in e ? e.touches[0].pageY : e.pageY;
}
var ScrollBar = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(ScrollBar, _React$Component);
  var _super = (0,createSuper/* default */.Z)(ScrollBar);
  function ScrollBar() {
    var _this;
    (0,classCallCheck/* default */.Z)(this, ScrollBar);
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _super.call.apply(_super, [this].concat(args));
    _this.moveRaf = null;
    _this.scrollbarRef = /*#__PURE__*/_react_18_2_0_react.createRef();
    _this.thumbRef = /*#__PURE__*/_react_18_2_0_react.createRef();
    _this.visibleTimeout = null;
    _this.state = {
      dragging: false,
      pageY: null,
      startTop: null,
      visible: false
    };
    _this.delayHidden = function () {
      clearTimeout(_this.visibleTimeout);
      _this.setState({
        visible: true
      });
      _this.visibleTimeout = setTimeout(function () {
        _this.setState({
          visible: false
        });
      }, 2000);
    };
    _this.onScrollbarTouchStart = function (e) {
      e.preventDefault();
    };
    _this.onContainerMouseDown = function (e) {
      e.stopPropagation();
      e.preventDefault();
    };
    // ======================= Clean =======================
    _this.patchEvents = function () {
      window.addEventListener('mousemove', _this.onMouseMove);
      window.addEventListener('mouseup', _this.onMouseUp);
      _this.thumbRef.current.addEventListener('touchmove', _this.onMouseMove);
      _this.thumbRef.current.addEventListener('touchend', _this.onMouseUp);
    };
    _this.removeEvents = function () {
      var _this$scrollbarRef$cu;
      window.removeEventListener('mousemove', _this.onMouseMove);
      window.removeEventListener('mouseup', _this.onMouseUp);
      (_this$scrollbarRef$cu = _this.scrollbarRef.current) === null || _this$scrollbarRef$cu === void 0 ? void 0 : _this$scrollbarRef$cu.removeEventListener('touchstart', _this.onScrollbarTouchStart);
      if (_this.thumbRef.current) {
        _this.thumbRef.current.removeEventListener('touchstart', _this.onMouseDown);
        _this.thumbRef.current.removeEventListener('touchmove', _this.onMouseMove);
        _this.thumbRef.current.removeEventListener('touchend', _this.onMouseUp);
      }
      raf/* default */.Z.cancel(_this.moveRaf);
    };
    // ======================= Thumb =======================
    _this.onMouseDown = function (e) {
      var onStartMove = _this.props.onStartMove;
      _this.setState({
        dragging: true,
        pageY: getPageY(e),
        startTop: _this.getTop()
      });
      onStartMove();
      _this.patchEvents();
      e.stopPropagation();
      e.preventDefault();
    };
    _this.onMouseMove = function (e) {
      var _this$state = _this.state,
        dragging = _this$state.dragging,
        pageY = _this$state.pageY,
        startTop = _this$state.startTop;
      var onScroll = _this.props.onScroll;
      raf/* default */.Z.cancel(_this.moveRaf);
      if (dragging) {
        var offsetY = getPageY(e) - pageY;
        var newTop = startTop + offsetY;
        var enableScrollRange = _this.getEnableScrollRange();
        var enableHeightRange = _this.getEnableHeightRange();
        var ptg = enableHeightRange ? newTop / enableHeightRange : 0;
        var newScrollTop = Math.ceil(ptg * enableScrollRange);
        _this.moveRaf = (0,raf/* default */.Z)(function () {
          onScroll(newScrollTop);
        });
      }
    };
    _this.onMouseUp = function () {
      var onStopMove = _this.props.onStopMove;
      _this.setState({
        dragging: false
      });
      onStopMove();
      _this.removeEvents();
    };
    // ===================== Calculate =====================
    _this.getSpinHeight = function () {
      var _this$props = _this.props,
        height = _this$props.height,
        count = _this$props.count;
      var baseHeight = height / count * 10;
      baseHeight = Math.max(baseHeight, MIN_SIZE);
      baseHeight = Math.min(baseHeight, height / 2);
      return Math.floor(baseHeight);
    };
    _this.getEnableScrollRange = function () {
      var _this$props2 = _this.props,
        scrollHeight = _this$props2.scrollHeight,
        height = _this$props2.height;
      return scrollHeight - height || 0;
    };
    _this.getEnableHeightRange = function () {
      var height = _this.props.height;
      var spinHeight = _this.getSpinHeight();
      return height - spinHeight || 0;
    };
    _this.getTop = function () {
      var scrollTop = _this.props.scrollTop;
      var enableScrollRange = _this.getEnableScrollRange();
      var enableHeightRange = _this.getEnableHeightRange();
      if (scrollTop === 0 || enableScrollRange === 0) {
        return 0;
      }
      var ptg = scrollTop / enableScrollRange;
      return ptg * enableHeightRange;
    };
    // Not show scrollbar when height is large than scrollHeight
    _this.showScroll = function () {
      var _this$props3 = _this.props,
        height = _this$props3.height,
        scrollHeight = _this$props3.scrollHeight;
      return scrollHeight > height;
    };
    return _this;
  }
  (0,createClass/* default */.Z)(ScrollBar, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.scrollbarRef.current.addEventListener('touchstart', this.onScrollbarTouchStart);
      this.thumbRef.current.addEventListener('touchstart', this.onMouseDown);
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (prevProps.scrollTop !== this.props.scrollTop) {
        this.delayHidden();
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.removeEvents();
      clearTimeout(this.visibleTimeout);
    }
  }, {
    key: "render",
    value:
    // ====================== Render =======================
    function render() {
      var _this$state2 = this.state,
        dragging = _this$state2.dragging,
        visible = _this$state2.visible;
      var _this$props4 = this.props,
        prefixCls = _this$props4.prefixCls,
        direction = _this$props4.direction;
      var spinHeight = this.getSpinHeight();
      var top = this.getTop();
      var canScroll = this.showScroll();
      var mergedVisible = canScroll && visible;
      var scrollBarDirection = direction === 'rtl' ? {
        left: 0
      } : {
        right: 0
      };
      return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
        ref: this.scrollbarRef,
        className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-scrollbar"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-scrollbar-show"), canScroll)),
        style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
          width: 8,
          top: 0,
          bottom: 0
        }, scrollBarDirection), {}, {
          position: 'absolute',
          display: mergedVisible ? null : 'none'
        }),
        onMouseDown: this.onContainerMouseDown,
        onMouseMove: this.delayHidden
      }, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
        ref: this.thumbRef,
        className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-scrollbar-thumb"), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-scrollbar-thumb-moving"), dragging)),
        style: {
          width: '100%',
          height: spinHeight,
          top: top,
          left: 0,
          position: 'absolute',
          background: 'rgba(0, 0, 0, 0.5)',
          borderRadius: 99,
          cursor: 'pointer',
          userSelect: 'none'
        },
        onMouseDown: this.onMouseDown
      }));
    }
  }]);
  return ScrollBar;
}(_react_18_2_0_react.Component);

;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/Item.js

function es_Item_Item(_ref) {
  var children = _ref.children,
    setRef = _ref.setRef;
  var refFunc = _react_18_2_0_react.useCallback(function (node) {
    setRef(node);
  }, []);
  return /*#__PURE__*/_react_18_2_0_react.cloneElement(children, {
    ref: refFunc
  });
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/hooks/useChildren.js


function useChildren(list, startIndex, endIndex, setNodeRef, renderFunc, _ref) {
  var getKey = _ref.getKey;
  return list.slice(startIndex, endIndex + 1).map(function (item, index) {
    var eleIndex = startIndex + index;
    var node = renderFunc(item, eleIndex, {
      // style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
    });
    var key = getKey(item);
    return /*#__PURE__*/_react_18_2_0_react.createElement(es_Item_Item, {
      key: key,
      setRef: function setRef(ele) {
        return setNodeRef(item, ele);
      }
    }, node);
  });
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/utils/CacheMap.js


// Firefox has low performance of map.
var CacheMap = /*#__PURE__*/function () {
  function CacheMap() {
    (0,classCallCheck/* default */.Z)(this, CacheMap);
    this.maps = void 0;
    this.maps = Object.create(null);
  }
  (0,createClass/* default */.Z)(CacheMap, [{
    key: "set",
    value: function set(key, value) {
      this.maps[key] = value;
    }
  }, {
    key: "get",
    value: function get(key) {
      return this.maps[key];
    }
  }]);
  return CacheMap;
}();
/* harmony default export */ var utils_CacheMap = (CacheMap);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/hooks/useHeights.js






function useHeights(getKey, onItemAdd, onItemRemove) {
  var _React$useState = _react_18_2_0_react.useState(0),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    updatedMark = _React$useState2[0],
    setUpdatedMark = _React$useState2[1];
  var instanceRef = (0,_react_18_2_0_react.useRef)(new Map());
  var heightsRef = (0,_react_18_2_0_react.useRef)(new utils_CacheMap());
  var collectRafRef = (0,_react_18_2_0_react.useRef)();
  function cancelRaf() {
    raf/* default */.Z.cancel(collectRafRef.current);
  }
  function collectHeight() {
    cancelRaf();
    collectRafRef.current = (0,raf/* default */.Z)(function () {
      instanceRef.current.forEach(function (element, key) {
        if (element && element.offsetParent) {
          var htmlElement = (0,findDOMNode/* default */.Z)(element);
          var offsetHeight = htmlElement.offsetHeight;
          if (heightsRef.current.get(key) !== offsetHeight) {
            heightsRef.current.set(key, htmlElement.offsetHeight);
          }
        }
      });
      // Always trigger update mark to tell parent that should re-calculate heights when resized
      setUpdatedMark(function (c) {
        return c + 1;
      });
    });
  }
  function setInstanceRef(item, instance) {
    var key = getKey(item);
    var origin = instanceRef.current.get(key);
    if (instance) {
      instanceRef.current.set(key, instance);
      collectHeight();
    } else {
      instanceRef.current.delete(key);
    }
    // Instance changed
    if (!origin !== !instance) {
      if (instance) {
        onItemAdd === null || onItemAdd === void 0 ? void 0 : onItemAdd(item);
      } else {
        onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(item);
      }
    }
  }
  (0,_react_18_2_0_react.useEffect)(function () {
    return cancelRaf;
  }, []);
  return [setInstanceRef, collectHeight, heightsRef.current, updatedMark];
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/hooks/useScrollTo.js

/* eslint-disable no-param-reassign */


function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHeight, syncScrollTop, triggerFlash) {
  var scrollRef = _react_18_2_0_react.useRef();
  return function (arg) {
    // When not argument provided, we think dev may want to show the scrollbar
    if (arg === null || arg === undefined) {
      triggerFlash();
      return;
    }
    // Normal scroll logic
    raf/* default */.Z.cancel(scrollRef.current);
    if (typeof arg === 'number') {
      syncScrollTop(arg);
    } else if (arg && (0,esm_typeof/* default */.Z)(arg) === 'object') {
      var index;
      var align = arg.align;
      if ('index' in arg) {
        index = arg.index;
      } else {
        index = data.findIndex(function (item) {
          return getKey(item) === arg.key;
        });
      }
      var _arg$offset = arg.offset,
        offset = _arg$offset === void 0 ? 0 : _arg$offset;
      // We will retry 3 times in case dynamic height shaking
      var syncScroll = function syncScroll(times, targetAlign) {
        if (times < 0 || !containerRef.current) return;
        var height = containerRef.current.clientHeight;
        var needCollectHeight = false;
        var newTargetAlign = targetAlign;
        // Go to next frame if height not exist
        if (height) {
          var mergedAlign = targetAlign || align;
          // Get top & bottom
          var stackTop = 0;
          var itemTop = 0;
          var itemBottom = 0;
          var maxLen = Math.min(data.length, index);
          for (var i = 0; i <= maxLen; i += 1) {
            var key = getKey(data[i]);
            itemTop = stackTop;
            var cacheHeight = heights.get(key);
            itemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight);
            stackTop = itemBottom;
            if (i === index && cacheHeight === undefined) {
              needCollectHeight = true;
            }
          }
          // Scroll to
          var targetTop = null;
          switch (mergedAlign) {
            case 'top':
              targetTop = itemTop - offset;
              break;
            case 'bottom':
              targetTop = itemBottom - height + offset;
              break;
            default:
              {
                var scrollTop = containerRef.current.scrollTop;
                var scrollBottom = scrollTop + height;
                if (itemTop < scrollTop) {
                  newTargetAlign = 'top';
                } else if (itemBottom > scrollBottom) {
                  newTargetAlign = 'bottom';
                }
              }
          }
          if (targetTop !== null && targetTop !== containerRef.current.scrollTop) {
            syncScrollTop(targetTop);
          }
        }
        // We will retry since element may not sync height as it described
        scrollRef.current = (0,raf/* default */.Z)(function () {
          if (needCollectHeight) {
            collectHeight();
          }
          syncScroll(times - 1, newTargetAlign);
        }, 2); // Delay 2 to wait for List collect heights
      };

      syncScroll(3);
    }
  };
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/utils/algorithmUtil.js
/**
 * Get index with specific start index one by one. e.g.
 * min: 3, max: 9, start: 6
 *
 * Return index is:
 * [0]: 6
 * [1]: 7
 * [2]: 5
 * [3]: 8
 * [4]: 4
 * [5]: 9
 * [6]: 3
 */
function getIndexByStartLoc(min, max, start, index) {
  var beforeCount = start - min;
  var afterCount = max - start;
  var balanceCount = Math.min(beforeCount, afterCount) * 2;
  // Balance
  if (index <= balanceCount) {
    var stepIndex = Math.floor(index / 2);
    if (index % 2) {
      return start + stepIndex + 1;
    }
    return start - stepIndex;
  }
  // One is out of range
  if (beforeCount > afterCount) {
    return start - (index - afterCount);
  }
  return start + (index - beforeCount);
}
/**
 * We assume that 2 list has only 1 item diff and others keeping the order.
 * So we can use dichotomy algorithm to find changed one.
 */
function findListDiffIndex(originList, targetList, getKey) {
  var originLen = originList.length;
  var targetLen = targetList.length;
  var shortList;
  var longList;
  if (originLen === 0 && targetLen === 0) {
    return null;
  }
  if (originLen < targetLen) {
    shortList = originList;
    longList = targetList;
  } else {
    shortList = targetList;
    longList = originList;
  }
  var notExistKey = {
    __EMPTY_ITEM__: true
  };
  function getItemKey(item) {
    if (item !== undefined) {
      return getKey(item);
    }
    return notExistKey;
  }
  // Loop to find diff one
  var diffIndex = null;
  var multiple = Math.abs(originLen - targetLen) !== 1;
  for (var i = 0; i < longList.length; i += 1) {
    var shortKey = getItemKey(shortList[i]);
    var longKey = getItemKey(longList[i]);
    if (shortKey !== longKey) {
      diffIndex = i;
      multiple = multiple || shortKey !== getItemKey(longList[i + 1]);
      break;
    }
  }
  return diffIndex === null ? null : {
    index: diffIndex,
    multiple: multiple
  };
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/hooks/useDiffItem.js



function useDiffItem(data, getKey, onDiff) {
  var _React$useState = _react_18_2_0_react.useState(data),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    prevData = _React$useState2[0],
    setPrevData = _React$useState2[1];
  var _React$useState3 = _react_18_2_0_react.useState(null),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    diffItem = _React$useState4[0],
    setDiffItem = _React$useState4[1];
  _react_18_2_0_react.useEffect(function () {
    var diff = findListDiffIndex(prevData || [], data || [], getKey);
    if ((diff === null || diff === void 0 ? void 0 : diff.index) !== undefined) {
      onDiff === null || onDiff === void 0 ? void 0 : onDiff(diff.index);
      setDiffItem(data[diff.index]);
    }
    setPrevData(data);
  }, [data]);
  return [diffItem];
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/utils/isFirefox.js

var isFF = (typeof navigator === "undefined" ? "undefined" : (0,esm_typeof/* default */.Z)(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
/* harmony default export */ var isFirefox = (isFF);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/hooks/useOriginScroll.js

/* harmony default export */ var useOriginScroll = (function (isScrollAtTop, isScrollAtBottom) {
  // Do lock for a wheel when scrolling
  var lockRef = (0,_react_18_2_0_react.useRef)(false);
  var lockTimeoutRef = (0,_react_18_2_0_react.useRef)(null);
  function lockScroll() {
    clearTimeout(lockTimeoutRef.current);
    lockRef.current = true;
    lockTimeoutRef.current = setTimeout(function () {
      lockRef.current = false;
    }, 50);
  }
  // Pass to ref since global add is in closure
  var scrollPingRef = (0,_react_18_2_0_react.useRef)({
    top: isScrollAtTop,
    bottom: isScrollAtBottom
  });
  scrollPingRef.current.top = isScrollAtTop;
  scrollPingRef.current.bottom = isScrollAtBottom;
  return function (deltaY) {
    var smoothOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
    var originScroll =
    // Pass origin wheel when on the top
    deltaY < 0 && scrollPingRef.current.top ||
    // Pass origin wheel when on the bottom
    deltaY > 0 && scrollPingRef.current.bottom;
    if (smoothOffset && originScroll) {
      // No need lock anymore when it's smooth offset from touchMove interval
      clearTimeout(lockTimeoutRef.current);
      lockRef.current = false;
    } else if (!originScroll || lockRef.current) {
      lockScroll();
    }
    return !lockRef.current && originScroll;
  };
});
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/hooks/useFrameWheel.js




function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, onWheelDelta) {
  var offsetRef = (0,_react_18_2_0_react.useRef)(0);
  var nextFrameRef = (0,_react_18_2_0_react.useRef)(null);
  // Firefox patch
  var wheelValueRef = (0,_react_18_2_0_react.useRef)(null);
  var isMouseScrollRef = (0,_react_18_2_0_react.useRef)(false);
  // Scroll status sync
  var originScroll = useOriginScroll(isScrollAtTop, isScrollAtBottom);
  function onWheel(event) {
    if (!inVirtual) return;
    raf/* default */.Z.cancel(nextFrameRef.current);
    var deltaY = event.deltaY;
    offsetRef.current += deltaY;
    wheelValueRef.current = deltaY;
    // Do nothing when scroll at the edge, Skip check when is in scroll
    if (originScroll(deltaY)) return;
    // Proxy of scroll events
    if (!isFirefox) {
      event.preventDefault();
    }
    nextFrameRef.current = (0,raf/* default */.Z)(function () {
      // Patch a multiple for Firefox to fix wheel number too small
      // ref: https://github.com/ant-design/ant-design/issues/26372#issuecomment-679460266
      var patchMultiple = isMouseScrollRef.current ? 10 : 1;
      onWheelDelta(offsetRef.current * patchMultiple);
      offsetRef.current = 0;
    });
  }
  // A patch for firefox
  function onFireFoxScroll(event) {
    if (!inVirtual) return;
    isMouseScrollRef.current = event.detail === wheelValueRef.current;
  }
  return [onWheel, onFireFoxScroll];
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/hooks/useMobileTouchMove.js


var SMOOTH_PTG = 14 / 15;
function useMobileTouchMove(inVirtual, listRef, callback) {
  var touchedRef = (0,_react_18_2_0_react.useRef)(false);
  var touchYRef = (0,_react_18_2_0_react.useRef)(0);
  var elementRef = (0,_react_18_2_0_react.useRef)(null);
  // Smooth scroll
  var intervalRef = (0,_react_18_2_0_react.useRef)(null);
  /* eslint-disable prefer-const */
  var cleanUpEvents;
  var onTouchMove = function onTouchMove(e) {
    if (touchedRef.current) {
      var currentY = Math.ceil(e.touches[0].pageY);
      var offsetY = touchYRef.current - currentY;
      touchYRef.current = currentY;
      if (callback(offsetY)) {
        e.preventDefault();
      }
      // Smooth interval
      clearInterval(intervalRef.current);
      intervalRef.current = setInterval(function () {
        offsetY *= SMOOTH_PTG;
        if (!callback(offsetY, true) || Math.abs(offsetY) <= 0.1) {
          clearInterval(intervalRef.current);
        }
      }, 16);
    }
  };
  var onTouchEnd = function onTouchEnd() {
    touchedRef.current = false;
    cleanUpEvents();
  };
  var onTouchStart = function onTouchStart(e) {
    cleanUpEvents();
    if (e.touches.length === 1 && !touchedRef.current) {
      touchedRef.current = true;
      touchYRef.current = Math.ceil(e.touches[0].pageY);
      elementRef.current = e.target;
      elementRef.current.addEventListener('touchmove', onTouchMove);
      elementRef.current.addEventListener('touchend', onTouchEnd);
    }
  };
  cleanUpEvents = function cleanUpEvents() {
    if (elementRef.current) {
      elementRef.current.removeEventListener('touchmove', onTouchMove);
      elementRef.current.removeEventListener('touchend', onTouchEnd);
    }
  };
  (0,useLayoutEffect/* default */.Z)(function () {
    if (inVirtual) {
      listRef.current.addEventListener('touchstart', onTouchStart);
    }
    return function () {
      var _listRef$current;
      (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.removeEventListener('touchstart', onTouchStart);
      cleanUpEvents();
      clearInterval(intervalRef.current);
    };
  }, [inVirtual]);
}
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/List.js





var List_excluded = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "component", "onScroll", "onVisibleChange", "innerProps"];













var EMPTY_DATA = [];
var ScrollStyle = {
  overflowY: 'auto',
  overflowAnchor: 'none'
};
function RawList(props, ref) {
  var _props$prefixCls = props.prefixCls,
    prefixCls = _props$prefixCls === void 0 ? 'rc-virtual-list' : _props$prefixCls,
    className = props.className,
    height = props.height,
    itemHeight = props.itemHeight,
    _props$fullHeight = props.fullHeight,
    fullHeight = _props$fullHeight === void 0 ? true : _props$fullHeight,
    style = props.style,
    data = props.data,
    children = props.children,
    itemKey = props.itemKey,
    virtual = props.virtual,
    direction = props.direction,
    _props$component = props.component,
    Component = _props$component === void 0 ? 'div' : _props$component,
    onScroll = props.onScroll,
    onVisibleChange = props.onVisibleChange,
    innerProps = props.innerProps,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, List_excluded);
  // ================================= MISC =================================
  var useVirtual = !!(virtual !== false && height && itemHeight);
  var inVirtual = useVirtual && data && itemHeight * data.length > height;
  var _useState = (0,_react_18_2_0_react.useState)(0),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    scrollTop = _useState2[0],
    setScrollTop = _useState2[1];
  var _useState3 = (0,_react_18_2_0_react.useState)(false),
    _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2),
    scrollMoving = _useState4[0],
    setScrollMoving = _useState4[1];
  var mergedClassName = _classnames_2_3_2_classnames_default()(prefixCls, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'), className);
  var mergedData = data || EMPTY_DATA;
  var componentRef = (0,_react_18_2_0_react.useRef)();
  var fillerInnerRef = (0,_react_18_2_0_react.useRef)();
  var scrollBarRef = (0,_react_18_2_0_react.useRef)(); // Hack on scrollbar to enable flash call
  // =============================== Item Key ===============================
  var getKey = _react_18_2_0_react.useCallback(function (item) {
    if (typeof itemKey === 'function') {
      return itemKey(item);
    }
    return item === null || item === void 0 ? void 0 : item[itemKey];
  }, [itemKey]);
  var sharedConfig = {
    getKey: getKey
  };
  // ================================ Scroll ================================
  function syncScrollTop(newTop) {
    setScrollTop(function (origin) {
      var value;
      if (typeof newTop === 'function') {
        value = newTop(origin);
      } else {
        value = newTop;
      }
      var alignedTop = keepInRange(value);
      componentRef.current.scrollTop = alignedTop;
      return alignedTop;
    });
  }
  // ================================ Legacy ================================
  // Put ref here since the range is generate by follow
  var rangeRef = (0,_react_18_2_0_react.useRef)({
    start: 0,
    end: mergedData.length
  });
  var diffItemRef = (0,_react_18_2_0_react.useRef)();
  var _useDiffItem = useDiffItem(mergedData, getKey),
    _useDiffItem2 = (0,slicedToArray/* default */.Z)(_useDiffItem, 1),
    diffItem = _useDiffItem2[0];
  diffItemRef.current = diffItem;
  // ================================ Height ================================
  var _useHeights = useHeights(getKey, null, null),
    _useHeights2 = (0,slicedToArray/* default */.Z)(_useHeights, 4),
    setInstanceRef = _useHeights2[0],
    collectHeight = _useHeights2[1],
    heights = _useHeights2[2],
    heightUpdatedMark = _useHeights2[3];
  // ========================== Visible Calculation =========================
  var _React$useMemo = _react_18_2_0_react.useMemo(function () {
      if (!useVirtual) {
        return {
          scrollHeight: undefined,
          start: 0,
          end: mergedData.length - 1,
          offset: undefined
        };
      }
      // Always use virtual scroll bar in avoid shaking
      if (!inVirtual) {
        var _fillerInnerRef$curre;
        return {
          scrollHeight: ((_fillerInnerRef$curre = fillerInnerRef.current) === null || _fillerInnerRef$curre === void 0 ? void 0 : _fillerInnerRef$curre.offsetHeight) || 0,
          start: 0,
          end: mergedData.length - 1,
          offset: undefined
        };
      }
      var itemTop = 0;
      var startIndex;
      var startOffset;
      var endIndex;
      var dataLen = mergedData.length;
      for (var i = 0; i < dataLen; i += 1) {
        var item = mergedData[i];
        var key = getKey(item);
        var cacheHeight = heights.get(key);
        var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight);
        // Check item top in the range
        if (currentItemBottom >= scrollTop && startIndex === undefined) {
          startIndex = i;
          startOffset = itemTop;
        }
        // Check item bottom in the range. We will render additional one item for motion usage
        if (currentItemBottom > scrollTop + height && endIndex === undefined) {
          endIndex = i;
        }
        itemTop = currentItemBottom;
      }
      // When scrollTop at the end but data cut to small count will reach this
      if (startIndex === undefined) {
        startIndex = 0;
        startOffset = 0;
        endIndex = Math.ceil(height / itemHeight);
      }
      if (endIndex === undefined) {
        endIndex = mergedData.length - 1;
      }
      // Give cache to improve scroll experience
      endIndex = Math.min(endIndex + 1, mergedData.length);
      return {
        scrollHeight: itemTop,
        start: startIndex,
        end: endIndex,
        offset: startOffset
      };
    }, [inVirtual, useVirtual, scrollTop, mergedData, heightUpdatedMark, height]),
    scrollHeight = _React$useMemo.scrollHeight,
    start = _React$useMemo.start,
    end = _React$useMemo.end,
    offset = _React$useMemo.offset;
  rangeRef.current.start = start;
  rangeRef.current.end = end;
  // =============================== In Range ===============================
  var maxScrollHeight = scrollHeight - height;
  var maxScrollHeightRef = (0,_react_18_2_0_react.useRef)(maxScrollHeight);
  maxScrollHeightRef.current = maxScrollHeight;
  function keepInRange(newScrollTop) {
    var newTop = newScrollTop;
    if (!Number.isNaN(maxScrollHeightRef.current)) {
      newTop = Math.min(newTop, maxScrollHeightRef.current);
    }
    newTop = Math.max(newTop, 0);
    return newTop;
  }
  var isScrollAtTop = scrollTop <= 0;
  var isScrollAtBottom = scrollTop >= maxScrollHeight;
  var originScroll = useOriginScroll(isScrollAtTop, isScrollAtBottom);
  // ================================ Scroll ================================
  function onScrollBar(newScrollTop) {
    var newTop = newScrollTop;
    syncScrollTop(newTop);
  }
  // When data size reduce. It may trigger native scroll event back to fit scroll position
  function onFallbackScroll(e) {
    var newScrollTop = e.currentTarget.scrollTop;
    if (newScrollTop !== scrollTop) {
      syncScrollTop(newScrollTop);
    }
    // Trigger origin onScroll
    onScroll === null || onScroll === void 0 ? void 0 : onScroll(e);
  }
  // Since this added in global,should use ref to keep update
  var _useFrameWheel = useFrameWheel(useVirtual, isScrollAtTop, isScrollAtBottom, function (offsetY) {
      syncScrollTop(function (top) {
        var newTop = top + offsetY;
        return newTop;
      });
    }),
    _useFrameWheel2 = (0,slicedToArray/* default */.Z)(_useFrameWheel, 2),
    onRawWheel = _useFrameWheel2[0],
    onFireFoxScroll = _useFrameWheel2[1];
  // Mobile touch move
  useMobileTouchMove(useVirtual, componentRef, function (deltaY, smoothOffset) {
    if (originScroll(deltaY, smoothOffset)) {
      return false;
    }
    onRawWheel({
      preventDefault: function preventDefault() {},
      deltaY: deltaY
    });
    return true;
  });
  (0,useLayoutEffect/* default */.Z)(function () {
    // Firefox only
    function onMozMousePixelScroll(e) {
      if (useVirtual) {
        e.preventDefault();
      }
    }
    componentRef.current.addEventListener('wheel', onRawWheel);
    componentRef.current.addEventListener('DOMMouseScroll', onFireFoxScroll);
    componentRef.current.addEventListener('MozMousePixelScroll', onMozMousePixelScroll);
    return function () {
      if (componentRef.current) {
        componentRef.current.removeEventListener('wheel', onRawWheel);
        componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll);
        componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll);
      }
    };
  }, [useVirtual]);
  // ================================= Ref ==================================
  var scrollTo = useScrollTo(componentRef, mergedData, heights, itemHeight, getKey, collectHeight, syncScrollTop, function () {
    var _scrollBarRef$current;
    (_scrollBarRef$current = scrollBarRef.current) === null || _scrollBarRef$current === void 0 ? void 0 : _scrollBarRef$current.delayHidden();
  });
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      scrollTo: scrollTo
    };
  });
  // ================================ Effect ================================
  /** We need told outside that some list not rendered */
  (0,useLayoutEffect/* default */.Z)(function () {
    if (onVisibleChange) {
      var renderList = mergedData.slice(start, end + 1);
      onVisibleChange(renderList, mergedData);
    }
  }, [start, end, mergedData]);
  // ================================ Render ================================
  var listChildren = useChildren(mergedData, start, end, setInstanceRef, children, sharedConfig);
  var componentStyle = null;
  if (height) {
    componentStyle = (0,objectSpread2/* default */.Z)((0,defineProperty/* default */.Z)({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle);
    if (useVirtual) {
      componentStyle.overflowY = 'hidden';
      if (scrollMoving) {
        componentStyle.pointerEvents = 'none';
      }
    }
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
    style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, style), {}, {
      position: 'relative'
    }),
    className: mergedClassName
  }, restProps), /*#__PURE__*/_react_18_2_0_react.createElement(Component, {
    className: "".concat(prefixCls, "-holder"),
    style: componentStyle,
    ref: componentRef,
    onScroll: onFallbackScroll
  }, /*#__PURE__*/_react_18_2_0_react.createElement(es_Filler, {
    prefixCls: prefixCls,
    height: scrollHeight,
    offset: offset,
    onInnerResize: collectHeight,
    ref: fillerInnerRef,
    innerProps: innerProps
  }, listChildren)), useVirtual && /*#__PURE__*/_react_18_2_0_react.createElement(ScrollBar, {
    ref: scrollBarRef,
    prefixCls: prefixCls,
    scrollTop: scrollTop,
    height: height,
    scrollHeight: scrollHeight,
    count: mergedData.length,
    direction: direction,
    onScroll: onScrollBar,
    onStartMove: function onStartMove() {
      setScrollMoving(true);
    },
    onStopMove: function onStopMove() {
      setScrollMoving(false);
    }
  }));
}
var List = /*#__PURE__*/_react_18_2_0_react.forwardRef(RawList);
List.displayName = 'List';
/* harmony default export */ var es_List = (List);
;// CONCATENATED MODULE: ./node_modules/_rc-virtual-list@3.5.2@rc-virtual-list/es/index.js

/* harmony default export */ var _rc_virtual_list_3_5_2_rc_virtual_list_es = (es_List);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/utils/platformUtil.js
/* istanbul ignore file */
function isPlatformMac() {
  return /(mac\sos|macintosh)/i.test(navigator.appVersion);
}
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/SelectContext.js

var SelectContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
/* harmony default export */ var es_SelectContext = (SelectContext);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/OptionList.js





var OptionList_excluded = ["disabled", "title", "children", "style", "className"];












function OptionList_isTitleType(content) {
  return typeof content === 'string' || typeof content === 'number';
}

/**
 * Using virtual list of option display.
 * Will fallback to dom if use customize render.
 */
var OptionList = function OptionList(_, ref) {
  var _useBaseProps = useBaseProps(),
    prefixCls = _useBaseProps.prefixCls,
    id = _useBaseProps.id,
    open = _useBaseProps.open,
    multiple = _useBaseProps.multiple,
    mode = _useBaseProps.mode,
    searchValue = _useBaseProps.searchValue,
    toggleOpen = _useBaseProps.toggleOpen,
    notFoundContent = _useBaseProps.notFoundContent,
    onPopupScroll = _useBaseProps.onPopupScroll;
  var _React$useContext = _react_18_2_0_react.useContext(es_SelectContext),
    flattenOptions = _React$useContext.flattenOptions,
    onActiveValue = _React$useContext.onActiveValue,
    defaultActiveFirstOption = _React$useContext.defaultActiveFirstOption,
    onSelect = _React$useContext.onSelect,
    menuItemSelectedIcon = _React$useContext.menuItemSelectedIcon,
    rawValues = _React$useContext.rawValues,
    fieldNames = _React$useContext.fieldNames,
    virtual = _React$useContext.virtual,
    listHeight = _React$useContext.listHeight,
    listItemHeight = _React$useContext.listItemHeight;
  var itemPrefixCls = "".concat(prefixCls, "-item");
  var memoFlattenOptions = (0,useMemo/* default */.Z)(function () {
    return flattenOptions;
  }, [open, flattenOptions], function (prev, next) {
    return next[0] && prev[1] !== next[1];
  });

  // =========================== List ===========================
  var listRef = _react_18_2_0_react.useRef(null);
  var onListMouseDown = function onListMouseDown(event) {
    event.preventDefault();
  };
  var scrollIntoView = function scrollIntoView(args) {
    if (listRef.current) {
      listRef.current.scrollTo(typeof args === 'number' ? {
        index: args
      } : args);
    }
  };

  // ========================== Active ==========================
  var getEnabledActiveIndex = function getEnabledActiveIndex(index) {
    var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
    var len = memoFlattenOptions.length;
    for (var i = 0; i < len; i += 1) {
      var current = (index + i * offset + len) % len;
      var _memoFlattenOptions$c = memoFlattenOptions[current],
        group = _memoFlattenOptions$c.group,
        data = _memoFlattenOptions$c.data;
      if (!group && !data.disabled) {
        return current;
      }
    }
    return -1;
  };
  var _React$useState = _react_18_2_0_react.useState(function () {
      return getEnabledActiveIndex(0);
    }),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    activeIndex = _React$useState2[0],
    setActiveIndex = _React$useState2[1];
  var setActive = function setActive(index) {
    var fromKeyboard = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
    setActiveIndex(index);
    var info = {
      source: fromKeyboard ? 'keyboard' : 'mouse'
    };

    // Trigger active event
    var flattenItem = memoFlattenOptions[index];
    if (!flattenItem) {
      onActiveValue(null, -1, info);
      return;
    }
    onActiveValue(flattenItem.value, index, info);
  };

  // Auto active first item when list length or searchValue changed
  (0,_react_18_2_0_react.useEffect)(function () {
    setActive(defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1);
  }, [memoFlattenOptions.length, searchValue]);

  // https://github.com/ant-design/ant-design/issues/34975
  var isSelected = _react_18_2_0_react.useCallback(function (value) {
    return rawValues.has(value) && mode !== 'combobox';
  }, [mode, (0,toConsumableArray/* default */.Z)(rawValues).toString(), rawValues.size]);

  // Auto scroll to item position in single mode
  (0,_react_18_2_0_react.useEffect)(function () {
    /**
     * React will skip `onChange` when component update.
     * `setActive` function will call root accessibility state update which makes re-render.
     * So we need to delay to let Input component trigger onChange first.
     */
    var timeoutId = setTimeout(function () {
      if (!multiple && open && rawValues.size === 1) {
        var value = Array.from(rawValues)[0];
        var index = memoFlattenOptions.findIndex(function (_ref) {
          var data = _ref.data;
          return data.value === value;
        });
        if (index !== -1) {
          setActive(index);
          scrollIntoView(index);
        }
      }
    });

    // Force trigger scrollbar visible when open
    if (open) {
      var _listRef$current;
      (_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollTo(undefined);
    }
    return function () {
      return clearTimeout(timeoutId);
    };
  }, [open, searchValue]);

  // ========================== Values ==========================
  var onSelectValue = function onSelectValue(value) {
    if (value !== undefined) {
      onSelect(value, {
        selected: !rawValues.has(value)
      });
    }

    // Single mode should always close by select
    if (!multiple) {
      toggleOpen(false);
    }
  };

  // ========================= Keyboard =========================
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      onKeyDown: function onKeyDown(event) {
        var which = event.which,
          ctrlKey = event.ctrlKey;
        switch (which) {
          // >>> Arrow keys & ctrl + n/p on Mac
          case KeyCode/* default */.Z.N:
          case KeyCode/* default */.Z.P:
          case KeyCode/* default */.Z.UP:
          case KeyCode/* default */.Z.DOWN:
            {
              var offset = 0;
              if (which === KeyCode/* default */.Z.UP) {
                offset = -1;
              } else if (which === KeyCode/* default */.Z.DOWN) {
                offset = 1;
              } else if (isPlatformMac() && ctrlKey) {
                if (which === KeyCode/* default */.Z.N) {
                  offset = 1;
                } else if (which === KeyCode/* default */.Z.P) {
                  offset = -1;
                }
              }
              if (offset !== 0) {
                var nextActiveIndex = getEnabledActiveIndex(activeIndex + offset, offset);
                scrollIntoView(nextActiveIndex);
                setActive(nextActiveIndex, true);
              }
              break;
            }

          // >>> Select
          case KeyCode/* default */.Z.ENTER:
            {
              // value
              var item = memoFlattenOptions[activeIndex];
              if (item && !item.data.disabled) {
                onSelectValue(item.value);
              } else {
                onSelectValue(undefined);
              }
              if (open) {
                event.preventDefault();
              }
              break;
            }

          // >>> Close
          case KeyCode/* default */.Z.ESC:
            {
              toggleOpen(false);
              if (open) {
                event.stopPropagation();
              }
            }
        }
      },
      onKeyUp: function onKeyUp() {},
      scrollTo: function scrollTo(index) {
        scrollIntoView(index);
      }
    };
  });

  // ========================== Render ==========================
  if (memoFlattenOptions.length === 0) {
    return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      role: "listbox",
      id: "".concat(id, "_list"),
      className: "".concat(itemPrefixCls, "-empty"),
      onMouseDown: onListMouseDown
    }, notFoundContent);
  }
  var omitFieldNameList = Object.keys(fieldNames).map(function (key) {
    return fieldNames[key];
  });
  var getLabel = function getLabel(item) {
    return item.label;
  };
  var renderItem = function renderItem(index) {
    var item = memoFlattenOptions[index];
    if (!item) return null;
    var itemData = item.data || {};
    var value = itemData.value;
    var group = item.group;
    var attrs = (0,pickAttrs/* default */.Z)(itemData, true);
    var mergedLabel = getLabel(item);
    return item ? /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
      "aria-label": typeof mergedLabel === 'string' && !group ? mergedLabel : null
    }, attrs, {
      key: index,
      role: group ? 'presentation' : 'option',
      id: "".concat(id, "_list_").concat(index),
      "aria-selected": isSelected(value)
    }), value) : null;
  };
  return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    role: "listbox",
    id: "".concat(id, "_list"),
    style: {
      height: 0,
      width: 0,
      overflow: 'hidden'
    }
  }, renderItem(activeIndex - 1), renderItem(activeIndex), renderItem(activeIndex + 1)), /*#__PURE__*/_react_18_2_0_react.createElement(_rc_virtual_list_3_5_2_rc_virtual_list_es, {
    itemKey: "key",
    ref: listRef,
    data: memoFlattenOptions,
    height: listHeight,
    itemHeight: listItemHeight,
    fullHeight: false,
    onMouseDown: onListMouseDown,
    onScroll: onPopupScroll,
    virtual: virtual
  }, function (item, itemIndex) {
    var _classNames;
    var group = item.group,
      groupOption = item.groupOption,
      data = item.data,
      label = item.label,
      value = item.value;
    var key = data.key;

    // Group
    if (group) {
      var _data$title;
      var groupTitle = (_data$title = data.title) !== null && _data$title !== void 0 ? _data$title : OptionList_isTitleType(label) ? label.toString() : undefined;
      return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
        className: _classnames_2_3_2_classnames_default()(itemPrefixCls, "".concat(itemPrefixCls, "-group")),
        title: groupTitle
      }, label !== undefined ? label : key);
    }
    var disabled = data.disabled,
      title = data.title,
      children = data.children,
      style = data.style,
      className = data.className,
      otherProps = (0,objectWithoutProperties/* default */.Z)(data, OptionList_excluded);
    var passedProps = (0,es_omit/* default */.Z)(otherProps, omitFieldNameList);

    // Option
    var selected = isSelected(value);
    var optionPrefixCls = "".concat(itemPrefixCls, "-option");
    var optionClassName = _classnames_2_3_2_classnames_default()(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), (0,defineProperty/* default */.Z)(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
    var mergedLabel = getLabel(item);
    var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;

    // https://github.com/ant-design/ant-design/issues/34145
    var content = typeof mergedLabel === 'number' ? mergedLabel : mergedLabel || value;
    // https://github.com/ant-design/ant-design/issues/26717
    var optionTitle = OptionList_isTitleType(content) ? content.toString() : undefined;
    if (title !== undefined) {
      optionTitle = title;
    }
    return /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({}, (0,pickAttrs/* default */.Z)(passedProps), {
      "aria-selected": selected,
      className: optionClassName,
      title: optionTitle,
      onMouseMove: function onMouseMove() {
        if (activeIndex === itemIndex || disabled) {
          return;
        }
        setActive(itemIndex);
      },
      onClick: function onClick() {
        if (!disabled) {
          onSelectValue(value);
        }
      },
      style: style
    }), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(optionPrefixCls, "-content")
    }, content), /*#__PURE__*/_react_18_2_0_react.isValidElement(menuItemSelectedIcon) || selected, iconVisible && /*#__PURE__*/_react_18_2_0_react.createElement(es_TransBtn, {
      className: "".concat(itemPrefixCls, "-option-state"),
      customizeIcon: menuItemSelectedIcon,
      customizeIconProps: {
        isSelected: selected
      }
    }, selected ? '✓' : null));
  }));
};
var RefOptionList = /*#__PURE__*/_react_18_2_0_react.forwardRef(OptionList);
RefOptionList.displayName = 'OptionList';
/* harmony default export */ var es_OptionList = (RefOptionList);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/utils/warningPropsUtil.js







function warningProps(props) {
  var mode = props.mode,
    options = props.options,
    children = props.children,
    backfill = props.backfill,
    allowClear = props.allowClear,
    placeholder = props.placeholder,
    getInputElement = props.getInputElement,
    showSearch = props.showSearch,
    onSearch = props.onSearch,
    defaultOpen = props.defaultOpen,
    autoFocus = props.autoFocus,
    labelInValue = props.labelInValue,
    value = props.value,
    inputValue = props.inputValue,
    optionLabelProp = props.optionLabelProp;
  var multiple = isMultiple(mode);
  var mergedShowSearch = showSearch !== undefined ? showSearch : multiple || mode === 'combobox';
  var mergedOptions = options || convertChildrenToData(children);

  // `tags` should not set option as disabled
  warning(mode !== 'tags' || mergedOptions.every(function (opt) {
    return !opt.disabled;
  }), 'Please avoid setting option to disabled in tags mode since user can always type text as tag.');

  // `combobox` & `tags` should option be `string` type
  if (mode === 'tags' || mode === 'combobox') {
    var hasNumberValue = mergedOptions.some(function (item) {
      if (item.options) {
        return item.options.some(function (opt) {
          return typeof ('value' in opt ? opt.value : opt.key) === 'number';
        });
      }
      return typeof ('value' in item ? item.value : item.key) === 'number';
    });
    warning(!hasNumberValue, '`value` of Option should not use number type when `mode` is `tags` or `combobox`.');
  }

  // `combobox` should not use `optionLabelProp`
  warning(mode !== 'combobox' || !optionLabelProp, '`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly.');

  // Only `combobox` support `backfill`
  warning(mode === 'combobox' || !backfill, '`backfill` only works with `combobox` mode.');

  // Only `combobox` support `getInputElement`
  warning(mode === 'combobox' || !getInputElement, '`getInputElement` only work with `combobox` mode.');

  // Customize `getInputElement` should not use `allowClear` & `placeholder`
  noteOnce(mode !== 'combobox' || !getInputElement || !allowClear || !placeholder, 'Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`.');

  // `onSearch` should use in `combobox` or `showSearch`
  if (onSearch && !mergedShowSearch && mode !== 'combobox' && mode !== 'tags') {
    warning(false, '`onSearch` should work with `showSearch` instead of use alone.');
  }
  noteOnce(!defaultOpen || autoFocus, '`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed.');
  if (value !== undefined && value !== null) {
    var values = toArray(value);
    warning(!labelInValue || values.every(function (val) {
      return _typeof(val) === 'object' && ('key' in val || 'value' in val);
    }), '`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`');
    warning(!multiple || Array.isArray(value), '`value` should be array when `mode` is `multiple` or `tags`');
  }

  // Syntactic sugar should use correct children type
  if (children) {
    var invalidateChildType = null;
    toNodeArray(children).some(function (node) {
      if (! /*#__PURE__*/React.isValidElement(node) || !node.type) {
        return false;
      }
      var _ref = node,
        type = _ref.type;
      if (type.isSelectOption) {
        return false;
      }
      if (type.isSelectOptGroup) {
        var allChildrenValid = toNodeArray(node.props.children).every(function (subNode) {
          if (! /*#__PURE__*/React.isValidElement(subNode) || !node.type || subNode.type.isSelectOption) {
            return true;
          }
          invalidateChildType = subNode.type;
          return false;
        });
        if (allChildrenValid) {
          return false;
        }
        return true;
      }
      invalidateChildType = type;
      return true;
    });
    if (invalidateChildType) {
      warning(false, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(invalidateChildType.displayName || invalidateChildType.name || invalidateChildType, "`."));
    }
    warning(inputValue === undefined, '`inputValue` is deprecated, please use `searchValue` instead.');
  }
}

// value in Select option should not be null
// note: OptGroup has options too
function warningNullOptions(options, fieldNames) {
  if (options) {
    var recursiveOptions = function recursiveOptions(optionsList) {
      var inGroup = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
      for (var i = 0; i < optionsList.length; i++) {
        var option = optionsList[i];
        if (option[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value] === null) {
          warning(false, '`value` in Select options should not be `null`.');
          return true;
        }
        if (!inGroup && Array.isArray(option[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.options]) && recursiveOptions(option[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.options], true)) {
          break;
        }
      }
    };
    recursiveOptions(options);
  }
}
/* harmony default export */ var warningPropsUtil = ((/* unused pure expression or super */ null && (warningProps)));
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/Select.js







var Select_excluded = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "listHeight", "listItemHeight", "value", "defaultValue", "labelInValue", "onChange"];
/**
 * To match accessibility requirement, we always provide an input in the component.
 * Other element will not set `tabIndex` to avoid `onBlur` sequence problem.
 * For focused select, we set `aria-live="polite"` to update the accessibility content.
 *
 * ref:
 * - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions
 *
 * New api:
 * - listHeight
 * - listItemHeight
 * - component
 *
 * Remove deprecated api:
 * - multiple
 * - tags
 * - combobox
 * - firstActiveValue
 * - dropdownMenuStyle
 * - openClassName (Not list in api)
 *
 * Update:
 * - `backfill` only support `combobox` mode
 * - `combobox` mode not support `labelInValue` since it's meaningless
 * - `getInputElement` only support `combobox` mode
 * - `onChange` return OptionData instead of ReactNode
 * - `filterOption` `onChange` `onSelect` accept OptionData instead of ReactNode
 * - `combobox` mode trigger `onChange` will get `undefined` if no `value` match in Option
 * - `combobox` mode not support `optionLabelProp`
 */

















var OMIT_DOM_PROPS = ['inputValue'];
function isRawValue(value) {
  return !value || (0,esm_typeof/* default */.Z)(value) !== 'object';
}
var Select = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var id = props.id,
    mode = props.mode,
    _props$prefixCls = props.prefixCls,
    prefixCls = _props$prefixCls === void 0 ? 'rc-select' : _props$prefixCls,
    backfill = props.backfill,
    fieldNames = props.fieldNames,
    inputValue = props.inputValue,
    searchValue = props.searchValue,
    onSearch = props.onSearch,
    _props$autoClearSearc = props.autoClearSearchValue,
    autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc,
    onSelect = props.onSelect,
    onDeselect = props.onDeselect,
    _props$dropdownMatchS = props.dropdownMatchSelectWidth,
    dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS,
    filterOption = props.filterOption,
    filterSort = props.filterSort,
    optionFilterProp = props.optionFilterProp,
    optionLabelProp = props.optionLabelProp,
    options = props.options,
    children = props.children,
    defaultActiveFirstOption = props.defaultActiveFirstOption,
    menuItemSelectedIcon = props.menuItemSelectedIcon,
    virtual = props.virtual,
    _props$listHeight = props.listHeight,
    listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight,
    _props$listItemHeight = props.listItemHeight,
    listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight,
    value = props.value,
    defaultValue = props.defaultValue,
    labelInValue = props.labelInValue,
    onChange = props.onChange,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, Select_excluded);
  var mergedId = useId(id);
  var multiple = BaseSelect_isMultiple(mode);
  var childrenAsData = !!(!options && children);
  var mergedFilterOption = _react_18_2_0_react.useMemo(function () {
    if (filterOption === undefined && mode === 'combobox') {
      return false;
    }
    return filterOption;
  }, [filterOption, mode]);

  // ========================= FieldNames =========================
  var mergedFieldNames = _react_18_2_0_react.useMemo(function () {
    return fillFieldNames(fieldNames, childrenAsData);
  }, /* eslint-disable react-hooks/exhaustive-deps */
  [
  // We stringify fieldNames to avoid unnecessary re-renders.
  JSON.stringify(fieldNames), childrenAsData]
  /* eslint-enable react-hooks/exhaustive-deps */);

  // =========================== Search ===========================
  var _useMergedState = (0,useMergedState/* default */.Z)('', {
      value: searchValue !== undefined ? searchValue : inputValue,
      postState: function postState(search) {
        return search || '';
      }
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    mergedSearchValue = _useMergedState2[0],
    setSearchValue = _useMergedState2[1];

  // =========================== Option ===========================
  var parsedOptions = useOptions(options, children, mergedFieldNames, optionFilterProp, optionLabelProp);
  var valueOptions = parsedOptions.valueOptions,
    labelOptions = parsedOptions.labelOptions,
    mergedOptions = parsedOptions.options;

  // ========================= Wrap Value =========================
  var convert2LabelValues = _react_18_2_0_react.useCallback(function (draftValues) {
    // Convert to array
    var valueList = commonUtil_toArray(draftValues);

    // Convert to labelInValue type
    return valueList.map(function (val) {
      var rawValue;
      var rawLabel;
      var rawKey;
      var rawDisabled;
      var rawTitle;

      // Fill label & value
      if (isRawValue(val)) {
        rawValue = val;
      } else {
        var _val$value;
        rawKey = val.key;
        rawLabel = val.label;
        rawValue = (_val$value = val.value) !== null && _val$value !== void 0 ? _val$value : rawKey;
      }
      var option = valueOptions.get(rawValue);
      if (option) {
        var _option$key;
        // Fill missing props
        if (rawLabel === undefined) rawLabel = option === null || option === void 0 ? void 0 : option[optionLabelProp || mergedFieldNames.label];
        if (rawKey === undefined) rawKey = (_option$key = option === null || option === void 0 ? void 0 : option.key) !== null && _option$key !== void 0 ? _option$key : rawValue;
        rawDisabled = option === null || option === void 0 ? void 0 : option.disabled;
        rawTitle = option === null || option === void 0 ? void 0 : option.title;

        // Warning if label not same as provided
        if (false) { var optionLabel; }
      }
      return {
        label: rawLabel,
        value: rawValue,
        key: rawKey,
        disabled: rawDisabled,
        title: rawTitle
      };
    });
  }, [mergedFieldNames, optionLabelProp, valueOptions]);

  // =========================== Values ===========================
  var _useMergedState3 = (0,useMergedState/* default */.Z)(defaultValue, {
      value: value
    }),
    _useMergedState4 = (0,slicedToArray/* default */.Z)(_useMergedState3, 2),
    internalValue = _useMergedState4[0],
    setInternalValue = _useMergedState4[1];

  // Merged value with LabelValueType
  var rawLabeledValues = _react_18_2_0_react.useMemo(function () {
    var _values$;
    var values = convert2LabelValues(internalValue);

    // combobox no need save value when it's no value
    if (mode === 'combobox' && !((_values$ = values[0]) !== null && _values$ !== void 0 && _values$.value)) {
      return [];
    }
    return values;
  }, [internalValue, convert2LabelValues, mode]);

  // Fill label with cache to avoid option remove
  var _useCache = useCache(rawLabeledValues, valueOptions),
    _useCache2 = (0,slicedToArray/* default */.Z)(_useCache, 2),
    mergedValues = _useCache2[0],
    getMixedOption = _useCache2[1];
  var displayValues = _react_18_2_0_react.useMemo(function () {
    // `null` need show as placeholder instead
    // https://github.com/ant-design/ant-design/issues/25057
    if (!mode && mergedValues.length === 1) {
      var firstValue = mergedValues[0];
      if (firstValue.value === null && (firstValue.label === null || firstValue.label === undefined)) {
        return [];
      }
    }
    return mergedValues.map(function (item) {
      var _item$label;
      return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, item), {}, {
        label: (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : item.value
      });
    });
  }, [mode, mergedValues]);

  /** Convert `displayValues` to raw value type set */
  var rawValues = _react_18_2_0_react.useMemo(function () {
    return new Set(mergedValues.map(function (val) {
      return val.value;
    }));
  }, [mergedValues]);
  _react_18_2_0_react.useEffect(function () {
    if (mode === 'combobox') {
      var _mergedValues$;
      var strValue = (_mergedValues$ = mergedValues[0]) === null || _mergedValues$ === void 0 ? void 0 : _mergedValues$.value;
      setSearchValue(hasValue(strValue) ? String(strValue) : '');
    }
  }, [mergedValues]);

  // ======================= Display Option =======================
  // Create a placeholder item if not exist in `options`
  var createTagOption = useRefFunc(function (val, label) {
    var _ref;
    var mergedLabel = label !== null && label !== void 0 ? label : val;
    return _ref = {}, (0,defineProperty/* default */.Z)(_ref, mergedFieldNames.value, val), (0,defineProperty/* default */.Z)(_ref, mergedFieldNames.label, mergedLabel), _ref;
  });

  // Fill tag as option if mode is `tags`
  var filledTagOptions = _react_18_2_0_react.useMemo(function () {
    if (mode !== 'tags') {
      return mergedOptions;
    }

    // >>> Tag mode
    var cloneOptions = (0,toConsumableArray/* default */.Z)(mergedOptions);

    // Check if value exist in options (include new patch item)
    var existOptions = function existOptions(val) {
      return valueOptions.has(val);
    };

    // Fill current value as option
    (0,toConsumableArray/* default */.Z)(mergedValues).sort(function (a, b) {
      return a.value < b.value ? -1 : 1;
    }).forEach(function (item) {
      var val = item.value;
      if (!existOptions(val)) {
        cloneOptions.push(createTagOption(val, item.label));
      }
    });
    return cloneOptions;
  }, [createTagOption, mergedOptions, valueOptions, mergedValues, mode]);
  var filteredOptions = useFilterOptions(filledTagOptions, mergedFieldNames, mergedSearchValue, mergedFilterOption, optionFilterProp);

  // Fill options with search value if needed
  var filledSearchOptions = _react_18_2_0_react.useMemo(function () {
    if (mode !== 'tags' || !mergedSearchValue || filteredOptions.some(function (item) {
      return item[optionFilterProp || 'value'] === mergedSearchValue;
    })) {
      return filteredOptions;
    }

    // Fill search value as option
    return [createTagOption(mergedSearchValue)].concat((0,toConsumableArray/* default */.Z)(filteredOptions));
  }, [createTagOption, optionFilterProp, mode, filteredOptions, mergedSearchValue]);
  var orderedFilteredOptions = _react_18_2_0_react.useMemo(function () {
    if (!filterSort) {
      return filledSearchOptions;
    }
    return (0,toConsumableArray/* default */.Z)(filledSearchOptions).sort(function (a, b) {
      return filterSort(a, b);
    });
  }, [filledSearchOptions, filterSort]);
  var displayOptions = _react_18_2_0_react.useMemo(function () {
    return flattenOptions(orderedFilteredOptions, {
      fieldNames: mergedFieldNames,
      childrenAsData: childrenAsData
    });
  }, [orderedFilteredOptions, mergedFieldNames, childrenAsData]);

  // =========================== Change ===========================
  var triggerChange = function triggerChange(values) {
    var labeledValues = convert2LabelValues(values);
    setInternalValue(labeledValues);
    if (onChange && (
    // Trigger event only when value changed
    labeledValues.length !== mergedValues.length || labeledValues.some(function (newVal, index) {
      var _mergedValues$index;
      return ((_mergedValues$index = mergedValues[index]) === null || _mergedValues$index === void 0 ? void 0 : _mergedValues$index.value) !== (newVal === null || newVal === void 0 ? void 0 : newVal.value);
    }))) {
      var returnValues = labelInValue ? labeledValues : labeledValues.map(function (v) {
        return v.value;
      });
      var returnOptions = labeledValues.map(function (v) {
        return injectPropsWithOption(getMixedOption(v.value));
      });
      onChange(
      // Value
      multiple ? returnValues : returnValues[0],
      // Option
      multiple ? returnOptions : returnOptions[0]);
    }
  };

  // ======================= Accessibility ========================
  var _React$useState = _react_18_2_0_react.useState(null),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    activeValue = _React$useState2[0],
    setActiveValue = _React$useState2[1];
  var _React$useState3 = _react_18_2_0_react.useState(0),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    accessibilityIndex = _React$useState4[0],
    setAccessibilityIndex = _React$useState4[1];
  var mergedDefaultActiveFirstOption = defaultActiveFirstOption !== undefined ? defaultActiveFirstOption : mode !== 'combobox';
  var onActiveValue = _react_18_2_0_react.useCallback(function (active, index) {
    var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
      _ref2$source = _ref2.source,
      source = _ref2$source === void 0 ? 'keyboard' : _ref2$source;
    setAccessibilityIndex(index);
    if (backfill && mode === 'combobox' && active !== null && source === 'keyboard') {
      setActiveValue(String(active));
    }
  }, [backfill, mode]);

  // ========================= OptionList =========================
  var triggerSelect = function triggerSelect(val, selected, type) {
    var getSelectEnt = function getSelectEnt() {
      var _option$key2;
      var option = getMixedOption(val);
      return [labelInValue ? {
        label: option === null || option === void 0 ? void 0 : option[mergedFieldNames.label],
        value: val,
        key: (_option$key2 = option === null || option === void 0 ? void 0 : option.key) !== null && _option$key2 !== void 0 ? _option$key2 : val
      } : val, injectPropsWithOption(option)];
    };
    if (selected && onSelect) {
      var _getSelectEnt = getSelectEnt(),
        _getSelectEnt2 = (0,slicedToArray/* default */.Z)(_getSelectEnt, 2),
        wrappedValue = _getSelectEnt2[0],
        _option = _getSelectEnt2[1];
      onSelect(wrappedValue, _option);
    } else if (!selected && onDeselect && type !== 'clear') {
      var _getSelectEnt3 = getSelectEnt(),
        _getSelectEnt4 = (0,slicedToArray/* default */.Z)(_getSelectEnt3, 2),
        _wrappedValue = _getSelectEnt4[0],
        _option2 = _getSelectEnt4[1];
      onDeselect(_wrappedValue, _option2);
    }
  };

  // Used for OptionList selection
  var onInternalSelect = useRefFunc(function (val, info) {
    var cloneValues;

    // Single mode always trigger select only with option list
    var mergedSelect = multiple ? info.selected : true;
    if (mergedSelect) {
      cloneValues = multiple ? [].concat((0,toConsumableArray/* default */.Z)(mergedValues), [val]) : [val];
    } else {
      cloneValues = mergedValues.filter(function (v) {
        return v.value !== val;
      });
    }
    triggerChange(cloneValues);
    triggerSelect(val, mergedSelect);

    // Clean search value if single or configured
    if (mode === 'combobox') {
      // setSearchValue(String(val));
      setActiveValue('');
    } else if (!BaseSelect_isMultiple || autoClearSearchValue) {
      setSearchValue('');
      setActiveValue('');
    }
  });

  // ======================= Display Change =======================
  // BaseSelect display values change
  var onDisplayValuesChange = function onDisplayValuesChange(nextValues, info) {
    triggerChange(nextValues);
    var type = info.type,
      values = info.values;
    if (type === 'remove' || type === 'clear') {
      values.forEach(function (item) {
        triggerSelect(item.value, false, type);
      });
    }
  };

  // =========================== Search ===========================
  var onInternalSearch = function onInternalSearch(searchText, info) {
    setSearchValue(searchText);
    setActiveValue(null);

    // [Submit] Tag mode should flush input
    if (info.source === 'submit') {
      var formatted = (searchText || '').trim();
      // prevent empty tags from appearing when you click the Enter button
      if (formatted) {
        var newRawValues = Array.from(new Set([].concat((0,toConsumableArray/* default */.Z)(rawValues), [formatted])));
        triggerChange(newRawValues);
        triggerSelect(formatted, true);
        setSearchValue('');
      }
      return;
    }
    if (info.source !== 'blur') {
      if (mode === 'combobox') {
        triggerChange(searchText);
      }
      onSearch === null || onSearch === void 0 ? void 0 : onSearch(searchText);
    }
  };
  var onInternalSearchSplit = function onInternalSearchSplit(words) {
    var patchValues = words;
    if (mode !== 'tags') {
      patchValues = words.map(function (word) {
        var opt = labelOptions.get(word);
        return opt === null || opt === void 0 ? void 0 : opt.value;
      }).filter(function (val) {
        return val !== undefined;
      });
    }
    var newRawValues = Array.from(new Set([].concat((0,toConsumableArray/* default */.Z)(rawValues), (0,toConsumableArray/* default */.Z)(patchValues))));
    triggerChange(newRawValues);
    newRawValues.forEach(function (newRawValue) {
      triggerSelect(newRawValue, true);
    });
  };

  // ========================== Context ===========================
  var selectContext = _react_18_2_0_react.useMemo(function () {
    var realVirtual = virtual !== false && dropdownMatchSelectWidth !== false;
    return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, parsedOptions), {}, {
      flattenOptions: displayOptions,
      onActiveValue: onActiveValue,
      defaultActiveFirstOption: mergedDefaultActiveFirstOption,
      onSelect: onInternalSelect,
      menuItemSelectedIcon: menuItemSelectedIcon,
      rawValues: rawValues,
      fieldNames: mergedFieldNames,
      virtual: realVirtual,
      listHeight: listHeight,
      listItemHeight: listItemHeight,
      childrenAsData: childrenAsData
    });
  }, [parsedOptions, displayOptions, onActiveValue, mergedDefaultActiveFirstOption, onInternalSelect, menuItemSelectedIcon, rawValues, mergedFieldNames, virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, childrenAsData]);

  // ========================== Warning ===========================
  if (false) {}

  // ==============================================================
  // ==                          Render                          ==
  // ==============================================================
  return /*#__PURE__*/_react_18_2_0_react.createElement(es_SelectContext.Provider, {
    value: selectContext
  }, /*#__PURE__*/_react_18_2_0_react.createElement(es_BaseSelect, (0,esm_extends/* default */.Z)({}, restProps, {
    // >>> MISC
    id: mergedId,
    prefixCls: prefixCls,
    ref: ref,
    omitDomProps: OMIT_DOM_PROPS,
    mode: mode
    // >>> Values
    ,

    displayValues: displayValues,
    onDisplayValuesChange: onDisplayValuesChange
    // >>> Search
    ,

    searchValue: mergedSearchValue,
    onSearch: onInternalSearch,
    autoClearSearchValue: autoClearSearchValue,
    onSearchSplit: onInternalSearchSplit,
    dropdownMatchSelectWidth: dropdownMatchSelectWidth
    // >>> OptionList
    ,

    OptionList: es_OptionList,
    emptyOptions: !displayOptions.length
    // >>> Accessibility
    ,

    activeValue: activeValue,
    activeDescendantId: "".concat(mergedId, "_list_").concat(accessibilityIndex)
  })));
});
if (false) {}
var TypedSelect = Select;
TypedSelect.Option = es_Option;
TypedSelect.OptGroup = es_OptGroup;
/* harmony default export */ var es_Select = (TypedSelect);
;// CONCATENATED MODULE: ./node_modules/_rc-select@14.1.17@rc-select/es/index.js






/* harmony default export */ var _rc_select_14_1_17_rc_select_es = (es_Select);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/locale-provider/LocaleReceiver.js + 1 modules
var LocaleReceiver = __webpack_require__(6971);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/empty/empty.js


var empty_Empty = function Empty() {
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls;
  var prefixCls = getPrefixCls('empty-img-default');
  return /*#__PURE__*/_react_18_2_0_react.createElement("svg", {
    className: prefixCls,
    width: "184",
    height: "152",
    viewBox: "0 0 184 152",
    xmlns: "http://www.w3.org/2000/svg"
  }, /*#__PURE__*/_react_18_2_0_react.createElement("g", {
    fill: "none",
    fillRule: "evenodd"
  }, /*#__PURE__*/_react_18_2_0_react.createElement("g", {
    transform: "translate(24 31.67)"
  }, /*#__PURE__*/_react_18_2_0_react.createElement("ellipse", {
    className: "".concat(prefixCls, "-ellipse"),
    cx: "67.797",
    cy: "106.89",
    rx: "67.797",
    ry: "12.668"
  }), /*#__PURE__*/_react_18_2_0_react.createElement("path", {
    className: "".concat(prefixCls, "-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"
  }), /*#__PURE__*/_react_18_2_0_react.createElement("path", {
    className: "".concat(prefixCls, "-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)"
  }), /*#__PURE__*/_react_18_2_0_react.createElement("path", {
    className: "".concat(prefixCls, "-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"
  }), /*#__PURE__*/_react_18_2_0_react.createElement("path", {
    className: "".concat(prefixCls, "-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"
  })), /*#__PURE__*/_react_18_2_0_react.createElement("path", {
    className: "".concat(prefixCls, "-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"
  }), /*#__PURE__*/_react_18_2_0_react.createElement("g", {
    className: "".concat(prefixCls, "-g"),
    transform: "translate(149.65 15.383)"
  }, /*#__PURE__*/_react_18_2_0_react.createElement("ellipse", {
    cx: "20.654",
    cy: "3.167",
    rx: "2.849",
    ry: "2.815"
  }), /*#__PURE__*/_react_18_2_0_react.createElement("path", {
    d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"
  }))));
};
/* harmony default export */ var empty = (empty_Empty);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/empty/simple.js


var Simple = function Simple() {
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls;
  var prefixCls = getPrefixCls('empty-img-simple');
  return /*#__PURE__*/_react_18_2_0_react.createElement("svg", {
    className: prefixCls,
    width: "64",
    height: "41",
    viewBox: "0 0 64 41",
    xmlns: "http://www.w3.org/2000/svg"
  }, /*#__PURE__*/_react_18_2_0_react.createElement("g", {
    transform: "translate(0 1)",
    fill: "none",
    fillRule: "evenodd"
  }, /*#__PURE__*/_react_18_2_0_react.createElement("ellipse", {
    className: "".concat(prefixCls, "-ellipse"),
    cx: "32",
    cy: "33",
    rx: "32",
    ry: "7"
  }), /*#__PURE__*/_react_18_2_0_react.createElement("g", {
    className: "".concat(prefixCls, "-g"),
    fillRule: "nonzero"
  }, /*#__PURE__*/_react_18_2_0_react.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"
  }), /*#__PURE__*/_react_18_2_0_react.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(prefixCls, "-path")
  }))));
};
/* harmony default export */ var simple = (Simple);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/empty/index.js


var empty_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};






var defaultEmptyImg = /*#__PURE__*/_react_18_2_0_react.createElement(empty, null);
var simpleEmptyImg = /*#__PURE__*/_react_18_2_0_react.createElement(simple, null);
var es_empty_Empty = function Empty(_a) {
  var className = _a.className,
    customizePrefixCls = _a.prefixCls,
    _a$image = _a.image,
    image = _a$image === void 0 ? defaultEmptyImg : _a$image,
    description = _a.description,
    children = _a.children,
    imageStyle = _a.imageStyle,
    restProps = empty_rest(_a, ["className", "prefixCls", "image", "description", "children", "imageStyle"]);
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  return /*#__PURE__*/_react_18_2_0_react.createElement(LocaleReceiver/* default */.Z, {
    componentName: "Empty"
  }, function (contextLocale) {
    var _classNames;
    var prefixCls = getPrefixCls('empty', customizePrefixCls);
    var des = typeof description !== 'undefined' ? description : contextLocale.description;
    var alt = typeof des === 'string' ? des : 'empty';
    var imageNode = null;
    if (typeof image === 'string') {
      imageNode = /*#__PURE__*/_react_18_2_0_react.createElement("img", {
        alt: alt,
        src: image
      });
    } else {
      imageNode = image;
    }
    return /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
      className: _classnames_2_3_2_classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-normal"), image === simpleEmptyImg), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className)
    }, restProps), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-image"),
      style: imageStyle
    }, imageNode), des && /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-description")
    }, des), children && /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-footer")
    }, children));
  });
};
es_empty_Empty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;
es_empty_Empty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;
/* harmony default export */ var es_empty = (es_empty_Empty);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/defaultRenderEmpty.js



var defaultRenderEmpty = function defaultRenderEmpty(componentName) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(config_provider_context/* ConfigConsumer */.C, null, function (_ref) {
    var getPrefixCls = _ref.getPrefixCls;
    var prefix = getPrefixCls('empty');
    switch (componentName) {
      case 'Table':
      case 'List':
        return /*#__PURE__*/_react_18_2_0_react.createElement(es_empty, {
          image: es_empty.PRESENTED_IMAGE_SIMPLE
        });
      case 'Select':
      case 'TreeSelect':
      case 'Cascader':
      case 'Transfer':
      case 'Mentions':
        return /*#__PURE__*/_react_18_2_0_react.createElement(es_empty, {
          image: es_empty.PRESENTED_IMAGE_SIMPLE,
          className: "".concat(prefix, "-small")
        });
      /* istanbul ignore next */
      default:
        // Should never hit if we take all the component into consider.
        return /*#__PURE__*/_react_18_2_0_react.createElement(es_empty, null);
    }
  });
};
/* harmony default export */ var config_provider_defaultRenderEmpty = (defaultRenderEmpty);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/CheckOutlined.js
// This icon file is generated automatically.
var CheckOutlined = {
  "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"
};
/* harmony default export */ var asn_CheckOutlined = (CheckOutlined);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CheckOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_CheckOutlined
  }));
};
CheckOutlined_CheckOutlined.displayName = 'CheckOutlined';
/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(CheckOutlined_CheckOutlined));
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
var CloseOutlined = __webpack_require__(7586);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/DownOutlined.js
// This icon file is generated automatically.
var DownOutlined = {
  "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"
};
/* harmony default export */ var asn_DownOutlined = (DownOutlined);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/DownOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var DownOutlined_DownOutlined = function DownOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_DownOutlined
  }));
};
DownOutlined_DownOutlined.displayName = 'DownOutlined';
/* harmony default export */ var icons_DownOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(DownOutlined_DownOutlined));
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
var LoadingOutlined = __webpack_require__(5730);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/select/utils/iconUtil.js







function getIcons(_ref) {
  var suffixIcon = _ref.suffixIcon,
    clearIcon = _ref.clearIcon,
    menuItemSelectedIcon = _ref.menuItemSelectedIcon,
    removeIcon = _ref.removeIcon,
    loading = _ref.loading,
    multiple = _ref.multiple,
    hasFeedback = _ref.hasFeedback,
    prefixCls = _ref.prefixCls,
    showArrow = _ref.showArrow,
    feedbackIcon = _ref.feedbackIcon;
  // Clear Icon
  var mergedClearIcon = clearIcon !== null && clearIcon !== void 0 ? clearIcon : /*#__PURE__*/_react_18_2_0_react.createElement(CloseCircleFilled/* default */.Z, null);
  // Validation Feedback Icon
  var getSuffixIconNode = function getSuffixIconNode(arrowIcon) {
    return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, showArrow !== false && arrowIcon, hasFeedback && feedbackIcon);
  };
  // Arrow item icon
  var mergedSuffixIcon = null;
  if (suffixIcon !== undefined) {
    mergedSuffixIcon = getSuffixIconNode(suffixIcon);
  } else if (loading) {
    mergedSuffixIcon = getSuffixIconNode( /*#__PURE__*/_react_18_2_0_react.createElement(LoadingOutlined/* default */.Z, {
      spin: true
    }));
  } else {
    var iconCls = "".concat(prefixCls, "-suffix");
    mergedSuffixIcon = function mergedSuffixIcon(_ref2) {
      var open = _ref2.open,
        showSearch = _ref2.showSearch;
      if (open && showSearch) {
        return getSuffixIconNode( /*#__PURE__*/_react_18_2_0_react.createElement(icons_SearchOutlined, {
          className: iconCls
        }));
      }
      return getSuffixIconNode( /*#__PURE__*/_react_18_2_0_react.createElement(icons_DownOutlined, {
        className: iconCls
      }));
    };
  }
  // Checked item icon
  var mergedItemIcon = null;
  if (menuItemSelectedIcon !== undefined) {
    mergedItemIcon = menuItemSelectedIcon;
  } else if (multiple) {
    mergedItemIcon = /*#__PURE__*/_react_18_2_0_react.createElement(icons_CheckOutlined, null);
  } else {
    mergedItemIcon = null;
  }
  var mergedRemoveIcon = null;
  if (removeIcon !== undefined) {
    mergedRemoveIcon = removeIcon;
  } else {
    mergedRemoveIcon = /*#__PURE__*/_react_18_2_0_react.createElement(CloseOutlined/* default */.Z, null);
  }
  return {
    clearIcon: mergedClearIcon,
    suffixIcon: mergedSuffixIcon,
    itemIcon: mergedItemIcon,
    removeIcon: mergedRemoveIcon
  };
}
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/select/index.js


// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
var select_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};















var SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
var InternalSelect = function InternalSelect(_a, ref) {
  var _classNames2;
  var customizePrefixCls = _a.prefixCls,
    _a$bordered = _a.bordered,
    bordered = _a$bordered === void 0 ? true : _a$bordered,
    className = _a.className,
    getPopupContainer = _a.getPopupContainer,
    dropdownClassName = _a.dropdownClassName,
    popupClassName = _a.popupClassName,
    _a$listHeight = _a.listHeight,
    listHeight = _a$listHeight === void 0 ? 256 : _a$listHeight,
    placement = _a.placement,
    _a$listItemHeight = _a.listItemHeight,
    listItemHeight = _a$listItemHeight === void 0 ? 24 : _a$listItemHeight,
    customizeSize = _a.size,
    customDisabled = _a.disabled,
    notFoundContent = _a.notFoundContent,
    customStatus = _a.status,
    showArrow = _a.showArrow,
    props = select_rest(_a, ["prefixCls", "bordered", "className", "getPopupContainer", "dropdownClassName", "popupClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "showArrow"]);
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getContextPopupContainer = _React$useContext.getPopupContainer,
    getPrefixCls = _React$useContext.getPrefixCls,
    renderEmpty = _React$useContext.renderEmpty,
    direction = _React$useContext.direction,
    virtual = _React$useContext.virtual,
    dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth;
  var size = _react_18_2_0_react.useContext(SizeContext/* default */.Z);
  var prefixCls = getPrefixCls('select', customizePrefixCls);
  var rootPrefixCls = getPrefixCls();
  var _useCompactItemContex = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction),
    compactSize = _useCompactItemContex.compactSize,
    compactItemClassnames = _useCompactItemContex.compactItemClassnames;
  var mode = _react_18_2_0_react.useMemo(function () {
    var m = props.mode;
    if (m === 'combobox') {
      return undefined;
    }
    if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
      return 'combobox';
    }
    return m;
  }, [props.mode]);
  var isMultiple = mode === 'multiple' || mode === 'tags';
  var mergedShowArrow = showArrow !== undefined ? showArrow : props.loading || !(isMultiple || mode === 'combobox');
  // =================== Warning =====================
   false ? 0 : void 0;
  // ===================== Form Status =====================
  var _useContext = (0,_react_18_2_0_react.useContext)(form_context/* FormItemInputContext */.aM),
    contextStatus = _useContext.status,
    hasFeedback = _useContext.hasFeedback,
    isFormItemInput = _useContext.isFormItemInput,
    feedbackIcon = _useContext.feedbackIcon;
  var mergedStatus = getMergedStatus(contextStatus, customStatus);
  // ===================== Empty =====================
  var mergedNotFound;
  if (notFoundContent !== undefined) {
    mergedNotFound = notFoundContent;
  } else if (mode === 'combobox') {
    mergedNotFound = null;
  } else {
    mergedNotFound = (renderEmpty || config_provider_defaultRenderEmpty)('Select');
  }
  // ===================== Icons =====================
  var _getIcons = getIcons((0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, props), {
      multiple: isMultiple,
      hasFeedback: hasFeedback,
      feedbackIcon: feedbackIcon,
      showArrow: mergedShowArrow,
      prefixCls: prefixCls
    })),
    suffixIcon = _getIcons.suffixIcon,
    itemIcon = _getIcons.itemIcon,
    removeIcon = _getIcons.removeIcon,
    clearIcon = _getIcons.clearIcon;
  var selectProps = (0,es_omit/* default */.Z)(props, ['suffixIcon', 'itemIcon']);
  var rcSelectRtlDropdownClassName = _classnames_2_3_2_classnames_default()(popupClassName || dropdownClassName, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-dropdown-").concat(direction), direction === 'rtl'));
  var mergedSize = compactSize || customizeSize || size;
  // ===================== Disabled =====================
  var disabled = _react_18_2_0_react.useContext(DisabledContext/* default */.Z);
  var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
  var mergedClassName = _classnames_2_3_2_classnames_default()((_classNames2 = {}, (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-lg"), mergedSize === 'large'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-sm"), mergedSize === 'small'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-borderless"), !bordered), (0,defineProperty/* default */.Z)(_classNames2, "".concat(prefixCls, "-in-form-item"), isFormItemInput), _classNames2), getStatusClassNames(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, className);
  // ===================== Placement =====================
  var getPlacement = function getPlacement() {
    if (placement !== undefined) {
      return placement;
    }
    return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
  };
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_select_14_1_17_rc_select_es, (0,esm_extends/* default */.Z)({
    ref: ref,
    virtual: virtual,
    dropdownMatchSelectWidth: dropdownMatchSelectWidth
  }, selectProps, {
    transitionName: (0,motion/* getTransitionName */.mL)(rootPrefixCls, (0,motion/* getTransitionDirection */.q0)(placement), props.transitionName),
    listHeight: listHeight,
    listItemHeight: listItemHeight,
    mode: mode,
    prefixCls: prefixCls,
    placement: getPlacement(),
    direction: direction,
    inputIcon: suffixIcon,
    menuItemSelectedIcon: itemIcon,
    removeIcon: removeIcon,
    clearIcon: clearIcon,
    notFoundContent: mergedNotFound,
    className: mergedClassName,
    getPopupContainer: getPopupContainer || getContextPopupContainer,
    dropdownClassName: rcSelectRtlDropdownClassName,
    showArrow: hasFeedback || showArrow,
    disabled: mergedDisabled
  }));
};
var select_Select = /*#__PURE__*/_react_18_2_0_react.forwardRef(InternalSelect);
select_Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
select_Select.Option = es_Option;
select_Select.OptGroup = es_OptGroup;
/* harmony default export */ var es_select = (select_Select);
;// CONCATENATED MODULE: ./src/components/translatePopWindow/switchView.tsx
var SwitchView=function SwitchView(_ref){var checked=_ref.checked,defaultChecked=_ref.defaultChecked,onChange=_ref.onChange,setChecked=_ref.setChecked;var _React$useState=_react_18_2_0_react.useState(false),_React$useState2=(0,slicedToArray/* default */.Z)(_React$useState,2),check=_React$useState2[0],setCheck=_React$useState2[1];_react_18_2_0_react.useEffect(function(){if(defaultChecked!==undefined){setCheck(defaultChecked);}},[defaultChecked]);var _onChange=function _onChange(_checked){if(onChange){onChange(_checked);}if(setChecked){setChecked(_checked);}else{setCheck(_checked);}};return/*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z,{size:"small",checked:checked!==undefined?checked:check,onChange:_onChange});};/* harmony default export */ var switchView = (/*#__PURE__*/_react_18_2_0_react.memo(SwitchView,function(props,nextProps){if(props.checked!==nextProps.checked||props.defaultChecked!==nextProps.defaultChecked){return false;}return true;}));
;// CONCATENATED MODULE: ./src/components/translatePopWindow/radio.tsx
var Radio=function Radio(_ref){var type=_ref.type,style=_ref.style,iconStyle=_ref.iconStyle,changeTranStatus=_ref.changeTranStatus;if(type==="check"){return/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:(0,objectSpread2/* default */.Z)({},style),children:/*#__PURE__*/(0,jsx_runtime.jsx)(IconTranslateCheck,{style:(0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},iconStyle),{},{backgroundImage:"url(".concat(chrome.runtime.getURL('translateRadioCheck.svg'),")")})})});}if(type==="unCheck"){return/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:(0,objectSpread2/* default */.Z)({},style),children:/*#__PURE__*/(0,jsx_runtime.jsx)(IconTranslateCheck,{style:(0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},iconStyle),{},{backgroundImage:"url(".concat(chrome.runtime.getURL('translateRadioUncheck.svg'),")")})})});}return/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:(0,objectSpread2/* default */.Z)({},style),children:/*#__PURE__*/(0,jsx_runtime.jsx)(IconTranslateCheck,{style:(0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},iconStyle),{},{backgroundImage:changeTranStatus?"url(".concat(chrome.runtime.getURL("translateRadioCaption.svg"),")"):"url(".concat(chrome.runtime.getURL("translateRadio.svg"),")")})})});};/* harmony default export */ var translatePopWindow_radio = (Radio);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/translate/index.js



var enableTranslate = /*#__PURE__*/function () {
  var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(params) {
    var controller, meetingContext, targetLanguage, translateMode, translateFullDocument, meetingController;
    return regenerator_default().wrap(function _callee$(_context) {
      while (1) {
        switch (_context.prev = _context.next) {
          case 0:
            controller = params.controller, meetingContext = params.meetingContext, targetLanguage = params.targetLanguage, translateMode = params.translateMode, translateFullDocument = params.translateFullDocument;
            meetingController = meetingContext.meetingController;
            _context.prev = 2;
            controller.setReadonly(true);
            controller.setTranslateMode(translateMode);
            _context.next = 7;
            return meetingController.enableTranslate(targetLanguage);
          case 7:
            _context.next = 9;
            return translateFullDocument(meetingContext);
          case 9:
            _context.prev = 9;
            controller.setReadonly(false);
            return _context.finish(9);
          case 12:
          case "end":
            return _context.stop();
        }
      }
    }, _callee, null, [[2,, 9, 12]]);
  }));
  return function enableTranslate(_x) {
    return _ref.apply(this, arguments);
  };
}();
var disableTranslate = /*#__PURE__*/function () {
  var _ref2 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2(params) {
    var controller, meetingContext, meetingController;
    return regenerator_default().wrap(function _callee2$(_context2) {
      while (1) {
        switch (_context2.prev = _context2.next) {
          case 0:
            controller = params.controller, meetingContext = params.meetingContext;
            meetingController = meetingContext.meetingController;
            _context2.prev = 2;
            controller.setTranslateMode(translateController/* TranslateMode */.R.Disabled);
            _context2.next = 6;
            return meetingController.disableTranslate();
          case 6:
            _context2.prev = 6;
            controller.setReadonly(false);
            return _context2.finish(6);
          case 9:
          case "end":
            return _context2.stop();
        }
      }
    }, _callee2, null, [[2,, 6, 9]]);
  }));
  return function disableTranslate(_x2) {
    return _ref2.apply(this, arguments);
  };
}();
;// CONCATENATED MODULE: ./src/components/translatePopWindow/translatePopWindow.tsx
var targetTransLgOptions=[{title:"中文",value:"cn"},{title:"英文",value:"en"}];var TranslatePopWindow=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var controller=props.controller,translateSwitch=props.translateSwitch,showLanguage=props.showLanguage,sourceLanguage=props.sourceLanguage,changeTranStatus=props.changeTranStatus,doubleLanguage=props.doubleLanguage,getMeetingContext=props.getMeetingContext;var setTranslateSwitch=(0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(models/* translateSwitchState */.C5);var _useRecoilState=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* targetLanguageState */.oN),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,2),targetLanguage=_useRecoilState2[0],setTargetLanguage=_useRecoilState2[1];var setShowLanguage=(0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(models/* showLanguageState */.vT);var transId=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* transIdState */.gV);(0,_react_18_2_0_react.useEffect)(function(){if(!translateSwitch){controller.setTranslateMode(translateController/* TranslateMode */.R.Disabled);return;}if(showLanguage===2){controller.setTranslateMode(translateController/* TranslateMode */.R.OriginAndTranslate);}else{controller.setTranslateMode(translateController/* TranslateMode */.R.TranslateOnly);}},[translateSwitch,showLanguage]);var getWordBySc=function getWordBySc(sc){return{bt:sc.bt,et:sc.et,si:String(sc.si),tc:sc.txt};};var translateFullDocument=(0,_react_18_2_0_react.useCallback)(/*#__PURE__*/(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(){var targetLanguage,fixPids,unfixPid,paragraphIds,body,fixedTrans;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:targetLanguage=sourceLanguage==="cn"?"en":"cn";fixPids=controller.getPids();unfixPid=controller.getUnfixPid();paragraphIds=fixPids.filter(function(item){return item!==unfixPid;});_context.next=6;return services/* service */.X.getMeetingHistoryTranslate(Number(getMeetingContext().meetingConfig.meetingId),sourceLanguage,targetLanguage,paragraphIds);case 6:body=_context.sent;fixedTrans=JSON.parse(body.data.translatedParagraph);fixedTrans.pg.forEach(function(resultata){var tsData=resultata.ts.map(function(item){return getWordBySc(item);});controller.setTranslate(resultata.pi,tsData);});case 9:case"end":return _context.stop();}},_callee);})),[]);var onChange=function onChange(check){setTranslateSwitch(check);if(changeTranStatus){changeTranStatus(check);}if(check){var _targetLanguage=sourceLanguage==="cn"?"en":"cn";enableTranslate({controller:controller,meetingContext:getMeetingContext(),targetLanguage:_targetLanguage,translateMode:showLanguage===1?1:0,translateFullDocument:translateFullDocument}).then(function(){message/* default */.ZP.destroy();if(changeTranStatus){message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("caption_draggable_panel")||document.body;}});}else{message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("main_draggable_panel")||document.body;}});}message/* default */.ZP.success({content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:"\u7FFB\u8BD1\u529F\u80FD\u5DF2\u5F00\u542F"}),duration:3});}).catch(function(){message/* default */.ZP.destroy();if(changeTranStatus){message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("caption_draggable_panel")||document.body;}});}else{message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("main_draggable_panel")||document.body;}});}message/* default */.ZP.error({content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:"\u7FFB\u8BD1\u5F00\u542F\u5931\u8D25"}),duration:3});});(0,log/* sendLog */.gp)("turn_on_translate",{et:"CLK",c1:transId,c2:sourceLanguage,c3:_targetLanguage});}else{disableTranslate({controller:controller,meetingContext:getMeetingContext()}).then(function(){message/* default */.ZP.destroy();if(changeTranStatus){message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("caption_draggable_panel")||document.body;}});}else{message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("main_draggable_panel")||document.body;}});}message/* default */.ZP.success({content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:"\u7FFB\u8BD1\u529F\u80FD\u5DF2\u5173\u95ED"}),duration:3});}).catch(function(){message/* default */.ZP.destroy();if(changeTranStatus){message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("caption_draggable_panel")||document.body;}});}else{message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("main_draggable_panel")||document.body;}});}message/* default */.ZP.error({content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:"\u7FFB\u8BD1\u5173\u95ED\u5931\u8D25"}),duration:3});});(0,log/* sendLog */.gp)("turn_off_translate",{et:"CLK",c1:transId});}};return/*#__PURE__*/(0,jsx_runtime.jsxs)(TranslatePopWindowContainer,{style:{background:changeTranStatus?'radial-gradient(circle at 50% 58%, rgba(24,24,29,0.66) 0%, rgba(22,22,27,0.72) 55%)':'#fff',backdropFilter:changeTranStatus?'blur(10px)':'none'},children:[/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"translate-title ".concat(changeTranStatus&&'caption-translate-title'),children:/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"translate-title ".concat(changeTranStatus&&'caption-translate-title'),children:[/*#__PURE__*/(0,jsx_runtime.jsx)("span",{children:"\u7FFB\u8BD1"}),/*#__PURE__*/(0,jsx_runtime.jsx)(switchView,{checked:translateSwitch,onChange:onChange,setChecked:setTranslateSwitch})]})}),/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"translate-item",children:[/*#__PURE__*/(0,jsx_runtime.jsx)("span",{className:"translate-item-title ".concat(changeTranStatus&&'caption-translate-item-title'),children:"\u76EE\u6807\u8BED\u8A00"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("span",{className:"translate-item-des ".concat(changeTranStatus&&'caption-translate-item-des'),children:[sourceLanguage==="cn"&&"中文",sourceLanguage==="en"&&"英语",sourceLanguage==="fspk"&&"中英文自由说"]}),/*#__PURE__*/(0,jsx_runtime.jsx)(IconTranslateArrows,{style:{backgroundImage:changeTranStatus?"url(".concat(chrome.runtime.getURL('translateArrowsCaption.svg'),")"):"url(".concat(chrome.runtime.getURL('translateArrows.svg'),")")}}),/*#__PURE__*/(0,jsx_runtime.jsxs)("span",{className:"translate-item-des ".concat(changeTranStatus&&'caption-translate-item-des'),children:[sourceLanguage==="cn"&&"英语",sourceLanguage==="en"&&"中文",sourceLanguage==="fspk"&&/*#__PURE__*/(0,jsx_runtime.jsx)(es_select,{placement:"bottomRight",value:targetLanguage,onChange:setTargetLanguage,getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:targetTransLgOptions===null||targetTransLgOptions===void 0?void 0:targetTransLgOptions.map(function(item){var title=item.title,value=item.value;return/*#__PURE__*/(0,jsx_runtime.jsxs)(es_select.Option,{value:value,style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"label_item",children:title}),targetLanguage===value&&/*#__PURE__*/(0,jsx_runtime.jsx)(SelectIcon,{src:"".concat(chrome.runtime.getURL('selectOptionCheck.svg'))})]},value);})})]})]}),/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"translate-item",style:{marginTop:12},children:[/*#__PURE__*/(0,jsx_runtime.jsx)("span",{className:"translate-item-title ".concat(changeTranStatus&&'caption-translate-item-title'),children:"\u663E\u793A\u8BED\u8A00"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("span",{className:"translate-item-des ".concat(changeTranStatus&&'caption-translate-item-des'),children:[/*#__PURE__*/(0,jsx_runtime.jsxs)("span",{className:"translate-item-des-item ".concat(changeTranStatus&&'caption-translate-item-des-item'),onClick:function onClick(){setShowLanguage(1);if(doubleLanguage){doubleLanguage(1);}},children:[/*#__PURE__*/(0,jsx_runtime.jsx)(translatePopWindow_radio,{changeTranStatus:changeTranStatus,type:showLanguage===1?"check":"defult",style:{minWidth:10,minHeight:10}}),/*#__PURE__*/(0,jsx_runtime.jsx)("span",{style:{marginLeft:8},children:"\u7EAF\u8BD1\u6587\u663E\u793A"})]}),/*#__PURE__*/(0,jsx_runtime.jsxs)("span",{className:"translate-item-des-item ".concat(changeTranStatus&&'caption-translate-item-des-item'),style:{marginLeft:20},onClick:function onClick(){setShowLanguage(2);if(doubleLanguage){doubleLanguage(2);}},children:[/*#__PURE__*/(0,jsx_runtime.jsx)(translatePopWindow_radio,{changeTranStatus:changeTranStatus,type:showLanguage===2?"check":"defult",style:{minWidth:10,minHeight:10}}),/*#__PURE__*/(0,jsx_runtime.jsx)("span",{style:{marginLeft:8},children:"\u53CC\u8BED\u663E\u793A"})]})]})]})]});});
;// CONCATENATED MODULE: ./src/components/translatePopWindow/index.ts

;// CONCATENATED MODULE: ./src/components/envMark/styled.tsx
var envMark_styled_templateObject;var envMark_styled_Content=styled_components_browser_esm/* default */.ZP.div(envMark_styled_templateObject||(envMark_styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  position: absolute;\n  top: 0;\n  right: 0;\n  font-size: 12px;\n  font-weight: bold;\n  color: red;\n  padding: 5px 6px;\n  z-index: 2;\n  pointer-events: none;\n"])));
// EXTERNAL MODULE: ./src/extends/index.ts + 8 modules
var src_extends = __webpack_require__(8227);
;// CONCATENATED MODULE: ./src/components/envMark/envMark.tsx
var EnvMark=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(){var _getGlobalConfig$getE=(0,src_extends/* getGlobalConfig */.H)().getEnvInfo(),env=_getGlobalConfig$getE.env;return/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:env==="pre"?/*#__PURE__*/(0,jsx_runtime.jsx)(envMark_styled_Content,{}):null});});
;// CONCATENATED MODULE: ./src/components/envMark/index.ts

;// CONCATENATED MODULE: ./src/components/recordControl/recordControl.tsx
dayjs_min_default().extend((duration_default()));var assetUrls={applaudB:chrome.runtime.getURL('applaudB.png'),laughB:chrome.runtime.getURL('laughB.png'),musicB:chrome.runtime.getURL('musicB.png'),networkB:chrome.runtime.getURL('networkB.png'),noiseA:chrome.runtime.getURL('noiseA.png'),noiseC:chrome.runtime.getURL('noiseC.png'),recordingB:chrome.runtime.getURL('recordingB.png'),recordingC:chrome.runtime.getURL('recordingC.png'),stopA:chrome.runtime.getURL('stopA.png'),stopB:chrome.runtime.getURL('stopB.png'),stopC:chrome.runtime.getURL('stopC.png'),tableB:chrome.runtime.getURL('tableB.png')};var sourceLanguageMap=new Map([['cn',1],['en',2],['yue',3],['fspk',4]]);var RecordControl=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var className=props.className,controlBoxClassName=props.controlBoxClassName,meetingController=props.meetingController,controller=props.controller,getMeetingContext=props.getMeetingContext;var isPauseRecord=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* isPauseRecordState */.qA);var _usePanelVisible=(0,models/* usePanelVisible */.RW)(),showCaption=_usePanelVisible.showCaption;var second=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* secondState */.jk);var _useRecoilState=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* isExpandState */.Vt),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,2),isExpand=_useRecoilState2[0],setIsExpand=_useRecoilState2[1];var _useState=(0,_react_18_2_0_react.useState)(false),_useState2=(0,slicedToArray/* default */.Z)(_useState,2),isTranslateHover=_useState2[0],setIsTranslateHover=_useState2[1];var _useRecoilState3=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* translateSwitchState */.C5),_useRecoilState4=(0,slicedToArray/* default */.Z)(_useRecoilState3,2),translateSwitch=_useRecoilState4[0],setTranslateSwitch=_useRecoilState4[1];var sourceLanguage=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* sourceLanguageState */.I1);var _useRecoilState5=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* targetLanguageState */.oN),_useRecoilState6=(0,slicedToArray/* default */.Z)(_useRecoilState5,2),targetLanguage=_useRecoilState6[0],setTargetLanguage=_useRecoilState6[1];var _useRecoilState7=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* showLanguageState */.vT),_useRecoilState8=(0,slicedToArray/* default */.Z)(_useRecoilState7,2),showLanguage=_useRecoilState8[0],setShowLanguage=_useRecoilState8[1];var isStoping=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* isStopingState */.q9);var _useRecoilState9=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* transIdState */.gV),_useRecoilState10=(0,slicedToArray/* default */.Z)(_useRecoilState9,2),transId=_useRecoilState10[0],setTransId=_useRecoilState10[1];(0,_react_18_2_0_react.useEffect)(function(){if(isStoping||transId===''||transId==='0')return;var tag={};if(translateSwitch){tag={translateSwitch:1,originLanguageValue:sourceLanguageMap.get(sourceLanguage),transTargetValue:sourceLanguage==='cn'?2:1,translateLanguageConf:showLanguage};}else{tag={translateSwitch:0,originLanguageValue:sourceLanguageMap.get(sourceLanguage),transTargetValue:0,translateLanguageConf:showLanguage};}services/* service */.X.getSyncTransTag(Number(transId),tag);},[isStoping,transId,translateSwitch,sourceLanguage,showLanguage]);(0,_react_18_2_0_react.useEffect)(function(){(0,log/* sendLog */.gp)('change_translate_display_mode',{et:'CLK',c1:showLanguage});},[showLanguage]);var handleExpandChange=(0,_react_18_2_0_react.useCallback)(function(){// onExpandChange(!isExpand);
setIsExpand(!isExpand);(0,log/* sendLog */.gp)('change_chrome_shape',{et:'CLK',c1:isExpand?3:1});},[isExpand]);var handleRestart=(0,_react_18_2_0_react.useCallback)(function(){meetingController.resumeMeeting();(0,log/* sendLog */.gp)('re_start_record',{et:'CLK',c1:transId});},[transId]);var handleStop=(0,_react_18_2_0_react.useCallback)(function(){meetingController.stopMeeting();services/* service */.X.getSyncTransTag(Number(transId),{read:'0'});// 结束会议
setTranslateSwitch(false);setTargetLanguage('cn');setShowLanguage(1);setTransId('');(0,log/* sendLog */.gp)('stop_record',{et:'CLK',c1:transId});},[meetingController,transId]);var handlePause=(0,_react_18_2_0_react.useCallback)(function(){meetingController.pauseMeeing();(0,log/* sendLog */.gp)('pause_record',{et:'CLK',c1:transId});},[transId]);var renderedTime=(0,_react_18_2_0_react.useMemo)(function(){if(!second){return'00:00';}return (0,datetime/* getFlexibleTime */.iQ)(second*1000);// return dayjs.duration(second * 1000).format('HH:mm:ss');
},[second]);return/*#__PURE__*/(0,jsx_runtime.jsxs)(recordControl_styled_Content,{className:className,style:{borderBottom:isExpand?'0.5px solid #E5E6ED':'none'},children:[/*#__PURE__*/(0,jsx_runtime.jsx)(EnvMark,{}),/*#__PURE__*/(0,jsx_runtime.jsxs)(RecordHeading,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(TingwuBall,{assetUrls:assetUrls,status:isPauseRecord?'stop':'recording',style:{width:44,height:44,borderRadius:44,border:'0.5px solid #DFE1EB'}}),/*#__PURE__*/(0,jsx_runtime.jsxs)(RecordHeadingText,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(RecordTitle,{children:isPauseRecord?'录音已暂停':'录音中'}),/*#__PURE__*/(0,jsx_runtime.jsx)(RecordDatetime,{children:renderedTime})]})]}),/*#__PURE__*/(0,jsx_runtime.jsxs)(ControlBox,{className:controlBoxClassName,children:[/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{placement:"bottom",color:"rgb(39, 38, 77)",overlayInnerStyle:{borderRadius:"8px",padding:"4px 8px",fontSize:"12px",minHeight:26},title:"\u7ED3\u675F\u5F55\u97F3",getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:/*#__PURE__*/(0,jsx_runtime.jsx)(StopButton,{onClick:handleStop})}),/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{placement:"bottom",color:"rgb(39, 38, 77)",overlayInnerStyle:{borderRadius:"8px",padding:"4px 8px",fontSize:"12px",minHeight:26},title:isPauseRecord?'继续录音':'暂停录音',getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:isPauseRecord?/*#__PURE__*/(0,jsx_runtime.jsx)(RestartButton,{onClick:handleRestart}):/*#__PURE__*/(0,jsx_runtime.jsx)(PauseButton,{onClick:handlePause})}),sourceLanguage!=='yue'&&sourceLanguage!=='fspk'&&/*#__PURE__*/(0,jsx_runtime.jsx)(popover,{placement:"topRight",title:null,content:/*#__PURE__*/(0,jsx_runtime.jsx)(TranslatePopWindow,{controller:controller,translateSwitch:translateSwitch,sourceLanguage:sourceLanguage,showLanguage:showLanguage,getMeetingContext:getMeetingContext}),getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:/*#__PURE__*/(0,jsx_runtime.jsx)(TranslateButton,{style:{backgroundImage:isTranslateHover||translateSwitch?"url(".concat(chrome.runtime.getURL('translateButtonHover.svg'),")"):"url(".concat(chrome.runtime.getURL('translateButton.svg'),")")},onMouseEnter:function onMouseEnter(){return setIsTranslateHover(true);},onMouseLeave:function onMouseLeave(){return setIsTranslateHover(false);}})}),/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{placement:"bottom",color:"rgb(39, 38, 77)",overlayInnerStyle:{borderRadius:"8px",padding:"4px 8px",fontSize:"12px",minHeight:26},title:"\u5B57\u5E55",getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:/*#__PURE__*/(0,jsx_runtime.jsx)(CaptionButton,{onClick:function onClick(){showCaption();(0,log/* sendLog */.gp)('change_chrome_shape',{et:'CLK',c1:2});}})}),/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{placement:"bottom",color:"rgb(39, 38, 77)",overlayInnerStyle:{borderRadius:"8px",padding:"4px 8px",fontSize:"12px",minHeight:26},title:isExpand?'收起':' 展开',getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:/*#__PURE__*/(0,jsx_runtime.jsx)(ExpandButton,{style:{transform:"rotate(".concat(isExpand?'0':'180',"deg)")},onClick:handleExpandChange})})]})]});});
;// CONCATENATED MODULE: ./src/components/recordControl/index.ts

;// CONCATENATED MODULE: ./src/components/stoping/styled.tsx
var stoping_styled_templateObject,stoping_styled_templateObject2,stoping_styled_templateObject3;var StopingStyled=styled_components_browser_esm/* default */.ZP.div(stoping_styled_templateObject||(stoping_styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background-color: rgba(185, 184, 222, 0.2);\n  z-index: 2147483647;\n  backdrop-filter: blur(6px);\n  border-radius: 10px;\n"])));var StopingTag=styled_components_browser_esm/* default */.ZP.div(stoping_styled_templateObject2||(stoping_styled_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n  background: #FFFFFF;\n  box-shadow: 0 2px 8px 0 rgba(90,68,151,0.12);\n  border-radius: 8px;\n  font-size: 14px;\n  color: rgba(39,38,77,0.70);\n  line-height: 22px;\n  padding: 0 16px;\n  height: 40px;\n  line-height: 40px;\n  display: flex;\n  align-items: center;\n"])));var StopingText=styled_components_browser_esm/* default */.ZP.div(stoping_styled_templateObject3||(stoping_styled_templateObject3=(0,taggedTemplateLiteral/* default */.Z)(["\n  margin-left: 5px;\n"])));
;// CONCATENATED MODULE: ./src/components/stoping/stoping.tsx
var Stoping=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsx)(StopingStyled,{children:/*#__PURE__*/(0,jsx_runtime.jsxs)(StopingTag,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(Ellipsis,{color:"#605CE5"}),/*#__PURE__*/(0,jsx_runtime.jsx)(StopingText,{children:"\u4FDD\u5B58\u4E2D"})]})});});
;// CONCATENATED MODULE: ./src/components/stoping/index.ts

;// CONCATENATED MODULE: ./src/components/mainPanel/styled.tsx
var mainPanel_styled_templateObject,mainPanel_styled_templateObject2;var mainPanel_styled_Content=styled_components_browser_esm/* default */.ZP.div(mainPanel_styled_templateObject||(mainPanel_styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  flex-direction: column;\n  position: fixed;\n  z-index: 2147483647;\n  top: 40px;\n  right: 32px;\n  width: 320px;\n\n  background: #F9FAFF;\n  box-shadow: 0 0 1px 1px rgba(63,60,161,0.30);\n  border-radius: 12px;\n  /* overflow: hidden; */\n\n  .react-resizable-handle {\n    position: absolute;\n    left: 4px;\n    right: 4px;\n    box-sizing: border-box;\n    user-select: none;\n    height: 10px;\n    z-index: 201;\n  }\n\n  .react-resizable-handle-n {\n    top: 0;\n    cursor: ",";\n  }\n\n  .react-resizable-handle-s {\n    bottom: 0;\n    cursor: ",";\n  }\n\n  .tweant-message {\n    top: 50%;\n    transform: translate(0, -50%);\n\n    .tweant-message-notice-content {\n      border-radius: 8px !important;\n    }\n  }\n\n  .transWrap>div>div::-webkit-scrollbar {\n    width: 0 !important;\n  }\n"])),function(props){return!props.isExpand?'default':props.northMax?'s-resize':'ns-resize';},function(props){return!props.isExpand?'default':props.southMax?'n-resize':'ns-resize';});var DragHandle=styled_components_browser_esm/* default */.ZP.div(mainPanel_styled_templateObject2||(mainPanel_styled_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n  user-select: none;\n  background-color: #fff;\n  padding: 5px;\n"])));
;// CONCATENATED MODULE: ./src/components/mainPanel/mainPanel.tsx
var MainPanel=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var controller=props.controller,meetingController=props.meetingController,_props$visible=props.visible,visible=_props$visible===void 0?true:_props$visible,getMeetingContext=props.getMeetingContext;// const [isExpand, setIsExpand] = useState(true);
var isExpand=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* isExpandState */.Vt);var isStoping=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* isStopingState */.q9);var _useRecoilState=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* panelHeightState */.Mm),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,2),panelHeight=_useRecoilState2[0],setPanelHeight=_useRecoilState2[1];var _useRecoilState3=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* panelPositionState */.bJ),_useRecoilState4=(0,slicedToArray/* default */.Z)(_useRecoilState3,2),panelPosition=_useRecoilState4[0],setPanelPosition=_useRecoilState4[1];var _useState=(0,_react_18_2_0_react.useState)(false),_useState2=(0,slicedToArray/* default */.Z)(_useState,2),northMax=_useState2[0],setNorthMax=_useState2[1];var _useState3=(0,_react_18_2_0_react.useState)(false),_useState4=(0,slicedToArray/* default */.Z)(_useState3,2),southMax=_useState4[0],setSouthMax=_useState4[1];// const left = useMemo(() => {
//   return Math.max(0, window.innerWidth - 320 - 40);
// }, []);
var calcStyle=(0,_react_18_2_0_react.useMemo)(function(){return{// left,
height:isExpand?panelHeight>=window.innerHeight?window.innerHeight:panelHeight:75,display:visible?'flex':'none'};},[isExpand,panelHeight,visible]);var resizeableProps=(0,_react_18_2_0_react.useMemo)(function(){return{resizeHandles:['s'],draggableOpts:{grid:[1,1]},minConstraints:[320,480],maxConstraints:[320,window.innerHeight>960?960:window.innerHeight]};},[]);var onDrag=(0,_react_18_2_0_react.useCallback)(function(_event,data){var x=data.x,y=data.y;if(y+panelHeight+40<window.innerHeight-24){setSouthMax(false);}else{setSouthMax(true);}setPanelPosition({x:x,y:y});},[panelHeight]);var onResize=(0,_react_18_2_0_react.useCallback)(function(_event,data){var handle=data.handle,size=data.size;if(handle==='s'){// 向下拉伸临界点
if(size.height+panelPosition.y+40>=window.innerHeight||size.height>=960){setSouthMax(true);return;}else{setSouthMax(false);}}setPanelHeight(size.height);},[panelPosition]);return/*#__PURE__*/(0,jsx_runtime.jsx)((cjs_default()),{onDrag:onDrag,position:panelPosition,handle:".handle",cancel:".not-handle",bounds:"body",children:/*#__PURE__*/(0,jsx_runtime.jsx)(_react_resizable_3_0_5_react_resizable.Resizable,(0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({width:320,height:isExpand?panelHeight>=window.innerHeight?window.innerHeight:panelHeight:75,onResize:onResize},resizeableProps),{},{children:/*#__PURE__*/(0,jsx_runtime.jsxs)(mainPanel_styled_Content,{id:"main_draggable_panel",style:calcStyle,isExpand:isExpand,northMax:northMax,southMax:southMax,children:[/*#__PURE__*/(0,jsx_runtime.jsx)(RecordControl,{className:"handle",controlBoxClassName:"not-handle"// isExpand={isExpand}
// onExpandChange={setIsExpand}
,meetingController:meetingController,controller:controller,getMeetingContext:getMeetingContext}),/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{background:'#F2F5FB',borderRadius:'0 0 12px 12px'},children:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"transWrap",children:/*#__PURE__*/(0,jsx_runtime.jsx)(TransContainer,{controller:controller,isExpand:isExpand,panelHeight:panelHeight})})}),isStoping&&/*#__PURE__*/(0,jsx_runtime.jsx)(Stoping,{})]})}))});});
;// CONCATENATED MODULE: ./src/components/mainPanel/index.ts

;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/caption/styled.js

var caption_styled_Wrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["padding:20px 24px;background-image:radial-gradient(circle at 50% 58%,rgba(24,24,29,0.66) 0%,rgba(22,22,27,0.72) 55%);box-shadow:0 7px 15px 0 rgba(0,0,0,0.25);border-radius:8px;display:flex;flex-direction:column;box-sizing:border-box;backdrop-filter:blur(10px);"]);
var styled_Header = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["margin-bottom:12px;display:flex;"]);
var ExtraWrapper = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["flex:1 1;display:flex;align-items:center;justify-content:flex-end;"]);
var Logo = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["background-image:url('data:image/svg+xml;base64, ');background-position:0 0;background-repeat:no-repeat;background-size:contain;width:58.92px;height:16px;"]);
var caption_styled_Content = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["flex:1;display:grid;overflow:hidden;"]);
var ScrollView = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.div(["font-size:15px;line-height:25px;overflow-y:hidden;overflow-x:hidden;pointer-events:none;"]);
var OriginScrollView = /*#__PURE__*/(0,styled_components_browser_esm/* default */.ZP)(ScrollView)(["color:#FFFFFF;"]);
var TranslateScrollView = /*#__PURE__*/(0,styled_components_browser_esm/* default */.ZP)(ScrollView)(["color:rgba(255,255,255,0.6);"]);
var styled_FixText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.span(["", ""], function (props) {
  return !props.solidColor && (0,styled_components_browser_esm/* css */.iv)(["color:#FFFFFF;"]);
});
var caption_styled_UnfixText = /*#__PURE__*/styled_components_browser_esm/* default */.ZP.span(["", ""], function (props) {
  return !props.solidColor && (0,styled_components_browser_esm/* css */.iv)(["color:rgba(255,255,255,0.6);"]);
});
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-component-react@0.3.71@@ali/tingwu-component-react/dist-web/components/caption/caption.js
var _Logo;

var caption_createElement = /*#__PURE__*/_react_18_2_0_react.createElement;







var getGridTemplateRowsByRows = function getGridTemplateRowsByRows(rows) {
  if (rows === 1) {
    return '1fr 0fr';
  }
  var basic = Math.floor(rows / 2);
  var remainder = rows % 2;
  return basic + remainder + "fr " + basic + "fr";
};
var Caption = function Caption(props) {
  var _FixText, _FixText2, _UnfixText;
  var extraContent = props.extraContent,
    _props$logo = props.logo,
    logo = _props$logo === void 0 ? _Logo || (_Logo = /*#__PURE__*/caption_createElement(Logo, null)) : _props$logo;
  var _useContext = (0,_react_18_2_0_react.useContext)(TingwuContext),
    getController = _useContext.getController;
  var controller = (0,_react_18_2_0_react.useMemo)(function () {
    return getController();
  }, [getController]);
  var _useState = (0,_react_18_2_0_react.useState)(''),
    fixContent = _useState[0],
    setFixContent = _useState[1];
  var _useState2 = (0,_react_18_2_0_react.useState)(''),
    unfixContent = _useState2[0],
    setUnfixContent = _useState2[1];
  var _useState3 = (0,_react_18_2_0_react.useState)(''),
    fixTranslate = _useState3[0],
    setFixTranslate = _useState3[1];
  var _useState4 = (0,_react_18_2_0_react.useState)(''),
    unfixTranslate = _useState4[0],
    setUnfixTranslate = _useState4[1];
  var _useState5 = (0,_react_18_2_0_react.useState)(2),
    rows = _useState5[0],
    setRows = _useState5[1];
  var translateMode = (0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(translateModeState);
  var contentRef = (0,_react_18_2_0_react.useRef)(null);
  var originRef = (0,_react_18_2_0_react.useRef)(null);
  var translateRef = (0,_react_18_2_0_react.useRef)(null);
  var readFixContent = (0,_react_18_2_0_react.useCallback)(function () {
    var unfixPid = controller.getUnfixPid();
    if (!unfixPid) {
      setFixContent('');
    } else {
      setFixContent(controller.getTextContent(unfixPid));
    }
  }, [controller]);
  (0,_react_18_2_0_react.useEffect)(function () {
    readFixContent();
    return controller.on('paragraphChangeSpecific', function () {
      readFixContent();
    });
  }, [controller, readFixContent]);
  (0,_react_18_2_0_react.useEffect)(function () {
    setUnfixContent(controller.getUnfixContent());
    return controller.on('unfixContentChange', function (event) {
      setUnfixContent(event.unfixContent);
    });
  }, [controller]);
  var scrollOrigin = (0,_react_18_2_0_react.useCallback)(function () {
    var _originRef$current;
    (_originRef$current = originRef.current) == null ? void 0 : _originRef$current.scrollTo({
      top: 99999,
      behavior: 'smooth'
    });
  }, []);
  var scrollTranslate = (0,_react_18_2_0_react.useCallback)(function () {
    var _translateRef$current;
    (_translateRef$current = translateRef.current) == null ? void 0 : _translateRef$current.scrollTo({
      top: 99999,
      behavior: 'smooth'
    });
  }, []);
  (0,_react_18_2_0_react.useEffect)(function () {
    var container = contentRef.current;
    if (!window.ResizeObserver || !container) {
      return;
    } //
    // User will manual import `resize-observer-polyfill` if need.

    var resizeObserver = new ResizeObserver(function (entries) {
      if (entries.length === 0) {
        return;
      }
      var height = entries[0].contentRect.height;
      setRows(Math.ceil(height / 25));
      scrollOrigin();
      scrollTranslate();
    });
    resizeObserver.observe(container);
    return function () {
      resizeObserver.disconnect();
    };
  }, [scrollOrigin, scrollTranslate]);
  useSyncEffect(function () {
    return controller.on('unfixParagraphTranslateChange', function (event) {
      var fixContentTranslate = event.fixContentTranslate,
        unfixContentTranslate = event.unfixContentTranslate;
      var localFixTranslate = fixContentTranslate.map(function (w) {
        return w.text;
      }).join('');
      setFixTranslate(localFixTranslate);
      setUnfixTranslate(unfixContentTranslate);
    });
  }, [controller]);
  var solidColor = translateMode === translateController/* TranslateMode */.R.OriginAndTranslate;
  var allTextContent = controller.getAllTextContent().join('');
  var originElem = (0,_react_18_2_0_react.useMemo)(function () {
    if (translateMode === translateController/* TranslateMode */.R.TranslateOnly) {
      return null;
    }
    var isEmpty = !allTextContent && !unfixContent;
    return /*#__PURE__*/caption_createElement(OriginScrollView, {
      ref: originRef
    }, fixContent && (_FixText || (_FixText = /*#__PURE__*/caption_createElement(styled_FixText, {
      solidColor: solidColor
    }, fixContent))), /*#__PURE__*/caption_createElement(caption_styled_UnfixText, {
      solidColor: solidColor
    }, isEmpty ? /*#__PURE__*/caption_createElement(DynamicDots, {
      style: {
        fontSize: 18
      }
    }) : unfixContent));
  }, [fixContent, unfixContent, translateMode, solidColor]);
  var translateElem = (0,_react_18_2_0_react.useMemo)(function () {
    if (translateMode === translateController/* TranslateMode */.R.Disabled) {
      return null;
    }
    return /*#__PURE__*/caption_createElement(TranslateScrollView, {
      ref: translateRef
    }, fixTranslate && (_FixText2 || (_FixText2 = /*#__PURE__*/caption_createElement(styled_FixText, {
      solidColor: solidColor
    }, fixTranslate))), unfixTranslate && (_UnfixText || (_UnfixText = /*#__PURE__*/caption_createElement(caption_styled_UnfixText, {
      solidColor: solidColor
    }, unfixTranslate))));
  }, [translateMode, fixTranslate, unfixTranslate, solidColor]);
  (0,_react_18_2_0_react.useEffect)(function () {
    scrollOrigin();
  }, [fixContent, unfixContent, scrollOrigin]);
  (0,_react_18_2_0_react.useEffect)(function () {
    scrollTranslate();
  }, [fixTranslate, unfixTranslate, scrollTranslate]);
  var contentStyle = (0,_react_18_2_0_react.useMemo)(function () {
    if (translateMode === translateController/* TranslateMode */.R.OriginAndTranslate) {
      return {
        gridTemplateRows: getGridTemplateRowsByRows(rows)
      };
    }
    return {
      gridTemplateRows: '1fr'
    };
  }, [translateMode, rows]);
  return /*#__PURE__*/caption_createElement(caption_styled_Wrapper, null, /*#__PURE__*/caption_createElement(styled_Header, null, logo, extraContent && /*#__PURE__*/caption_createElement(ExtraWrapper, null, extraContent)), /*#__PURE__*/caption_createElement(caption_styled_Content, {
    style: contentStyle,
    ref: contentRef
  }, originElem, translateElem));
};
;// CONCATENATED MODULE: ./src/components/captionContainer/styled.tsx
var captionContainer_styled_templateObject,captionContainer_styled_templateObject2,captionContainer_styled_templateObject3,captionContainer_styled_templateObject4,captionContainer_styled_templateObject5,captionContainer_styled_templateObject6,captionContainer_styled_templateObject7,styled_templateObject8,styled_templateObject9,styled_templateObject10;var RESIZE_HANDLE_WIDTH=10;var captionContainer_styled_Content=styled_components_browser_esm/* default */.ZP.div(captionContainer_styled_templateObject||(captionContainer_styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  flex-direction: column;\n  position: fixed;\n  z-index: 2147483647;\n  // overflow: hidden;\n  border-radius: 8px;\n\n  .captionWrapper>div>div:nth-child(2){\n    opacity: ",";\n  }\n\n  .react-resizable-handle {\n    position: absolute;\n    box-sizing: border-box;\n    user-select: none;\n  }\n\n  .react-resizable-handle-se {\n    cursor: se-resize;\n    bottom: 0;\n    right: 0;\n    width: ","px;\n    height: ","px;\n  }\n\n  .react-resizable-handle-ne {\n    cursor: ne-resize;\n    top: 0;\n    right: 0;\n    width: ","px;\n    height: ","px;\n  }\n\n  .react-resizable-handle-sw {\n    cursor: sw-resize;\n    bottom: 0;\n    left: 0;\n    width: ","px;\n    height: ","px;\n  }\n  .react-resizable-handle-nw {\n    cursor: nw-resize;\n    top: 0;\n    left: 0;\n    width: ","px;\n    height: ","px;\n  }\n\n  .react-resizable-handle-e {\n    cursor: ",";\n    top: ","px;\n    bottom: ","px;\n    right: 0;\n    width: ","px;\n  }\n\n  .react-resizable-handle-w {\n    cursor: w-resize;\n    top: ","px;\n    bottom: ","px;\n    left: 0;\n    width: ","px;\n  }\n\n  .react-resizable-handle-n {\n    cursor: n-resize;\n    left: ","px;\n    right: ","px;\n    top: 0;\n    height: ","px;\n  }\n\n  .react-resizable-handle-s {\n    cursor: ",";\n    left: ","px;\n    right: ","px;\n    bottom: 0;\n    height: ","px;\n  }\n\n  .tweant-message {\n    top: 50%;\n    transform: translate(0, -50%);\n\n    .tweant-message-notice-content {\n      border-radius: 8px !important;\n    }\n  }\n"])),function(props){return props.isPauseRecord?'0':'1';},RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,function(props){return!props.directionsData.eastMax&&!props.directionsData.eastMin?'ew-resize':props.directionsData.eastMax?'w-resize':'e-resize';},RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,function(props){return!props.directionsData.southMax&&!props.directionsData.southMin?'ns-resize':props.directionsData.southMax?'n-resize':'s-resize';},RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH,RESIZE_HANDLE_WIDTH);var CaptionWrapper=styled_components_browser_esm/* default */.ZP.div(captionContainer_styled_templateObject2||(captionContainer_styled_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  width: 100%;\n  height: 100%;\n  & > div {\n    width: 100%;\n    height: 100%;\n    flex: 1 1;\n  }\n"])));var styled_ControlBox=styled_components_browser_esm/* default */.ZP.div(captionContainer_styled_templateObject3||(captionContainer_styled_templateObject3=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n"])));var styled_StopButton=styled_components_browser_esm/* default */.ZP.div(captionContainer_styled_templateObject4||(captionContainer_styled_templateObject4=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  transition: all 0.3s;\n  &:hover{\n    background-image: url(",");\n  }\n  &:active{\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL('stopButton.svg'),chrome.runtime.getURL('stopButtonHover.svg'),chrome.runtime.getURL('stopButtonActive.svg'));var MainPanelButton=styled_components_browser_esm/* default */.ZP.div(captionContainer_styled_templateObject5||(captionContainer_styled_templateObject5=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 13px;\n  transition: all 0.3s;\n  &:hover{\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL('mainPanelButton.svg'),chrome.runtime.getURL('mainPanelButtonHover.svg'));var styled_Logo=styled_components_browser_esm/* default */.ZP.div(captionContainer_styled_templateObject6||(captionContainer_styled_templateObject6=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-position: 0 center;\n  background-repeat: no-repeat;\n  background-size: contain;\n  width: ",";\n  height: 15px;\n"])),chrome.runtime.getURL((0,src_extends/* getGlobalConfig */.H)().renderLogoBase64()),(0,src_extends/* getGlobalConfig */.H)().renderLogoSizeInCaption());var styled_RestartButton=styled_components_browser_esm/* default */.ZP.div(captionContainer_styled_templateObject7||(captionContainer_styled_templateObject7=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  background-position: center center;\n  background-repeat: no-repeat;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 12px;\n  transition: all 0.3s;\n  &:hover{\n    background-image: url(",");\n  }\n  /* &:active{\n    background-image: url(",");\n  } */\n"])),chrome.runtime.getURL('restartButtonCaption.svg'),chrome.runtime.getURL('restartButtonHoverCaption.svg'),chrome.runtime.getURL('restartButtonActive.svg'));var styled_PauseButton=styled_components_browser_esm/* default */.ZP.div(styled_templateObject8||(styled_templateObject8=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 12px;\n  transition: all 0.3s;\n  &:hover{\n    background-image: url(",");\n  }\n  /* &:active{\n    background-image: url(",");\n  } */\n"])),chrome.runtime.getURL('pauseButtonCaption.svg'),chrome.runtime.getURL('pauseButtonHoverCaption.svg'),chrome.runtime.getURL('pauseButtonActive.svg'));var styled_TranslateButton=styled_components_browser_esm/* default */.ZP.div(styled_templateObject9||(styled_templateObject9=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-size: contain;\n  background-position: center center;\n  background-repeat: no-repeat;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 12px;\n  transition: all 0.3s;\n"])));var PauseRecordTips=styled_components_browser_esm/* default */.ZP.span(styled_templateObject10||(styled_templateObject10=(0,taggedTemplateLiteral/* default */.Z)(["\n  position: absolute;\n  top: 48px;\n  left: 24px;\n  color: rgba(255, 255, 255, 0.6);\n  z-index: 1;\n  font-size: 15px;\n"])));
;// CONCATENATED MODULE: ./src/components/captionContainer/captionContainer.tsx
var CaptionContainer=function CaptionContainer(props){var meetingController=props.meetingController,_props$defaultWidth=props.defaultWidth,defaultWidth=_props$defaultWidth===void 0?720:_props$defaultWidth,_props$defaultHeight=props.defaultHeight,defaultHeight=_props$defaultHeight===void 0?116:_props$defaultHeight,visible=props.visible,controller=props.controller,getMeetingContext=props.getMeetingContext;var _useState=(0,_react_18_2_0_react.useState)(defaultWidth),_useState2=(0,slicedToArray/* default */.Z)(_useState,2),width=_useState2[0],setWidth=_useState2[1];var _useState3=(0,_react_18_2_0_react.useState)(defaultHeight),_useState4=(0,slicedToArray/* default */.Z)(_useState3,2),height=_useState4[0],setHeight=_useState4[1];var _useState5=(0,_react_18_2_0_react.useState)(0),_useState6=(0,slicedToArray/* default */.Z)(_useState5,2),top=_useState6[0],setTop=_useState6[1];var _useState7=(0,_react_18_2_0_react.useState)(0),_useState8=(0,slicedToArray/* default */.Z)(_useState7,2),left=_useState8[0],setLeft=_useState8[1];var _usePanelVisible=(0,models/* usePanelVisible */.RW)(),showMainPanel=_usePanelVisible.showMainPanel;var isStoping=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* isStopingState */.q9);var _useRecoilState=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* translateSwitchState */.C5),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,2),translateSwitch=_useRecoilState2[0],setTranslateSwitch=_useRecoilState2[1];var setTargetLanguage=(0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(models/* targetLanguageState */.oN);var _useRecoilState3=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* showLanguageState */.vT),_useRecoilState4=(0,slicedToArray/* default */.Z)(_useRecoilState3,2),showLanguage=_useRecoilState4[0],setShowLanguage=_useRecoilState4[1];var _useRecoilState5=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* transIdState */.gV),_useRecoilState6=(0,slicedToArray/* default */.Z)(_useRecoilState5,2),transId=_useRecoilState6[0],setTransId=_useRecoilState6[1];var isExpand=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* isExpandState */.Vt);var _useState9=(0,_react_18_2_0_react.useState)({eastMax:false,eastMin:false,southMax:false,southMin:false}),_useState10=(0,slicedToArray/* default */.Z)(_useState9,2),directionsData=_useState10[0],setDirectionsData=_useState10[1];var isPauseRecord=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* isPauseRecordState */.qA);var sourceLanguage=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* sourceLanguageState */.I1);var _useState11=(0,_react_18_2_0_react.useState)(false),_useState12=(0,slicedToArray/* default */.Z)(_useState11,2),isTranslateHover=_useState12[0],setIsTranslateHover=_useState12[1];var handleRestart=(0,_react_18_2_0_react.useCallback)(function(){meetingController.resumeMeeting();(0,log/* sendLog */.gp)('re_start_record',{et:'CLK',c1:transId});},[transId]);var handlePause=(0,_react_18_2_0_react.useCallback)(function(){meetingController.pauseMeeing();(0,log/* sendLog */.gp)('pause_record',{et:'CLK',c1:transId});},[transId]);var handleStop=(0,_react_18_2_0_react.useCallback)(function(){meetingController.stopMeeting();services/* service */.X.getSyncTransTag(Number(transId),{read:'0'});setTranslateSwitch(false);setTargetLanguage('cn');setShowLanguage(1);setTransId('');(0,log/* sendLog */.gp)('stop_record',{et:'CLK',c1:transId});},[meetingController,transId]);var onResize=(0,_react_18_2_0_react.useCallback)(function(_event,data){var handle=data.handle,size=data.size;setWidth(size.width);setHeight(size.height);if(handle==='e'){if(size.width>=720){setDirectionsData((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},directionsData),{},{eastMax:true,eastMin:false}));}else if(size.width<=320){setDirectionsData((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},directionsData),{},{eastMin:true,eastMax:false}));}else{setDirectionsData((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},directionsData),{},{eastMax:false,eastMin:false}));}}else if(handle==='s'){if(size.height>=193){setDirectionsData((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},directionsData),{},{southMax:true,southMin:false}));}else if(size.height<=118){setDirectionsData((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},directionsData),{},{southMin:true,southMax:false}));}else{setDirectionsData((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},directionsData),{},{southMax:false,southMin:false}));}}},[directionsData]);// 开启翻译 双语展示，默认各展示两行。
(0,_react_18_2_0_react.useEffect)(function(){if(translateSwitch&&showLanguage===2){setHeight(168);}},[translateSwitch,showLanguage]);(0,_react_18_2_0_react.useEffect)(function(){setTop(Math.max(0,window.innerHeight-height-67));setLeft(Math.max(0,(window.innerWidth-width)/2));},[]);(0,_react_18_2_0_react.useEffect)(function(){if(isStoping||transId===''||transId==='0')return;var tag={};if(translateSwitch){tag={translateSwitch:1,originLanguageValue:sourceLanguageMap.get(sourceLanguage),transTargetValue:sourceLanguage==='cn'?2:1,translateLanguageConf:showLanguage};}else{tag={translateSwitch:0,originLanguageValue:sourceLanguageMap.get(sourceLanguage),transTargetValue:0,translateLanguageConf:showLanguage};}services/* service */.X.getSyncTransTag(Number(transId),tag);},[isStoping,transId,translateSwitch,sourceLanguage,showLanguage]);var calcStyle=(0,_react_18_2_0_react.useMemo)(function(){return{width:width,height:height,left:left,top:top,display:visible?'flex':'none'};},[width,height,left,visible]);var extraContent=/*#__PURE__*/(0,jsx_runtime.jsxs)(styled_ControlBox,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{placement:"top",color:"rgb(39, 38, 77)",overlayInnerStyle:{borderRadius:"8px",padding:"4px 8px",fontSize:"12px",minHeight:26},title:"\u7ED3\u675F\u5F55\u97F3",getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:/*#__PURE__*/(0,jsx_runtime.jsx)(styled_StopButton,{onClick:handleStop})}),/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{placement:"top",color:"rgb(39, 38, 77)",overlayInnerStyle:{borderRadius:"8px",padding:"4px 8px",fontSize:"12px",minHeight:26},title:isPauseRecord?"继续录音":"暂停录音",getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:isPauseRecord?/*#__PURE__*/(0,jsx_runtime.jsx)(styled_RestartButton,{onClick:handleRestart}):/*#__PURE__*/(0,jsx_runtime.jsx)(styled_PauseButton,{onClick:handlePause})}),sourceLanguage!=="yue"&&sourceLanguage!=="fspk"&&/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{overlayClassName:"translateTooltip",placement:"topRight",color:"transparent",overlayInnerStyle:{borderRadius:"8px",padding:"0"},title:/*#__PURE__*/(0,jsx_runtime.jsx)(TranslatePopWindow,{controller:controller,translateSwitch:translateSwitch,sourceLanguage:sourceLanguage,showLanguage:showLanguage,changeTranStatus:setTranslateSwitch,doubleLanguage:setShowLanguage,getMeetingContext:getMeetingContext})// getPopupContainer={(triggerNode) => triggerNode.parentElement as any}
,children:/*#__PURE__*/(0,jsx_runtime.jsx)(styled_TranslateButton,{style:{backgroundImage:isTranslateHover||translateSwitch?"url(".concat(chrome.runtime.getURL("translateButtonHoverCaption.svg"),")"):"url(".concat(chrome.runtime.getURL("translateButtonCaption.svg"),")")},onMouseEnter:function onMouseEnter(){return setIsTranslateHover(true);},onMouseLeave:function onMouseLeave(){return setIsTranslateHover(false);}})}),/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{placement:"top",color:"rgb(39, 38, 77)",overlayInnerStyle:{borderRadius:"8px",padding:"4px 8px",fontSize:"12px",minHeight:26},title:"\u5173\u95ED\u5B57\u5E55",getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:/*#__PURE__*/(0,jsx_runtime.jsx)(MainPanelButton,{onClick:function onClick(){showMainPanel();(0,log/* sendLog */.gp)("change_chrome_shape",{et:"CLK",c1:isExpand?1:3});}})})]});var resizeableProps=(0,_react_18_2_0_react.useMemo)(function(){return{// resizeHandles: ['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'],
resizeHandles:['s','e','se'],draggableOpts:{grid:[1,1]},minConstraints:[320,118],maxConstraints:[720,193]};},[]);return/*#__PURE__*/(0,jsx_runtime.jsx)((cjs_default()),{handle:".handle",bounds:"body",children:/*#__PURE__*/(0,jsx_runtime.jsx)(_react_resizable_3_0_5_react_resizable.Resizable,(0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({width:width,height:height,onResize:onResize},resizeableProps),{},{children:/*#__PURE__*/(0,jsx_runtime.jsxs)(captionContainer_styled_Content,{id:"caption_draggable_panel",style:calcStyle,directionsData:directionsData,isPauseRecord:isPauseRecord,children:[/*#__PURE__*/(0,jsx_runtime.jsxs)(CaptionWrapper,{className:"handle captionWrapper",children:[isPauseRecord&&/*#__PURE__*/(0,jsx_runtime.jsx)(PauseRecordTips,{children:"\u5F55\u97F3\u5DF2\u6682\u505C"}),/*#__PURE__*/(0,jsx_runtime.jsx)(Provider,{controller:controller,children:/*#__PURE__*/(0,jsx_runtime.jsx)(Caption,{extraContent:extraContent,logo:/*#__PURE__*/(0,jsx_runtime.jsx)(styled_Logo,{})})})]}),isStoping&&/*#__PURE__*/(0,jsx_runtime.jsx)(Stoping,{})]})}))});};
;// CONCATENATED MODULE: ./src/components/captionContainer/index.ts

// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/index.js + 5 modules
var config_provider = __webpack_require__(7183);
;// CONCATENATED MODULE: ./src/components/provider/provider.tsx
var provider_Provider=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var children=props.children;return/*#__PURE__*/(0,jsx_runtime.jsx)(_react_18_2_0_react.StrictMode,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(_recoil_0_7_7_recoil_es/* RecoilRoot */.Wh,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(config_provider/* default */.ZP,{prefixCls:"tweant",children:children})})});});
;// CONCATENATED MODULE: ./src/components/provider/index.ts

// EXTERNAL MODULE: ./src/components/loginPanel/styled.tsx
var loginPanel_styled = __webpack_require__(2073);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/index.js + 25 modules
var modal = __webpack_require__(3323);
;// CONCATENATED MODULE: ./src/components/safeDialog/safeDialog.tsx
var safeDialog_templateObject;var StorageNotificationBody=styled_components_browser_esm/* default */.ZP.div(safeDialog_templateObject||(safeDialog_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  position: absolute;\n  left: 0px;\n  width: 100%;\n  top: 44px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  .des {\n    height: 60px;\n    width: 231px;\n    font-family: PingFangSC;\n    font-weight: 400;\n    font-size: 12px;\n    color: rgba(39, 38, 77, 0.65);\n    letter-spacing: 0;\n    text-align: justify;\n    line-height: 20px;\n    display: block;\n  }\n  .desHref {\n    height: 20px;\n    width: 96px;\n    font-family: PingFangSC;\n    font-weight: 400;\n    font-size: 12px;\n    color: #605ce5;\n    letter-spacing: 0;\n    text-align: justify;\n    line-height: 20px;\n    display: block;\n    margin-top: 4px;\n    cursor: pointer;\n  }\n  .StorageNotificationContent {\n    margin-top: 16px;\n  }\n"])));var SafeDialog=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var _props$idName=props.idName,idName=_props$idName===void 0?"":_props$idName;var env=(0,src_extends/* getGlobalConfig */.H)().getEnvInfo();(0,_react_18_2_0_react.useEffect)(function(){if(env.publishName==="publicServer"){services/* service */.X.isWhiteList().then(function(isInc){if(isInc){console.log("内网登录");// 内网登录，展示数据安全提示
showInfo();}else{services/* service */.X.getUserInfoIsInAli().then(function(data){// todo集团员工账号已经登陆，展示数据安全提示
showInfo();}).catch(function(e){// 未登录集团员工账号
});}});}},[]);var showInfo=function showInfo(){//获取存储
chrome.storage.local.get(["value"],function(result){if(result.value){if(dayjs_min_default()().isAfter(result.value)){toastContain();chrome.storage.local.set({value:dayjs_min_default()().format('YYYY-MM-DD 23:59:59')});}}else{//执行存储
chrome.storage.local.set({value:dayjs_min_default()().format('YYYY-MM-DD 23:59:59')});toastContain();}});};var toastContain=function toastContain(){return modal/* default */.Z.info({getContainer:function getContainer(){return document.getElementById(idName)||document.body;},centered:true,icon:null,width:272,bodyStyle:{height:220,paddingTop:"28px"},okButtonProps:{style:{marginTop:"88px",marginLeft:"-12px",float:"left",width:232}},closable:false,okText:"我知道了",title:"数据安全提示",content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationBody,{children:/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"StorageNotificationContent",children:[/*#__PURE__*/(0,jsx_runtime.jsx)("span",{className:"des",children:"\u6B63\u5728\u901A\u8FC7\u96C6\u56E2\u5185\u7F51\u8BBF\u95EE\u901A\u4E49\u542C\u609F\u516C\u7F51\u7248\u672C\uFF0C\u516C\u7F51\u7248\u672C\u4EC5\u670D\u52A1\u4E8E\u4E92\u8054\u7F51\u4E0A\u7684\u4E2A\u4EBA\u7528\u6237\uFF0C\u8BF7\u6CE8\u610F\u6570\u636E\u5916\u6CC4\u98CE\u9669\uFF0C\u52FF\u4E0A\u4F20\u5DE5\u4F5C\u76F8\u5173\u5185\u5BB9\u3002"}),/*#__PURE__*/(0,jsx_runtime.jsx)("span",{className:"desHref",onClick:function onClick(){services/* service */.X.fetchDomainConfig().then(function(res){if(res.data&&res.data.chrome&&res.data.chrome.version){var u=res.data.chrome.aliVersion;if(u){window.open(u);}}});},children:"\u5B89\u88C5\u5185\u7F51\u7248\u672C\u63D2\u4EF6"})]})})})});};return/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{});});
;// CONCATENATED MODULE: ./src/components/safeDialog/index.ts

;// CONCATENATED MODULE: ./src/components/loginPanel/loginPanel.tsx
var loginPoints=[{title:'实时记录划重点'},{title:'字幕形态随心切换'},{title:'实时翻译字幕'},{title:'智能总结提炼'}];var LoginPanel=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var _props$visible=props.visible,visible=_props$visible===void 0?true:_props$visible,onCloseApp=props.onCloseApp;var _useConfig=(0,models/* useConfig */.ZR)(),loginUrl=_useConfig.loginUrl;// const left = useMemo(() => {
//   return Math.max(0, window.innerWidth - 500);
// }, []);
var calcStyle=(0,_react_18_2_0_react.useMemo)(function(){return{// left,
display:visible?'flex':'none'};},[visible]);var handleLogin=(0,_react_18_2_0_react.useCallback)(function(){window.open(loginUrl);(0,log/* sendLogWithUnknownUser */.JL)("chrome_login",{});},[]);return/*#__PURE__*/(0,jsx_runtime.jsx)((cjs_default()),{handle:".handle",cancel:".not-handle",bounds:"body",children:/*#__PURE__*/(0,jsx_runtime.jsxs)(loginPanel_styled/* Panel */.s_,{style:calcStyle,className:"handle",id:"draggable_panel_login",children:[(0,src_extends/* getGlobalConfig */.H)().renderExtContent("draggable_panel_login"),/*#__PURE__*/(0,jsx_runtime.jsx)(SafeDialog,{idName:"draggable_panel_login"}),/*#__PURE__*/(0,jsx_runtime.jsx)(EnvMark,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(loginPanel_styled/* Background */.Aq,{}),/*#__PURE__*/(0,jsx_runtime.jsxs)(loginPanel_styled/* Container */.W2,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(loginPanel_styled/* Logo */.TR,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(loginPanel_styled/* Features */.AN,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(loginPanel_styled/* LoginPoints */._u,{children:loginPoints===null||loginPoints===void 0?void 0:loginPoints.map(function(item){var title=item.title;return/*#__PURE__*/(0,jsx_runtime.jsx)(loginPanel_styled/* LoginPointItem */.iF,{children:title});})}),/*#__PURE__*/(0,jsx_runtime.jsx)(loginPanel_styled/* Button */.zx,{onClick:handleLogin,children:"\u767B\u5F55\u4F53\u9A8C"}),/*#__PURE__*/(0,jsx_runtime.jsx)(loginPanel_styled/* CloseButton */.PZ,{className:"not-handle",onClick:onCloseApp})]})]})});});
;// CONCATENATED MODULE: ./src/components/loginPanel/index.ts

;// CONCATENATED MODULE: ./src/components/startPanel/styled.tsx
var startPanel_styled_templateObject,startPanel_styled_templateObject2,startPanel_styled_templateObject3,startPanel_styled_templateObject4,startPanel_styled_templateObject5,startPanel_styled_templateObject6,startPanel_styled_templateObject7,startPanel_styled_templateObject8,startPanel_styled_templateObject9,startPanel_styled_templateObject10,styled_templateObject11,styled_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,_templateObject17,_templateObject18,_templateObject19,_templateObject20,_templateObject21,_templateObject22,_templateObject23,_templateObject24,_templateObject25;var startPanel_styled_Content=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject||(startPanel_styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  width: 320px;\n  /* height: 76vh; */\n  min-height: 480px;\n  max-height: 960px;\n  position: fixed;\n  z-index: 2147483647;\n  top: 40px;\n  right: 32px;\n  .tweant-checkbox-checked .tweant-checkbox-inner {\n    background-color: #605ce5;\n    border-color: #605ce5;\n  }\n  .tweant-checkbox-wrapper:hover .tweant-checkbox-inner,\n  .tweant-checkbox:hover .tweant-checkbox-inner,\n  .tweant-checkbox-input:focus + .tweant-checkbox-inner {\n    border-color: #605ce5;\n  }\n  .tweant-checkbox-checked::after {\n    border: 1px solid #605ce5;\n    content: \"\";\n  }\n  .tweant-btn-default:hover,\n  .tweant-btn-default:focus {\n    border-color: rgba(39, 38, 77, 0.45);\n    color: #27264d;\n  }\n  .tweant-btn-primary:hover,\n  .tweant-btn-primary:focus {\n    border-color: #605ce5;\n  }\n  .tweant-modal-content {\n    border-radius: 8px;\n  }\n  .tweant-btn-primary {\n    background-color: #605ce5;\n    border-color: #605ce5;\n    font-size: 12px;\n    color: #fff;\n    border-radius: 6px;\n  }\n  .tweant-btn-primary:hover {\n    background-color: #7470e7;\n    border-color: #7470e7;\n  }\n  .tweant-btn-primary:focus,\n  .tweant-btn-primary:active {\n    background-color: #5b57ce;\n    border-color: #5b57ce;\n  }\n  .tweant-message {\n    top: 103px;\n  }\n  .tweant-modal-confirm-title {\n    font-family: PingFangSC;\n    font-weight: 500;\n    font-size: 14px;\n    color: #27264d;\n    letter-spacing: 0;\n    text-align: center;\n    line-height: 20px;\n  }\n  .tweant-modal-mask {\n    background-color: rgba(185, 184, 222, 0.2);\n    backdrop-filter: blur(6px);\n  }\n  .tweant-message-notice-content {\n    padding: 9px 16px;\n    border-radius: 8px !important;\n    color: #27264d !important;\n  }\n  .react-resizable-handle {\n    position: absolute;\n    left: 4px;\n    right: 4px;\n    box-sizing: border-box;\n    user-select: none;\n    height: 10px;\n    z-index: 201;\n  }\n\n  .react-resizable-handle-n {\n    top: 0;\n    cursor: ",";\n  }\n\n  .react-resizable-handle-s {\n    bottom: 0;\n    cursor: ",";\n  }\n"])),function(props){return props.northMax?"s-resize":"ns-resize";},function(props){return props.southMax?"n-resize":"ns-resize";});var Panel=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject2||(startPanel_styled_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n  width: 100%;\n  height: 100%;\n"])));var styled_Background=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject3||(startPanel_styled_templateObject3=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-color: #f9faff;\n  background-image: url(",");\n  background-position: 0 0;\n  background-repeat: no-repeat;\n  background-size: contain;\n  box-shadow: 0 0 1px 1px rgba(63, 60, 161, 0.3);\n  border-radius: 8px;\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  z-index: 1;\n"])),chrome.runtime.getURL("background.svg"));var styled_Container=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject4||(startPanel_styled_templateObject4=(0,taggedTemplateLiteral/* default */.Z)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  z-index: 2;\n  user-select: none;\n"])));var startPanel_styled_Header=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject5||(startPanel_styled_templateObject5=(0,taggedTemplateLiteral/* default */.Z)(["\n  height: 32px;\n  display: flex;\n  align-items: center;\n  margin: 24px 24px 0;\n"])));var HeaderExtra=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject6||(startPanel_styled_templateObject6=(0,taggedTemplateLiteral/* default */.Z)(["\n  flex: 1;\n  display: flex;\n  align-items: center;\n  justify-content: flex-end;\n"])));var startPanel_styled_Logo=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject7||(startPanel_styled_templateObject7=(0,taggedTemplateLiteral/* default */.Z)(["\n  background: url(",") 0\n    0 no-repeat;\n  background-size: contain;\n  width: ",";\n  height: 17px;\n"])),chrome.runtime.getURL((0,src_extends/* getGlobalConfig */.H)().renderLogoUrl()),(0,src_extends/* getGlobalConfig */.H)().renderLogoSize());var Avatar=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject8||(startPanel_styled_templateObject8=(0,taggedTemplateLiteral/* default */.Z)(["\n  margin-right: 17px;\n  &,\n  img {\n    width: 32px;\n    height: 32px;\n  }\n  border-radius: 32px;\n  overflow: hidden;\n"])));var startPanel_styled_CloseButton=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject9||(startPanel_styled_templateObject9=(0,taggedTemplateLiteral/* default */.Z)(["\n  background: url(",") center center\n    no-repeat;\n  width: 20px;\n  height: 20px;\n  cursor: pointer;\n  transition: all 0.3s;\n  &:hover {\n    background: url(",") center\n      center no-repeat;\n  }\n\n  &:active {\n    background: url(",") center\n      center no-repeat;\n  }\n"])),chrome.runtime.getURL("closeLarge.svg"),chrome.runtime.getURL("closeHoverLarge.svg"),chrome.runtime.getURL("closeActiveLarge.svg"));var WarnTipsIcon=styled_components_browser_esm/* default */.ZP.div(startPanel_styled_templateObject10||(startPanel_styled_templateObject10=(0,taggedTemplateLiteral/* default */.Z)(["\n  background: url(",") center center no-repeat;\n  width: 16px;\n  height: 16px;\n  cursor: pointer;\n  margin-left: 4px;\n  transition: all 0.3s;\n  &:hover {\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL("warn.svg"),chrome.runtime.getURL("warnHover.svg"));var Form=styled_components_browser_esm/* default */.ZP.div(styled_templateObject11||(styled_templateObject11=(0,taggedTemplateLiteral/* default */.Z)(["\n  margin: 28px 24px 24px;\n\n  .transLgControlItem,\n  .saveAsControlItem {\n    &:hover {\n      border-color: rgba(96, 92, 229, 1);\n      box-shadow: 0 0 0 0.5px rgba(96, 92, 229, 1);\n    }\n  }\n\n  .titleControlItem {\n    &:hover {\n      border-color: rgba(96, 92, 229, 1);\n      box-shadow: 0 0 0 0.5px rgba(96, 92, 229, 1),\n        0 0 0 2px rgba(96, 92, 229, 0.2);\n    }\n  }\n\n  .form_item_focus {\n    border-color: rgba(96, 92, 229, 1);\n    box-shadow: 0 0 0 0.5px rgba(96, 92, 229, 1),\n      0 0 0 2px rgba(96, 92, 229, 0.2);\n  }\n\n  .form_item_select_focus {\n    border-color: rgba(96, 92, 229, 1);\n    box-shadow: 0 0 0 0.5px rgba(96, 92, 229, 1);\n  }\n"])));var FormItem=styled_components_browser_esm/* default */.ZP.div(styled_templateObject12||(styled_templateObject12=(0,taggedTemplateLiteral/* default */.Z)(["\n  height: 44px;\n  background: #ffffff;\n  border: 0.5px solid #dfe3ed;\n  border-radius: 8px;\n  /* overflow: hidden; */\n  display: flex;\n  align-items: center;\n  margin-bottom: 12px;\n  &:last-child {\n    margin-bottom: 0;\n  }\n\n  .transLgControl {\n    .tweant-select-dropdown {\n      width: 273px !important;\n      height: 204px !important;\n      left: -73px !important;\n      top: 43px !important;\n\n      .tweant-select-item {\n        .tweant-select-item-option-content {\n          justify-content: space-between;\n        }\n      }\n    }\n  }\n\n  .saveAsControl {\n    .tweant-select-dropdown {\n      width: 273px !important;\n      left: -59px !important;\n      top: 43px !important;\n    }\n  }\n"])));var FormItemLabel=styled_components_browser_esm/* default */.ZP.div(_templateObject13||(_templateObject13=(0,taggedTemplateLiteral/* default */.Z)(["\n  font-size: 14px;\n  color: rgba(39, 38, 77, 0.65);\n  line-height: 22px;\n  margin-left: 16px;\n"])));var FormItemControl=styled_components_browser_esm/* default */.ZP.div(_templateObject14||(_templateObject14=(0,taggedTemplateLiteral/* default */.Z)(["\n  flex: 1;\n  display: flex;\n  justify-content: flex-end;\n  align-items: center;\n  margin-right: 16px;\n\n  .tweant-switch {\n    scale: 0.75;\n  }\n\n  .tweant-switch {\n    background: #d8d7f2;\n  }\n\n  .tweant-switch-checked {\n    background: #605ce5;\n  }\n\n  .tweant-select {\n    width: 100% !important;\n\n    &:hover {\n      .tweant-select-arrow {\n        background-image: url(",");\n      }\n    }\n  }\n  .tweant-select-selector {\n    border: none !important;\n    box-shadow: none !important;\n    padding-right: 0;\n\n    .label_item {\n      color: #27264d;\n    }\n  }\n  .tweant-select-arrow {\n    width: 16px;\n    height: 16px;\n    background: url(",") center center\n      no-repeat;\n    margin-top: -8px;\n    right: -2px;\n    transform: rotate(180deg);\n\n    .anticon {\n      display: none;\n    }\n  }\n  .tweant-select-selection-item {\n    font-family: PingFangSC-Medium;\n    text-align: right !important;\n    padding: 0 10px 0 9px !important;\n\n    img,\n    .waring_wrap {\n      display: none;\n    }\n    .label_item {\n      height: 32px;\n      line-height: 32px;\n    }\n  }\n  .tweant-select-single.tweant-select-open .tweant-select-selection-item {\n    color: #27264d;\n  }\n  .tweant-select-dropdown {\n    border-radius: 8px !important;\n    .rc-virtual-list-holder {\n      padding: 0 12px;\n    }\n\n    .tweant-select-item-option-active:not(.tweant-select-item-option-disabled) {\n      background: #ffffff;\n    }\n\n    .tweant-select-item-option-selected:not(\n        .tweant-select-item-option-disabled\n      ) {\n      color: #605ce5 !important;\n      font-weight: 400 !important;\n      background-color: transparent !important;\n    }\n\n    .tweant-select-item {\n      height: 48px;\n      border-radius: 4px;\n      color: #27264d;\n      &:hover {\n        background: rgba(96, 92, 229, 0.08);\n      }\n      .tweant-select-item-option-content {\n        display: flex;\n        align-items: center;\n      }\n    }\n  }\n  .tweant-select-open {\n    .tweant-select-arrow {\n      transform: rotate(0deg);\n    }\n  }\n  .tweant-input {\n    border: none !important;\n    outline: none !important;\n    box-shadow: none !important;\n    text-align: right !important;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    word-break: break-all;\n    padding-left: 16px;\n    padding-right: 0px;\n    font-family: PingFangSC-Medium;\n    color: #27264d;\n  }\n"])),chrome.runtime.getURL("selectArrowHover.svg"),chrome.runtime.getURL("selectArrow.svg"));var SubmitButton=styled_components_browser_esm/* default */.ZP.div(_templateObject15||(_templateObject15=(0,taggedTemplateLiteral/* default */.Z)(["\n  margin: 0 24px;\n  height: 40px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background: #605ce5;\n  border-radius: 8px;\n  /* margin-top: 24px; */\n  font-size: 14px;\n  color: #f9fafc;\n  line-height: 24px;\n  cursor: pointer;\n  font-weight: 500;\n\n  &:hover {\n    background: #7470e7;\n  }\n\n  &:active {\n    background: #5b57ce;\n  }\n\n  .tweant-message {\n    top: unset !important;\n    bottom: 107px !important;\n\n    .tweant-message-notice-content {\n      width: 272px;\n    }\n\n    .tweant-message-custom-content {\n      text-align: left;\n    }\n  }\n"])));var NormalButton=styled_components_browser_esm/* default */.ZP.div(_templateObject16||(_templateObject16=(0,taggedTemplateLiteral/* default */.Z)(["\n  margin: 16px 24px 0;\n  /* cursor: pointer; */\n  font-size: 14px;\n  color: #27264d;\n  line-height: 22px;\n  text-align: center;\n\n  span {\n    cursor: pointer;\n  }\n\n  &:hover {\n    color: #605ce5;\n  }\n\n  &:active {\n    color: #5b57ce;\n  }\n"])));var styled_StopingStyled=styled_components_browser_esm/* default */.ZP.div(_templateObject17||(_templateObject17=(0,taggedTemplateLiteral/* default */.Z)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background: rgba(0, 0, 0, 0.6);\n  z-index: 2147483647;\n  backdrop-filter: blur(6px);\n"])));var SpanRadio=styled_components_browser_esm/* default */.ZP.img(_templateObject18||(_templateObject18=(0,taggedTemplateLiteral/* default */.Z)(["\n  height: 12px;\n  width: 12px;\n"])));var FolderRadio=styled_components_browser_esm/* default */.ZP.img(_templateObject19||(_templateObject19=(0,taggedTemplateLiteral/* default */.Z)(["\n  height: 20px;\n  width: 20px;\n  margin: 0 8px;\n"])));var WarningRadio=styled_components_browser_esm/* default */.ZP.img(_templateObject20||(_templateObject20=(0,taggedTemplateLiteral/* default */.Z)(["\n  height: 16px;\n  width: 16px;\n  margin-right: 4px;\n"])));var LabelWrap=styled_components_browser_esm/* default */.ZP.div(_templateObject21||(_templateObject21=(0,taggedTemplateLiteral/* default */.Z)(["\n  .label_item {\n    color: #27264d;\n    max-width: 180px;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    word-break: break-all;\n  }\n"])));var WarningWrap=styled_components_browser_esm/* default */.ZP.div(_templateObject22||(_templateObject22=(0,taggedTemplateLiteral/* default */.Z)(["\n  display: flex;\n  align-items: center;\n  position: absolute;\n  font-size: 12px;\n  bottom: -5px;\n  color: rgba(39, 38, 77, 0.45);\n"])));var SuccessMsg=styled_components_browser_esm/* default */.ZP.span(_templateObject23||(_templateObject23=(0,taggedTemplateLiteral/* default */.Z)(["\n  color: rgba(39, 38, 77, 0.7);\n  font-size: 14px;\n\n  span {\n    color: #605ce5;\n    margin: 0 2px;\n    cursor: pointer;\n  }\n"])));var styled_SelectIcon=styled_components_browser_esm/* default */.ZP.img(_templateObject24||(_templateObject24=(0,taggedTemplateLiteral/* default */.Z)(["\n  width: 16px;\n  height: 16px;\n"])));var BottomContent=styled_components_browser_esm/* default */.ZP.div(_templateObject25||(_templateObject25=(0,taggedTemplateLiteral/* default */.Z)(["\n  width: 100%;\n  position: absolute;\n  left: 0;\n  bottom: 24px;\n\n  .tweant-tooltip {\n    top: -70px !important;\n    max-width: 272px !important;\n\n    .tweant-tooltip-arrow-content {\n      --antd-arrow-background-color: rgb(255, 255, 255) !important;\n    }\n  }\n"])));
// EXTERNAL MODULE: ./src/utils/index.ts
var src_utils = __webpack_require__(5340);
;// CONCATENATED MODULE: ./src/components/selectShare/styled.tsx
var selectShare_styled_templateObject,selectShare_styled_templateObject2;var selectShare_styled_Content=styled_components_browser_esm/* default */.ZP.div(selectShare_styled_templateObject||(selectShare_styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  font-size: 14px;\n  color: #27264D;\n  display: flex;\n  justify-content: space-between;\n"])));var styled_WarnTipsIcon=styled_components_browser_esm/* default */.ZP.div(selectShare_styled_templateObject2||(selectShare_styled_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n  background: url(",") center center no-repeat;\n  min-width: 16px;\n  height: 16px;\n  margin-right: 8px;\n  margin-top: 3px;\n"])),chrome.runtime.getURL('warnLargeHover.svg'));
;// CONCATENATED MODULE: ./src/components/selectShare/selectShare.tsx
var SelectShare=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsxs)(selectShare_styled_Content,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(styled_WarnTipsIcon,{}),"\u70B9\u51FB\u9009\u62E9\u6807\u7B7E\u9875\u5E76\u5206\u4EAB\u97F3\u9891\uFF0C\u5373\u53EF\u5F00\u542F\u5B9E\u65F6\u8BB0\u5F55"]});});
;// CONCATENATED MODULE: ./src/components/selectShare/index.ts

;// CONCATENATED MODULE: ./node_modules/_rc-checkbox@3.0.1@rc-checkbox/es/index.js





var es_excluded = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "onChange"];




var Checkbox = /*#__PURE__*/(0,_react_18_2_0_react.forwardRef)(function (props, ref) {
  var _classNames;
  var _props$prefixCls = props.prefixCls,
    prefixCls = _props$prefixCls === void 0 ? 'rc-checkbox' : _props$prefixCls,
    className = props.className,
    style = props.style,
    checked = props.checked,
    disabled = props.disabled,
    _props$defaultChecked = props.defaultChecked,
    defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked,
    _props$type = props.type,
    type = _props$type === void 0 ? 'checkbox' : _props$type,
    onChange = props.onChange,
    inputProps = (0,objectWithoutProperties/* default */.Z)(props, es_excluded);
  var inputRef = (0,_react_18_2_0_react.useRef)(null);
  var _useMergedState = (0,useMergedState/* default */.Z)(defaultChecked, {
      value: checked
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    rawValue = _useMergedState2[0],
    setRawValue = _useMergedState2[1];
  (0,_react_18_2_0_react.useImperativeHandle)(ref, function () {
    return {
      focus: function focus() {
        var _inputRef$current;
        (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
      },
      blur: function blur() {
        var _inputRef$current2;
        (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
      },
      input: inputRef.current
    };
  });
  var classString = _classnames_2_3_2_classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checked"), rawValue), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
  var handleChange = function handleChange(e) {
    if (disabled) {
      return;
    }
    if (!('checked' in props)) {
      setRawValue(e.target.checked);
    }
    onChange === null || onChange === void 0 ? void 0 : onChange({
      target: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
        type: type,
        checked: e.target.checked
      }),
      stopPropagation: function stopPropagation() {
        e.stopPropagation();
      },
      preventDefault: function preventDefault() {
        e.preventDefault();
      },
      nativeEvent: e.nativeEvent
    });
  };
  return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: classString,
    style: style
  }, /*#__PURE__*/_react_18_2_0_react.createElement("input", (0,esm_extends/* default */.Z)({}, inputProps, {
    className: "".concat(prefixCls, "-input"),
    ref: inputRef,
    onChange: handleChange,
    disabled: disabled,
    checked: !!rawValue,
    type: type
  })), /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: "".concat(prefixCls, "-inner")
  }));
});
/* harmony default export */ var _rc_checkbox_3_0_1_rc_checkbox_es = (Checkbox);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/checkbox/Group.js




var Group_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};





var GroupContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
var InternalCheckboxGroup = function InternalCheckboxGroup(_a, ref) {
  var defaultValue = _a.defaultValue,
    children = _a.children,
    _a$options = _a.options,
    options = _a$options === void 0 ? [] : _a$options,
    customizePrefixCls = _a.prefixCls,
    className = _a.className,
    style = _a.style,
    onChange = _a.onChange,
    restProps = Group_rest(_a, ["defaultValue", "children", "options", "prefixCls", "className", "style", "onChange"]);
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  var _React$useState = _react_18_2_0_react.useState(restProps.value || defaultValue || []),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    value = _React$useState2[0],
    setValue = _React$useState2[1];
  var _React$useState3 = _react_18_2_0_react.useState([]),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    registeredValues = _React$useState4[0],
    setRegisteredValues = _React$useState4[1];
  _react_18_2_0_react.useEffect(function () {
    if ('value' in restProps) {
      setValue(restProps.value || []);
    }
  }, [restProps.value]);
  var getOptions = function getOptions() {
    return options.map(function (option) {
      if (typeof option === 'string' || typeof option === 'number') {
        return {
          label: option,
          value: option
        };
      }
      return option;
    });
  };
  var cancelValue = function cancelValue(val) {
    setRegisteredValues(function (prevValues) {
      return prevValues.filter(function (v) {
        return v !== val;
      });
    });
  };
  var registerValue = function registerValue(val) {
    setRegisteredValues(function (prevValues) {
      return [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val]);
    });
  };
  var toggleOption = function toggleOption(option) {
    var optionIndex = value.indexOf(option.value);
    var newValue = (0,toConsumableArray/* default */.Z)(value);
    if (optionIndex === -1) {
      newValue.push(option.value);
    } else {
      newValue.splice(optionIndex, 1);
    }
    if (!('value' in restProps)) {
      setValue(newValue);
    }
    var opts = getOptions();
    onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(function (val) {
      return registeredValues.includes(val);
    }).sort(function (a, b) {
      var indexA = opts.findIndex(function (opt) {
        return opt.value === a;
      });
      var indexB = opts.findIndex(function (opt) {
        return opt.value === b;
      });
      return indexA - indexB;
    }));
  };
  var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
  var groupPrefixCls = "".concat(prefixCls, "-group");
  var domProps = (0,es_omit/* default */.Z)(restProps, ['value', 'disabled']);
  if (options && options.length > 0) {
    children = getOptions().map(function (option) {
      return /*#__PURE__*/_react_18_2_0_react.createElement(checkbox_Checkbox, {
        prefixCls: prefixCls,
        key: option.value.toString(),
        disabled: 'disabled' in option ? option.disabled : restProps.disabled,
        value: option.value,
        checked: value.includes(option.value),
        onChange: option.onChange,
        className: "".concat(groupPrefixCls, "-item"),
        style: option.style
      }, option.label);
    });
  }
  // eslint-disable-next-line react/jsx-no-constructed-context-values
  var context = {
    toggleOption: toggleOption,
    value: value,
    disabled: restProps.disabled,
    name: restProps.name,
    // https://github.com/ant-design/ant-design/issues/16376
    registerValue: registerValue,
    cancelValue: cancelValue
  };
  var classString = _classnames_2_3_2_classnames_default()(groupPrefixCls, (0,defineProperty/* default */.Z)({}, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), className);
  return /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
    className: classString,
    style: style
  }, domProps, {
    ref: ref
  }), /*#__PURE__*/_react_18_2_0_react.createElement(GroupContext.Provider, {
    value: context
  }, children));
};
var CheckboxGroup = /*#__PURE__*/_react_18_2_0_react.forwardRef(InternalCheckboxGroup);
/* harmony default export */ var checkbox_Group = (/*#__PURE__*/_react_18_2_0_react.memo(CheckboxGroup));
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/checkbox/Checkbox.js


var Checkbox_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};









var InternalCheckbox = function InternalCheckbox(_a, ref) {
  var _classNames;
  var _b;
  var customizePrefixCls = _a.prefixCls,
    className = _a.className,
    children = _a.children,
    _a$indeterminate = _a.indeterminate,
    indeterminate = _a$indeterminate === void 0 ? false : _a$indeterminate,
    style = _a.style,
    onMouseEnter = _a.onMouseEnter,
    onMouseLeave = _a.onMouseLeave,
    _a$skipGroup = _a.skipGroup,
    skipGroup = _a$skipGroup === void 0 ? false : _a$skipGroup,
    disabled = _a.disabled,
    restProps = Checkbox_rest(_a, ["prefixCls", "className", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
  var _React$useContext = _react_18_2_0_react.useContext(config_provider_context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  var checkboxGroup = _react_18_2_0_react.useContext(GroupContext);
  var _useContext = (0,_react_18_2_0_react.useContext)(form_context/* FormItemInputContext */.aM),
    isFormItemInput = _useContext.isFormItemInput;
  var contextDisabled = (0,_react_18_2_0_react.useContext)(DisabledContext/* default */.Z);
  var mergedDisabled = (_b = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _b !== void 0 ? _b : contextDisabled;
  var prevValue = _react_18_2_0_react.useRef(restProps.value);
  _react_18_2_0_react.useEffect(function () {
    checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
     false ? 0 : void 0;
  }, []);
  _react_18_2_0_react.useEffect(function () {
    if (skipGroup) {
      return;
    }
    if (restProps.value !== prevValue.current) {
      checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current);
      checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
      prevValue.current = restProps.value;
    }
    return function () {
      return checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
    };
  }, [restProps.value]);
  var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
  var checkboxProps = (0,esm_extends/* default */.Z)({}, restProps);
  if (checkboxGroup && !skipGroup) {
    checkboxProps.onChange = function () {
      if (restProps.onChange) {
        restProps.onChange.apply(restProps, arguments);
      }
      if (checkboxGroup.toggleOption) {
        checkboxGroup.toggleOption({
          label: children,
          value: restProps.value
        });
      }
    };
    checkboxProps.name = checkboxGroup.name;
    checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
  }
  var classString = _classnames_2_3_2_classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper"), true), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-checked"), checkboxProps.checked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-disabled"), mergedDisabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-in-form-item"), isFormItemInput), _classNames), className);
  var checkboxClass = _classnames_2_3_2_classnames_default()((0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-indeterminate"), indeterminate));
  var ariaChecked = indeterminate ? 'mixed' : undefined;
  return /*#__PURE__*/(
    // eslint-disable-next-line jsx-a11y/label-has-associated-control
    _react_18_2_0_react.createElement("label", {
      className: classString,
      style: style,
      onMouseEnter: onMouseEnter,
      onMouseLeave: onMouseLeave
    }, /*#__PURE__*/_react_18_2_0_react.createElement(_rc_checkbox_3_0_1_rc_checkbox_es, (0,esm_extends/* default */.Z)({
      "aria-checked": ariaChecked
    }, checkboxProps, {
      prefixCls: prefixCls,
      className: checkboxClass,
      disabled: mergedDisabled,
      ref: ref
    })), children !== undefined && /*#__PURE__*/_react_18_2_0_react.createElement("span", null, children))
  );
};
var Checkbox_Checkbox = /*#__PURE__*/_react_18_2_0_react.forwardRef(InternalCheckbox);
if (false) {}
/* harmony default export */ var checkbox_Checkbox = (Checkbox_Checkbox);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/checkbox/index.js


var es_checkbox_Checkbox = checkbox_Checkbox;
es_checkbox_Checkbox.Group = checkbox_Group;
es_checkbox_Checkbox.__ANT_CHECKBOX = true;
/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox);
;// CONCATENATED MODULE: ./src/components/PrivacyAgreementModal/defaultChildren.tsx
var DefaultChildren=function DefaultChildren(){var _useConfig=(0,models/* useConfig */.ZR)(),tingwuUrl=_useConfig.tingwuUrl;return/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{children:[/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:"\u6B22\u8FCE\u4F7F\u7528\u901A\u4E49\u542C\u609F\uFF01\u672C\u670D\u52A1\u7531\u963F\u91CC\u4E91\u6709\u9650\u516C\u53F8\uFF08\u4E0B\u79F0\u201C\u672C\u516C\u53F8\u201D\u3001\u201C\u963F\u91CC\u4E91\u201D\u6216\u201C\u6211\u4EEC\u201D\uFF09 \u6240\u6709\u548C\u8D1F\u8D23\u8FD0\u8425\uFF0C\u8BF7\u60A8\u5728\u4F7F\u7528\u672C\u4EA7\u54C1\u524D\u52A1\u5FC5\u5BA1\u614E\u9605\u8BFB\u3001\u5145\u5206\u7406\u89E3\u672C\u534F\u8BAE\u7684\u5185\u5BB9\uFF0C\u7279\u522B\u662F\u514D\u9664\u6216\u8005\u9650\u5236\u8D23\u4EFB\u7684\u6761\u6B3E\uFF0C\u5E76\u9009\u62E9\u63A5\u53D7\u6216\u4E0D\u63A5\u53D7\u3002\u9650\u5236\u3001\u514D\u8D23\u6761\u6B3E\u53EF\u80FD\u4EE5\u52A0\u7C97\u5F62\u5F0F\u63D0\u793A\u60A8\u6CE8\u610F\u3002\u82E5\u60A8\u4E0D\u540C\u610F\u672C\u534F\u8BAE\u7684\u4EFB\u4F55\u5185\u5BB9\uFF0C\u6216\u8005\u65E0\u6CD5\u51C6\u786E\u7406\u89E3\u672C\u516C\u53F8\u5BF9\u6761\u6B3E\u7684\u89E3\u91CA\uFF0C\u8BF7\u4E0D\u8981\u8FDB\u884C\u540E\u7EED\u64CD\u4F5C\uFF1B\u5982\u60A8\u672A\u6EE1 18 \u5468\u5C81\uFF0C\u8BF7\u5728\u76D1\u62A4\u4EBA\u966A\u540C\u4E0B\u4ED4\u7EC6\u9605\u8BFB\u5E76\u5145\u5206\u7406\u89E3\u672C\u534F\u8BAE\uFF0C\u5E76\u5F81\u5F97\u76D1\u62A4\u4EBA\u7684\u540C\u610F\u540E\u4F7F\u7528\u672C\u4EA7\u54C1\u53CA\u76F8\u5173\u670D\u52A1\u3002"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("p",{children:["\u672C\u534F\u8BAE\u4F5C\u4E3A\u60A8\u4E8E\u901A\u4E49\u542C\u609F\u4E4B\u95F4\u7684",/*#__PURE__*/(0,jsx_runtime.jsxs)("strong",{children:[/*#__PURE__*/(0,jsx_runtime.jsx)("a",{style:{color:'#6d69e8'},target:"_blank",href:"".concat(tingwuUrl,"/helpcenter/7c3e66"),children:"\u300A\u901A\u4E49\u542C\u609F\u670D\u52A1\u534F\u8BAE\u300B"}),"\u3001",/*#__PURE__*/(0,jsx_runtime.jsx)("a",{style:{color:'#6d69e8'},target:"_blank",href:"".concat(tingwuUrl,"/helpcenter/1a2b0b"),children:"\u300A\u901A\u4E49\u542C\u609F\u9690\u79C1\u653F\u7B56\u300B"})]}),"\u7684\u8865\u5145\u548C\u5B8C\u5584\u3002"]}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:"\u60A8\u901A\u8FC7\u52FE\u9009\u201C\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F\u4EE5\u4E0A\u5185\u5BB9\u201D\u5E76\u70B9\u51FB\u201C\u5F00\u59CB\u4F7F\u7528\u201D\u6309\u94AE\u6216\u4F7F\u7528\u901A\u4E49\u542C\u609F\u7684\u884C\u4E3A\u5373\u4EE3\u8868\u60A8\u5DF2\u7ECF\u9605\u8BFB\u5E76\u540C\u610F\u672C\u534F\u8BAE\u3002"}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:"\u4E00\u3001 \u4F7F\u7528\u539F\u5219"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("p",{children:["\u5728\u4F7F\u7528\u901A\u4E49\u542C\u609F\u671F\u95F4\uFF0C",/*#__PURE__*/(0,jsx_runtime.jsx)("strong",{children:"\u8BF7\u60A8\u9075\u5B88\u76F8\u5173\u6CD5\u5F8B\u6CD5\u89C4\uFF0C\u79EF\u6781\u5C65\u884C\u4E92\u8054\u7F51\u4FE1\u606F\u5B89\u5168\u4E49\u52A1\uFF0C\u9075\u5B88\u81EA\u613F\u3001\u5E73\u7B49\u3001\u516C\u5E73\u53CA\u8BDA\u5B9E\u4FE1\u7528\u539F\u5219\uFF0C\u4E0D\u5229\u7528\u672C\u670D\u52A1\u5B9E\u65BD\u4EFB\u4F55\u8FDD\u53CD\u6CD5\u5F8B\u6CD5\u89C4\u3001\u4FB5\u72AF\u4ED6\u4EBA\u5408\u6CD5\u6743\u76CA\u7684\u884C\u4E3A\uFF0C\u4E0D\u5229\u7528\u672C\u670D\u52A1\u4ECE\u4E8B\u4E0E\u901A\u4E49\u542C\u609F\u76F8\u7ADE\u4E89\u7684\u4E1A\u52A1\u6216\u8C0B\u53D6\u5176\u4ED6\u4E0D\u6B63\u5F53\u5229\u76CA\u3002"})]}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:"\u4E8C\u3001 \u4F7F\u7528\u89C4\u8303"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("p",{children:["1\u3001 \u8BF7\u786E\u4FDD\u60A8\u5728\u4F7F\u7528\u901A\u4E49\u542C\u609F\u65F6\u8F93\u5165\u7684\u5185\u5BB9\u3001\u6307\u4EE4\u4EE5\u53CA\u60A8\u4F7F\u7528\u901A\u4E49\u542C\u609F\u7684\u884C\u4E3A\uFF08\u5305\u62EC\u4F46\u4E0D\u9650\u4E8E\u5BF9\u901A\u4E49\u542C\u609F\u751F\u6210\u5185\u5BB9\u7684\u4F20\u64AD\u3001\u5206\u4EAB\u3001\u5B58\u50A8\u7B49\uFF09\uFF0C",/*#__PURE__*/(0,jsx_runtime.jsx)("strong",{children:"\u4E0D\u4F1A\u8FDD\u53CD\u4EFB\u4F55\u73B0\u884C\u6709\u6548\u7684\u6CD5\u5F8B\u6CD5\u89C4\u3001\u516C\u5171\u653F\u7B56\u53CA\u516C\u5E8F\u826F\u4FD7\uFF0C\u4E0D\u635F\u5BB3\u7B2C\u4E09\u65B9\u7684\u5408\u6CD5\u6743\u76CA\u3002\u5982\u60A8\u8FDD\u53CD\u672C\u6761\u6B3E\uFF0C\u56E0\u6B64\u9020\u6210\u7684\u4E00\u5207\u540E\u679C\u548C\u635F\u5931\u5E94\u7531\u60A8\u81EA\u884C\u627F\u62C5\uFF0C\u4E14\u901A\u4E49\u542C\u609F\u4FDD\u7559\u5411\u60A8\u8FFD\u7A76\u8D23\u4EFB\u7684\u6743\u5229\u3002"})]}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:"\u4E09\u3001 \u8D23\u4EFB\u9650\u5236"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("p",{children:["1\u3001\u8BF7\u60A8\u786E\u8BA4\u5E76\u77E5\u6089\uFF0C",/*#__PURE__*/(0,jsx_runtime.jsx)("strong",{children:"\u901A\u4E49\u542C\u609F\u667A\u80FD\u603B\u7ED3\u529F\u80FD\u8F93\u51FA\u7684\u5185\u5BB9\u662F\u4EBA\u5DE5\u667A\u80FD\u751F\u6210\u5185\u5BB9\uFF0C\u4EC5\u4F9B\u60A8\u53C2\u8003\uFF0C\u8BE5\u7B49\u5185\u5BB9\u4E0D\u5E94\u88AB\u89C6\u4E3A\u4E92\u8054\u7F51\u65B0\u95FB\u4FE1\u606F\uFF0C\u4E0D\u4EE3\u8868\u6211\u4EEC\u7684\u6001\u5EA6\u6216\u89C2\u70B9\uFF0C\u4E5F\u4E0D\u80FD\u4F5C\u4E3A\u4E13\u4E1A\u6027\u5EFA\u8BAE\u6216\u610F\u89C1\u3002"})]}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:/*#__PURE__*/(0,jsx_runtime.jsx)("strong",{children:"2\u3001\u8BF7\u60A8\u77E5\u6089\u5E76\u7406\u89E3\uFF0C\u667A\u80FD\u603B\u7ED3\u529F\u80FD\u6D4B\u8BD5\u7684\u6A21\u578B\u80FD\u529B\u4ECD\u5728\u8FDB\u6B65\u4E4B\u4E2D\uFF0C\u6211\u4EEC\u65E0\u6CD5\u4FDD\u8BC1\u8F93\u51FA\u7684\u51C6\u786E\u6027\u3001\u5B8C\u6574\u6027\u3001\u5BA2\u89C2\u6027\uFF0C\u5176\u8F93\u51FA\u7684\u5185\u5BB9\u53EF\u80FD\u53D1\u751F\u9519\u8BEF\u3001\u4E0D\u51C6\u786E\u6216\u4E0D\u80FD\u4EE4\u60A8\u6EE1\u610F\uFF0C\u4F46\u6211\u4EEC\u627F\u8BFA\u5C06\u4E0D\u65AD\u63D0\u5347\u8F93\u51FA\u8D28\u91CF\u53CA\u6C34\u5E73\u3002\u5982\u60A8\u5BF9\u6A21\u578B\u7684\u8F93\u51FA\u6709\u4EFB\u4F55\u53CD\u9988\u6216\u5EFA\u8BAE\uFF0C\u6B22\u8FCE\u60A8\u901A\u8FC7\u53CD\u9988\u5E2E\u52A9\u6211\u4EEC\u6539\u5584\u548C\u4F18\u5316\u6A21\u578B\u3002"})}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:"3\u3001\u514D\u8D23\u58F0\u660E"}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:/*#__PURE__*/(0,jsx_runtime.jsx)("strong",{children:"\u672C\u670D\u52A1\u201C\u6309\u539F\u6837\u201D\u63D0\u4F9B\u3002\u6211\u4EEC\u4E0D\u5BF9\u901A\u4E49\u542C\u609F\u505A\u51FA\u4EFB\u4F55\u9648\u8FF0\u6216\u4FDD\u8BC1\uFF0C\u5305\u62EC\u4EFB\u4F55\u5173\u4E8E\u8BE5\u670D\u52A1\u7684\u53EF\u7528\u6027\u3001\u4E0D\u95F4\u65AD\u3001\u65E0\u9519\u8BEF\u7684\u4FDD\u8BC1\uFF0C\u9664\u975E\u6CD5\u5F8B\u6CD5\u89C4\u6709\u660E\u786E\u7684\u7981\u6B62\u6027\u89C4\u5B9A\u3002"})}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:"4\u3001 \u610F\u89C1\u53CD\u9988"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("p",{children:["\u5982\u679C\u60A8\u5BF9\u672C\u670D\u52A1\u6709\u4EFB\u4F55\u610F\u89C1\u5EFA\u8BAE",/*#__PURE__*/(0,jsx_runtime.jsx)("strong",{children:"\uFF0C"}),"\u901A\u8FC7\u901A\u4E49\u542C\u609F\u9879\u76EE\u7EC4\u670D\u52A1\u90AE\u7BB1\uFF08tingwu_contact@service.alibaba.com\uFF09\u4E0E\u6211\u4EEC\u8054\u7CFB\uFF0C\u6211\u4EEC\u5C06\u6839\u636E\u60A8\u7684\u53CD\u9988\u6301\u7EED\u63D0\u5347\u6280\u672F\u529F\u80FD\uFF0C\u4F18\u5316\u4EA7\u54C1\u7279\u6027\u3002"]}),/*#__PURE__*/(0,jsx_runtime.jsx)("p",{children:"\u518D\u6B21\u611F\u8C22\u60A8\u5BF9\u672C\u6D4B\u8BD5\u7684\u7406\u89E3\u4E0E\u652F\u6301\uFF01"})]});};/* harmony default export */ var defaultChildren = (/*#__PURE__*/(0,_react_18_2_0_react.memo)(DefaultChildren));
;// CONCATENATED MODULE: ./src/components/PrivacyAgreementModal/styled.tsx
var PrivacyAgreementModal_styled_templateObject;var PrivacyAgreement=styled_components_browser_esm/* default */.ZP.div(PrivacyAgreementModal_styled_templateObject||(PrivacyAgreementModal_styled_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  font-family: PingFangSC, var(--font-family);\n  position: relative;\n  width: 100%;\n\n  .PrivacyAgreement__Header {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    height: 22px;\n    padding: 0 20px;\n  }\n\n  .PrivacyAgreement__HeaderTitle {\n    font-family: PingFangSC;\n    font-weight: 600;\n    font-size: 14px;\n    color: #27264d;\n    letter-spacing: 0;\n    line-height: 24px;\n  }\n\n  .PrivacyAgreement__HeaderIcon {\n    color: rgba(39, 38, 77, 0.65);\n    cursor: pointer;\n    transition: color 0.3s;\n    &:hover {\n      color: rgba(39, 38, 77, 1);\n    }\n  }\n\n  .PrivacyAgreement__Context {\n    margin-top: 8px;\n    max-height: 273px;\n    font-size:12px;\n    overflow: auto;\n    padding: 0 20px;\n    line-height: 20px;\n    font-weight: 400;\n    color: #27264d;\n  }\n\n  .PrivacyAgreement__Footer {\n    margin-top: 12px;\n    display: block;\n    padding: 0px 20px;\n    height: 69px;\n  }\n\n  .PrivacyAgreement__Option {\n    height: 24px;\n    display: flex;\n    align-items: center;\n  }\n\n  .PrivacyAgreement__AgreeCheck {\n    color: #27264d;\n    font-size: 12px;\n    line-height:14px;\n    .tweant-checkbox-inner{\n      width:14px;\n      height:14px;\n    }\n  }\n\n  .PrivacyAgreement__BtnGroup {\n    margin-top: 12px;\n    display: flex;\n    justify-content: space-between;\n  }\n\n  .PrivacyAgreement__Cancel {\n    font-family: PingFangSC, var(--font-family);\n    width: 112px;\n    height: 32px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    border: 1px solid #e9e9ed;\n    border-radius: 6px;\n    font-weight: 400;\n    font-size: 12px;\n    color: #27264d;\n  }\n\n  .PrivacyAgreement__Ok {\n    font-family: PingFangSC, var(--font-family);\n    width: 112px;\n    height: 32px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background-color: #605ce5;\n    border-radius: 6px;\n    font-weight: 400;\n    font-size: 12px;\n    color: #fff;\n    &:hover,\n    &:focus {\n      color: #fff;\n    }\n\n    &:disabled {\n      background-color: #e9e9ed;\n      color: rgba(39, 38, 77, 0.25);\n      border-color: transparent;\n    }\n  }\n"])));
;// CONCATENATED MODULE: ./src/components/PrivacyAgreementModal/index.tsx
// import { getGlobalConfig } from '../../extends';
// 参数定义
var PrivacyAgreementModal=function PrivacyAgreementModal(_ref){var _ref$open=_ref.open,open=_ref$open===void 0?false:_ref$open,_ref$title=_ref.title,title=_ref$title===void 0?"\u6B22\u8FCE\u53C2\u52A0\u901A\u4E49\u542C\u609F\u4F53\u9A8C\u6D4B\u8BD5":_ref$title,_ref$cancelText=_ref.cancelText,cancelText=_ref$cancelText===void 0?'拒绝':_ref$cancelText,onCancel=_ref.onCancel,_ref$okText=_ref.okText,okText=_ref$okText===void 0?'开始使用':_ref$okText,onOk=_ref.onOk,_ref$agreeText=_ref.agreeText,agreeText=_ref$agreeText===void 0?'我已阅读并同意以上内容':_ref$agreeText,children=_ref.children,afterClose=_ref.afterClose;var _useState=(0,_react_18_2_0_react.useState)(open),_useState2=(0,slicedToArray/* default */.Z)(_useState,2),visible=_useState2[0],setVisible=_useState2[1];// 是否展示
var _useState3=(0,_react_18_2_0_react.useState)(false),_useState4=(0,slicedToArray/* default */.Z)(_useState3,2),checked=_useState4[0],setChecked=_useState4[1];// 是否同意协议
(0,_react_18_2_0_react.useEffect)(function(){setVisible(open);},[open,setVisible]);(0,_react_18_2_0_react.useEffect)(function(){if(!visible){setChecked(false);// 重置数据
afterClose&&afterClose();}},[visible,setChecked]);/** 点击右上角叉或取消按钮的回调 */var onCancelHandle=(0,_react_18_2_0_react.useCallback)(function(){setVisible(false);onCancel&&onCancel();},[setVisible,onCancel]);/** 点击确定按钮 */var onOkHandle=(0,_react_18_2_0_react.useCallback)(function(){onOk&&onOk();onCancelHandle();// 关闭弹窗
},[onCancelHandle,onOk]);/** 同意/不同意协议 */var onCheckChangeHandle=(0,_react_18_2_0_react.useCallback)(function(e){setChecked(e.target.checked);},[setChecked]);// 协议头部
var renderAgreementHeader=(0,_react_18_2_0_react.useMemo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"PrivacyAgreement__Header",children:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"PrivacyAgreement__HeaderTitle",children:title})});},[title,onCancelHandle]);// 协议内容
var renderAgreementContext=(0,_react_18_2_0_react.useMemo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"PrivacyAgreement__Context",children:children||/*#__PURE__*/(0,jsx_runtime.jsx)(defaultChildren,{})});},[children]);// 同意协议配置
var renderAgreementOptions=(0,_react_18_2_0_react.useMemo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"PrivacyAgreement__Option",children:agreeText&&/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox,{className:"PrivacyAgreement__AgreeCheck",checked:checked,onChange:onCheckChangeHandle,children:agreeText})});},[checked,agreeText,onCheckChangeHandle]);// 协议决策按钮
var renderAgreementBtnGroup=(0,_react_18_2_0_react.useMemo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"PrivacyAgreement__BtnGroup",children:[/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z,{className:"PrivacyAgreement__Cancel",onClick:onCancelHandle,type:'default',children:cancelText}),/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z,{disabled:!checked,className:"PrivacyAgreement__Ok",onClick:onOkHandle,type:'primary',children:okText})]});},[checked,cancelText,okText,onCancelHandle]);// 协议底部区域
var renderAgreementFooter=(0,_react_18_2_0_react.useMemo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"PrivacyAgreement__Footer",children:[renderAgreementOptions,renderAgreementBtnGroup]});},[renderAgreementOptions,renderAgreementBtnGroup]);// 弹窗内容
var renderModal=(0,_react_18_2_0_react.useMemo)(function(){return/*#__PURE__*/(0,jsx_runtime.jsxs)(PrivacyAgreement,{children:[renderAgreementHeader,renderAgreementContext,renderAgreementFooter]});},[renderAgreementHeader,renderAgreementContext,renderAgreementFooter]);return/*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z,{getContainer:function getContainer(){return document.getElementById("draggable_panel")||document.body;},visible:visible,maskClosable:false,onCancel:onCancelHandle,footer:null,width:'276px',closable:false,bodyStyle:{padding:'20px 0',display:'flex'},centered:true,children:renderModal});};/* harmony default export */ var components_PrivacyAgreementModal = (PrivacyAgreementModal);
// EXTERNAL MODULE: ./src/content.tsx + 56 modules
var content = __webpack_require__(9869);
;// CONCATENATED MODULE: ./src/components/startPanel/startPanel.tsx
// import { eventer } from "../../eventer";
var mainVersion=(0,src_utils/* getChromeMainVersion */._k)();var defaultFilename=dayjs_min_default()().format("YYYY-MM-DD HH:mm 记录");var transLanguageObj={cn:1,en:2,yue:3,fspk:4};var transLanguageOptions=[{title:"中文",value:"cn"},{title:"英语",value:"en"},{title:"粤语",value:"yue"},{title:"中英文自由说",value:"fspk"}];var isMac=/macintosh|mac os x/i.test(navigator.userAgent);var StartPanel=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var _props$visible=props.visible,visible=_props$visible===void 0?true:_props$visible,_props$isVisibleTips=props.isVisibleTips,isVisibleTips=_props$isVisibleTips===void 0?false:_props$isVisibleTips,_props$hasNoCompetenc=props.hasNoCompetence,hasNoCompetence=_props$hasNoCompetenc===void 0?false:_props$hasNoCompetenc,onCloseApp=props.onCloseApp,getTransId=props.getTransId;var _useConfig=(0,models/* useConfig */.ZR)(),tingwuUrl=_useConfig.tingwuUrl;var _useRecord=(0,models/* useRecord */.a)(),startRecord=_useRecord.startRecord;var folders=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* foldersState */.pO);var avatarUrl=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* avatarUrlState */.rJ);var _usePanelVisible=(0,models/* usePanelVisible */.RW)(),showMainPanel=_usePanelVisible.showMainPanel;var _useState=(0,_react_18_2_0_react.useState)(false),_useState2=(0,slicedToArray/* default */.Z)(_useState,2),enabledMicphone=_useState2[0],setEnabledMicphone=_useState2[1];var _useState3=(0,_react_18_2_0_react.useState)("0"),_useState4=(0,slicedToArray/* default */.Z)(_useState3,2),saveAs=_useState4[0],setSaveAs=_useState4[1];var _useRecoilState=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* sourceLanguageState */.I1),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,2),sourceLanguage=_useRecoilState2[0],setSourceLanguage=_useRecoilState2[1];var _useState5=(0,_react_18_2_0_react.useState)(false),_useState6=(0,slicedToArray/* default */.Z)(_useState5,2),transLgSelectFocus=_useState6[0],setTransLgSelectFocus=_useState6[1];var _useState7=(0,_react_18_2_0_react.useState)(defaultFilename),_useState8=(0,slicedToArray/* default */.Z)(_useState7,2),filename=_useState8[0],setFilename=_useState8[1];var _useState9=(0,_react_18_2_0_react.useState)(defaultFilename),_useState10=(0,slicedToArray/* default */.Z)(_useState9,2),prevFilename=_useState10[0],setPrevFilename=_useState10[1];// 上一次保留的标题，为空取
var _useState11=(0,_react_18_2_0_react.useState)(false),_useState12=(0,slicedToArray/* default */.Z)(_useState11,2),selectFocus=_useState12[0],setSelectFocus=_useState12[1];var _useState13=(0,_react_18_2_0_react.useState)(false),_useState14=(0,slicedToArray/* default */.Z)(_useState13,2),inputFocus=_useState14[0],setInputFocus=_useState14[1];var inputRef=(0,_react_18_2_0_react.useRef)();var draggableRef=(0,_react_18_2_0_react.useRef)();var SubmitButtonRef=(0,_react_18_2_0_react.useRef)();var _useRecoilState3=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* isNotifyUserTransFinishState */.zd),_useRecoilState4=(0,slicedToArray/* default */.Z)(_useRecoilState3,2),isNotifyUserTransFinish=_useRecoilState4[0],setIsNotifyUserTransFinish=_useRecoilState4[1];var _useState15=(0,_react_18_2_0_react.useState)(false),_useState16=(0,slicedToArray/* default */.Z)(_useState15,2),titleTipsVisible=_useState16[0],setTitleTipsVisible=_useState16[1];var _useRecoilState5=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* transIdState */.gV),_useRecoilState6=(0,slicedToArray/* default */.Z)(_useRecoilState5,2),transId=_useRecoilState6[0],setTransId=_useRecoilState6[1];var _useRecoilState7=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* panelHeightState */.Mm),_useRecoilState8=(0,slicedToArray/* default */.Z)(_useRecoilState7,2),panelHeight=_useRecoilState8[0],setPanelHeight=_useRecoilState8[1];var _useRecoilState9=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* panelPositionState */.bJ),_useRecoilState10=(0,slicedToArray/* default */.Z)(_useRecoilState9,2),panelPosition=_useRecoilState10[0],setPanelPosition=_useRecoilState10[1];var _useState17=(0,_react_18_2_0_react.useState)(false),_useState18=(0,slicedToArray/* default */.Z)(_useState17,2),northMax=_useState18[0],setNorthMax=_useState18[1];var _useState19=(0,_react_18_2_0_react.useState)(false),_useState20=(0,slicedToArray/* default */.Z)(_useState19,2),southMax=_useState20[0],setSouthMax=_useState20[1];var _useMarksGuide=(0,models/* useMarksGuide */.CA)(),fetchMarksGuide=_useMarksGuide.fetchMarksGuide;// 隐私弹窗
var _useState21=(0,_react_18_2_0_react.useState)(false),_useState22=(0,slicedToArray/* default */.Z)(_useState21,2),privacyAgreementVisible=_useState22[0],setPrivacyAgreementVisible=_useState22[1];// const left = useMemo(() => {
//   return Math.max(0, window.innerWidth - 500);
// }, []);
var resizeableProps=(0,_react_18_2_0_react.useMemo)(function(){return{resizeHandles:["s"],draggableOpts:{grid:[1,1]},minConstraints:[320,480],maxConstraints:[320,window.innerHeight>960?960:window.innerHeight]};},[window.innerHeight]);(0,_react_18_2_0_react.useEffect)(function(){if(content/* overTimeState */.fp){message/* default */.ZP.destroy();message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("draggable_panel")||document.body;}});message/* default */.ZP.warn({content:/*#__PURE__*/(0,jsx_runtime.jsx)("span",{style:{color:'rgba(39, 38, 77, 0.7)'},children:"\u652F\u6301\u6700\u957F4\u5C0F\u65F6\u5F55\u97F3\uFF0C\u5DF2\u8D85\u65F6"}),duration:3});(0,content/* setoverTimeStateFun */.bg)();}},[]);var onDrag=(0,_react_18_2_0_react.useCallback)(function(_event,data){var x=data.x,y=data.y;if(y+panelHeight+40<window.innerHeight-24){setSouthMax(false);}else{setSouthMax(true);}setPanelPosition({x:x,y:y});},[panelHeight]);var onResize=(0,_react_18_2_0_react.useCallback)(function(_event,data){var handle=data.handle,size=data.size;if(handle==="s"){// 向下拉伸临界点
if(size.height+panelPosition.y+40>=window.innerHeight||size.height>=960){setSouthMax(true);return;}else{setSouthMax(false);}}setPanelHeight(size.height);},[panelPosition]);var calcStyle=(0,_react_18_2_0_react.useMemo)(function(){return{// left,
height:panelHeight,display:visible?"flex":"none"};},[panelHeight,visible]);/** 同意按钮回调 */var onAgreeHandle=(0,_react_18_2_0_react.useCallback)(/*#__PURE__*/(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(){var trimFilename;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:services/* service */.X.updateAccountStatus(1);setPrivacyAgreementVisible(false);showMainPanel();trimFilename=filename.trim();if(trimFilename){_context.next=7;break;}window.alert("请输入有效的标题");return _context.abrupt("return");case 7:startRecord(enabledMicphone,trimFilename,saveAs,sourceLanguage);case 8:case"end":return _context.stop();}},_callee);})),[enabledMicphone,filename,saveAs,sourceLanguage]);var handleStartRecord=(0,_react_18_2_0_react.useCallback)(function(){if(hasNoCompetence){message/* default */.ZP.destroy();message/* default */.ZP.config({getContainer:function getContainer(){return SubmitButtonRef.current;}});message/* default */.ZP.warn({content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:"\u62B1\u6B49\uFF0C\u5F53\u524D\u7F51\u9875\u65E0\u6CD5\u4F7F\u7528\u672C\u529F\u80FD"}),duration:3});}var trimFilename=filename.trim();if(!trimFilename){window.alert("请输入有效的标题");return;}fetchMarksGuide();if(enabledMicphone){(0,log/* sendLog */.gp)("turn_on_record_local",{et:"CLK",c1:1});}else{(0,log/* sendLog */.gp)("turn_off_record_local",{et:"CLK",c1:2});}(0,log/* sendLog */.gp)("save_file_folder",{et:"CLK",c1:saveAs==="0"?1:2});if(filename!==defaultFilename){(0,log/* sendLog */.gp)("edit_file_title",{et:"INPUT"});}(0,log/* sendLog */.gp)("trans_language_select",{et:"CLK",c1:transLanguageObj[sourceLanguage]});(0,log/* sendLog */.gp)("start_record",{et:"CLK"});if((0,src_extends/* getGlobalConfig */.H)().getEnvInfo().publishName!="alibabaGroup"){services/* service */.X.getAccountStatus().then(function(res){if(res.data.statusValue===0){// 不同意
setPrivacyAgreementVisible(true);}else{setPrivacyAgreementVisible(false);showMainPanel();startRecord(enabledMicphone,trimFilename,saveAs,sourceLanguage);}});}else{showMainPanel();startRecord(enabledMicphone,trimFilename,saveAs,sourceLanguage);}},[enabledMicphone,filename,saveAs,sourceLanguage,hasNoCompetence]);var handleGotoTingwu=(0,_react_18_2_0_react.useCallback)(function(){window.open(tingwuUrl);(0,log/* sendLog */.gp)("check_history_summary",{et:"CLK"});},[tingwuUrl]);var handleGotoTingwuTrans=(0,_react_18_2_0_react.useCallback)(function(){var u=tingwuUrl+"/doc/edit/file/"+getTransId();window.open(u);(0,log/* sendLog */.gp)("check_history_summary",{et:"CLK"});},[tingwuUrl]);var saveAsOptions=(0,_react_18_2_0_react.useMemo)(function(){// const options = [{ label: '默认文件夹', value: '0', disabled: false }];
var options=[];folders.forEach(function(folder){options.push({label:"".concat(folder.dirName).concat(folder.isFull?"（已达上限）":""),value:String(folder.dirId),disabled:folder.isFull});});var lastItem=options.pop();options.unshift(lastItem);return options;},[folders]);var onBlur=function onBlur(){var _inputRef$current,_inputRef$current$inp,_inputRef$current4;if((inputRef===null||inputRef===void 0?void 0:(_inputRef$current=inputRef.current)===null||_inputRef$current===void 0?void 0:(_inputRef$current$inp=_inputRef$current.input)===null||_inputRef$current$inp===void 0?void 0:_inputRef$current$inp.value.trim())===""){setFilename(prevFilename);}else{var _inputRef$current2,_inputRef$current2$in,_inputRef$current3,_inputRef$current3$in;setFilename(inputRef===null||inputRef===void 0?void 0:(_inputRef$current2=inputRef.current)===null||_inputRef$current2===void 0?void 0:(_inputRef$current2$in=_inputRef$current2.input)===null||_inputRef$current2$in===void 0?void 0:_inputRef$current2$in.value);setPrevFilename(inputRef===null||inputRef===void 0?void 0:(_inputRef$current3=inputRef.current)===null||_inputRef$current3===void 0?void 0:(_inputRef$current3$in=_inputRef$current3.input)===null||_inputRef$current3$in===void 0?void 0:_inputRef$current3$in.value);}inputRef===null||inputRef===void 0?void 0:(_inputRef$current4=inputRef.current)===null||_inputRef$current4===void 0?void 0:_inputRef$current4.blur();setInputFocus(false);};var onMouseEnter=function onMouseEnter(e){if(e.target.offsetWidth<e.target.scrollWidth){setTitleTipsVisible(true);}else{setTitleTipsVisible(false);}};var _useRecoilState11=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* isExpandState */.Vt),_useRecoilState12=(0,slicedToArray/* default */.Z)(_useRecoilState11,2),isExpand=_useRecoilState12[0],setIsExpand=_useRecoilState12[1];(0,_react_18_2_0_react.useEffect)(function(){setEnabledMicphone(false);setSaveAs("0");setFilename(dayjs_min_default()().format("YYYY-MM-DD HH:mm 记录"));setPrevFilename(dayjs_min_default()().format("YYYY-MM-DD HH:mm 记录"));},[visible]);(0,_react_18_2_0_react.useEffect)(function(){setIsExpand(true);},[]);(0,_react_18_2_0_react.useEffect)(function(){if(!draggableRef.current||!isNotifyUserTransFinish)return;// 通过其他方式触发message
setIsNotifyUserTransFinish(false);message/* default */.ZP.destroy();message/* default */.ZP.config({getContainer:function getContainer(){return draggableRef.current;}});message/* default */.ZP.success({content:/*#__PURE__*/(0,jsx_runtime.jsxs)(SuccessMsg,{children:["\u8BB0\u5F55\u5DF2\u4FDD\u5B58\uFF0C",/*#__PURE__*/(0,jsx_runtime.jsx)("span",{style:{fontWeight:isMac?500:600},onClick:handleGotoTingwuTrans,children:"\u7ACB\u5373\u67E5\u770B"})]}),duration:3});(0,log/* sendLog */.gp)("stop_record_success",{et:"SYS",c1:""});},[isNotifyUserTransFinish]);var recorderTooltip=(0,_react_18_2_0_react.useMemo)(function(){if(mainVersion&&(mainVersion===107||mainVersion===108)&&enabledMicphone){return/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{color:"rgb(39, 38, 77)",overlayInnerStyle:{borderRadius:"8px",padding:"4px 12px",fontSize:"12px"},title:"\u4F60\u5F53\u524D\u4F7F\u7528\u7684\u6D4F\u89C8\u5668\u662FChrome107\u6216108\u7248\u672C\uFF0C\u5B58\u5728\u5F55\u97F3\u529F\u80FD\u4E22\u5E27\u73B0\u8C61\uFF0C\u4F1A\u5BFC\u81F4\u542C\u609F\u5F55\u97F3\u529F\u80FD\u5F02\u5E38\uFF0C\u5EFA\u8BAE\u5173\u95ED\u672C\u5730\u5F55\u5236\u3002",getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:/*#__PURE__*/(0,jsx_runtime.jsx)(WarnTipsIcon,{})});}return null;},[enabledMicphone]);return/*#__PURE__*/(0,jsx_runtime.jsx)((cjs_default()),{onDrag:onDrag,position:panelPosition,handle:".handle",cancel:".not-handle",bounds:"body",children:/*#__PURE__*/(0,jsx_runtime.jsx)(_react_resizable_3_0_5_react_resizable.Resizable,(0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({width:320,height:panelHeight,onResize:onResize},resizeableProps),{},{children:/*#__PURE__*/(0,jsx_runtime.jsx)(startPanel_styled_Content,{style:(0,objectSpread2/* default */.Z)({},calcStyle),northMax:northMax,southMax:southMax,children:/*#__PURE__*/(0,jsx_runtime.jsxs)(Panel,{id:"draggable_panel",ref:draggableRef,className:"handle",children:[(0,src_extends/* getGlobalConfig */.H)().renderExtContent("draggable_panel"),/*#__PURE__*/(0,jsx_runtime.jsx)(SafeDialog,{idName:"draggable_panel"}),/*#__PURE__*/(0,jsx_runtime.jsx)(EnvMark,{}),/*#__PURE__*/(0,jsx_runtime.jsx)(styled_Background,{}),/*#__PURE__*/(0,jsx_runtime.jsxs)(styled_Container,{children:[/*#__PURE__*/(0,jsx_runtime.jsxs)(startPanel_styled_Header,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(startPanel_styled_Logo,{}),/*#__PURE__*/(0,jsx_runtime.jsxs)(HeaderExtra,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(Avatar,{children:/*#__PURE__*/(0,jsx_runtime.jsx)("img",{src:avatarUrl})}),/*#__PURE__*/(0,jsx_runtime.jsx)(startPanel_styled_CloseButton,{onClick:onCloseApp})]})]}),/*#__PURE__*/(0,jsx_runtime.jsxs)(Form,{className:"not-handle",children:[/*#__PURE__*/(0,jsx_runtime.jsxs)(FormItem,{children:[/*#__PURE__*/(0,jsx_runtime.jsxs)(FormItemLabel,{style:{display:"flex",alignItems:"center"},children:["\u540C\u65F6\u5F55\u5236\u672C\u5730\u9EA6\u514B\u98CE",recorderTooltip]}),/*#__PURE__*/(0,jsx_runtime.jsx)(FormItemControl,{style:{marginRight:12},children:/*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z,{size:"small",checked:enabledMicphone,onChange:setEnabledMicphone})})]}),/*#__PURE__*/(0,jsx_runtime.jsxs)(FormItem,{className:"transLgControlItem ".concat(transLgSelectFocus&&"form_item_select_focus"),children:[/*#__PURE__*/(0,jsx_runtime.jsx)(FormItemLabel,{children:"\u8F6C\u5199\u8BED\u8A00"}),/*#__PURE__*/(0,jsx_runtime.jsx)(FormItemControl,{className:"transLgControl",style:{maxWidth:183},children:/*#__PURE__*/(0,jsx_runtime.jsx)(es_select,{placement:"bottomRight",value:sourceLanguage,onChange:setSourceLanguage,onDropdownVisibleChange:function onDropdownVisibleChange(visible){return setTransLgSelectFocus(visible);},getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:transLanguageOptions===null||transLanguageOptions===void 0?void 0:transLanguageOptions.map(function(item){var title=item.title,value=item.value;return/*#__PURE__*/(0,jsx_runtime.jsxs)(es_select.Option,{value:value,style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"label_item",children:title}),sourceLanguage===value&&/*#__PURE__*/(0,jsx_runtime.jsx)(styled_SelectIcon,{src:"".concat(chrome.runtime.getURL("selectOptionCheck.svg"))})]},value);})})})]}),/*#__PURE__*/(0,jsx_runtime.jsxs)(FormItem,{className:"saveAsControlItem ".concat(selectFocus&&"form_item_select_focus"),children:[/*#__PURE__*/(0,jsx_runtime.jsx)(FormItemLabel,{children:"\u4FDD\u5B58\u81F3"}),/*#__PURE__*/(0,jsx_runtime.jsx)(FormItemControl,{className:"saveAsControl",style:{maxWidth:197},children:/*#__PURE__*/(0,jsx_runtime.jsx)(es_select,{placement:"bottomRight",listHeight:330,value:saveAs,onChange:setSaveAs// options={saveAsOptions}
,onDropdownVisibleChange:function onDropdownVisibleChange(visible){return setSelectFocus(visible);},getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:saveAsOptions===null||saveAsOptions===void 0?void 0:saveAsOptions.map(function(item){var label=item.label,value=item.value,disabled=item.disabled;return/*#__PURE__*/(0,jsx_runtime.jsxs)(es_select.Option,{value:value,disabled:disabled,children:[/*#__PURE__*/(0,jsx_runtime.jsx)(SpanRadio,{src:disabled?"".concat(chrome.runtime.getURL("selectRadioDisabled.svg")):value===saveAs?"".concat(chrome.runtime.getURL("selectRadioActive.svg")):"".concat(chrome.runtime.getURL("selectRadioDefault.svg"))}),/*#__PURE__*/(0,jsx_runtime.jsx)(FolderRadio,{src:disabled?"".concat(chrome.runtime.getURL("folderRadioDisabled.svg")):"".concat(chrome.runtime.getURL("folderRadioDefault.svg"))}),/*#__PURE__*/(0,jsx_runtime.jsxs)(LabelWrap,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"label_item",children:label}),disabled&&/*#__PURE__*/(0,jsx_runtime.jsxs)(WarningWrap,{className:"waring_wrap",children:[/*#__PURE__*/(0,jsx_runtime.jsx)(WarningRadio,{src:"".concat(chrome.runtime.getURL("warnRadio.svg"))}),/*#__PURE__*/(0,jsx_runtime.jsx)("span",{children:"\u5DF2\u8FBE\u4E0A\u9650\uFF0C\u4E0D\u53EF\u6DFB\u52A0"})]})]})]},value);})})})]}),/*#__PURE__*/(0,jsx_runtime.jsxs)(FormItem,{className:"titleControlItem ".concat(inputFocus&&"form_item_focus"),children:[/*#__PURE__*/(0,jsx_runtime.jsx)(FormItemLabel,{className:"form_item_label",children:"\u6807\u9898"}),/*#__PURE__*/(0,jsx_runtime.jsx)(FormItemControl,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{color:"rgb(39, 38, 77)",overlayInnerStyle:{borderRadius:"8px",padding:"4px 12px",fontSize:"12px"},title:filename,visible:!inputFocus&&titleTipsVisible,getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:/*#__PURE__*/(0,jsx_runtime.jsx)(input,{ref:inputRef,maxLength:150,value:filename,onChange:function onChange(e){return setFilename(e.target.value);},onBlur:onBlur,onFocus:function onFocus(){return setInputFocus(true);},onPressEnter:onBlur,onMouseEnter:onMouseEnter,onMouseLeave:function onMouseLeave(){return setTitleTipsVisible(false);}})})})]})]}),/*#__PURE__*/(0,jsx_runtime.jsxs)(BottomContent,{children:[isVisibleTips?/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip,{placement:"top",color:"#fff",overlayInnerStyle:{borderRadius:"8px",padding:"8px 16px"},zIndex:999,title:/*#__PURE__*/(0,jsx_runtime.jsx)(SelectShare,{}),open:true,getPopupContainer:function getPopupContainer(triggerNode){return triggerNode.parentElement;},children:/*#__PURE__*/(0,jsx_runtime.jsx)(SubmitButton,{id:"Submit_Button",ref:SubmitButtonRef,className:"not-handle",onClick:handleStartRecord,children:"\u5F00\u542F\u5B9E\u65F6\u8BB0\u5F55"})}):/*#__PURE__*/(0,jsx_runtime.jsx)(SubmitButton,{id:"Submit_Button",ref:SubmitButtonRef,className:"not-handle",onClick:handleStartRecord,children:"\u5F00\u542F\u5B9E\u65F6\u8BB0\u5F55"}),/*#__PURE__*/(0,jsx_runtime.jsx)(NormalButton,{className:"not-handle",children:/*#__PURE__*/(0,jsx_runtime.jsx)("span",{onClick:handleGotoTingwu,children:"\u67E5\u770B\u5386\u53F2\u8BB0\u5F55"})})]}),/*#__PURE__*/(0,jsx_runtime.jsx)(components_PrivacyAgreementModal,{open:privacyAgreementVisible,onCancel:function onCancel(){setPrivacyAgreementVisible(false);},onOk:onAgreeHandle})]})]})})}))});});
;// CONCATENATED MODULE: ./src/components/startPanel/index.ts

// EXTERNAL MODULE: ./src/eventer.ts
var src_eventer = __webpack_require__(9048);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/meeting/meetingModel.js
var meetingModel = __webpack_require__(2414);
;// CONCATENATED MODULE: ./src/components/app/app.tsx
var _getGlobalConfig$getE=(0,src_extends/* getGlobalConfig */.H)().getEnvInfo(),app_env=_getGlobalConfig$getE.env,publishName=_getGlobalConfig$getE.publishName;var aemDelegationUrl="https://g.alicdn.com/idst-fe/tingwu-chrome-extension-aem-delegation/0.0.3/index.html";var App=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var controller=props.controller,meetingController=props.meetingController,timer=props.timer,getTransId=props.getTransId,getMeetingContext=props.getMeetingContext;var _usePanelVisible=(0,models/* usePanelVisible */.RW)(),mainPanelVisible=_usePanelVisible.mainPanelVisible,captionVisible=_usePanelVisible.captionVisible;var _useFolder=(0,models/* useFolder */.WR)(),fetchFolders=_useFolder.fetchFolders;var _useUser=(0,models/* useUser */.aF)(),fetchUser=_useUser.fetchUser;var username=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* userNameState */.o2);var uid=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* userIdState */.j3);var isLogin=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* isLoginState */.Mf);var _useRecoilState=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* folderLoadedState */.UY),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,2),logOut=_useRecoilState2[0],setLogOut=_useRecoilState2[1];var _useRecoilState3=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* isShowAppState */.mC),_useRecoilState4=(0,slicedToArray/* default */.Z)(_useRecoilState3,2),isShowApp=_useRecoilState4[0],setIsShowApp=_useRecoilState4[1];var _useRecoilState5=(0,_recoil_0_7_7_recoil_es/* useRecoilState */.FV)(models/* isStartRecordState */.o8),_useRecoilState6=(0,slicedToArray/* default */.Z)(_useRecoilState5,2),isStartRecord=_useRecoilState6[0],setIsStartRecord=_useRecoilState6[1];var setIsPauseRecord=(0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(models/* isPauseRecordState */.qA);var appReady=(0,_recoil_0_7_7_recoil_es/* useRecoilValue */.sJ)(models/* appReadyState */.JD);var setIsStoping=(0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(models/* isStopingState */.q9);var setSecond=(0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(models/* secondState */.jk);var setIsNotifyUserTransFinish=(0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(models/* isNotifyUserTransFinishState */.zd);var _useState=(0,_react_18_2_0_react.useState)(false),_useState2=(0,slicedToArray/* default */.Z)(_useState,2),isVisibleTips=_useState2[0],setIsVisibleTips=_useState2[1];var _useState3=(0,_react_18_2_0_react.useState)(false),_useState4=(0,slicedToArray/* default */.Z)(_useState3,2),hasNoCompetence=_useState4[0],setHasNoCompetence=_useState4[1];var setTransId=(0,_recoil_0_7_7_recoil_es/* useSetRecoilState */.Zl)(models/* transIdState */.gV);var unknownLogSenderRef=(0,_react_18_2_0_react.useRef)(null);var logSenderRef=(0,_react_18_2_0_react.useRef)(null);var unknownAemIframeUrl=(0,_react_18_2_0_react.useMemo)(function(){return"".concat(aemDelegationUrl,"?env=").concat(app_env,"&dim1=").concat(publishName);},[]);var aemIframeUrl=(0,_react_18_2_0_react.useMemo)(function(){if(!uid){return null;}return"".concat(aemDelegationUrl,"?env=").concat(app_env,"&dim1=").concat(publishName,"&username=").concat(username,"&uid=").concat(uid);},[uid,username]);(0,_react_18_2_0_react.useEffect)(function(){(0,log/* setSendLogWithUnknownUser */.ox)(function(eventId,params){var _unknownLogSenderRef$;if(!unknownLogSenderRef.current){return;}(_unknownLogSenderRef$=unknownLogSenderRef.current.contentWindow)===null||_unknownLogSenderRef$===void 0?void 0:_unknownLogSenderRef$.postMessage({type:"log",payload:{eventId:eventId,params:params}},"*");});var onBeforeUnload=function onBeforeUnload(){chrome.runtime.sendMessage({type:'closeApp',value:true},function(response){// console.log('回调' );
});};window.addEventListener('beforeunload',onBeforeUnload);return function(){window.removeEventListener('beforeunload',onBeforeUnload);};},[]);(0,_react_18_2_0_react.useEffect)(function(){if(!uid){return;}(0,log/* setSendLog */.NR)(function(eventId,params){var _logSenderRef$current;if(!logSenderRef.current){return;}(_logSenderRef$current=logSenderRef.current.contentWindow)===null||_logSenderRef$current===void 0?void 0:_logSenderRef$current.postMessage({type:"log",payload:{eventId:eventId,params:params}},"*");});},[uid]);(0,_react_18_2_0_react.useEffect)(function(){return src_eventer/* eventer */.M.on("recalled",function(param){setIsShowApp(true);setIsVisibleTips(param.isVisibleTips);setHasNoCompetence(param.hasNoCompetence);});},[]);(0,_react_18_2_0_react.useEffect)(function(){return src_eventer/* eventer */.M.on("logOut",function(param){if(publishName!="alibabaGroup"){if(param.apiUrl.indexOf("aliyuncs")<0){console.log("非内网接口，外网接口");if(isLogin){setLogOut(false);// setMainPanelVisible(true);
}}else{console.log("内网是否登录接口");if(isLogin){setLogOut(true);}}}else{//真正的todo 集团内版本插件如果也用这个分支的话，这里要处理一下，也得回到登录页面
}});},[isLogin]);(0,_react_18_2_0_react.useEffect)(function(){if(isStartRecord)setIsVisibleTips(false);},[isStartRecord]);(0,_react_18_2_0_react.useEffect)(function(){if(hasNoCompetence){message/* default */.ZP.destroy();message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("Submit_Button")||document.body;}});message/* default */.ZP.warn({content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:"\u62B1\u6B49\uFF0C\u5F53\u524D\u7F51\u9875\u65E0\u6CD5\u4F7F\u7528\u672C\u529F\u80FD"}),duration:3});}},[hasNoCompetence]);(0,_react_18_2_0_react.useEffect)(function(){return meetingController.on("meetingStateChange",function(_ref){var state=_ref.state;if(state===meetingModel/* MeetingState */.k.PreparePause||state===meetingModel/* MeetingState */.k.PrepareStop){setIsStoping(true);}else{setIsStoping(false);}if(state===meetingModel/* MeetingState */.k.Stop){setIsNotifyUserTransFinish(true);}if(state===meetingModel/* MeetingState */.k.InMeeting){setIsStartRecord(true);setIsPauseRecord(false);}else if(state===meetingModel/* MeetingState */.k.Pause){setIsPauseRecord(true);}else if(meetingController.isMeetingIdle()){setIsStartRecord(false);}});},[meetingController]);var checkLoginStatus=(0,_react_18_2_0_react.useCallback)(function(){fetchFolders();fetchUser();},[]);var time=(0,_react_18_2_0_react.useRef)(null);(0,_react_18_2_0_react.useEffect)(function(){if(isLogin){clearInterval(time.current);return;}if(isShowApp){time.current&&clearInterval(time.current);time.current=null;checkLoginStatus();time.current=setInterval(function(){checkLoginStatus();},2000);}else{time.current&&clearInterval(time.current);time.current=null;}},[isShowApp,isLogin]);(0,_react_18_2_0_react.useEffect)(function(){return function(){time.current&&clearInterval(time.current);time.current=null;};},[]);(0,_react_18_2_0_react.useEffect)(function(){if(getTransId()){setTransId(getTransId());}},[getTransId()]);(0,_react_18_2_0_react.useEffect)(function(){return timer.on("timeChange",function(_ref2){var time=_ref2.time;setSecond(time/1000);});},[timer]);var handleCloseApp=(0,_recoil_0_7_7_recoil_es/* useRecoilCallback */._8)(function(_ref3){var set=_ref3.set;return function(){chrome.runtime.sendMessage({type:'closeApp',value:true},function(response){// console.log('回调' );
});set(models/* isShowAppState */.mC,false);};});var renderedContent=(0,_react_18_2_0_react.useMemo)(function(){if(!appReady||!isShowApp){return null;}if(!isLogin){return/*#__PURE__*/(0,jsx_runtime.jsx)(LoginPanel,{onCloseApp:handleCloseApp});}if(!isStartRecord){return/*#__PURE__*/(0,jsx_runtime.jsx)(StartPanel,{hasNoCompetence:hasNoCompetence,isVisibleTips:isVisibleTips,onCloseApp:handleCloseApp,getTransId:getTransId});}return/*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(MainPanel,{visible:mainPanelVisible,controller:controller,meetingController:meetingController,getMeetingContext:getMeetingContext}),/*#__PURE__*/(0,jsx_runtime.jsx)(CaptionContainer,{visible:captionVisible,controller:controller,meetingController:meetingController,getMeetingContext:getMeetingContext})]});},[appReady,isShowApp,isLogin,handleCloseApp,isVisibleTips,isStartRecord,mainPanelVisible,captionVisible,controller,meetingController,hasNoCompetence]);return/*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[renderedContent,/*#__PURE__*/(0,jsx_runtime.jsx)("iframe",{ref:unknownLogSenderRef,src:unknownAemIframeUrl,width:0,height:0,style:{position:"absolute",top:0,opacity:0,zIndex:-1}}),aemIframeUrl&&/*#__PURE__*/(0,jsx_runtime.jsx)("iframe",{ref:logSenderRef,src:aemIframeUrl,width:0,height:0,style:{position:"absolute",top:0,opacity:0,zIndex:-1}})]});});
;// CONCATENATED MODULE: ./src/components/app/index.ts

;// CONCATENATED MODULE: ./src/components/index.ts


/***/ }),

/***/ 2073:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   AN: function() { return /* binding */ Features; },
/* harmony export */   Aq: function() { return /* binding */ Background; },
/* harmony export */   PZ: function() { return /* binding */ CloseButton; },
/* harmony export */   TR: function() { return /* binding */ Logo; },
/* harmony export */   W2: function() { return /* binding */ Container; },
/* harmony export */   _u: function() { return /* binding */ LoginPoints; },
/* harmony export */   iF: function() { return /* binding */ LoginPointItem; },
/* harmony export */   s_: function() { return /* binding */ Panel; },
/* harmony export */   zx: function() { return /* binding */ Button; }
/* harmony export */ });
/* harmony import */ var _Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9008);
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2010);
/* harmony import */ var _extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8227);
var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9;var Panel=styled_components__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP.div(_templateObject||(_templateObject=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(["\n  width: 320px;\n  height: 322px;\n  display: flex;\n  flex-direction: column;\n  position: fixed;\n  z-index: 2147483647;\n  top: 40px;\n  right: 32px;\n  .tweant-modal-mask {\n    background-color: rgba(185, 184, 222, 0.2);\n    backdrop-filter: blur(6px);\n  }\n  .tweant-modal-confirm-title{\n    font-family: PingFangSC;\n    font-weight: 500;\n    font-size: 14px;\n    color: #27264D;\n    letter-spacing: 0;\n    text-align: center;\n    line-height: 20px;\n  }\n  .tweant-btn-primary{\n    margin-left: -30px;\n  }\n  .tweant-modal-content {\n    border-radius: 8px;\n  }\n  .tweant-btn-primary {\n    background-color: #605ce5;\n    border-color: #605ce5;\n    font-size: 12px;\n    color: #fff;\n    border-radius: 6px;\n  }\n  .tweant-btn-primary:hover {\n    background-color: #7470e7;\n    border-color: #7470e7;\n  }\n  .tweant-btn-primary:focus,\n  .tweant-btn-primary:active {\n    background-color: #5b57ce;\n    border-color: #5b57ce;\n  }\n"])));var Background=styled_components__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP.div(_templateObject2||(_templateObject2=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(["\n  background-color: #F9FAFF;  \n  background-image: url(",");\n  background-position: 0 0;\n  background-repeat: no-repeat;\n  background-size: contain;\n  box-shadow: 0 0 1px 1px rgba(63,60,161,0.30);\n  border-radius: 8px;\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  z-index: 1;\n"])),chrome.runtime.getURL('background.svg'));var Container=styled_components__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP.div(_templateObject3||(_templateObject3=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  z-index: 2;\n  display: flex;\n  flex-direction: column;\n  /* align-items: center; */\n  justify-content: flex-start;\n  user-select: none;\n  padding: 0 24px;\n"])));var Logo=styled_components__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP.div(_templateObject4||(_templateObject4=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(["\n  background: url(",") 0 center no-repeat;\n  background-size: contain;\n  width: 95px;\n  height: 17px;\n  margin-top: 32px;\n  align-self: flex-start;\n"])),chrome.runtime.getURL((0,_extends__WEBPACK_IMPORTED_MODULE_0__/* .getGlobalConfig */ .H)().renderLogoAndTitleUrl()));var CloseButton=styled_components__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP.div(_templateObject5||(_templateObject5=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(["\n  background: url(",") center center no-repeat;\n  width: 20px;\n  height: 20px;\n  cursor: pointer;\n  position: absolute;\n  top: 30px;\n  right: 24px;\n  transition: all 0.3s;\n  &:hover {\n    background: url(",") center center no-repeat;\n  }\n\n  &:active {\n    background: url(",") center center no-repeat;\n  }\n"])),chrome.runtime.getURL('closeLarge.svg'),chrome.runtime.getURL('closeHoverLarge.svg'),chrome.runtime.getURL('closeActiveLarge.svg'));var Features=styled_components__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP.div(_templateObject6||(_templateObject6=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(["\n  background: url(",") 0 0 no-repeat;\n  background-size: contain;\n  width: 100%;\n  height: 48.5px;\n  margin: 38px 0 11px 0;\n"])),chrome.runtime.getURL('loginPointTongyi.svg'));var Button=styled_components__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP.div(_templateObject7||(_templateObject7=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(["\n  width: 272px;\n  height: 40px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background: #605CE5;\n  border-radius: 8px;\n  margin-top: 24px;\n  color: #fff;\n  font-size: 14px;\n  color: #F9FAFC;\n  line-height: 24px;\n  cursor: pointer;\n\n  &:hover {\n    background: #7470E7;\n  }\n\n  &:active {\n    background: #5B57CE;\n  }\n"])));var LoginPoints=styled_components__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP.div(_templateObject8||(_templateObject8=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(["\n  margin-top: 9px;\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n"])));var LoginPointItem=styled_components__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP.div(_templateObject9||(_templateObject9=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_taggedTemplateLiteral_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(["\n  padding: 5px 12px;\n  border-radius: 15px;\n  color: #605CE5;\n  font-size: 12px;\n  background: rgba(96, 92, 229, 0.1);\n  margin-bottom: 8px;\n  margin-right: 8px;\n"])));

/***/ }),

/***/ 9869:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  fp: function() { return /* binding */ overTimeState; },
  bg: function() { return /* binding */ setoverTimeStateFun; }
});

// UNUSED EXPORTS: default

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7921);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(2171);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/taggedTemplateLiteral.js
var taggedTemplateLiteral = __webpack_require__(9008);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_react-dom@18.2.0@react-dom/client.js
var client = __webpack_require__(545);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/noop.js
var noop = __webpack_require__(8027);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inheritsLoose.js
var inheritsLoose = __webpack_require__(2918);
;// CONCATENATED MODULE: ./node_modules/_reconnecting-websocket@4.4.0@reconnecting-websocket/dist/reconnecting-websocket-mjs.js
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */

var _extendStatics = function extendStatics(d, b) {
  _extendStatics = Object.setPrototypeOf || {
    __proto__: []
  } instanceof Array && function (d, b) {
    d.__proto__ = b;
  } || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
  };
  return _extendStatics(d, b);
};
function __extends(d, b) {
  _extendStatics(d, b);
  function __() {
    this.constructor = d;
  }
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __values(o) {
  var m = typeof Symbol === "function" && o[Symbol.iterator],
    i = 0;
  if (m) return m.call(o);
  return {
    next: function next() {
      if (o && i >= o.length) o = void 0;
      return {
        value: o && o[i++],
        done: !o
      };
    }
  };
}
function __read(o, n) {
  var m = typeof Symbol === "function" && o[Symbol.iterator];
  if (!m) return o;
  var i = m.call(o),
    r,
    ar = [],
    e;
  try {
    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  } catch (error) {
    e = {
      error: error
    };
  } finally {
    try {
      if (r && !r.done && (m = i["return"])) m.call(i);
    } finally {
      if (e) throw e.error;
    }
  }
  return ar;
}
function __spread() {
  for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
  return ar;
}
var Event = /** @class */function () {
  function Event(type, target) {
    this.target = target;
    this.type = type;
  }
  return Event;
}();
var ErrorEvent = /** @class */function (_super) {
  __extends(ErrorEvent, _super);
  function ErrorEvent(error, target) {
    var _this = _super.call(this, 'error', target) || this;
    _this.message = error.message;
    _this.error = error;
    return _this;
  }
  return ErrorEvent;
}(Event);
var CloseEvent = /** @class */function (_super) {
  __extends(CloseEvent, _super);
  function CloseEvent(code, reason, target) {
    if (code === void 0) {
      code = 1000;
    }
    if (reason === void 0) {
      reason = '';
    }
    var _this = _super.call(this, 'close', target) || this;
    _this.wasClean = true;
    _this.code = code;
    _this.reason = reason;
    return _this;
  }
  return CloseEvent;
}(Event);

/*!
 * Reconnecting WebSocket
 * by Pedro Ladaria <pedro.ladaria@gmail.com>
 * https://github.com/pladaria/reconnecting-websocket
 * License MIT
 */
var getGlobalWebSocket = function getGlobalWebSocket() {
  if (typeof WebSocket !== 'undefined') {
    // @ts-ignore
    return WebSocket;
  }
};
/**
 * Returns true if given argument looks like a WebSocket class
 */
var isWebSocket = function isWebSocket(w) {
  return typeof w !== 'undefined' && !!w && w.CLOSING === 2;
};
var DEFAULT = {
  maxReconnectionDelay: 10000,
  minReconnectionDelay: 1000 + Math.random() * 4000,
  minUptime: 5000,
  reconnectionDelayGrowFactor: 1.3,
  connectionTimeout: 4000,
  maxRetries: Infinity,
  maxEnqueuedMessages: Infinity,
  startClosed: false,
  debug: false
};
var ReconnectingWebSocket = /** @class */function () {
  function ReconnectingWebSocket(url, protocols, options) {
    var _this = this;
    if (options === void 0) {
      options = {};
    }
    this._listeners = {
      error: [],
      message: [],
      open: [],
      close: []
    };
    this._retryCount = -1;
    this._shouldReconnect = true;
    this._connectLock = false;
    this._binaryType = 'blob';
    this._closeCalled = false;
    this._messageQueue = [];
    /**
     * An event listener to be called when the WebSocket connection's readyState changes to CLOSED
     */
    this.onclose = null;
    /**
     * An event listener to be called when an error occurs
     */
    this.onerror = null;
    /**
     * An event listener to be called when a message is received from the server
     */
    this.onmessage = null;
    /**
     * An event listener to be called when the WebSocket connection's readyState changes to OPEN;
     * this indicates that the connection is ready to send and receive data
     */
    this.onopen = null;
    this._handleOpen = function (event) {
      _this._debug('open event');
      var _a = _this._options.minUptime,
        minUptime = _a === void 0 ? DEFAULT.minUptime : _a;
      clearTimeout(_this._connectTimeout);
      _this._uptimeTimeout = setTimeout(function () {
        return _this._acceptOpen();
      }, minUptime);
      _this._ws.binaryType = _this._binaryType;
      // send enqueued messages (messages sent before websocket open event)
      _this._messageQueue.forEach(function (message) {
        return _this._ws.send(message);
      });
      _this._messageQueue = [];
      if (_this.onopen) {
        _this.onopen(event);
      }
      _this._listeners.open.forEach(function (listener) {
        return _this._callEventListener(event, listener);
      });
    };
    this._handleMessage = function (event) {
      _this._debug('message event');
      if (_this.onmessage) {
        _this.onmessage(event);
      }
      _this._listeners.message.forEach(function (listener) {
        return _this._callEventListener(event, listener);
      });
    };
    this._handleError = function (event) {
      _this._debug('error event', event.message);
      _this._disconnect(undefined, event.message === 'TIMEOUT' ? 'timeout' : undefined);
      if (_this.onerror) {
        _this.onerror(event);
      }
      _this._debug('exec error listeners');
      _this._listeners.error.forEach(function (listener) {
        return _this._callEventListener(event, listener);
      });
      _this._connect();
    };
    this._handleClose = function (event) {
      _this._debug('close event');
      _this._clearTimeouts();
      if (_this._shouldReconnect) {
        _this._connect();
      }
      if (_this.onclose) {
        _this.onclose(event);
      }
      _this._listeners.close.forEach(function (listener) {
        return _this._callEventListener(event, listener);
      });
    };
    this._url = url;
    this._protocols = protocols;
    this._options = options;
    if (this._options.startClosed) {
      this._shouldReconnect = false;
    }
    this._connect();
  }
  Object.defineProperty(ReconnectingWebSocket, "CONNECTING", {
    get: function get() {
      return 0;
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket, "OPEN", {
    get: function get() {
      return 1;
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket, "CLOSING", {
    get: function get() {
      return 2;
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket, "CLOSED", {
    get: function get() {
      return 3;
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "CONNECTING", {
    get: function get() {
      return ReconnectingWebSocket.CONNECTING;
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "OPEN", {
    get: function get() {
      return ReconnectingWebSocket.OPEN;
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "CLOSING", {
    get: function get() {
      return ReconnectingWebSocket.CLOSING;
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "CLOSED", {
    get: function get() {
      return ReconnectingWebSocket.CLOSED;
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "binaryType", {
    get: function get() {
      return this._ws ? this._ws.binaryType : this._binaryType;
    },
    set: function set(value) {
      this._binaryType = value;
      if (this._ws) {
        this._ws.binaryType = value;
      }
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "retryCount", {
    /**
     * Returns the number or connection retries
     */
    get: function get() {
      return Math.max(this._retryCount, 0);
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "bufferedAmount", {
    /**
     * The number of bytes of data that have been queued using calls to send() but not yet
     * transmitted to the network. This value resets to zero once all queued data has been sent.
     * This value does not reset to zero when the connection is closed; if you keep calling send(),
     * this will continue to climb. Read only
     */
    get: function get() {
      var bytes = this._messageQueue.reduce(function (acc, message) {
        if (typeof message === 'string') {
          acc += message.length; // not byte size
        } else if (message instanceof Blob) {
          acc += message.size;
        } else {
          acc += message.byteLength;
        }
        return acc;
      }, 0);
      return bytes + (this._ws ? this._ws.bufferedAmount : 0);
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "extensions", {
    /**
     * The extensions selected by the server. This is currently only the empty string or a list of
     * extensions as negotiated by the connection
     */
    get: function get() {
      return this._ws ? this._ws.extensions : '';
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "protocol", {
    /**
     * A string indicating the name of the sub-protocol the server selected;
     * this will be one of the strings specified in the protocols parameter when creating the
     * WebSocket object
     */
    get: function get() {
      return this._ws ? this._ws.protocol : '';
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "readyState", {
    /**
     * The current state of the connection; this is one of the Ready state constants
     */
    get: function get() {
      if (this._ws) {
        return this._ws.readyState;
      }
      return this._options.startClosed ? ReconnectingWebSocket.CLOSED : ReconnectingWebSocket.CONNECTING;
    },
    enumerable: true,
    configurable: true
  });
  Object.defineProperty(ReconnectingWebSocket.prototype, "url", {
    /**
     * The URL as resolved by the constructor
     */
    get: function get() {
      return this._ws ? this._ws.url : '';
    },
    enumerable: true,
    configurable: true
  });
  /**
   * Closes the WebSocket connection or connection attempt, if any. If the connection is already
   * CLOSED, this method does nothing
   */
  ReconnectingWebSocket.prototype.close = function (code, reason) {
    if (code === void 0) {
      code = 1000;
    }
    this._closeCalled = true;
    this._shouldReconnect = false;
    this._clearTimeouts();
    if (!this._ws) {
      this._debug('close enqueued: no ws instance');
      return;
    }
    if (this._ws.readyState === this.CLOSED) {
      this._debug('close: already closed');
      return;
    }
    this._ws.close(code, reason);
  };
  /**
   * Closes the WebSocket connection or connection attempt and connects again.
   * Resets retry counter;
   */
  ReconnectingWebSocket.prototype.reconnect = function (code, reason) {
    this._shouldReconnect = true;
    this._closeCalled = false;
    this._retryCount = -1;
    if (!this._ws || this._ws.readyState === this.CLOSED) {
      this._connect();
    } else {
      this._disconnect(code, reason);
      this._connect();
    }
  };
  /**
   * Enqueue specified data to be transmitted to the server over the WebSocket connection
   */
  ReconnectingWebSocket.prototype.send = function (data) {
    if (this._ws && this._ws.readyState === this.OPEN) {
      this._debug('send', data);
      this._ws.send(data);
    } else {
      var _a = this._options.maxEnqueuedMessages,
        maxEnqueuedMessages = _a === void 0 ? DEFAULT.maxEnqueuedMessages : _a;
      if (this._messageQueue.length < maxEnqueuedMessages) {
        this._debug('enqueue', data);
        this._messageQueue.push(data);
      }
    }
  };
  /**
   * Register an event handler of a specific event type
   */
  ReconnectingWebSocket.prototype.addEventListener = function (type, listener) {
    if (this._listeners[type]) {
      // @ts-ignore
      this._listeners[type].push(listener);
    }
  };
  ReconnectingWebSocket.prototype.dispatchEvent = function (event) {
    var e_1, _a;
    var listeners = this._listeners[event.type];
    if (listeners) {
      try {
        for (var listeners_1 = __values(listeners), listeners_1_1 = listeners_1.next(); !listeners_1_1.done; listeners_1_1 = listeners_1.next()) {
          var listener = listeners_1_1.value;
          this._callEventListener(event, listener);
        }
      } catch (e_1_1) {
        e_1 = {
          error: e_1_1
        };
      } finally {
        try {
          if (listeners_1_1 && !listeners_1_1.done && (_a = listeners_1.return)) _a.call(listeners_1);
        } finally {
          if (e_1) throw e_1.error;
        }
      }
    }
    return true;
  };
  /**
   * Removes an event listener
   */
  ReconnectingWebSocket.prototype.removeEventListener = function (type, listener) {
    if (this._listeners[type]) {
      // @ts-ignore
      this._listeners[type] = this._listeners[type].filter(function (l) {
        return l !== listener;
      });
    }
  };
  ReconnectingWebSocket.prototype._debug = function () {
    var args = [];
    for (var _i = 0; _i < arguments.length; _i++) {
      args[_i] = arguments[_i];
    }
    if (this._options.debug) {
      // not using spread because compiled version uses Symbols
      // tslint:disable-next-line
      console.log.apply(console, __spread(['RWS>'], args));
    }
  };
  ReconnectingWebSocket.prototype._getNextDelay = function () {
    var _a = this._options,
      _b = _a.reconnectionDelayGrowFactor,
      reconnectionDelayGrowFactor = _b === void 0 ? DEFAULT.reconnectionDelayGrowFactor : _b,
      _c = _a.minReconnectionDelay,
      minReconnectionDelay = _c === void 0 ? DEFAULT.minReconnectionDelay : _c,
      _d = _a.maxReconnectionDelay,
      maxReconnectionDelay = _d === void 0 ? DEFAULT.maxReconnectionDelay : _d;
    var delay = 0;
    if (this._retryCount > 0) {
      delay = minReconnectionDelay * Math.pow(reconnectionDelayGrowFactor, this._retryCount - 1);
      if (delay > maxReconnectionDelay) {
        delay = maxReconnectionDelay;
      }
    }
    this._debug('next delay', delay);
    return delay;
  };
  ReconnectingWebSocket.prototype._wait = function () {
    var _this = this;
    return new Promise(function (resolve) {
      setTimeout(resolve, _this._getNextDelay());
    });
  };
  ReconnectingWebSocket.prototype._getNextUrl = function (urlProvider) {
    if (typeof urlProvider === 'string') {
      return Promise.resolve(urlProvider);
    }
    if (typeof urlProvider === 'function') {
      var url = urlProvider();
      if (typeof url === 'string') {
        return Promise.resolve(url);
      }
      if (!!url.then) {
        return url;
      }
    }
    throw Error('Invalid URL');
  };
  ReconnectingWebSocket.prototype._connect = function () {
    var _this = this;
    if (this._connectLock || !this._shouldReconnect) {
      return;
    }
    this._connectLock = true;
    var _a = this._options,
      _b = _a.maxRetries,
      maxRetries = _b === void 0 ? DEFAULT.maxRetries : _b,
      _c = _a.connectionTimeout,
      connectionTimeout = _c === void 0 ? DEFAULT.connectionTimeout : _c,
      _d = _a.WebSocket,
      WebSocket = _d === void 0 ? getGlobalWebSocket() : _d;
    if (this._retryCount >= maxRetries) {
      this._debug('max retries reached', this._retryCount, '>=', maxRetries);
      return;
    }
    this._retryCount++;
    this._debug('connect', this._retryCount);
    this._removeListeners();
    if (!isWebSocket(WebSocket)) {
      throw Error('No valid WebSocket class provided');
    }
    this._wait().then(function () {
      return _this._getNextUrl(_this._url);
    }).then(function (url) {
      // close could be called before creating the ws
      if (_this._closeCalled) {
        return;
      }
      _this._debug('connect', {
        url: url,
        protocols: _this._protocols
      });
      _this._ws = _this._protocols ? new WebSocket(url, _this._protocols) : new WebSocket(url);
      _this._ws.binaryType = _this._binaryType;
      _this._connectLock = false;
      _this._addListeners();
      _this._connectTimeout = setTimeout(function () {
        return _this._handleTimeout();
      }, connectionTimeout);
    });
  };
  ReconnectingWebSocket.prototype._handleTimeout = function () {
    this._debug('timeout event');
    this._handleError(new ErrorEvent(Error('TIMEOUT'), this));
  };
  ReconnectingWebSocket.prototype._disconnect = function (code, reason) {
    if (code === void 0) {
      code = 1000;
    }
    this._clearTimeouts();
    if (!this._ws) {
      return;
    }
    this._removeListeners();
    try {
      this._ws.close(code, reason);
      this._handleClose(new CloseEvent(code, reason, this));
    } catch (error) {
      // ignore
    }
  };
  ReconnectingWebSocket.prototype._acceptOpen = function () {
    this._debug('accept open');
    this._retryCount = 0;
  };
  ReconnectingWebSocket.prototype._callEventListener = function (event, listener) {
    if ('handleEvent' in listener) {
      // @ts-ignore
      listener.handleEvent(event);
    } else {
      // @ts-ignore
      listener(event);
    }
  };
  ReconnectingWebSocket.prototype._removeListeners = function () {
    if (!this._ws) {
      return;
    }
    this._debug('removeListeners');
    this._ws.removeEventListener('open', this._handleOpen);
    this._ws.removeEventListener('close', this._handleClose);
    this._ws.removeEventListener('message', this._handleMessage);
    // @ts-ignore
    this._ws.removeEventListener('error', this._handleError);
  };
  ReconnectingWebSocket.prototype._addListeners = function () {
    if (!this._ws) {
      return;
    }
    this._debug('addListeners');
    this._ws.addEventListener('open', this._handleOpen);
    this._ws.addEventListener('close', this._handleClose);
    this._ws.addEventListener('message', this._handleMessage);
    // @ts-ignore
    this._ws.addEventListener('error', this._handleError);
  };
  ReconnectingWebSocket.prototype._clearTimeouts = function () {
    clearTimeout(this._connectTimeout);
    clearTimeout(this._uptimeTimeout);
  };
  return ReconnectingWebSocket;
}();
/* harmony default export */ var reconnecting_websocket_mjs = (ReconnectingWebSocket);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/report/index.js
var callback = function callback() {
  for (var _len = arguments.length, messages = new Array(_len), _key = 0; _key < _len; _key++) {
    messages[_key] = arguments[_key];
  }
  window.console.log('[tingwu-meeting] report: ', messages);
};
var implementReport = function implementReport(cb) {
  callback = cb;
};
var report_report = function report() {
  callback.apply(void 0, arguments);
};
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/eventer.js
var eventer = __webpack_require__(6321);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/connection/abstractConnection.js


var ConnectionState;
(function (ConnectionState) {
  ConnectionState[ConnectionState["Connected"] = 0] = "Connected";
  ConnectionState[ConnectionState["NotConnected"] = 1] = "NotConnected";
})(ConnectionState || (ConnectionState = {}));
var AbstractConnection = /*#__PURE__*/function (_Eventer) {
  (0,inheritsLoose/* default */.Z)(AbstractConnection, _Eventer);
  function AbstractConnection() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _Eventer.call.apply(_Eventer, [this].concat(args)) || this;
    _this.connectCount = 0;
    _this.state = ConnectionState.NotConnected;
    _this.onOpen = function () {
      _this.connectCount++;
      _this.state = ConnectionState.Connected;
      _this.emit('open', {});
    };
    _this.onMessage = function (event) {
      _this.emit('message', event);
    };
    _this.onError = function (event) {
      _this.emit('error', event);
    };
    return _this;
  }
  var _proto = AbstractConnection.prototype;
  _proto.connect = function connect(serverUrl) {
    this.connectCount = 0;
    this.implementConnect(serverUrl);
  };
  _proto.disconnect = function disconnect() {
    this.connectCount = 0;
    this.implementDisconnect();
  };
  _proto.reconnect = function reconnect() {
    this.implementReconnect();
  };
  _proto.onClose = function onClose(event) {
    this.state = ConnectionState.NotConnected;
    this.emit('close', event);
  };
  _proto.isReconnection = function isReconnection() {
    return this.connectCount > 1;
  };
  _proto.isConnected = function isConnected() {
    return this.state === ConnectionState.Connected;
  };
  return AbstractConnection;
}(eventer/* Eventer */.n);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/connection/rwsConnection.js




var RWSConnection = /*#__PURE__*/function (_AbstractConnection) {
  (0,inheritsLoose/* default */.Z)(RWSConnection, _AbstractConnection);
  function RWSConnection() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractConnection.call.apply(_AbstractConnection, [this].concat(args)) || this;
    _this.rws = void 0;
    _this.connectCount = 0;
    _this.userDisconnect = false;
    _this.params = {
      maxRetries: 60
    };
    _this.handleOpen = function () {
      report_report('ws创建');
      _this.onOpen();
    };
    _this.handleMessage = function (event) {
      _this.onMessage(event);
    };
    _this.handleError = function (event) {
      report_report('ws报错', "type=" + event.type + ";error=" + event.error + ";message=" + event.message);
      _this.onError(event);
    };
    _this.handleClose = function (event) {
      report_report('ws关闭', "code=" + event.code + ";reason=" + event.reason);
      _this.onClose(event);
      if (_this.userDisconnect) {
        _this.clearEvents();
        _this.userDisconnect = false;
      }
    };
    return _this;
  }
  var _proto = RWSConnection.prototype;
  _proto.setParams = function setParams(params) {
    this.params = params;
  };
  _proto.implementConnect = function implementConnect(serverUrl) {
    if (serverUrl === void 0) {
      serverUrl = '';
    }
    if (!this.params) {
      throw new Error('`params` cannot be undefined in RWSConnection');
    }
    if (this.rws) {
      this.clearEvents();
    }
    this.userDisconnect = false;
    var _this$params$maxRetri = this.params.maxRetries,
      maxRetries = _this$params$maxRetri === void 0 ? 60 : _this$params$maxRetri;
    this.rws = new reconnecting_websocket_mjs(serverUrl, '', {
      minReconnectionDelay: 5000,
      maxRetries: maxRetries
    });
    this.rws.addEventListener('open', this.handleOpen);
    this.rws.addEventListener('message', this.handleMessage);
    this.rws.addEventListener('error', this.handleError);
    this.rws.addEventListener('close', this.handleClose);
  };
  _proto.implementReconnect = function implementReconnect() {
    var _this$rws;
    (_this$rws = this.rws) == null ? void 0 : _this$rws.reconnect();
  };
  _proto.implementDisconnect = function implementDisconnect() {
    if (!this.rws) {
      return;
    }
    this.userDisconnect = true;
    this.rws.close();
  };
  _proto.clearEvents = function clearEvents() {
    if (!this.rws) {
      return;
    }
    this.rws.removeEventListener('open', this.handleOpen);
    this.rws.removeEventListener('message', this.handleMessage);
    this.rws.removeEventListener('error', this.handleError);
    this.rws.removeEventListener('close', this.handleClose);
    this.rws = undefined;
  };
  _proto.sendMessage = function sendMessage(message) {
    if (this.rws) {
      this.rws.send(message);
    }
  };
  return RWSConnection;
}(AbstractConnection);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/context/meetingContext.js
var MeetingContext = /*#__PURE__*/function () {
  function MeetingContext(meetingController, recorder, connection, timer) {
    this.meetingController = void 0;
    this.recorder = void 0;
    this.connection = void 0;
    this.meetingConnection = void 0;
    this.meetingConfig = void 0;
    this.messageInput = void 0;
    this.messageOutput = void 0;
    this.timer = void 0;
    this.isAlibabaVersion = false;
    this.meetingController = meetingController;
    this.recorder = recorder;
    this.connection = connection;
    this.timer = timer;
  }
  var _proto = MeetingContext.prototype;
  _proto.setMeetingConnection = function setMeetingConnection(meetingConnection) {
    this.meetingConnection = meetingConnection;
  };
  _proto.getMeetingConnection = function getMeetingConnection() {
    if (!this.meetingConnection) {
      throw new Error('You need init meetingConnection in MeetingContext');
    }
    return this.meetingConnection;
  };
  _proto.setMessageInput = function setMessageInput(messageInput) {
    this.messageInput = messageInput;
  };
  _proto.getMessageInput = function getMessageInput() {
    if (!this.messageInput) {
      throw new Error('You need init meesageInput in MeetingContext');
    }
    return this.messageInput;
  };
  _proto.setMessageOutput = function setMessageOutput(messageOutput) {
    this.messageOutput = messageOutput;
  };
  _proto.getMessageOutput = function getMessageOutput() {
    if (!this.messageOutput) {
      throw new Error('You need init meesageOutput in MeetingContext');
    }
    return this.messageOutput;
  };
  return MeetingContext;
}();
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(919);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/meetingConfig/meetingConfig.js

var generateConfig = function generateConfig(params) {
  return (0,esm_extends/* default */.Z)({
    format: 'opus',
    enableDenoise: false,
    enableTranslate: false
  }, params);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/prepare/prepare.js
var Prepare = /*#__PURE__*/function () {
  function Prepare() {
    var _this = this;
    this.waitingResolve = void 0;
    this.waitingReject = void 0;
    this.isResolved = false;
    this.isRejected = false;
    this.isFinished = false;
    this.waiting = void 0;
    this.waiting = new Promise(function (resolve, reject) {
      _this.waitingResolve = resolve;
      _this.waitingReject = reject;
    });
  }
  var _proto = Prepare.prototype;
  _proto.resolve = function resolve() {
    this.isResolved = true;
    this.isFinished = true;
    if (this.waitingResolve) {
      this.waitingResolve();
    }
  };
  _proto.reject = function reject(reason) {
    this.isRejected = true;
    this.isFinished = true;
    if (this.waitingReject) {
      this.waitingReject(reason);
    }
  };
  return Prepare;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/prepare/timeoutPrepare.js


var TimeoutPrepare = /*#__PURE__*/function (_Prepare) {
  (0,inheritsLoose/* default */.Z)(TimeoutPrepare, _Prepare);
  function TimeoutPrepare(timeoutHandler, during) {
    var _this;
    _this = _Prepare.call(this) || this;
    _this.timeout = void 0;
    _this.timeout = setTimeout(function () {
      _this.reject();
      timeoutHandler();
    }, during);
    return _this;
  }
  var _proto = TimeoutPrepare.prototype;
  _proto.resolve = function resolve() {
    clearTimeout(this.timeout);
    _Prepare.prototype.resolve.call(this);
  };
  _proto.reject = function reject(reason) {
    clearTimeout(this.timeout);
    _Prepare.prototype.reject.call(this, reason);
  };
  return TimeoutPrepare;
}(Prepare);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/meeting/meetingModel.js
var meetingModel = __webpack_require__(2414);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/meeting/meetingController.js








var MeetingController = /*#__PURE__*/function (_Eventer) {
  (0,inheritsLoose/* default */.Z)(MeetingController, _Eventer);
  function MeetingController() {
    var _this;
    _this = _Eventer.call(this) || this;
    _this.model = new meetingModel/* MeetingModel */.$();
    _this.meetingConfig = void 0;
    _this.onIsReadyToSendAudioChange = function (event) {
      _this.emit('isReadyToSendAudioChange', event);
    };
    _this.onMeetingStateChange = function (event) {
      _this.emit('meetingStateChange', event);
    };
    _this.model = new meetingModel/* MeetingModel */.$();
    _this.listen();
    return _this;
  }
  var _proto = MeetingController.prototype;
  _proto.listen = function listen() {
    this.model.on('meetingStateChange', this.onMeetingStateChange);
    this.model.on('isReadyToSendAudioChange', this.onIsReadyToSendAudioChange);
  };
  _proto.unlisten = function unlisten() {
    this.model.off('meetingStateChange', this.onMeetingStateChange);
    this.model.off('isReadyToSendAudioChange', this.onIsReadyToSendAudioChange);
  };
  _proto.getMeetingState = function getMeetingState() {
    return this.model.state;
  };
  _proto.isMeetingIdle = function isMeetingIdle() {
    return this.model.isMeetingIdle();
  };
  _proto.isEnteringMeeting = function isEnteringMeeting() {
    return this.model.isEnteringMeeting();
  };
  _proto.isLeavingMeeting = function isLeavingMeeting() {
    return this.model.isLeavingMeeting();
  };
  _proto.isLikeInMeeting = function isLikeInMeeting() {
    return this.model.isLikeInMeeting();
  };
  _proto.isInMeeting = function isInMeeting() {
    return this.model.isInMeeting();
  };
  _proto.setIsReadyToSendAudio = function setIsReadyToSendAudio(isReadyToSendAudio) {
    this.model.setIsReadyToSendAudio(isReadyToSendAudio);
  };
  _proto.getIsReadyToSendAudio = function getIsReadyToSendAudio() {
    return this.model.getIsReadyToSendAudio();
  };
  _proto.startMeeting = /*#__PURE__*/function () {
    var _startMeeting = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(meetingConfig) {
      var genratedConfig, errorObject;
      return regenerator_default().wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              if (this.isMeetingIdle()) {
                _context.next = 2;
                break;
              }
              return _context.abrupt("return");
            case 2:
              genratedConfig = generateConfig(meetingConfig);
              this.meetingConfig = genratedConfig;
              _context.prev = 4;
              this.emit('meetingConfigChange', {
                meetingConfig: genratedConfig
              });
              _context.next = 8;
              return this.prepareStart();
            case 8:
              this.model.setMeetingState(meetingModel/* MeetingState */.k.InMeeting); // eslint-disable-next-line alidocs/catch-call-function

              _context.next = 19;
              break;
            case 11:
              _context.prev = 11;
              _context.t0 = _context["catch"](4);
              report_report('开始会议失败', JSON.stringify(_context.t0));
              console.error(_context.t0);
              errorObject = _context.t0 == null ? void 0 : _context.t0.error;
              if (errorObject) {
                this.emit('detectStartMeetingFailed', {
                  error: errorObject
                });
              }
              this.model.setMeetingState(meetingModel/* MeetingState */.k.Idle);
              throw _context.t0;
            case 19:
            case "end":
              return _context.stop();
          }
        }
      }, _callee, this, [[4, 11]]);
    }));
    function startMeeting(_x) {
      return _startMeeting.apply(this, arguments);
    }
    return startMeeting;
  }();
  _proto.prepareStart = /*#__PURE__*/function () {
    var _prepareStart = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2() {
      var prepare;
      return regenerator_default().wrap(function _callee2$(_context2) {
        while (1) {
          switch (_context2.prev = _context2.next) {
            case 0:
              this.model.setMeetingState(meetingModel/* MeetingState */.k.PrepareStart);
              prepare = new TimeoutPrepare(function () {
                report_report('开始会议超时');
              }, 5000);
              this.emit('requestPrepareStartMeeting', {
                prepare: prepare,
                isResume: false
              });
              _context2.next = 5;
              return prepare.waiting;
            case 5:
              return _context2.abrupt("return", _context2.sent);
            case 6:
            case "end":
              return _context2.stop();
          }
        }
      }, _callee2, this);
    }));
    function prepareStart() {
      return _prepareStart.apply(this, arguments);
    }
    return prepareStart;
  }();
  _proto.pauseMeeing = /*#__PURE__*/function () {
    var _pauseMeeing = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee3() {
      return regenerator_default().wrap(function _callee3$(_context3) {
        while (1) {
          switch (_context3.prev = _context3.next) {
            case 0:
              if (this.model.isMeetingState(meetingModel/* MeetingState */.k.InMeeting)) {
                _context3.next = 2;
                break;
              }
              return _context3.abrupt("return");
            case 2:
              _context3.prev = 2;
              _context3.next = 5;
              return this.preparePause();
            case 5:
              _context3.next = 11;
              break;
            case 7:
              _context3.prev = 7;
              _context3.t0 = _context3["catch"](2);
              report_report('暂停会议失败，按正常处理', JSON.stringify(_context3.t0));
              this.emit('detectPauseMeetingFailed', {});
            case 11:
              _context3.prev = 11;
              this.model.setMeetingState(meetingModel/* MeetingState */.k.Pause);
              return _context3.finish(11);
            case 14:
            case "end":
              return _context3.stop();
          }
        }
      }, _callee3, this, [[2, 7, 11, 14]]);
    }));
    function pauseMeeing() {
      return _pauseMeeing.apply(this, arguments);
    }
    return pauseMeeing;
  }();
  _proto.preparePause = /*#__PURE__*/function () {
    var _preparePause = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee4() {
      var prepare;
      return regenerator_default().wrap(function _callee4$(_context4) {
        while (1) {
          switch (_context4.prev = _context4.next) {
            case 0:
              this.model.setMeetingState(meetingModel/* MeetingState */.k.PreparePause);
              prepare = new TimeoutPrepare(function () {
                report_report('暂停会议超时');
              }, 10000);
              this.emit('requestPrepareStopMeeting', {
                prepare: prepare,
                isPause: true
              });
              _context4.next = 5;
              return prepare.waiting;
            case 5:
              return _context4.abrupt("return", _context4.sent);
            case 6:
            case "end":
              return _context4.stop();
          }
        }
      }, _callee4, this);
    }));
    function preparePause() {
      return _preparePause.apply(this, arguments);
    }
    return preparePause;
  }();
  _proto.resumeMeeting = /*#__PURE__*/function () {
    var _resumeMeeting = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee5() {
      var errorObject;
      return regenerator_default().wrap(function _callee5$(_context5) {
        while (1) {
          switch (_context5.prev = _context5.next) {
            case 0:
              if (this.model.isMeetingState(meetingModel/* MeetingState */.k.Pause)) {
                _context5.next = 2;
                break;
              }
              return _context5.abrupt("return");
            case 2:
              _context5.prev = 2;
              _context5.next = 5;
              return this.prepareResume();
            case 5:
              this.model.setMeetingState(meetingModel/* MeetingState */.k.InMeeting); // eslint-disable-next-line alidocs/catch-call-function

              _context5.next = 16;
              break;
            case 8:
              _context5.prev = 8;
              _context5.t0 = _context5["catch"](2);
              report_report('恢复会议失败', JSON.stringify(_context5.t0));
              console.error(_context5.t0);
              errorObject = _context5.t0 == null ? void 0 : _context5.t0.error;
              if (errorObject) {
                this.emit('detectResumeMeetingFailed', {
                  error: errorObject
                });
              }
              this.model.setMeetingState(meetingModel/* MeetingState */.k.Pause);
              throw _context5.t0;
            case 16:
            case "end":
              return _context5.stop();
          }
        }
      }, _callee5, this, [[2, 8]]);
    }));
    function resumeMeeting() {
      return _resumeMeeting.apply(this, arguments);
    }
    return resumeMeeting;
  }();
  _proto.prepareResume = /*#__PURE__*/function () {
    var _prepareResume = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee6() {
      var prepare;
      return regenerator_default().wrap(function _callee6$(_context6) {
        while (1) {
          switch (_context6.prev = _context6.next) {
            case 0:
              this.model.setMeetingState(meetingModel/* MeetingState */.k.PrepareResume);
              prepare = new TimeoutPrepare(function () {
                report_report('恢复会议超时');
              }, 10000);
              this.emit('requestPrepareStartMeeting', {
                prepare: prepare,
                isResume: true
              });
              _context6.next = 5;
              return prepare.waiting;
            case 5:
              return _context6.abrupt("return", _context6.sent);
            case 6:
            case "end":
              return _context6.stop();
          }
        }
      }, _callee6, this);
    }));
    function prepareResume() {
      return _prepareResume.apply(this, arguments);
    }
    return prepareResume;
  }();
  _proto.stopMeeting = /*#__PURE__*/function () {
    var _stopMeeting = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee7() {
      return regenerator_default().wrap(function _callee7$(_context7) {
        while (1) {
          switch (_context7.prev = _context7.next) {
            case 0:
              if (!(!this.model.isMeetingState(meetingModel/* MeetingState */.k.InMeeting) && !this.model.isMeetingState(meetingModel/* MeetingState */.k.Pause))) {
                _context7.next = 2;
                break;
              }
              return _context7.abrupt("return");
            case 2:
              _context7.prev = 2;
              if (!(this.model.isMeetingState(meetingModel/* MeetingState */.k.InMeeting) || this.model.isMeetingState(meetingModel/* MeetingState */.k.Pause))) {
                _context7.next = 6;
                break;
              }
              _context7.next = 6;
              return this.prepareStop();
            case 6:
              _context7.next = 12;
              break;
            case 8:
              _context7.prev = 8;
              _context7.t0 = _context7["catch"](2);
              this.emit('detectStopMeetingFailed', {});
              report_report('停止会议失败，按正常处理', JSON.stringify(_context7.t0));
            case 12:
              _context7.prev = 12;
              this.model.setMeetingState(meetingModel/* MeetingState */.k.Stop);
              return _context7.finish(12);
            case 15:
            case "end":
              return _context7.stop();
          }
        }
      }, _callee7, this, [[2, 8, 12, 15]]);
    }));
    function stopMeeting() {
      return _stopMeeting.apply(this, arguments);
    }
    return stopMeeting;
  }();
  _proto.prepareStop = /*#__PURE__*/function () {
    var _prepareStop = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee8() {
      var prepare;
      return regenerator_default().wrap(function _callee8$(_context8) {
        while (1) {
          switch (_context8.prev = _context8.next) {
            case 0:
              this.model.setMeetingState(meetingModel/* MeetingState */.k.PrepareStop);
              prepare = new TimeoutPrepare(function () {
                report_report('停止会议超时');
              }, 10000);
              this.emit('requestPrepareStopMeeting', {
                prepare: prepare,
                isPause: false
              });
              _context8.next = 5;
              return prepare.waiting;
            case 5:
              return _context8.abrupt("return", _context8.sent);
            case 6:
            case "end":
              return _context8.stop();
          }
        }
      }, _callee8, this);
    }));
    function prepareStop() {
      return _prepareStop.apply(this, arguments);
    }
    return prepareStop;
  }();
  _proto.requestPrepareFlushRecordBuffer = /*#__PURE__*/function () {
    var _requestPrepareFlushRecordBuffer = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee9(timeout) {
      var prepare;
      return regenerator_default().wrap(function _callee9$(_context9) {
        while (1) {
          switch (_context9.prev = _context9.next) {
            case 0:
              if (timeout === void 0) {
                timeout = 3000;
              }
              prepare = new TimeoutPrepare(function () {}, timeout);
              this.emit('requestPrepareFlushRecordBuffer', {
                prepare: prepare
              });
              _context9.next = 5;
              return prepare.waiting;
            case 5:
              return _context9.abrupt("return", _context9.sent);
            case 6:
            case "end":
              return _context9.stop();
          }
        }
      }, _callee9, this);
    }));
    function requestPrepareFlushRecordBuffer(_x2) {
      return _requestPrepareFlushRecordBuffer.apply(this, arguments);
    }
    return requestPrepareFlushRecordBuffer;
  }();
  _proto.updateVocabularies = function updateVocabularies(vocabularies) {
    var prepare = new TimeoutPrepare(function () {}, 3000);
    this.emit('requestPrepareUpdateVocabularies', {
      prepare: prepare,
      vocabularies: vocabularies
    });
    return prepare.waiting;
  };
  _proto.updateSmartReplaceWords = function updateSmartReplaceWords(smartWordsMap) {
    var prepare = new TimeoutPrepare(function () {}, 3000);
    this.emit('requestPrepareUpdateSmartReplaceWords', {
      prepare: prepare,
      smartWordsMap: smartWordsMap
    });
    return prepare.waiting;
  };
  _proto.detectConnectionRetrySuccess = function detectConnectionRetrySuccess() {
    report_report('转写服务重连成功');
    this.emit('detectConnectionRetrySuccess', {});
  };
  _proto.detectConnectionRetryTimeout = function detectConnectionRetryTimeout() {
    report_report('转写服务重连超时');
    this.emit('detectConnectionRetryTimeout', {});
  };
  _proto.detectConnectionRetry = function detectConnectionRetry() {
    report_report('转写服务需要重连');
    this.emit('detectConnectionRetry', {});
  };
  _proto.detectConnectionServerDisconnect = function detectConnectionServerDisconnect() {
    report_report('转写服务主动断连');
    this.emit('detectConnectionServerDisconnect', {});
  };
  _proto.enableTranslate = function enableTranslate(targetLanguage) {
    var _this2 = this;
    var prepare = new TimeoutPrepare(function () {}, 3000); // 3s timeout

    this.emit('requestPrepareEnableTranslate', {
      prepare: prepare,
      targetLanguage: targetLanguage
    });
    prepare.waiting.then(function () {
      if (!_this2.meetingConfig) {
        return;
      }
      _this2.meetingConfig.enableTranslate = true;
      _this2.meetingConfig.targetLanguage = targetLanguage;
    });
    return prepare.waiting;
  };
  _proto.disableTranslate = function disableTranslate() {
    var _this3 = this;
    var prepare = new TimeoutPrepare(function () {}, 3000);
    this.emit('requestPrepareDisableTranslate', {
      prepare: prepare
    });
    prepare.waiting.then(function () {
      if (!_this3.meetingConfig) {
        return;
      }
      _this3.meetingConfig.enableTranslate = false;
    });
    return prepare.waiting;
  };
  return MeetingController;
}(eventer/* Eventer */.n);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/meetingConnection/meetingConnection.js
var MeetingConnection = /*#__PURE__*/function () {
  function MeetingConnection(meetingContext, commands) {
    var _this = this;
    this.meetingContext = void 0;
    this.stopPrepare = void 0;
    this.commands = [];
    this.onMeetingConfigChange = function (event) {
      _this.meetingContext.meetingConfig = event.meetingConfig;
    };
    this.meetingContext = meetingContext;
    this.meetingContext.setMeetingConnection(this);
    this.commands = commands;
    this.listen();
  }
  var _proto = MeetingConnection.prototype;
  _proto.listen = function listen() {
    var _this$meetingContext = this.meetingContext,
      meetingController = _this$meetingContext.meetingController,
      messageOutput = _this$meetingContext.messageOutput;
    this.commands.forEach(function (command) {
      command.onReady();
    });
    messageOutput && messageOutput.registerCommands(this.commands);
    meetingController.on('meetingConfigChange', this.onMeetingConfigChange);
  };
  _proto.unlisten = function unlisten() {
    var _this$meetingContext2 = this.meetingContext,
      meetingController = _this$meetingContext2.meetingController,
      messageOutput = _this$meetingContext2.messageOutput;
    this.commands.forEach(function (command) {
      command.cleanup();
      command.onDestroy();
    });
    messageOutput && messageOutput.unregisterCommands();
    meetingController.off('meetingConfigChange', this.onMeetingConfigChange);
  };
  return MeetingConnection;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/utils/uuid.js
var getUUID = function getUUID(len) {
  if (len === void 0) {
    len = 32;
  }

  // 16位16进制字符
  var digits = '0123456789abcdef';
  var str = '';
  for (var i = 0; i < len; i += 1) {
    var rand = Math.floor(Math.random() * digits.length);
    str += digits[rand];
  }
  return str;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/message/messageInput.js

var MessageInput = /*#__PURE__*/function () {
  function MessageInput(context) {
    this.context = void 0;
    this.taskId = void 0;
    this.namespace = 'SpeechTranscriber';
    this.context = context;
    this.taskId = getUUID();
  }
  var _proto = MessageInput.prototype;
  _proto.createMessage = function createMessage(name, payload) {
    var meetingConfig = this.context.meetingConfig;
    if (!meetingConfig) {
      return;
    }
    var appKey = meetingConfig.appKey;
    var header = {
      task_id: this.taskId,
      message_id: getUUID(),
      namespace: this.namespace,
      name: name,
      appkey: appKey
    };
    return {
      header: header,
      payload: payload,
      context: {}
    };
  };
  _proto.send = function send(name, payload) {
    var connection = this.context.connection;
    connection.sendMessage(JSON.stringify(this.createMessage(name, payload)));
  };
  _proto.sendArrayBuffer = function sendArrayBuffer(arrayBuffer) {
    var connection = this.context.connection;
    connection.sendMessage(arrayBuffer);
  };
  return MessageInput;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/message/messageOutput.js
var MessageOutput = /*#__PURE__*/function () {
  function MessageOutput(meetingContext) {
    var _this = this;
    this.meetingContext = void 0;
    this.messageKeyAndCommandMapping = {};
    this.handleMessage = function (msg) {
      var message = JSON.parse(msg.data);
      var _ref = (message == null ? void 0 : message.header) || {},
        name = _ref.name;
      if (name && _this.messageKeyAndCommandMapping[name]) {
        var commands = _this.messageKeyAndCommandMapping[name] || [];
        var starCommands = _this.messageKeyAndCommandMapping['*'];
        starCommands == null ? void 0 : starCommands.forEach(function (command) {
          if (!commands.includes(command)) {
            commands.push(command);
          }
        });
        commands.forEach(function (command) {
          command.onMessage(message);
        });
      }
    };
    this.meetingContext = meetingContext;
    this.listen();
  }
  var _proto = MessageOutput.prototype;
  _proto.listen = function listen() {
    var connection = this.meetingContext.connection;
    connection.on('message', this.handleMessage);
  };
  _proto.unlisten = function unlisten() {
    var connection = this.meetingContext.connection;
    connection.off('message', this.handleMessage);
  };
  _proto.registerCommands = function registerCommands(commands) {
    var _this2 = this;
    commands.forEach(function (command) {
      if (command.watchMessageKeys && command.watchMessageKeys.length > 0) {
        command.watchMessageKeys.forEach(function (key) {
          if (!_this2.messageKeyAndCommandMapping[key]) {
            _this2.messageKeyAndCommandMapping[key] = [];
          }
          _this2.messageKeyAndCommandMapping[key].push(command);
        });
      }
    });
  };
  _proto.unregisterCommands = function unregisterCommands() {
    this.messageKeyAndCommandMapping = {};
  };
  return MessageOutput;
}();
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/assertThisInitialized.js
var assertThisInitialized = __webpack_require__(2901);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/abstractCommand.js
var AbstractCommand = /*#__PURE__*/function () {
  function AbstractCommand(context) {
    this.context = void 0;
    this.watchMessageKeys = [];
    this.cleanups = [];
    this.context = context;
  }
  var _proto = AbstractCommand.prototype;
  _proto.onReady = function onReady() {};
  _proto.onDestroy = function onDestroy() {};
  _proto.sendMessage = function sendMessage(name, payload) {
    if (payload === void 0) {
      payload = {};
    }
    this.context.getMessageInput().send(name, payload);
  };
  _proto.sendArrayBuffer = function sendArrayBuffer(arrayBuffer) {
    this.context.getMessageInput().sendArrayBuffer(arrayBuffer);
  };
  _proto.onMessage = function onMessage(_message) {};
  _proto.needCleanups = function needCleanups() {
    for (var _len = arguments.length, cleanups = new Array(_len), _key = 0; _key < _len; _key++) {
      cleanups[_key] = arguments[_key];
    }
    this.cleanups = this.cleanups.concat(cleanups);
  };
  _proto.cleanup = function cleanup() {
    this.cleanups.forEach(function (cleanup) {
      cleanup();
    });
    this.cleanups = [];
  };
  return AbstractCommand;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/opusCommand/abstractOpusAudioSenderDelegate.js
var AbstractOpusAudioSenderDelegate = function AbstractOpusAudioSenderDelegate() {};
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/throttle.js
var throttle = __webpack_require__(1812);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/opusCommand/opusAudioSenderDelegate.js




var OpusAudioSenderDelegate = /*#__PURE__*/function (_AbstractOpusAudioSen) {
  (0,inheritsLoose/* default */.Z)(OpusAudioSenderDelegate, _AbstractOpusAudioSen);
  function OpusAudioSenderDelegate(command) {
    var _this;
    _this = _AbstractOpusAudioSen.call(this) || this;
    _this.command = void 0;
    _this.context = void 0;
    _this.throttleReport = (0,throttle/* default */.Z)(report_report, 500, {
      leading: true,
      trailing: false
    });
    _this.command = command;
    _this.context = command.context;
    return _this;
  }
  var _proto = OpusAudioSenderDelegate.prototype;
  _proto.isCanSendBuffer = function isCanSendBuffer() {
    var _this$context = this.context,
      connection = _this$context.connection,
      meetingController = _this$context.meetingController;
    if (!connection.isConnected() || !meetingController.isLikeInMeeting()) {
      this.throttleReport('无法发送录音数据，ws未连接或未在会议中', "isConnected=" + connection.isConnected() + " & isLikeInMeeting=" + meetingController.isLikeInMeeting());
      return false;
    }
    if (!meetingController.getIsReadyToSendAudio()) {
      this.throttleReport('无法发送录音数据, 会议启动中', "isReadyToSendAudio=" + meetingController.getIsReadyToSendAudio());
      return false;
    }
    return true;
  };
  _proto.sendBuffer = function sendBuffer(buffer) {
    this.command.sendArrayBuffer(buffer);
  };
  return OpusAudioSenderDelegate;
}(AbstractOpusAudioSenderDelegate);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/opusCommand/opusAudioRecordBuffer.js
var OPUS_HEADER_LENGTH = 2;
var OpusAudioRecordBuffer = /*#__PURE__*/function () {
  function OpusAudioRecordBuffer() {
    this.recordCount = 0;
    this.consumeCount = 0;
    this.audioBuffers = [];
    this.cahcedHeader = [];
  }
  var _proto = OpusAudioRecordBuffer.prototype;
  _proto.getCachedHeader = function getCachedHeader() {
    return this.cahcedHeader;
  };
  _proto.onRecordStop = function onRecordStop() {
    this.recordCount = 0;
    this.consumeCount = 0;
    this.audioBuffers = [];
    this.cahcedHeader = [];
  };
  _proto.productBuffer = function productBuffer(arrayBuffer) {
    this.audioBuffers.push(arrayBuffer);
    if (this.recordCount < OPUS_HEADER_LENGTH) {
      this.cahcedHeader.push(arrayBuffer);
    }
    this.recordCount++;
  };
  _proto.consumeBuffer = function consumeBuffer() {
    var buffer = this.audioBuffers.shift();
    if (buffer) {
      this.consumeCount++;
      return buffer;
    }
  };
  _proto.isConsumeHeader = function isConsumeHeader() {
    return this.consumeCount >= OPUS_HEADER_LENGTH;
  };
  _proto.isCanConsume = function isCanConsume() {
    return this.audioBuffers.length > 0;
  };
  return OpusAudioRecordBuffer;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/opusCommand/opusHeaderBuffer.js
var OpusHeaderBuffer = /*#__PURE__*/function () {
  function OpusHeaderBuffer(headerBuffer) {
    this.headerBuffer = [];
    this.headerBuffer = headerBuffer.slice();
  }
  var _proto = OpusHeaderBuffer.prototype;
  _proto.consumeBuffer = function consumeBuffer() {
    return this.headerBuffer.shift();
  };
  _proto.isCanConsume = function isCanConsume() {
    return this.headerBuffer.length > 0;
  };
  return OpusHeaderBuffer;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/utils/timeConsumingLogger.js

var TimeConsumingLogger = /*#__PURE__*/function () {
  // 上报信息
  // 耗时等级从高到底
  // 最低等级耗时
  // 耗时间隔
  // 节流timer
  function TimeConsumingLogger(levels) {
    var _this$levels$slice, _this$levels$slice$;
    this.message = '';
    this.levels = [{
      level: '耗时等级3',
      interval: 800
    }, {
      level: '耗时等级2',
      interval: 500,
      frequency: 500
    }, {
      level: '耗时等级1',
      interval: 300,
      frequency: 1000
    }];
    this.minLevelInterval = 0;
    this.preTime = 0;
    this.throttleTimer = null;
    if (levels) {
      levels.sort(function (pre, next) {
        return next.interval - pre.interval;
      });
      this.levels = levels;
    }
    this.minLevelInterval = ((_this$levels$slice = this.levels.slice(-1)) == null ? void 0 : (_this$levels$slice$ = _this$levels$slice[0]) == null ? void 0 : _this$levels$slice$.interval) || 0;
  } // 记录耗时

  var _proto = TimeConsumingLogger.prototype;
  _proto.record = function record(message) {
    this.message = message;
    if (this.preTime) {
      this.report(Date.now() - this.preTime);
    }
    this.preTime = Date.now();
  };
  _proto.reset = function reset() {
    report_report(this.message, '最后一次记录时间', "" + this.preTime);
    this.preTime = 0;
    this.throttleTimer = null;
  } // 上报耗时数据
  ;

  _proto.report = function report(interval) {
    var _this = this;
    var reportLevel = null;
    for (var i = 0; i < this.levels.length; i++) {
      // 比最低耗时等级还低，结束比较不上报
      if (interval < this.minLevelInterval) {
        break;
      } // 大于定义的耗时等级，需要上报数据记录

      if (interval > this.levels[i].interval) {
        reportLevel = this.levels[i];
        break;
      }
    }
    if (reportLevel) {
      if (this.throttleTimer) return;
      var _reportLevel = reportLevel,
        level = _reportLevel.level,
        levelInterval = _reportLevel.interval,
        frequency = _reportLevel.frequency;
      this.throttleTimer = setTimeout(function () {
        report_report(_this.message, "" + interval, level, "" + levelInterval);
        _this.throttleTimer = null;
      }, frequency || 0);
    }
  };
  return TimeConsumingLogger;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/opusCommand/opusAudioSender.js






var OpusAudioSender = /*#__PURE__*/function (_Eventer) {
  (0,inheritsLoose/* default */.Z)(OpusAudioSender, _Eventer);
  function OpusAudioSender(delegate) {
    var _this;
    _this = _Eventer.call(this) || this;
    _this.delegate = void 0;
    _this.opusAudioRecordBuffer = new OpusAudioRecordBuffer();
    _this.opusHeaderBuffer = void 0;
    _this.interval = void 0;
    _this.isRunning = false;
    _this.firstSendDate = void 0;
    _this.lastSendDate = void 0;
    _this.sendPackageCount = 0;
    _this.sendTotalSize = 0;
    _this.timeConsumingLogger = new TimeConsumingLogger();
    _this.delegate = delegate;
    return _this;
  }
  var _proto = OpusAudioSender.prototype;
  _proto.clearLog = function clearLog() {
    this.firstSendDate = undefined;
    this.lastSendDate = undefined;
    this.sendPackageCount = 0;
    this.sendTotalSize = 0;
  };
  _proto.sendLog = function sendLog() {
    report_report('转写服务断开');
    report_report('音频发包总次数', String(this.sendPackageCount));
    report_report('音频发包总大小', this.sendTotalSize + "kb");
    if (this.firstSendDate) {
      report_report('首次发包时间', String(this.firstSendDate.getTime()));
    }
    if (this.lastSendDate) {
      report_report('末次发包时间', String(this.lastSendDate.getTime()));
    }
    this.clearLog();
  };
  _proto.start = function start() {
    if (this.isRunning) {
      return;
    }
    this.isRunning = true;
    this.startInterval();
  };
  _proto.stop = function stop() {
    if (!this.isRunning) {
      return;
    }
    this.sendLog();
    this.isRunning = false;
    this.stopInterval();
    this.timeConsumingLogger.reset();
  };
  _proto.onRecordStop = function onRecordStop() {
    this.opusAudioRecordBuffer.onRecordStop();
  };
  _proto.onConnectionStart = function onConnectionStart() {
    if (this.opusAudioRecordBuffer.isConsumeHeader()) {
      this.opusHeaderBuffer = new OpusHeaderBuffer(this.opusAudioRecordBuffer.getCachedHeader());
    }
  };
  _proto.onProductBuffer = function onProductBuffer(buffer) {
    this.opusAudioRecordBuffer.productBuffer(buffer);
    if (this.isRunning) {
      this.startInterval();
    }
  };
  _proto.startInterval = function startInterval() {
    var _this2 = this;
    if (this.interval) {
      return;
    }
    this.interval = setInterval(function () {
      _this2.sendBufferIsNeed();
    }, 20);
  };
  _proto.stopInterval = function stopInterval() {
    if (this.interval) {
      clearInterval(this.interval);
      this.interval = undefined;
    }
  };
  _proto.sendBufferIsNeed = function sendBufferIsNeed() {
    if (!this.delegate.isCanSendBuffer()) {
      return;
    }
    var willConsumeCount = 50;
    while (willConsumeCount-- > 0) {
      var buffer = this.getConsumeBuffer();
      if (!buffer) {
        break;
      }
      this.delegate.sendBuffer(buffer);
      this.timeConsumingLogger.record('录音数据发送数据耗时');
      if (!this.firstSendDate) {
        this.firstSendDate = new Date();
      }
      this.lastSendDate = new Date();
      this.sendPackageCount += 1;
      this.sendTotalSize += buffer.byteLength / 1024;
    }
    if (!this.opusAudioRecordBuffer.isCanConsume()) {
      this.emit('detectAudioBufferEmpty', {});
      this.stopInterval();
    }
  };
  _proto.getConsumeBuffer = function getConsumeBuffer() {
    var buffer;
    if (this.opusHeaderBuffer) {
      buffer = this.opusHeaderBuffer.consumeBuffer();
      if (!this.opusHeaderBuffer.isCanConsume()) {
        delete this.opusHeaderBuffer;
      }
    }
    if (!buffer) {
      buffer = this.opusAudioRecordBuffer.consumeBuffer();
    }
    return buffer;
  };
  return OpusAudioSender;
}(eventer/* Eventer */.n);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/opusCommand/opusCommand.js







var OpusCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(OpusCommand, _AbstractCommand);
  function OpusCommand(context) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.flushPrepare = void 0;
    _this.opusAudioSender = void 0;
    _this.timeConsumingLogger = new TimeConsumingLogger();
    _this.handleConnectionOpen = function () {
      if (!_this.isVaild()) {
        return;
      }
      _this.opusAudioSender.onConnectionStart();
      _this.opusAudioSender.start();
    };
    _this.handleConnectionClose = function () {
      if (!_this.isVaild()) {
        return;
      }
      _this.opusAudioSender.stop();
    };
    _this.handleDataavailable = function (event) {
      _this.timeConsumingLogger.record('录音数据收取数据耗时');
      if (!_this.isVaild()) {
        return;
      }
      _this.opusAudioSender.onProductBuffer(event.data);
    };
    _this.handleIsReadyToSendAudioChange = function (event) {
      if (!_this.isVaild()) {
        return;
      }
      var isReadyToSendAudio = event.isReadyToSendAudio;
      if (isReadyToSendAudio) {
        _this.opusAudioSender.start();
      } else {
        _this.opusAudioSender.stop();
      }
    };
    _this.handleRecorderStop = function () {
      _this.opusAudioSender.onRecordStop();
      _this.timeConsumingLogger.reset();
    };
    _this.handleRequestPrepareFlushRecordBuffer = function (_ref) {
      var prepare = _ref.prepare;
      if (!_this.isVaild()) {
        return;
      }
      _this.flushPrepare = prepare;
      _this.opusAudioSender.start();
    };
    _this.handleDetectAudioBufferEmpty = function () {
      if (_this.flushPrepare) {
        _this.flushPrepare.resolve();
        _this.flushPrepare = undefined;
      }
    };
    _this.handleOnLine = function () {
      report_report('网络恢复', Date.now().toString());
    };
    _this.handleOffLine = function () {
      report_report('网络断开', Date.now().toString());
    };
    var delegate = new OpusAudioSenderDelegate((0,assertThisInitialized/* default */.Z)(_this));
    _this.opusAudioSender = new OpusAudioSender(delegate);
    return _this;
  }
  var _proto = OpusCommand.prototype;
  _proto.onReady = function onReady() {
    var _this$context = this.context,
      recorder = _this$context.recorder,
      connection = _this$context.connection,
      meetingController = _this$context.meetingController;
    connection.on('open', this.handleConnectionOpen);
    connection.on('close', this.handleConnectionClose);
    recorder.on('stop', this.handleRecorderStop);
    recorder.on('dataavailable', this.handleDataavailable);
    meetingController.on('isReadyToSendAudioChange', this.handleIsReadyToSendAudioChange);
    meetingController.on('requestPrepareFlushRecordBuffer', this.handleRequestPrepareFlushRecordBuffer);
    this.opusAudioSender.on('detectAudioBufferEmpty', this.handleDetectAudioBufferEmpty);
    window.addEventListener('online', this.handleOnLine);
    window.addEventListener('offline', this.handleOffLine);
  };
  _proto.onDestroy = function onDestroy() {
    var _this$context2 = this.context,
      connection = _this$context2.connection,
      recorder = _this$context2.recorder,
      meetingController = _this$context2.meetingController;
    connection.off('open', this.handleConnectionOpen);
    connection.on('close', this.handleConnectionClose);
    recorder.on('stop', this.handleRecorderStop);
    recorder.off('dataavailable', this.handleDataavailable);
    meetingController.off('isReadyToSendAudioChange', this.handleIsReadyToSendAudioChange);
    meetingController.off('requestPrepareFlushRecordBuffer', this.handleRequestPrepareFlushRecordBuffer);
    this.opusAudioSender.off('detectAudioBufferEmpty', this.handleDetectAudioBufferEmpty);
    window.removeEventListener('online', this.handleOnLine);
    window.removeEventListener('offline', this.handleOffLine);
  };
  _proto.isVaild = function isVaild() {
    var meetingConfig = this.context.meetingConfig;
    return meetingConfig && meetingConfig.format === 'opus';
  };
  return OpusCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/error/taskFailedError.js
var TaskFailedError = /*#__PURE__*/function () {
  function TaskFailedError(status) {
    this.status = void 0;
    this.status = status;
  }
  var _proto = TaskFailedError.prototype;
  _proto.isConcurrencyExceed = function isConcurrencyExceed() {
    return this.status === 43040001;
  };
  _proto.isInvaildMeeting = function isInvaildMeeting() {
    return this.status === 43040002;
  };
  _proto.isOtherError = function isOtherError() {
    return !this.isConcurrencyExceed() && !this.isInvaildMeeting();
  };
  return TaskFailedError;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/startCommand.js







var StartCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(StartCommand, _AbstractCommand);
  function StartCommand() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCommand.call.apply(_AbstractCommand, [this].concat(args)) || this;
    _this.watchMessageKeys = ['TranscriptionStarted', 'TaskFailed'];
    _this.startPrepare = void 0;
    _this.connectPrepare = void 0;
    _this.handleRequestPrepareStartMeeting = /*#__PURE__*/function () {
      var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(event) {
        var _this$context, recorder, connection, meetingConfig, meetingController, prepare, isResume;
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _this$context = _this.context, recorder = _this$context.recorder, connection = _this$context.connection, meetingConfig = _this$context.meetingConfig, meetingController = _this$context.meetingController;
                prepare = event.prepare, isResume = event.isResume;
                _this.startPrepare = prepare;
                if (!(!meetingConfig || !meetingConfig.serverUrl)) {
                  _context.next = 5;
                  break;
                }
                return _context.abrupt("return");
              case 5:
                _context.prev = 5;
                if (isResume) {
                  recorder.resume();
                } else {
                  recorder.start();
                }
                meetingController.setIsReadyToSendAudio(false);
                connection.connect(meetingConfig.serverUrl);
                _context.next = 11;
                return prepare.waiting;
              case 11:
                _context.next = 18;
                break;
              case 13:
                _context.prev = 13;
                _context.t0 = _context["catch"](5);
                recorder.stop();
                connection.disconnect();
                prepare.reject();
              case 18:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, null, [[5, 13]]);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();
    _this.handleConnectionOpen = function () {
      var meetingConfig = _this.context.meetingConfig;
      if (!meetingConfig) {
        return;
      }
      _this.connectPrepare = new Prepare();
      _this.connectPrepare.waiting.then(function () {
        var _this$startPrepare;
        (_this$startPrepare = _this.startPrepare) == null ? void 0 : _this$startPrepare.resolve();
      })["catch"](function () {
        var _this$startPrepare2;
        (_this$startPrepare2 = _this.startPrepare) == null ? void 0 : _this$startPrepare2.reject();
      });
      var payload = {
        format: meetingConfig.format,
        enable_denoise: meetingConfig.enableDenoise
      };
      if (_this.context.isAlibabaVersion) {
        Object.assign(payload, {
          enable_translate: meetingConfig.enableTranslate,
          target_language: meetingConfig.targetLanguage
        });
      } else {
        Object.assign(payload, {
          translate_result_enabled: meetingConfig.enableTranslate,
          translate_languages: meetingConfig.targetLanguage
        });
      }
      if (meetingConfig.smartWordsMap) {
        Object.assign(payload, {
          smart_replace_words: meetingConfig.smartWordsMap
        });
      }
      _this.sendMessage('StartTranscription', payload);
      report_report('发送转写请求');
    };
    _this.handleConnectionClose = function () {
      var meetingController = _this.context.meetingController;
      meetingController.setIsReadyToSendAudio(false);
    };
    return _this;
  }
  var _proto = StartCommand.prototype;
  _proto.onReady = function onReady() {
    var _this$context2 = this.context,
      meetingController = _this$context2.meetingController,
      connection = _this$context2.connection;
    this.needCleanups(meetingController.on('requestPrepareStartMeeting', this.handleRequestPrepareStartMeeting), connection.on('open', this.handleConnectionOpen), connection.on('close', this.handleConnectionClose));
  };
  _proto.onMessage = function onMessage(message) {
    if (!this.connectPrepare || this.connectPrepare.isFinished) {
      return;
    }
    var meetingController = this.context.meetingController;
    var _ref2 = (message == null ? void 0 : message.header) || {},
      name = _ref2.name,
      status = _ref2.status;
    if (name === 'TranscriptionStarted') {
      report_report('收到开始转写指令：transcriptionStarted');
      report_report('创建转写服务成功');
      this.connectPrepare.resolve();
      meetingController.setIsReadyToSendAudio(true);
    } else if (name === 'TaskFailed') {
      var _this$startPrepare3;
      report_report('创建转写服务失败');
      var error = new TaskFailedError(status);
      if (error.isConcurrencyExceed()) {
        report_report('同时进行的推流并发超过限制');
      } else if (error.isInvaildMeeting()) {
        report_report('实时会议无效或已过期');
      }
      (_this$startPrepare3 = this.startPrepare) == null ? void 0 : _this$startPrepare3.reject({
        error: error
      });
      this.connectPrepare.reject();
    }
    this.connectPrepare = undefined;
  };
  return StartCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/stopCommand.js




var StopCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(StopCommand, _AbstractCommand);
  function StopCommand() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCommand.call.apply(_AbstractCommand, [this].concat(args)) || this;
    _this.watchMessageKeys = ['TranscriptionCompleted', 'TaskFailed'];
    _this.stopPrepare = void 0;
    _this.handleRequestPrepareStopMeeting = /*#__PURE__*/function () {
      var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(event) {
        var _this$context, meetingController, connection, recorder, prepare, isPause;
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _this$context = _this.context, meetingController = _this$context.meetingController, connection = _this$context.connection, recorder = _this$context.recorder;
                prepare = event.prepare, isPause = event.isPause;
                if (isPause) {
                  recorder.pause();
                } else {
                  recorder.stop();
                }
                if (!connection.isConnected()) {
                  _context.next = 20;
                  break;
                }
                _context.prev = 4;
                _context.next = 7;
                return meetingController.requestPrepareFlushRecordBuffer();
              case 7:
                _context.prev = 7;
                meetingController.setIsReadyToSendAudio(false);
                _this.stopPrepare = prepare;
                _this.sendMessage('StopTranscription');
                _context.prev = 11;
                _context.next = 14;
                return _this.stopPrepare.waiting;
              case 14:
                _context.prev = 14;
                connection.disconnect();
                return _context.finish(14);
              case 17:
                return _context.finish(7);
              case 18:
                _context.next = 21;
                break;
              case 20:
                prepare.resolve();
              case 21:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, null, [[4,, 7, 18], [11,, 14, 17]]);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();
    _this.handleConnectionClose = function () {
      _this.stopPrepare = undefined;
    };
    return _this;
  }
  var _proto = StopCommand.prototype;
  _proto.onReady = function onReady() {
    var _this$context2 = this.context,
      meetingController = _this$context2.meetingController,
      connection = _this$context2.connection;
    this.needCleanups(meetingController.on('requestPrepareStopMeeting', this.handleRequestPrepareStopMeeting), connection.on('close', this.handleConnectionClose));
  };
  _proto.onMessage = function onMessage(message) {
    if (!this.stopPrepare) {
      return;
    }
    var _ref2 = (message == null ? void 0 : message.header) || {},
      name = _ref2.name; // 结束会议时遇到TranscriptionStarted和TaskFailed处理方案相同，都当正常结束

    if (name === 'TranscriptionCompleted' || name === 'TaskFailed') {
      if (!this.stopPrepare.isFinished) {
        this.stopPrepare.resolve();
      }
    }
    this.stopPrepare = undefined;
  };
  return StopCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/connectTimeoutCommand.js





var maxRetryDuration = 5 * 60 * 1000; // 最大重试重连时间5分钟

var ConnectTimeoutCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(ConnectTimeoutCommand, _AbstractCommand);
  function ConnectTimeoutCommand() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCommand.call.apply(_AbstractCommand, [this].concat(args)) || this;
    _this.disconnectAt = void 0;
    _this.isReconnecting = false;
    _this.handleConnectionOpen = function () {
      report_report('创建转写服务连接');
      var meetingController = _this.context.meetingController;
      _this.disconnectAt = undefined;
      if (_this.isReconnecting) {
        meetingController.detectConnectionRetrySuccess();
        _this.isReconnecting = false;
      }
    };
    _this.handleConnectionClose = /*#__PURE__*/function () {
      var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2(event) {
        var code, _this$context, meetingController, connection, disconnectDuration, isCharging, battery;
        return regenerator_default().wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                code = event.code;
                _this$context = _this.context, meetingController = _this$context.meetingController, connection = _this$context.connection; // 不在会议中或即将结束时，则不会进入重连模式

                if (!(!meetingController.isInMeeting() || meetingController.isLeavingMeeting())) {
                  _context2.next = 5;
                  break;
                }
                connection.disconnect();
                return _context2.abrupt("return");
              case 5:
                if (code === 1006 || code === 1000) {
                  if (maxRetryDuration > 0) {
                    if (!_this.disconnectAt) {
                      _this.disconnectAt = new Date();
                    }
                    disconnectDuration = new Date().getTime() - _this.disconnectAt.getTime();
                    if (disconnectDuration > maxRetryDuration) {
                      // 重连超过时间，不在重连
                      connection.disconnect();
                      meetingController.detectConnectionRetryTimeout();
                    } else {
                      if (!_this.isReconnecting) {
                        _this.isReconnecting = true;
                        meetingController.detectConnectionRetry();
                      } // 记录下重连时，是否在充电 & 电脑电量

                      if ('getBattery' in window.navigator) {
                        (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee() {
                          var _ref3, charging, level;
                          return regenerator_default().wrap(function _callee$(_context) {
                            while (1) {
                              switch (_context.prev = _context.next) {
                                case 0:
                                  _context.next = 2;
                                  return window.navigator.getBattery();
                                case 2:
                                  _context.t0 = _context.sent;
                                  if (_context.t0) {
                                    _context.next = 5;
                                    break;
                                  }
                                  _context.t0 = {};
                                case 5:
                                  _ref3 = _context.t0;
                                  charging = _ref3.charging;
                                  level = _ref3.level;
                                  isCharging = charging;
                                  battery = level;
                                case 10:
                                case "end":
                                  return _context.stop();
                              }
                            }
                          }, _callee);
                        }))();
                      }
                      report_report('转写服务尝试重连', "isCharging=" + isCharging + " & battery=" + battery);
                    }
                  }
                } else {
                  // 服务器断开
                  connection.disconnect();
                  meetingController.detectConnectionServerDisconnect();
                }
              case 6:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();
    return _this;
  }
  var _proto = ConnectTimeoutCommand.prototype;
  _proto.onReady = function onReady() {
    var connection = this.context.connection;
    this.needCleanups(connection.on('open', this.handleConnectionOpen), connection.on('close', this.handleConnectionClose));
  };
  return ConnectTimeoutCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/inMeetingCommand.js


var InMeetingCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(InMeetingCommand, _AbstractCommand);
  function InMeetingCommand() {
    return _AbstractCommand.apply(this, arguments) || this;
  }
  var _proto = InMeetingCommand.prototype;
  _proto.onMessage = function onMessage(message) {
    var meetingController = this.context.meetingController;
    if (!meetingController.isInMeeting()) {
      return;
    }
    var _ref = (message == null ? void 0 : message.header) || {},
      name = _ref.name;
    if (name === 'TaskFailed') {// todo: 识别到一些致命错误，抛出错误
    }
  };
  return InMeetingCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/vocabularyCommand.js




var VocabularyCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(VocabularyCommand, _AbstractCommand);
  function VocabularyCommand() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCommand.call.apply(_AbstractCommand, [this].concat(args)) || this;
    _this.handleRequestPrepareUpdateVocabularies = /*#__PURE__*/function () {
      var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(event) {
        var _this$context, meetingController, connection, prepare, vocabularies;
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _this$context = _this.context, meetingController = _this$context.meetingController, connection = _this$context.connection;
                prepare = event.prepare, vocabularies = event.vocabularies;
                if (!(!meetingController.isLikeInMeeting() || !connection.isConnected())) {
                  _context.next = 5;
                  break;
                }
                prepare.reject();
                return _context.abrupt("return");
              case 5:
                _this.sendMessage('ControlTranscriber', _this.getMessagePayload(vocabularies));
                prepare.resolve();
              case 7:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();
    return _this;
  }
  var _proto = VocabularyCommand.prototype;
  _proto.onReady = function onReady() {
    var meetingController = this.context.meetingController;
    this.needCleanups(meetingController.on('requestPrepareUpdateVocabularies', this.handleRequestPrepareUpdateVocabularies));
  };
  _proto.getMessagePayload = function getMessagePayload(vocabularies) {
    var vocabulariesMapping = {};
    vocabularies.forEach(function (v) {
      vocabulariesMapping[v] = 3;
    });
    var payload = {
      vocabulary: vocabulariesMapping
    };
    return payload;
  };
  return VocabularyCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/smartReplaceWordCommand.js




var SmartReplaceWordCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(SmartReplaceWordCommand, _AbstractCommand);
  function SmartReplaceWordCommand() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCommand.call.apply(_AbstractCommand, [this].concat(args)) || this;
    _this.handleRequestPrepareUpdateSmartReplaceWords = /*#__PURE__*/function () {
      var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(event) {
        var _this$context, meetingController, connection, meetingConfig, prepare, smartWordsMap;
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _this$context = _this.context, meetingController = _this$context.meetingController, connection = _this$context.connection, meetingConfig = _this$context.meetingConfig;
                prepare = event.prepare, smartWordsMap = event.smartWordsMap;
                if (meetingConfig) {
                  meetingConfig.smartWordsMap = smartWordsMap;
                }
                if (!(!meetingController.isLikeInMeeting() || !connection.isConnected())) {
                  _context.next = 6;
                  break;
                }
                prepare.resolve();
                return _context.abrupt("return");
              case 6:
                _this.sendMessage('UpdateConfig', _this.getMessagePayload(smartWordsMap));
                prepare.resolve();
              case 8:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();
    return _this;
  }
  var _proto = SmartReplaceWordCommand.prototype;
  _proto.onReady = function onReady() {
    var meetingController = this.context.meetingController;
    this.needCleanups(meetingController.on('requestPrepareUpdateSmartReplaceWords', this.handleRequestPrepareUpdateSmartReplaceWords));
  };
  _proto.getMessagePayload = function getMessagePayload(smartWordsMap) {
    var payload = {
      smart_replace_words: smartWordsMap
    };
    return payload;
  };
  return SmartReplaceWordCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/inMeetingTranslateCommand.js



var InMeetingTranslateCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(InMeetingTranslateCommand, _AbstractCommand);
  function InMeetingTranslateCommand() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCommand.call.apply(_AbstractCommand, [this].concat(args)) || this;
    _this.watchMessageKeys = ['UpdateConfigAck'];
    _this.latestTargetTranslate = '';
    _this.enableTranslateInstructionId = void 0;
    _this.enableTranslatePrepare = void 0;
    _this.disableTranslateInstructionId = void 0;
    _this.disableTranslatePrepare = void 0;
    return _this;
  }
  var _proto = InMeetingTranslateCommand.prototype;
  _proto.onReady = function onReady() {
    var _this2 = this;
    var _this$context = this.context,
      meetingController = _this$context.meetingController,
      connection = _this$context.connection;
    this.needCleanups(meetingController.on('requestPrepareEnableTranslate', function (params) {
      var prepare = params.prepare,
        targetLanguage = params.targetLanguage;
      if (!connection.isConnected()) {
        prepare.resolve();
        return;
      }
      if (_this2.enableTranslateInstructionId) {
        prepare.reject();
        return;
      }
      _this2.enableTranslatePrepare = prepare;
      _this2.latestTargetTranslate = targetLanguage;
      _this2.sendEnableTranslateMessage(targetLanguage);
    }), meetingController.on('requestPrepareDisableTranslate', function (params) {
      var prepare = params.prepare;
      if (!connection.isConnected()) {
        prepare.resolve();
        return;
      }
      if (_this2.disableTranslateInstructionId) {
        prepare.reject();
        return;
      }
      _this2.disableTranslatePrepare = prepare;
      _this2.sendDisableTranslateMessage();
    }));
  };
  _proto.onMessage = function onMessage(message) {
    var meetingController = this.context.meetingController;
    if (!meetingController.isInMeeting()) {
      return;
    }
    var _ref = (message == null ? void 0 : message.header) || {},
      name = _ref.name;
    var _ref2 = message.payload || {},
      instructionId = _ref2.instruction_id;
    if (name === 'UpdateConfigAck' && instructionId) {
      if (this.enableTranslateInstructionId === instructionId) {
        var _this$enableTranslate;
        (_this$enableTranslate = this.enableTranslatePrepare) == null ? void 0 : _this$enableTranslate.resolve();
        this.enableTranslateInstructionId = undefined;
        this.enableTranslatePrepare = undefined;
      } else if (this.disableTranslateInstructionId === instructionId) {
        var _this$disableTranslat;
        (_this$disableTranslat = this.disableTranslatePrepare) == null ? void 0 : _this$disableTranslat.resolve();
        this.disableTranslateInstructionId = undefined;
        this.disableTranslatePrepare = undefined;
      }
    }
  };
  _proto.sendEnableTranslateMessage = function sendEnableTranslateMessage(targetLanguage) {
    this.enableTranslateInstructionId = getUUID();
    this.sendMessage('UpdateConfig', {
      translate_result_enabled: true,
      translate_languages: targetLanguage,
      instruction_id: this.enableTranslateInstructionId
    });
  };
  _proto.sendDisableTranslateMessage = function sendDisableTranslateMessage() {
    this.disableTranslateInstructionId = getUUID();
    this.sendMessage('UpdateConfig', {
      translate_result_enabled: false,
      translate_languages: this.latestTargetTranslate,
      instruction_id: this.disableTranslateInstructionId
    });
  };
  return InMeetingTranslateCommand;
}(AbstractCommand);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/index.js + 31 modules
var dist_web_controller = __webpack_require__(7064);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/transcriptionCommand.js




var TranscriptionCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(TranscriptionCommand, _AbstractCommand);
  function TranscriptionCommand(context, controller) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.watchMessageKeys = ['TranscriptionResultChanged', 'ParagraphChanged'];
    _this.controller = void 0;
    _this.handleMeetingStateChange = function (event) {
      var state = event.state;
      var meetingController = _this.context.meetingController;
      if (meetingController.isInMeeting()) {
        _this.controller.setTranscriptingState(dist_web_controller/* TranscriptingState */.FR.Enabled);
      } else if (state === meetingModel/* MeetingState */.k.PreparePause || state === meetingModel/* MeetingState */.k.PrepareStop) {
        _this.controller.setTranscriptingState(dist_web_controller/* TranscriptingState */.FR.Disabing);
      } else {
        _this.controller.setTranscriptingState(dist_web_controller/* TranscriptingState */.FR.Disabled);
      }
    };
    _this.clearTempNfixingWords = function () {
      _this.controller.clearNfixingWids();
    };
    _this.controller = controller;
    return _this;
  }
  var _proto = TranscriptionCommand.prototype;
  _proto.onReady = function onReady() {
    var _this$context = this.context,
      meetingController = _this$context.meetingController,
      connection = _this$context.connection;
    this.needCleanups(meetingController.on('meetingStateChange', this.handleMeetingStateChange), connection.on('open', this.clearTempNfixingWords), connection.on('close', this.clearTempNfixingWords));
  };
  _proto.onMessage = function onMessage(message) {
    var _ref = (message == null ? void 0 : message.header) || {},
      name = _ref.name;
    if (name === 'TranscriptionResultChanged') {
      this.handleUnfixContentChange(message.payload);
    } else if (name === 'ParagraphChanged') {
      this.handleParagraphChange(message.payload);
    }
  };
  _proto.handleUnfixContentChange = function handleUnfixContentChange(payload) {
    var _payload$stash_result;
    this.controller.setUnfixSentense(((_payload$stash_result = payload.stash_result) == null ? void 0 : _payload$stash_result.text) || '');
  };
  _proto.handleParagraphChange = function handleParagraphChange(payload) {
    var _payload$pg, _payload$pg2, _payload$stash_result2;
    var controller = this.controller;
    var timer = this.context.timer;
    payload.pg.forEach(function (item) {
      var partial = item.partial,
        pi = item.pi,
        sc = item.sc,
        ui = item.ui;
      var paragraph = controller.getParagraph(pi);
      var words = controller.getWordsBySces(sc);
      if (partial) {
        if (!paragraph) {
          controller.addUnfixParagraph(pi, ui);
        }
        controller.appendWords(pi, words);
      } else if (!paragraph) {
        controller.addUnfixParagraph(pi, ui);
        controller.appendWords(pi, words);
        controller.addFixParagraph(pi);
      } else {
        controller.appendWords(pi, words);
        controller.addFixParagraph(pi);
      }
    }); // 记录时长与录音时长比对

    var time = timer.getTime();
    var pgLength = payload == null ? void 0 : (_payload$pg = payload.pg) == null ? void 0 : _payload$pg.length;
    if (pgLength && (_payload$pg2 = payload.pg[pgLength - 1]) != null && _payload$pg2.sc) {
      var _words;
      var words = payload.pg[pgLength - 1].sc;
      var wordsLength = words == null ? void 0 : words.length;
      if (wordsLength && (_words = words[wordsLength - 1]) != null && _words.et) {
        var endTime = words[wordsLength - 1].et; // fixed 返回的endTime实际上与录音时长会有4～5s的误差

        if (Math.abs(time - endTime) > 10000) {
          timer.reset(endTime + 5000);
        }
      }
    }
    controller.setUnfixSentense(((_payload$stash_result2 = payload.stash_result) == null ? void 0 : _payload$stash_result2.text) || '');
  };
  return TranscriptionCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/utils/translate.js
var transformTSToSC = function transformTSToSC(ts) {
  return ts.map(function (value) {
    return {
      id: 0,
      bt: value.bt,
      et: value.et,
      si: value.si,
      tc: value.txt
    };
  });
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/translateCommand.js



var TranslateCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(TranslateCommand, _AbstractCommand);
  function TranslateCommand(context, controller) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.watchMessageKeys = ['ParagraphTranslated'];
    _this.controller = void 0;
    _this.handleParagraphTranslate = function (payload) {
      var _payload$pg;
      (_payload$pg = payload.pg) == null ? void 0 : _payload$pg.forEach(function (pg) {
        var pi = pg.pi,
          ts = pg.ts;
        var sc = transformTSToSC(ts);
        _this.controller.setTranslate(pi, sc);
      });
    };
    _this.controller = controller;
    return _this;
  }
  var _proto = TranslateCommand.prototype;
  _proto.onMessage = function onMessage(message) {
    var _ref = (message == null ? void 0 : message.header) || {},
      name = _ref.name;
    if (name === 'ParagraphTranslated') {
      this.handleParagraphTranslate(message.payload);
    }
  };
  return TranslateCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/asrCommand.js




var AsrCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(AsrCommand, _AbstractCommand);
  function AsrCommand(context, controller) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.controller = void 0;
    _this.controller = controller;
    return _this;
  }
  var _proto = AsrCommand.prototype;
  _proto.onReady = function onReady() {
    var _this2 = this;
    var meetingController = this.context.meetingController;
    return this.needCleanups(meetingController.on('meetingStateChange', function (_ref) {
      var state = _ref.state;
      if ([meetingModel/* MeetingState */.k.Idle, meetingModel/* MeetingState */.k.Pause, meetingModel/* MeetingState */.k.Stop].includes(state)) {
        _this2.controller.setTranscriptingState(dist_web_controller/* TranscriptingState */.FR.Disabled);
      } else if ([meetingModel/* MeetingState */.k.PreparePause, meetingModel/* MeetingState */.k.PrepareStop].includes(state)) {
        _this2.controller.setTranscriptingState(dist_web_controller/* TranscriptingState */.FR.Disabing);
      } else {
        _this2.controller.setTranscriptingState(dist_web_controller/* TranscriptingState */.FR.Enabled);
      }
    }));
  };
  return AsrCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/pingPongCommand.js







var defaultPingPongCommandParams = {
  pingWaiting: 10000,
  pongWaiting: 5000,
  pingPongTimeout: 30000
};
var PingPongCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(PingPongCommand, _AbstractCommand);
  function PingPongCommand(context, params) {
    var _this;
    if (params === void 0) {
      params = {};
    }
    _this = _AbstractCommand.call(this, context) || this;
    _this.params = void 0;
    _this.watchMessageKeys = ['UpdateConfigAck'];
    _this.interval = void 0;
    _this.pingPongTimeoutTimer = void 0;
    _this.lastPingId = void 0;
    _this.lastPingAt = void 0;
    _this.pingPrepare = void 0;
    _this.params = Object.assign({}, defaultPingPongCommandParams, params);
    return _this;
  }
  var _proto = PingPongCommand.prototype;
  _proto.onReady = function onReady() {
    var _this2 = this;
    var connection = this.context.connection;
    this.needCleanups(connection.on('open', function () {
      _this2.startPingPong();
    }), connection.on('close', function () {
      _this2.stopPingPong();
    }));
  };
  _proto.onMessage = function onMessage(message) {
    var _ref = (message == null ? void 0 : message.header) || {},
      name = _ref.name;
    if (name === 'UpdateConfigAck') {
      var _ref2 = message.payload || {},
        pong = _ref2.pong;
      if (pong && this.lastPingId === pong) {
        if (this.pingPrepare) {
          this.pingPrepare.resolve();
          this.pingPrepare = undefined;
          var during = this.lastPingAt ? new Date().getTime() - this.lastPingAt : '';
          report_report('收到Pong', pong, String(during));
        }
      }
    }
  };
  _proto.doPingPong = /*#__PURE__*/function () {
    var _doPingPong = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee() {
      var _this3 = this;
      var connection, payload, _this$lastPingId;
      return regenerator_default().wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              connection = this.context.connection;
              _context.prev = 1;
              if (this.pingPrepare) {
                this.pingPrepare.reject();
              }
              this.lastPingId = getUUID();
              this.lastPingAt = new Date().getTime();
              payload = {
                ping: this.lastPingId
              };
              this.pingPrepare = new TimeoutPrepare(function () {}, this.params.pongWaiting);
              this.sendMessage('UpdateConfig', payload);
              report_report('发送Ping', this.lastPingId);
              _context.next = 11;
              return this.pingPrepare.waiting;
            case 11:
              this.stopPingPongTiemout(); // eslint-disable-next-line alidocs/catch-call-function

              _context.next = 18;
              break;
            case 14:
              _context.prev = 14;
              _context.t0 = _context["catch"](1);
              report_report('识别到pong超时, 尝试中重新ping', (_this$lastPingId = this.lastPingId) != null ? _this$lastPingId : '未知pingId'); // detect break connection;

              if (!this.pingPongTimeoutTimer) {
                this.pingPongTimeoutTimer = setTimeout(function () {
                  if (connection.isConnected()) {
                    var _this3$lastPingId;
                    report_report('识别到pong超时, 启动重连网络', (_this3$lastPingId = _this3.lastPingId) != null ? _this3$lastPingId : '未知pingId');
                    connection.reconnect();
                  } else {
                    var _this3$lastPingId2;
                    report_report('识别到pong超时, 网络已经在停止状态', (_this3$lastPingId2 = _this3.lastPingId) != null ? _this3$lastPingId2 : '未知pingId');
                  }
                  _this3.pingPongTimeoutTimer = undefined;
                }, this.params.pingPongTimeout);
              }
            case 18:
            case "end":
              return _context.stop();
          }
        }
      }, _callee, this, [[1, 14]]);
    }));
    function doPingPong() {
      return _doPingPong.apply(this, arguments);
    }
    return doPingPong;
  }();
  _proto.startPingPong = function startPingPong() {
    var _this4 = this;
    if (this.interval) {
      this.stopPingPong();
    }
    this.interval = setInterval(function () {
      _this4.doPingPong();
    }, this.params.pingWaiting);
  };
  _proto.stopPingPong = function stopPingPong() {
    if (!this.interval) {
      return;
    }
    clearInterval(this.interval);
    if (this.pingPrepare) {
      this.pingPrepare.resolve();
    }
    this.interval = undefined;
    this.lastPingId = undefined;
    this.pingPrepare = undefined;
    this.lastPingAt = undefined;
    this.stopPingPongTiemout();
  };
  _proto.stopPingPongTiemout = function stopPingPongTiemout() {
    if (this.pingPongTimeoutTimer) {
      clearTimeout(this.pingPongTimeoutTimer);
      this.pingPongTimeoutTimer = undefined;
    }
  };
  return PingPongCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-util@0.3.71@@ali/tingwu-util/dist-web/paragraphChangeThrottler.js



var getInitializeStore = function getInitializeStore() {
  return {
    toAdd: {},
    toUpdate: {},
    toRemove: {},
    toRemoveParagraphs: {},
    toTranslateOnly: {}
  };
};
var createParagraphChangeThrottler = function createParagraphChangeThrottler(controller, callback) {
  var store = getInitializeStore();
  var storeChanged = false;
  var loading = false;
  var submitParagraphChange = /*#__PURE__*/function () {
    var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee() {
      var originStore;
      return regenerator_default().wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              if (!(loading || !storeChanged)) {
                _context.next = 2;
                break;
              }
              return _context.abrupt("return");
            case 2:
              originStore = store;
              store = getInitializeStore();
              storeChanged = false;
              _context.prev = 5;
              loading = true;
              _context.next = 9;
              return callback(originStore);
            case 9:
              _context.prev = 9;
              loading = false;
              return _context.finish(9);
            case 12:
              if (storeChanged) {
                submitParagraphChange();
              }
            case 13:
            case "end":
              return _context.stop();
          }
        }
      }, _callee, null, [[5,, 9, 12]]);
    }));
    return function submitParagraphChange() {
      return _ref.apply(this, arguments);
    };
  }();
  var throttleSubmitParagraphChange = (0,throttle/* default */.Z)(submitParagraphChange, 1000);
  var handleParagraphChange = function handleParagraphChange(event) {
    var unfixToFixedPids = event.unfixToFixedPids,
      updateParagraphUserChangedPids = event.updateParagraphUserChangedPids,
      addParagraphPids = event.addParagraphPids,
      updateParagraphPids = event.updateParagraphPids,
      removeParagraphPids = event.removeParagraphPids,
      _event$removeParagrap = event.removeParagraphs,
      removeParagraphs = _event$removeParagrap === void 0 ? {} : _event$removeParagrap;
    addParagraphPids.forEach(function (pid) {
      var paragraph = controller.getParagraph(pid);
      if (paragraph && !paragraph.isUnfix) {
        store.toAdd[pid] = true;
        storeChanged = true;
      }
    });
    updateParagraphPids.forEach(function (pid) {
      var paragraph = controller.getParagraph(pid);
      if (paragraph && paragraph.isUnfix) {
        return;
      }
      if (unfixToFixedPids.indexOf(pid) > -1 && updateParagraphUserChangedPids.indexOf(pid) === -1) {
        return;
      }
      store.toUpdate[pid] = true;
      delete store.toTranslateOnly[pid];
      storeChanged = true;
    });
    removeParagraphPids.forEach(function (pid) {
      if (store.toAdd[pid]) {
        delete store.toAdd[pid];
        storeChanged = true;
        return;
      }
      delete store.toUpdate[pid];
      store.toRemove[pid] = true;
      store.toRemoveParagraphs[pid] = removeParagraphs[pid];
      storeChanged = true;
    });
    throttleSubmitParagraphChange();
  };
  var handleTranslate = function handleTranslate(event) {
    var pid = event.pid;
    if (!store.toUpdate[pid]) {
      store.toTranslateOnly[pid] = true;
      storeChanged = true;
    }
    throttleSubmitParagraphChange();
  };
  var offCallback1 = controller.on('paragraphChangeSpecific', handleParagraphChange);
  var offCallback2 = controller.on('paragraphNeedTranslate', handleTranslate);
  return function () {
    offCallback1();
    offCallback2();
  };
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/utils/paragraphChangeSplitter.js



var uniqueId = 0;
var ParagraphChangeSplitter = /*#__PURE__*/function () {
  ParagraphChangeSplitter.getInstance = function getInstance(controller) {
    ParagraphChangeSplitter.instance = new ParagraphChangeSplitter(controller);
    return ParagraphChangeSplitter.instance;
  };
  function ParagraphChangeSplitter(controller) {
    var _this = this;
    this.controller = void 0;
    this.clean = void 0;
    this.callbacks = {};
    this.handler = /*#__PURE__*/function () {
      var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(store) {
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                Object.keys(_this.callbacks).forEach(function (key) {
                  var callback = _this.callbacks[key];
                  callback(store);
                });
              case 1:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();
    this.controller = controller;
  }
  var _proto = ParagraphChangeSplitter.prototype;
  _proto.checkThrottler = function checkThrottler() {
    var isHasCallback = Object.keys(this.callbacks).length > 0;
    if (isHasCallback) {
      if (!this.clean) {
        this.clean = createParagraphChangeThrottler(this.controller, this.handler);
      }
    } else if (this.clean) {
      this.clean();
      this.clean = undefined;
    }
  };
  _proto.addCallback = function addCallback(callback) {
    var _this2 = this;
    var key = "ParagraphChangeSplitter/" + ++uniqueId;
    this.callbacks[key] = callback;
    this.checkThrottler();
    return function () {
      delete _this2.callbacks[key];
      _this2.checkThrottler();
    };
  };
  return ParagraphChangeSplitter;
}();
ParagraphChangeSplitter.instance = void 0;
var createParagraphChangeSplitter = function createParagraphChangeSplitter(controller, callback) {
  return ParagraphChangeSplitter.getInstance(controller).addCallback(callback);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/paragraphChangeCommand.js






var ParagraphChangeCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(ParagraphChangeCommand, _AbstractCommand);
  function ParagraphChangeCommand(context, controller, onSaveMeetingResult) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.controller = void 0;
    _this.onSaveMeetingResult = void 0;
    _this.handleSaveMeeting = /*#__PURE__*/function () {
      var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(store) {
        var _this$context$meeting;
        var transId, toUpdate, toAdd, toRemoveParagraphs, payload, keys, pids, toRemovePids;
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                transId = (_this$context$meeting = _this.context.meetingConfig) == null ? void 0 : _this$context$meeting.transId;
                if (transId) {
                  _context.next = 3;
                  break;
                }
                throw new Error('missing transId in meetingConfig');
              case 3:
                toUpdate = store.toUpdate, toAdd = store.toAdd, toRemoveParagraphs = store.toRemoveParagraphs;
                payload = {
                  pg: []
                };
                keys = (0,esm_extends/* default */.Z)({}, toUpdate, toAdd);
                pids = Object.keys(keys);
                toRemovePids = Object.keys(toRemoveParagraphs);
                pids.forEach(function (pid) {
                  var p = _this.controller.getPByPid(pid);
                  if (p) {
                    payload.pg.push(p);
                  }
                });
                toRemovePids.forEach(function (pid) {
                  var para = toRemoveParagraphs[pid];
                  payload.pg.push({
                    pi: pid,
                    ui: para.uid,
                    sc: []
                  });
                });
                if (!(payload.pg.length === 0)) {
                  _context.next = 12;
                  break;
                }
                return _context.abrupt("return", Promise.resolve());
              case 12:
                _context.next = 14;
                return _this.onSaveMeetingResult(transId, payload);
              case 14:
                return _context.abrupt("return", _context.sent);
              case 15:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();
    _this.controller = controller;
    _this.onSaveMeetingResult = onSaveMeetingResult;
    return _this;
  }
  var _proto = ParagraphChangeCommand.prototype;
  _proto.onReady = function onReady() {
    var _this2 = this;
    this.needCleanups(createParagraphChangeSplitter(this.controller, /*#__PURE__*/function () {
      var _ref2 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2(store) {
        return regenerator_default().wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                return _context2.abrupt("return", _this2.handleSaveMeeting(store));
              case 1:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2);
      }));
      return function (_x2) {
        return _ref2.apply(this, arguments);
      };
    }()));
  };
  return ParagraphChangeCommand;
}(AbstractCommand);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/assign.js
var _lodash_es_4_17_21_lodash_es_assign = __webpack_require__(5648);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/translateController.js
var translateController = __webpack_require__(8674);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/utils/text.js
var utils_text = __webpack_require__(2345);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/utils/report.js
var report = __webpack_require__(2360);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-util@0.3.71@@ali/tingwu-util/dist-web/sentense.js
var getSentenseByWords = function getSentenseByWords(words) {
  var length = words.length;
  var holdSentenceId;
  var sentenses = [];
  for (var i = 0; i < length; i++) {
    var word = words[i];
    if (holdSentenceId !== word.sentenceId) {
      holdSentenceId = word.sentenceId;
      sentenses.push({
        sid: word.sentenceId,
        words: []
      });
    }
    sentenses[sentenses.length - 1].words.push(word);
  }
  return sentenses;
};
var getTextContentBySentence = function getTextContentBySentence(sentence) {
  return sentence.words.reduce(function (value, word) {
    return value + word.text;
  }, '');
};
var generateTempTranslateWords = function generateTempTranslateWords(sentences, getTranslate) {
  var id = 1;
  return sentences.map(function (sentence) {
    return {
      wid: "translate-" + id++,
      beginTime: 0,
      endTime: 0,
      sentenceId: sentence.sid,
      text: getTranslate(sentence),
      tag: ''
    };
  });
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-util@0.3.71@@ali/tingwu-util/dist-web/unfixTranslateThrottler.js





var getDefaultOptions = function getDefaultOptions() {
  return {
    alwaysTrigger: false
  };
};
var createUnfixTranslateThrottler = function createUnfixTranslateThrottler(controller, callback, options) {
  if (options === void 0) {
    options = {};
  }

  // 单unfix模式，不支持多个unfix同时并存
  var storedPid; // undefined means emptyUnfix

  var store = {};
  var callbackId = 0;
  var applyedId = 0;
  var realOptions = (0,_lodash_es_4_17_21_lodash_es_assign/* default */.Z)(getDefaultOptions(), options);
  var eventHandler = (0,throttle/* default */.Z)( /*#__PURE__*/function () {
    var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(args) {
      var holdCallbackId, unfixContent, fixWords, pid, sentences, length, needTranslateSentences, _getSidWidsMap, sidWidsMap, nfixingContent, i, _sidWidsMap$sentence$, sentence, textContent, input, isHasUnfixContent, translateResult, unfixToFixedPid, unfixContentTranslate, words;
      return regenerator_default().wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              if (!(controller.getTranscriptingState() === dist_web_controller/* TranscriptingState */.FR.Disabled)) {
                _context.next = 2;
                break;
              }
              return _context.abrupt("return");
            case 2:
              if (!(!realOptions.alwaysTrigger && controller.getTranslateMode() === translateController/* TranslateMode */.R.Disabled)) {
                _context.next = 4;
                break;
              }
              return _context.abrupt("return");
            case 4:
              holdCallbackId = ++callbackId;
              unfixContent = args.unfixContent, fixWords = args.fixWords, pid = args.pid;
              if (storedPid !== pid) {
                storedPid = pid;
                store = {};
              }
              sentences = getSentenseByWords(fixWords);
              length = sentences.length;
              needTranslateSentences = [];
              _getSidWidsMap = (0,utils_text/* getSidWidsMap */.qo)(controller, fixWords.map(function (w) {
                return w.wid;
              })), sidWidsMap = _getSidWidsMap.sidWidsMap;
              nfixingContent = '';
              i = 0;
            case 13:
              if (!(i < length)) {
                _context.next = 22;
                break;
              }
              sentence = sentences[i];
              textContent = getTextContentBySentence(sentence);
              if (!(store[sentence.sid] && store[sentence.sid].textContent === textContent)) {
                _context.next = 18;
                break;
              }
              return _context.abrupt("continue", 19);
            case 18:
              if ((_sidWidsMap$sentence$ = sidWidsMap[sentence.sid]) != null && _sidWidsMap$sentence$.isNfixing) {
                nfixingContent += getTextContentBySentence(sentence);
              } else {
                needTranslateSentences.push(sentence);
              }
            case 19:
              i++;
              _context.next = 13;
              break;
            case 22:
              _context.prev = 22;
              input = needTranslateSentences.map(function (sentence) {
                return getTextContentBySentence(sentence);
              });
              isHasUnfixContent = Boolean(nfixingContent || unfixContent);
              if (isHasUnfixContent) {
                input.push(nfixingContent + unfixContent);
              }
              if (!(input.length > 0)) {
                _context.next = 32;
                break;
              }
              _context.next = 29;
              return callback(input);
            case 29:
              _context.t0 = _context.sent;
              _context.next = 33;
              break;
            case 32:
              _context.t0 = [];
            case 33:
              translateResult = _context.t0;
              if (!(controller.getTranscriptingState() === dist_web_controller/* TranscriptingState */.FR.Disabled)) {
                _context.next = 36;
                break;
              }
              return _context.abrupt("return");
            case 36:
              (0,report/* report */.A)('print translate', {
                needTranslateSentences: needTranslateSentences,
                input: input,
                output: translateResult
              });
              unfixToFixedPid = controller.getUnfixToFixedPid(); // 在翻译结果回来的时候，当前段落变成fix应该忽略掉这次翻译

              if (!(holdCallbackId < applyedId || unfixToFixedPid && unfixToFixedPid === pid)) {
                _context.next = 40;
                break;
              }
              return _context.abrupt("return");
            case 40:
              applyedId = holdCallbackId;
              if (!(translateResult.length !== input.length)) {
                _context.next = 44;
                break;
              }
              console.error('Translate output cannot match input.', input, translateResult);
              return _context.abrupt("return");
            case 44:
              needTranslateSentences.forEach(function (sentence, index) {
                store[sentence.sid] = {
                  textContent: getTextContentBySentence(sentence),
                  translate: translateResult[index]
                };
              });
              unfixContentTranslate = isHasUnfixContent ? translateResult[translateResult.length - 1] : '';
              words = generateTempTranslateWords(sentences, function (sentence) {
                var found = store[sentence.sid];
                return found ? found.translate : '';
              });
              controller.setUnfixTranslateByWords(pid, unfixContentTranslate, words);
              _context.next = 54;
              break;
            case 50:
              _context.prev = 50;
              _context.t1 = _context["catch"](22);
              console.error('Translate server maybe crush.', _context.t1);
              throw _context.t1;
            case 54:
            case "end":
              return _context.stop();
          }
        }
      }, _callee, null, [[22, 50]]);
    }));
    return function (_x) {
      return _ref.apply(this, arguments);
    };
  }(), 1000);
  return controller.on('unfixContentChange', eventHandler);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/unfixTranslateCommand.js





var UnfixTranslateCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(UnfixTranslateCommand, _AbstractCommand);
  function UnfixTranslateCommand(context, controller, onFetchTranslates) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.watchMessageKeys = ['ParagraphTranslated'];
    _this.controller = void 0;
    _this.onFetchTranslates = void 0;
    _this.clean = void 0;
    _this.controller = controller;
    _this.onFetchTranslates = onFetchTranslates;
    return _this;
  }
  var _proto = UnfixTranslateCommand.prototype;
  _proto.onReady = function onReady() {
    var _this2 = this;
    this.needCleanups(createUnfixTranslateThrottler(this.controller, /*#__PURE__*/function () {
      var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(needTranslates) {
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                return _context.abrupt("return", new Promise(function (resolve, reject) {
                  var meetingConfig = _this2.context.meetingConfig;
                  if (!meetingConfig) {
                    throw new Error('`meetingConfig` is empty in `UnfixTranslateCommand`');
                  }
                  var meetingId = meetingConfig.meetingId,
                    sourceLanguage = meetingConfig.sourceLanguage,
                    targetLanguage = meetingConfig.targetLanguage,
                    enableTranslate = meetingConfig.enableTranslate;
                  if (!enableTranslate) {
                    return;
                  }
                  if (!meetingId || !sourceLanguage || !targetLanguage) {
                    throw new Error('meetingId, sourceLanguage, targetLanguage maybe empty');
                  }
                  if (needTranslates.length === 0) {
                    resolve([]);
                    return;
                  }
                  _this2.onFetchTranslates(meetingId, sourceLanguage, targetLanguage, needTranslates).then(resolve)["catch"](reject);
                }));
              case 1:
              case "end":
                return _context.stop();
            }
          }
        }, _callee);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }(), {
      alwaysTrigger: true
    } // todo: 如果不需要翻译的时候，确认是否要打开
    ));
  };

  return UnfixTranslateCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/fixTranslateCommand.js






var FixTranslateCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(FixTranslateCommand, _AbstractCommand);
  function FixTranslateCommand(context, controller, onTranslateMeetingResult) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.controller = void 0;
    _this.onTranslateMeetingResult = void 0;
    _this.handleTranslate = /*#__PURE__*/function () {
      var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee(store) {
        var meetingConfig, enableTranslate, meetingId, sourceLanguage, targetLanguage, toUpdate, toAdd, toTranslateOnly, needTranslateKeysMap, needTranslateKeys, payload, result;
        return regenerator_default().wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                meetingConfig = _this.context.meetingConfig;
                if (meetingConfig) {
                  _context.next = 3;
                  break;
                }
                throw new Error('`meetingConfig` cannot be empty');
              case 3:
                enableTranslate = meetingConfig.enableTranslate, meetingId = meetingConfig.meetingId, sourceLanguage = meetingConfig.sourceLanguage, targetLanguage = meetingConfig.targetLanguage;
                if (enableTranslate) {
                  _context.next = 6;
                  break;
                }
                return _context.abrupt("return", Promise.resolve());
              case 6:
                if (targetLanguage) {
                  _context.next = 9;
                  break;
                }
                console.error('`targetLanguage` not provider');
                return _context.abrupt("return", Promise.resolve());
              case 9:
                toUpdate = store.toUpdate, toAdd = store.toAdd, toTranslateOnly = store.toTranslateOnly;
                needTranslateKeysMap = (0,esm_extends/* default */.Z)({}, toUpdate, toAdd, toTranslateOnly);
                needTranslateKeys = Object.keys(needTranslateKeysMap);
                if (!(needTranslateKeys.length === 0)) {
                  _context.next = 14;
                  break;
                }
                return _context.abrupt("return", Promise.resolve());
              case 14:
                payload = {
                  pg: []
                };
                needTranslateKeys.forEach(function (pid) {
                  var p = _this.controller.getPByPid(pid);
                  if (p) {
                    _this.controller.setTranslating(pid, true);
                    payload.pg.push(p);
                  }
                });
                _context.prev = 16;
                _context.next = 19;
                return _this.onTranslateMeetingResult(meetingId, sourceLanguage, targetLanguage, payload);
              case 19:
                result = _context.sent;
                result.pg.forEach(function (translatePG) {
                  var pi = translatePG.pi,
                    ts = translatePG.ts;
                  var sc = transformTSToSC(ts);
                  _this.controller.setTranslate(pi, sc);
                });
                /* eslint-disable alidocs/catch-call-function */

                _context.next = 26;
                break;
              case 23:
                _context.prev = 23;
                _context.t0 = _context["catch"](16);
                needTranslateKeys.forEach(function (pid) {
                  _this.controller.setTranslate(pid, []); // translate error
                });

              case 26:
              case "end":
                return _context.stop();
            }
          }
        }, _callee, null, [[16, 23]]);
      }));
      return function (_x) {
        return _ref.apply(this, arguments);
      };
    }();
    _this.controller = controller;
    _this.onTranslateMeetingResult = onTranslateMeetingResult;
    return _this;
  }
  var _proto = FixTranslateCommand.prototype;
  _proto.onReady = function onReady() {
    var _this2 = this;
    this.needCleanups(createParagraphChangeSplitter(this.controller, /*#__PURE__*/function () {
      var _ref2 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2(store) {
        return regenerator_default().wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                return _context2.abrupt("return", _this2.handleTranslate(store));
              case 1:
              case "end":
                return _context2.stop();
            }
          }
        }, _callee2);
      }));
      return function (_x2) {
        return _ref2.apply(this, arguments);
      };
    }()));
  };
  return FixTranslateCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/tingwuBallStatusCommand.js



var typeMapping = {
  Music: 'music',
  Singing: 'music',
  Laughter: 'laugh',
  Applause: 'applaud',
  Knock: 'table'
};
var TingwuBallStatusCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(TingwuBallStatusCommand, _AbstractCommand);
  function TingwuBallStatusCommand(context, onStatusChange) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.watchMessageKeys = ['AedResult'];
    _this.firstLevelStatus = 'stop';
    _this.secondLevelStatus = void 0;
    _this.thirdLevelStatue = void 0;
    _this.onStatusChange = void 0;
    _this.timeout = void 0;
    _this.handleMeetingStateChange = function (event) {
      if ([meetingModel/* MeetingState */.k.PrepareStart, meetingModel/* MeetingState */.k.PrepareResume, meetingModel/* MeetingState */.k.InMeeting, meetingModel/* MeetingState */.k.PreparePause, meetingModel/* MeetingState */.k.PrepareStop].includes(event.state)) {
        _this.setFirstLevelStatus('recording');
      } else {
        _this.setFirstLevelStatus('stop');
        _this.setSecondLevelStatus(undefined);
        _this.clearThirdLevelStatusTimeout();
      }
    };
    _this.onStatusChange = onStatusChange;
    return _this;
  }
  var _proto = TingwuBallStatusCommand.prototype;
  _proto.onReady = function onReady() {
    var _this2 = this;
    var _this$context = this.context,
      meetingController = _this$context.meetingController,
      connection = _this$context.connection;
    this.needCleanups(meetingController.on('meetingStateChange', this.handleMeetingStateChange), meetingController.on('detectConnectionRetry', function () {
      _this2.setSecondLevelStatus('network');
    }), connection.on('open', function () {
      _this2.setSecondLevelStatus(undefined);
    }));
  };
  _proto.onDestroy = function onDestroy() {
    var meetingController = this.context.meetingController;
    meetingController.off('meetingStateChange', this.handleMeetingStateChange);
  };
  _proto.onMessage = function onMessage(message) {
    var meetingController = this.context.meetingController;
    if (!meetingController.isInMeeting()) {
      return;
    }
    var _ref = (message == null ? void 0 : message.header) || {},
      name = _ref.name;
    if (name === 'AedResult') {
      var _message$payload;
      var _status = typeMapping[(_message$payload = message.payload) == null ? void 0 : _message$payload.event_type];
      if (_status) {
        this.setThirdLevelStatus(_status);
      }
    }
  };
  _proto.setFirstLevelStatus = function setFirstLevelStatus(status) {
    if (this.firstLevelStatus === status) {
      return;
    }
    this.clearThirdLevelStatusTimeout();
    this.firstLevelStatus = status;
    this.emitStatusChange();
  };
  _proto.setSecondLevelStatus = function setSecondLevelStatus(status) {
    if (this.secondLevelStatus === status) {
      return;
    }
    this.clearThirdLevelStatusTimeout();
    this.secondLevelStatus = status;
    this.emitStatusChange();
  };
  _proto.setThirdLevelStatus = function setThirdLevelStatus(status) {
    var _this3 = this;
    this.clearThirdLevelStatusTimeout();
    this.thirdLevelStatue = status;
    this.emitStatusChange();
    if (!status) {
      return;
    }
    this.timeout = setTimeout(function () {
      _this3.thirdLevelStatue = undefined;
      _this3.emitStatusChange();
    }, 3000);
  };
  _proto.clearThirdLevelStatusTimeout = function clearThirdLevelStatusTimeout() {
    if (this.timeout) {
      clearTimeout(this.timeout);
      this.timeout = undefined;
    }
    this.thirdLevelStatue = undefined;
  };
  _proto.emitStatusChange = function emitStatusChange() {
    var status = this.thirdLevelStatue || this.secondLevelStatus || this.firstLevelStatus;
    this.onStatusChange(status);
  };
  return TingwuBallStatusCommand;
}(AbstractCommand);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/unfixCleanCommand.js


var UnfixCleanCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(UnfixCleanCommand, _AbstractCommand);
  function UnfixCleanCommand(context, controller) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.controller = void 0;
    _this.controller = controller;
    return _this;
  }
  var _proto = UnfixCleanCommand.prototype;
  _proto.onReady = function onReady() {
    var controller = this.controller;
    var connection = this.context.connection;
    this.needCleanups(connection.on('close', function () {
      var unfixPid = controller.getUnfixPid();
      if (unfixPid) {
        controller.removeParagraph(unfixPid);
      }
    }));
  };
  return UnfixCleanCommand;
}(AbstractCommand);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/browser.js
var browser = __webpack_require__(5629);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/recorder/abstractRecorder.js


var RecorderState;
(function (RecorderState) {
  RecorderState[RecorderState["Recording"] = 0] = "Recording";
  RecorderState[RecorderState["Pause"] = 1] = "Pause";
  RecorderState[RecorderState["Stop"] = 2] = "Stop";
})(RecorderState || (RecorderState = {}));
var AbstractRecorder = /*#__PURE__*/function (_Eventer) {
  (0,inheritsLoose/* default */.Z)(AbstractRecorder, _Eventer);
  function AbstractRecorder() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _Eventer.call.apply(_Eventer, [this].concat(args)) || this;
    _this.decorations = [];
    _this.state = RecorderState.Stop;
    _this.isDeviceChanging = false;
    return _this;
  }
  var _proto = AbstractRecorder.prototype;
  _proto.setDecorations = function setDecorations(decorations) {
    this.decorations = decorations;
  };
  _proto.emit = function emit(key, payload) {
    var _this2 = this;
    var emitMethod = function emitMethod() {
      return _Eventer.prototype.emit.call(_this2, key, payload);
    };
    if (this.decorations.length === 0) {
      return emitMethod();
    }
    var count = this.decorations.length;
    var result = new eventer/* EventResult */.i();
    var next = function next() {
      count--;
      if (count === 0) {
        result = emitMethod();
      }
    };
    this.decorations.forEach(function (decoration) {
      if (decoration.onRecordEventChange) {
        decoration.onRecordEventChange(key, payload, next);
      } else {
        next();
      }
    });
    return result;
  };
  return AbstractRecorder;
}(eventer/* Eventer */.n);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
var objectWithoutPropertiesLoose = __webpack_require__(3108);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/recorder/fakeOpusRecorder.js


var _excluded = ["sourceNode"];
var AudioContext = __webpack_require__.g.AudioContext || __webpack_require__.g.webkitAudioContext;
// Constructor
var FakeOpusRecorder = /*#__PURE__*/function () {
  FakeOpusRecorder.isRecordingSupported = function isRecordingSupported() {
    var getUserMediaSupported = __webpack_require__.g.navigator && __webpack_require__.g.navigator.mediaDevices && __webpack_require__.g.navigator.mediaDevices.getUserMedia;
    return AudioContext && Boolean(getUserMediaSupported) && __webpack_require__.g.WebAssembly;
  };
  function FakeOpusRecorder(config, extParams) {
    var _this = this;
    if (config === void 0) {
      config = {};
    }
    this.onRecordError = void 0;
    this.state = void 0;
    this.willStop = void 0;
    this.config = void 0;
    this.encodedSamplePosition = void 0;
    this.initialize = void 0;
    this.stream = void 0;
    this.sourceNode = void 0;
    this.audioContext = void 0;
    this.encoderNode = void 0;
    this.encoder = void 0;
    this.recordedPages = void 0;
    this.totalLength = void 0;
    this.encodeBuffers = function (inputBuffer) {
      if (_this.state === 'recording') {
        var buffers = [];
        for (var i = 0; i < inputBuffer.numberOfChannels; i++) {
          buffers[i] = inputBuffer.getChannelData(i);
        }
        _this.encoder.postMessage({
          command: 'encode',
          buffers: buffers
        });
      }
    };
    if (!FakeOpusRecorder.isRecordingSupported()) {
      throw new Error('Recording is not supported in this browser');
    }
    this.onRecordError = extParams.onRecordError;
    this.state = 'inactive';
    this.willStop = false;
    this.config = Object.assign({
      bufferLength: 4096,
      encoderApplication: 2049,
      encoderFrameSize: 20,
      encoderPath: 'encoderWorker.min.js',
      encoderSampleRate: 48000,
      maxFramesPerPage: 40,
      mediaTrackConstraints: true,
      monitorGain: 0,
      numberOfChannels: 1,
      recordingGain: 1,
      resampleQuality: 3,
      streamPages: false,
      wavBitDepth: 16,
      sourceNode: {
        context: null
      }
    }, config);
    this.encodedSamplePosition = 0;
    this.initAudioContext();
    this.initialize = this.initWorklet().then(function () {
      return _this.initEncoder();
    });
  }
  var _proto = FakeOpusRecorder.prototype;
  _proto.clearStream = function clearStream() {
    if (this.stream) {
      if (this.stream.getTracks) {
        this.stream.getTracks().forEach(function (track) {
          return track.stop();
        });
      } else {
        this.stream.stop();
      }
    }
  };
  _proto.close = function close() {
    // this.monitorGainNode.disconnect();
    // this.recordingGainNode.disconnect();
    if (this.sourceNode) {
      this.sourceNode.disconnect();
    }
    this.clearStream();
    if (this.encoder) {
      this.encoderNode.disconnect();
      this.encoder.postMessage({
        command: 'close'
      });
    }
    if (!this.config.sourceNode.context) {
      return this.audioContext.close();
    }
    return Promise.resolve();
  };
  _proto.initAudioContext = function initAudioContext() {
    this.audioContext = this.config.sourceNode.context ? this.config.sourceNode.context : new AudioContext(); // this.monitorGainNode = this.audioContext.createGain();
    // this.setMonitorGain( this.config.monitorGain );
    // this.recordingGainNode = this.audioContext.createGain();
    // this.setRecordingGain( this.config.recordingGain );
  };

  _proto.initEncoder = function initEncoder() {
    var _this2 = this;
    if (this.audioContext.audioWorklet) {
      this.encoderNode = new AudioWorkletNode(this.audioContext, 'encoder-worklet', {
        numberOfOutputs: 0
      });
      this.encoder = this.encoderNode.port;
    } else {
      // Skip the first buffer
      // this.encodeBuffers = () => delete this.encodeBuffers;
      this.encoderNode = this.audioContext.createScriptProcessor(this.config.bufferLength, this.config.numberOfChannels, this.config.numberOfChannels);
      this.encoderNode.onaudioprocess = function (_ref) {
        var inputBuffer = _ref.inputBuffer;
        _this2.encodeBuffers(inputBuffer);
      };
      this.encoderNode.connect(this.audioContext.destination); // Requires connection to destination to process audio

      this.encoder = new __webpack_require__.g.Worker(this.config.encoderPath);
    }
  };
  _proto.initSourceNode = function initSourceNode() {
    var _this3 = this;
    if (this.config.sourceNode.context) {
      this.sourceNode = this.config.sourceNode;
      return Promise.resolve();
    }
    var promise = __webpack_require__.g.navigator.mediaDevices.getUserMedia({
      audio: this.config.mediaTrackConstraints
    }).then(function (stream) {
      _this3.stream = stream;
      _this3.sourceNode = _this3.audioContext.createMediaStreamSource(stream);
    });
    if (this.onRecordError) {
      promise["catch"](this.onRecordError);
    }
    return promise;
  };
  _proto.initWorker = function initWorker() {
    var _this4 = this;
    var onPage = (this.config.streamPages ? this.streamPage : this.storePage).bind(this);
    this.recordedPages = [];
    this.totalLength = 0;
    return new Promise(function (resolve) {
      var callback = function callback(_ref2) {
        var data = _ref2.data;
        switch (data.message) {
          case 'ready':
            resolve();
            break;
          case 'page':
            _this4.encodedSamplePosition = data.samplePosition;
            onPage(data.page);
            break;
          case 'done':
            _this4.encoder.removeEventListener('message', callback);
            _this4.finish();
            break;
          default:
            break;
        }
      };
      _this4.encoder.addEventListener('message', callback); // must call start for messagePort messages

      if (_this4.encoder.start) {
        _this4.encoder.start();
      } // exclude sourceNode

      var _this4$config = _this4.config,
        sourceNode = _this4$config.sourceNode,
        config = (0,objectWithoutPropertiesLoose/* default */.Z)(_this4$config, _excluded);
      _this4.encoder.postMessage(Object.assign({
        command: 'init',
        originalSampleRate: _this4.audioContext.sampleRate,
        wavSampleRate: _this4.audioContext.sampleRate
      }, config));
    });
  };
  _proto.initWorklet = function initWorklet() {
    if (this.audioContext.audioWorklet) {
      return this.audioContext.audioWorklet.addModule(this.config.encoderPath);
    }
    return Promise.resolve();
  };
  _proto.pause = function pause(flush) {
    var _this5 = this;
    if (this.state === 'recording') {
      this.state = 'paused'; // this.recordingGainNode.disconnect();

      this.sourceNode.disconnect();
      if (flush && this.config.streamPages) {
        return new Promise(function (resolve) {
          var callback = function callback(_ref3) {
            var data = _ref3.data;
            if (data.message === 'flushed') {
              _this5.encoder.removeEventListener('message', callback);
              _this5.onpause();
              resolve();
            }
          };
          _this5.encoder.addEventListener('message', callback); // must call start for messagePort messages

          if (_this5.encoder.start) {
            _this5.encoder.start();
          }
          _this5.encoder.postMessage({
            command: 'flush'
          });
        });
      }
      this.onpause();
      return Promise.resolve();
    }
  };
  _proto.resume = function resume() {
    if (this.state === 'paused') {
      this.state = 'recording'; // this.recordingGainNode.connect(this.encoderNode);

      this.sourceNode.connect(this.encoderNode);
      this.onresume();
    }
  } // setRecordingGain(gain) {
  //   this.config.recordingGain = gain;
  //   if (this.recordingGainNode && this.audioContext) {
  //     this.recordingGainNode.gain.setTargetAtTime(
  //       gain,
  //       this.audioContext.currentTime,
  //       0.01,
  //     );
  //   }
  // }
  // setMonitorGain(gain) {
  //   this.config.monitorGain = gain;
  //   if (this.monitorGainNode && this.audioContext) {
  //     this.monitorGainNode.gain.setTargetAtTime(
  //       gain,
  //       this.audioContext.currentTime,
  //       0.01,
  //     );
  //   }
  // }
  ;

  _proto.restartStream = function restartStream(mediaTrackConstraints) {
    var _this6 = this;
    if (this.state === 'paused' || this.state === 'recording') {
      this.state = 'inactive';
      this.clearStream();
    }
    if (this.state === 'inactive') {
      this.state = 'loading';
      this.encodedSamplePosition = 0;
      if (typeof mediaTrackConstraints === 'boolean' || typeof this.config.mediaTrackConstraints === 'boolean') {
        this.config.mediaTrackConstraints = mediaTrackConstraints;
      } else {
        this.config.mediaTrackConstraints = (0,esm_extends/* default */.Z)({}, this.config.mediaTrackConstraints, mediaTrackConstraints);
      }
      return this.audioContext.resume().then(function () {
        return _this6.initSourceNode();
      }).then(function () {
        _this6.state = 'recording';
        _this6.sourceNode.connect(_this6.encoderNode);
        _this6.onstart();
      })["catch"](function (error) {
        _this6.state = 'inactive';
        throw error;
      });
    }
    return Promise.resolve();
  };
  _proto.start = function start() {
    var _this7 = this;
    if (this.state === 'inactive') {
      this.state = 'loading';
      this.encodedSamplePosition = 0;
      return this.audioContext.resume().then(function () {
        return _this7.initialize;
      }).then(function () {
        return Promise.all([_this7.initSourceNode(), _this7.initWorker()]);
      }).then(function () {
        _this7.state = 'recording';
        _this7.encoder.postMessage({
          command: 'getHeaderPages'
        }); // this.sourceNode.connect( this.monitorGainNode );
        // this.sourceNode.connect( this.recordingGainNode );
        // this.monitorGainNode.connect( this.audioContext.destination );

        _this7.sourceNode.connect(_this7.encoderNode); // this.encoderNode.connect(this.audioContext.destination);

        _this7.onstart();
        if (_this7.willStop) {
          _this7.stop();
        }
      })["catch"](function (error) {
        _this7.state = 'inactive';
        throw error;
      });
    }
    return Promise.resolve();
  };
  _proto.stop = function stop() {
    var _this8 = this;
    if (this.state === 'loading') {
      this.willStop = true;
    }
    if (this.state === 'paused' || this.state === 'recording') {
      this.willStop = false;
      this.state = 'inactive'; // macOS and iOS requires the source to remain connected (in case stopped while paused)
      // this.recordingGainNode.connect( this.encoderNode );
      // this.monitorGainNode.disconnect();

      this.encoderNode.disconnect();
      this.clearStream();
      return new Promise(function (resolve) {
        var callback = function callback(_ref4) {
          var data = _ref4.data;
          if (data.message === 'done') {
            _this8.encoder.removeEventListener('message', callback);
            resolve();
          }
        };
        _this8.encoder.addEventListener('message', callback); // must call start for messagePort messages

        if (_this8.encoder.start) {
          _this8.encoder.start();
        }
        _this8.encoder.postMessage({
          command: 'done'
        });
      });
    }
    return Promise.resolve();
  };
  _proto.storePage = function storePage(page) {
    this.recordedPages.push(page);
    this.totalLength += page.length;
  };
  _proto.streamPage = function streamPage(page) {
    this.ondataavailable(page);
  };
  _proto.finish = function finish() {
    if (!this.config.streamPages) {
      var outputData = new Uint8Array(this.totalLength);
      this.recordedPages.reduce(function (offset, page) {
        outputData.set(page, offset);
        return offset + page.length;
      }, 0);
      this.ondataavailable(outputData);
    }
    this.onstop();
  } // Callback Handlers
  ;

  _proto.ondataavailable = function ondataavailable(_page) {};
  _proto.onpause = function onpause() {};
  _proto.onresume = function onresume() {};
  _proto.onstart = function onstart() {};
  _proto.onstop = function onstop() {};
  return FakeOpusRecorder;
}();
FakeOpusRecorder.version = '8.0.5';
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/recorder/fakeOpusRecorder4Safari.js


var fakeOpusRecorder4Safari_excluded = ["sourceNode"];
var fakeOpusRecorder4Safari_AudioContext = __webpack_require__.g.AudioContext || __webpack_require__.g.webkitAudioContext;
// Constructor
var FakeOpusRecorder4Safari = /*#__PURE__*/function () {
  FakeOpusRecorder4Safari.isRecordingSupported = function isRecordingSupported() {
    var getUserMediaSupported = __webpack_require__.g.navigator && __webpack_require__.g.navigator.mediaDevices && __webpack_require__.g.navigator.mediaDevices.getUserMedia;
    return fakeOpusRecorder4Safari_AudioContext && Boolean(getUserMediaSupported) && __webpack_require__.g.WebAssembly;
  };
  function FakeOpusRecorder4Safari(config, extParams) {
    var _this = this;
    if (config === void 0) {
      config = {};
    }
    this.onRecordError = void 0;
    this.state = void 0;
    this.willStop = void 0;
    this.config = void 0;
    this.encodedSamplePosition = void 0;
    this.initialize = void 0;
    this.stream = void 0;
    this.sourceNode = void 0;
    this.audioContext = void 0;
    this.encoderNode = void 0;
    this.encoder = void 0;
    this.recordedPages = void 0;
    this.totalLength = void 0;
    this.encodeBuffers = function (inputBuffer) {
      if (_this.state === 'recording') {
        var buffers = [];
        for (var i = 0; i < inputBuffer.numberOfChannels; i++) {
          buffers[i] = inputBuffer.getChannelData(i);
        }
        _this.encoder.postMessage({
          command: 'encode',
          buffers: buffers
        });
      }
    };
    if (!FakeOpusRecorder4Safari.isRecordingSupported()) {
      throw new Error('Recording is not supported in this browser');
    }
    this.onRecordError = extParams.onRecordError;
    this.state = 'inactive';
    this.willStop = false;
    this.config = Object.assign({
      bufferLength: 4096,
      encoderApplication: 2049,
      encoderFrameSize: 20,
      encoderPath: 'encoderWorker.min.js',
      encoderSampleRate: 48000,
      maxFramesPerPage: 40,
      mediaTrackConstraints: true,
      monitorGain: 0,
      numberOfChannels: 1,
      recordingGain: 1,
      resampleQuality: 3,
      streamPages: false,
      wavBitDepth: 16,
      sourceNode: {
        context: null
      }
    }, config);
    this.encodedSamplePosition = 0;
    this.initAudioContext();
    this.initialize = this.initWorklet().then(function () {
      return _this.initEncoder();
    });
  }
  var _proto = FakeOpusRecorder4Safari.prototype;
  _proto.clearStream = function clearStream() {
    if (this.stream) {
      if (this.stream.getTracks) {
        this.stream.getTracks().forEach(function (track) {
          return track.stop();
        });
      } else {
        this.stream.stop();
      }
    }
  };
  _proto.close = function close() {
    // this.monitorGainNode.disconnect();
    // this.recordingGainNode.disconnect();
    if (this.sourceNode) {
      this.sourceNode.disconnect();
    }
    this.clearStream();
    if (this.encoder) {
      this.encoderNode.disconnect();
      this.encoder.postMessage({
        command: 'close'
      });
    }
    if (!this.config.sourceNode.context) {
      return this.audioContext.close();
    }
    return Promise.resolve();
  };
  _proto.initAudioContext = function initAudioContext() {
    this.audioContext = this.config.sourceNode.context ? this.config.sourceNode.context : new fakeOpusRecorder4Safari_AudioContext(); // this.monitorGainNode = this.audioContext.createGain();
    // this.setMonitorGain( this.config.monitorGain );
    // this.recordingGainNode = this.audioContext.createGain();
    // this.setRecordingGain( this.config.recordingGain );
  };

  _proto.canUseAudioWorkletNode = function canUseAudioWorkletNode() {
    return typeof this.audioContext.createScriptProcessor !== 'function';
  };
  _proto.initEncoder = function initEncoder() {
    var _this2 = this;
    if (this.audioContext.audioWorklet && this.canUseAudioWorkletNode()) {
      this.encoderNode = new AudioWorkletNode(this.audioContext, 'encoder-worklet', {
        numberOfOutputs: 0
      });
      this.encoder = this.encoderNode.port;
    } else {
      // Skip the first buffer
      // this.encodeBuffers = () => delete this.encodeBuffers;
      this.encoderNode = this.audioContext.createScriptProcessor(this.config.bufferLength, this.config.numberOfChannels, this.config.numberOfChannels);
      this.encoderNode.onaudioprocess = function (_ref) {
        var inputBuffer = _ref.inputBuffer;
        _this2.encodeBuffers(inputBuffer);
      };
      this.encoderNode.connect(this.audioContext.destination); // Requires connection to destination to process audio

      this.encoder = new __webpack_require__.g.Worker(this.config.encoderPath);
    }
  };
  _proto.initSourceNode = function initSourceNode() {
    var _this3 = this;
    if (this.config.sourceNode.context) {
      this.sourceNode = this.config.sourceNode;
      return Promise.resolve();
    }
    var promise = __webpack_require__.g.navigator.mediaDevices.getUserMedia({
      audio: this.config.mediaTrackConstraints
    }).then(function (stream) {
      _this3.stream = stream;
      _this3.sourceNode = _this3.audioContext.createMediaStreamSource(stream);
    });
    if (this.onRecordError) {
      promise["catch"](this.onRecordError);
    }
    return promise;
  };
  _proto.initWorker = function initWorker() {
    var _this4 = this;
    var onPage = (this.config.streamPages ? this.streamPage : this.storePage).bind(this);
    this.recordedPages = [];
    this.totalLength = 0;
    return new Promise(function (resolve) {
      var callback = function callback(_ref2) {
        var data = _ref2.data;
        switch (data.message) {
          case 'ready':
            resolve();
            break;
          case 'page':
            _this4.encodedSamplePosition = data.samplePosition;
            onPage(data.page);
            break;
          case 'done':
            _this4.encoder.removeEventListener('message', callback);
            _this4.finish();
            break;
          default:
            break;
        }
      };
      _this4.encoder.addEventListener('message', callback); // must call start for messagePort messages

      if (_this4.encoder.start) {
        _this4.encoder.start();
      } // exclude sourceNode

      var _this4$config = _this4.config,
        sourceNode = _this4$config.sourceNode,
        config = (0,objectWithoutPropertiesLoose/* default */.Z)(_this4$config, fakeOpusRecorder4Safari_excluded);
      _this4.encoder.postMessage(Object.assign({
        command: 'init',
        originalSampleRate: _this4.audioContext.sampleRate,
        wavSampleRate: _this4.audioContext.sampleRate
      }, config));
    });
  };
  _proto.initWorklet = function initWorklet() {
    if (this.audioContext.audioWorklet && this.canUseAudioWorkletNode()) {
      return this.audioContext.audioWorklet.addModule(this.config.encoderPath);
    }
    return Promise.resolve();
  };
  _proto.pause = function pause(flush) {
    var _this5 = this;
    if (this.state === 'recording') {
      this.state = 'paused'; // this.recordingGainNode.disconnect();

      this.sourceNode.disconnect();
      if (flush && this.config.streamPages) {
        return new Promise(function (resolve) {
          var callback = function callback(_ref3) {
            var data = _ref3.data;
            if (data.message === 'flushed') {
              _this5.encoder.removeEventListener('message', callback);
              _this5.onpause();
              resolve();
            }
          };
          _this5.encoder.addEventListener('message', callback); // must call start for messagePort messages

          if (_this5.encoder.start) {
            _this5.encoder.start();
          }
          _this5.encoder.postMessage({
            command: 'flush'
          });
        });
      }
      this.onpause();
      return Promise.resolve();
    }
  };
  _proto.resume = function resume() {
    if (this.state === 'paused') {
      this.state = 'recording'; // this.recordingGainNode.connect(this.encoderNode);

      this.sourceNode.connect(this.encoderNode);
      this.onresume();
    }
  } // setRecordingGain(gain) {
  //   this.config.recordingGain = gain;
  //   if (this.recordingGainNode && this.audioContext) {
  //     this.recordingGainNode.gain.setTargetAtTime(
  //       gain,
  //       this.audioContext.currentTime,
  //       0.01,
  //     );
  //   }
  // }
  // setMonitorGain(gain) {
  //   this.config.monitorGain = gain;
  //   if (this.monitorGainNode && this.audioContext) {
  //     this.monitorGainNode.gain.setTargetAtTime(
  //       gain,
  //       this.audioContext.currentTime,
  //       0.01,
  //     );
  //   }
  // }
  ;

  _proto.restartStream = function restartStream(mediaTrackConstraints) {
    var _this6 = this;
    if (this.state === 'paused' || this.state === 'recording') {
      this.state = 'inactive';
      this.clearStream();
    }
    if (this.state === 'inactive') {
      this.state = 'loading';
      this.encodedSamplePosition = 0;
      if (typeof mediaTrackConstraints === 'boolean' || typeof this.config.mediaTrackConstraints === 'boolean') {
        this.config.mediaTrackConstraints = mediaTrackConstraints;
      } else {
        this.config.mediaTrackConstraints = (0,esm_extends/* default */.Z)({}, this.config.mediaTrackConstraints, mediaTrackConstraints);
      }
      return this.audioContext.resume().then(function () {
        return _this6.initSourceNode();
      }).then(function () {
        _this6.state = 'recording';
        _this6.sourceNode.connect(_this6.encoderNode);
        _this6.onstart();
      })["catch"](function (error) {
        _this6.state = 'inactive';
        throw error;
      });
    }
    return Promise.resolve();
  };
  _proto.start = function start() {
    var _this7 = this;
    if (this.state === 'inactive') {
      this.state = 'loading';
      this.encodedSamplePosition = 0;
      return this.audioContext.resume().then(function () {
        return _this7.initialize;
      }).then(function () {
        return Promise.all([_this7.initSourceNode(), _this7.initWorker()]);
      }).then(function () {
        _this7.state = 'recording';
        _this7.encoder.postMessage({
          command: 'getHeaderPages'
        }); // this.sourceNode.connect( this.monitorGainNode );
        // this.sourceNode.connect( this.recordingGainNode );
        // this.monitorGainNode.connect( this.audioContext.destination );

        _this7.sourceNode.connect(_this7.encoderNode); // this.encoderNode.connect(this.audioContext.destination);

        _this7.onstart();
        if (_this7.willStop) {
          _this7.stop();
        }
      })["catch"](function (error) {
        _this7.state = 'inactive';
        throw error;
      });
    }
    return Promise.resolve();
  };
  _proto.stop = function stop() {
    var _this8 = this;
    if (this.state === 'loading') {
      this.willStop = true;
    }
    if (this.state === 'paused' || this.state === 'recording') {
      this.willStop = false;
      this.state = 'inactive'; // macOS and iOS requires the source to remain connected (in case stopped while paused)
      // this.recordingGainNode.connect( this.encoderNode );
      // this.monitorGainNode.disconnect();

      this.encoderNode.disconnect();
      this.clearStream();
      return new Promise(function (resolve) {
        var callback = function callback(_ref4) {
          var data = _ref4.data;
          if (data.message === 'done') {
            _this8.encoder.removeEventListener('message', callback);
            resolve();
          }
        };
        _this8.encoder.addEventListener('message', callback); // must call start for messagePort messages

        if (_this8.encoder.start) {
          _this8.encoder.start();
        }
        _this8.encoder.postMessage({
          command: 'done'
        });
      });
    }
    return Promise.resolve();
  };
  _proto.storePage = function storePage(page) {
    this.recordedPages.push(page);
    this.totalLength += page.length;
  };
  _proto.streamPage = function streamPage(page) {
    this.ondataavailable(page);
  };
  _proto.finish = function finish() {
    if (!this.config.streamPages) {
      var outputData = new Uint8Array(this.totalLength);
      this.recordedPages.reduce(function (offset, page) {
        outputData.set(page, offset);
        return offset + page.length;
      }, 0);
      this.ondataavailable(outputData);
    }
    this.onstop();
  } // Callback Handlers
  ;

  _proto.ondataavailable = function ondataavailable(_page) {};
  _proto.onpause = function onpause() {};
  _proto.onresume = function onresume() {};
  _proto.onstart = function onstart() {};
  _proto.onstop = function onstop() {};
  return FakeOpusRecorder4Safari;
}();
FakeOpusRecorder4Safari.version = '8.0.5';
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/recorder/opusRecorder.js







var opusEncoderWorker = '//g.alicdn.com/idst-fe/mind-meeting-assistant2/0.0.15/opusEncoderWorker.min.js';
var OpusRecorder = /*#__PURE__*/function (_AbstractRecorder) {
  (0,inheritsLoose/* default */.Z)(OpusRecorder, _AbstractRecorder);
  function OpusRecorder() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractRecorder.call.apply(_AbstractRecorder, [this].concat(args)) || this;
    _this.fakeRecorder = void 0;
    _this.isPause = false;
    _this.extConfig = {};
    return _this;
  }
  var _proto = OpusRecorder.prototype;
  _proto.start = function start(mediaTrackConstraints) {
    var _this2 = this;
    var newMediaTrackConstraints = true;
    if (typeof mediaTrackConstraints !== 'boolean') {
      newMediaTrackConstraints = (0,esm_extends/* default */.Z)({
        deviceId: 'default',
        echoCancellation: false
      }, mediaTrackConstraints || {});
    }
    return new Promise(function (resolve) {
      var config = (0,esm_extends/* default */.Z)({
        encoderPath: opusEncoderWorker,
        streamPages: true,
        encoderFrameSize: 20,
        maxFramesPerPage: 5,
        resampleQuality: 10,
        encoderSampleRate: 16000,
        mediaTrackConstraints: newMediaTrackConstraints
      }, _this2.getExtConfig());
      var extParams = {
        onRecordError: function onRecordError(error) {
          _this2.state = RecorderState.Stop;
          report_report('用户麦克风异常', 'other_exception', "name=" + error.name + ";message=" + error.message);
        }
      };
      if ((0,browser/* isSafari */.G6)()) {
        _this2.fakeRecorder = new FakeOpusRecorder4Safari((0,esm_extends/* default */.Z)({}, config, {
          encoderPath: config.encoderPath4Safari || config.encoderPath || opusEncoderWorker
        }), extParams);
      } else {
        _this2.fakeRecorder = new FakeOpusRecorder(config, extParams);
      }
      if (_this2.fakeRecorder) {
        _this2.fakeRecorder.onstart = function () {
          _this2.state = RecorderState.Recording;
          _this2.emit('start', {});
          resolve();
        };
        _this2.fakeRecorder.ondataavailable = function (data) {
          _this2.emit('dataavailable', {
            data: data
          });
        };
        _this2.fakeRecorder.start();
      }
    });
  };
  _proto.resume = function resume() {
    return this.start();
  };
  _proto.pause = function pause() {
    this.isPause = true;
    return this.stop();
  };
  _proto.stop = function stop() {
    var _this3 = this;
    return new Promise(function (resolve) {
      if (!_this3.fakeRecorder) {
        _this3.state = RecorderState.Stop;
        _this3.emit('stop', {});
        return;
      }
      _this3.fakeRecorder.onstop = function () {
        _this3.state = _this3.isPause ? RecorderState.Pause : RecorderState.Stop;
        _this3.isPause = false;
        _this3.emit('stop', {});
        resolve();
      };
      _this3.fakeRecorder.stop();
      _this3.fakeRecorder.close();
      _this3.fakeRecorder = undefined;
    });
  };
  _proto.willDeviceChange = function willDeviceChange(mediaTrackConstraints) {
    var _this4 = this;
    return new Promise(function (resolve, reject) {
      if (!_this4.fakeRecorder) {
        return;
      }
      _this4.fakeRecorder.onstart = function () {
        resolve();
      };
      _this4.fakeRecorder.restartStream(mediaTrackConstraints)["catch"](function () {
        _this4.state = RecorderState.Stop;
        reject();
      });
    });
  };
  _proto.getExtConfig = function getExtConfig() {
    return this.extConfig;
  };
  _proto.setExtConfig = function setExtConfig(extConfig) {
    this.extConfig = extConfig;
  };
  return OpusRecorder;
}(AbstractRecorder);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/recorder/decoration/abstractRecorderDecoration.js
var AbstractRecordDecoration = function AbstractRecordDecoration(recorder) {
  var _this$init;
  this.recorder = void 0;
  this.recorder = recorder;
  (_this$init = this.init) == null ? void 0 : _this$init.call(this);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/recorder/decoration/deviceChangeRecorderDecoration.js






var DeviceChangeRecorderDecoration = /*#__PURE__*/function (_AbstractRecordDecora) {
  (0,inheritsLoose/* default */.Z)(DeviceChangeRecorderDecoration, _AbstractRecordDecora);
  function DeviceChangeRecorderDecoration(recorder, onRecordingDeviceChange) {
    var _this;
    _this = _AbstractRecordDecora.call(this, recorder) || this;
    _this.retryTimes = 0;
    _this.deviceChangeTimer = void 0;
    _this.preDeviceId = '';
    _this.onRecordingDeviceChange = void 0;
    _this.getDefaultDevice = /*#__PURE__*/(0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee() {
      var _navigator$mediaDevic;
      var defaultDevice, _navigator$mediaDevic2, _defaultDevice, _stream, stream, deviceList, newDeviceList, _stream2;
      return regenerator_default().wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              if (!((_navigator$mediaDevic = navigator.mediaDevices) != null && _navigator$mediaDevic.enumerateDevices)) {
                _context.next = 18;
                break;
              }
              _context.prev = 1;
              _context.next = 4;
              return window.navigator.mediaDevices.getUserMedia({
                audio: true
              });
            case 4:
              stream = _context.sent;
              _context.next = 11;
              break;
            case 7:
              _context.prev = 7;
              _context.t0 = _context["catch"](1);
              if (_this.retryTimes < 5) {
                _this.handleDeviceChange();
                _this.retryTimes++;
              } else {
                _this.recorder.state = RecorderState.Stop;
              }
              report_report('默认录音设备切换失败', 'deviceChangeError', "name=" + _context.t0.name + ";message=" + _context.t0.message);
            case 11:
              _context.next = 13;
              return (_navigator$mediaDevic2 = navigator.mediaDevices) == null ? void 0 : _navigator$mediaDevic2.enumerateDevices();
            case 13:
              deviceList = _context.sent;
              // 经测试实验，增减不同虚拟声卡、物理录音设备
              // chrome、firefox、safari，在获取设备时，会把默认设备放在返回的设备列表的第一位
              // chrome的默认第一位的deviceId是default(不能过滤)，与firefox、safari有区别
              newDeviceList = deviceList.filter(function (_ref2) {
                var kind = _ref2.kind;
                return kind === 'audioinput';
              });
              defaultDevice = newDeviceList[0]; // chrome特殊处理

              if (((_defaultDevice = defaultDevice) == null ? void 0 : _defaultDevice.deviceId) === 'default') {
                defaultDevice = newDeviceList.find(function (_ref3) {
                  var _defaultDevice2, _defaultDevice3, _defaultDevice3$label;
                  var groupId = _ref3.groupId,
                    deviceId = _ref3.deviceId,
                    label = _ref3.label;
                  return groupId === ((_defaultDevice2 = defaultDevice) == null ? void 0 : _defaultDevice2.groupId) && !['default', 'communications'].includes(deviceId) && ((_defaultDevice3 = defaultDevice) == null ? void 0 : (_defaultDevice3$label = _defaultDevice3.label) == null ? void 0 : _defaultDevice3$label.endsWith(label));
                });
              } // 关闭录音资源

              if ((_stream = stream) != null && _stream.getTracks) {
                stream.getTracks().forEach(function (track) {
                  return track.stop();
                });
              } else {
                (_stream2 = stream) == null ? void 0 : _stream2.stop();
              }
            case 18:
              return _context.abrupt("return", defaultDevice);
            case 19:
            case "end":
              return _context.stop();
          }
        }
      }, _callee, null, [[1, 7]]);
    }));
    _this.handleDeviceChange = /*#__PURE__*/(0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee2() {
      var defaultDevice;
      return regenerator_default().wrap(function _callee2$(_context2) {
        while (1) {
          switch (_context2.prev = _context2.next) {
            case 0:
              clearTimeout(_this.deviceChangeTimer);
              if (!_this.recorder.isDeviceChanging) {
                _context2.next = 4;
                break;
              }

              // 在3s内频繁切换设备，取切换后最后一次的默认设备
              _this.deviceChangeTimer = setTimeout(function () {
                _this.handleDeviceChange();
              }, 3000);
              return _context2.abrupt("return");
            case 4:
              _this.recorder.isDeviceChanging = true; // 获取切换后默认设备

              _context2.next = 7;
              return _this.getDefaultDevice();
            case 7:
              defaultDevice = _context2.sent;
              _context2.prev = 8;
              if (!(defaultDevice && _this.preDeviceId !== defaultDevice.deviceId)) {
                _context2.next = 17;
                break;
              }
              _this.preDeviceId = defaultDevice.deviceId;
              if (!(_this.recorder.state === RecorderState.Recording)) {
                _context2.next = 15;
                break;
              }
              _context2.next = 14;
              return _this.recorder.willDeviceChange == null ? void 0 : _this.recorder.willDeviceChange({
                deviceId: defaultDevice.deviceId
              });
            case 14:
              _this.onRestarted == null ? void 0 : _this.onRestarted();
            case 15:
              _this.onRecordingDeviceChange == null ? void 0 : _this.onRecordingDeviceChange(defaultDevice);
              report_report("\u4F1A\u8BAE\u4E2D\u5207\u6362\u5F55\u97F3\u8BBE\u5907: " + defaultDevice.label);
            case 17:
              _this.retryTimes = 0;
            case 18:
              _context2.prev = 18;
              _this.recorder.isDeviceChanging = false;
              return _context2.finish(18);
            case 21:
            case "end":
              return _context2.stop();
          }
        }
      }, _callee2, null, [[8,, 18, 21]]);
    }));
    _this.listenDeviceChange = function () {
      navigator.mediaDevices.addEventListener('devicechange', _this.handleDeviceChange);
    };
    _this.unListenDeviceChange = function () {
      navigator.mediaDevices.removeEventListener('devicechange', _this.handleDeviceChange);
    };
    _this.onRecordingDeviceChange = onRecordingDeviceChange;
    return _this;
  }
  /**
   * 获取切换设备后的默认设备
   */

  var _proto = DeviceChangeRecorderDecoration.prototype;
  _proto.init = function init() {
    var _this2 = this;
    this.recorder.on('start', /*#__PURE__*/(0,asyncToGenerator/* default */.Z)( /*#__PURE__*/regenerator_default().mark(function _callee3() {
      var defaultDevice;
      return regenerator_default().wrap(function _callee3$(_context3) {
        while (1) {
          switch (_context3.prev = _context3.next) {
            case 0:
              _context3.next = 2;
              return _this2.getDefaultDevice();
            case 2:
              defaultDevice = _context3.sent;
              if (defaultDevice) {
                _this2.preDeviceId = defaultDevice.deviceId;
                report_report("\u4F1A\u8BAE\u5F00\u59CB\u65F6\u5F55\u97F3\u8BBE\u5907: " + defaultDevice.label);
              }
              _this2.listenDeviceChange();
            case 5:
            case "end":
              return _context3.stop();
          }
        }
      }, _callee3);
    })));
    this.recorder.on('stop', function () {
      if (_this2.recorder.state === RecorderState.Stop) {
        _this2.unListenDeviceChange();
      }
    });
  };
  _proto.onRecordEventChange = function onRecordEventChange(type, _payload, next) {
    if (this.recorder.isDeviceChanging) {
      if (type === 'stop' || type === 'start') {
        return;
      }
    }
    next();
  };
  return DeviceChangeRecorderDecoration;
}(AbstractRecordDecoration);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/recorder/decoration/opusDeviceChangeRecorderDecoration.js


var OpusDeviceChangeRecorderDecoration = /*#__PURE__*/function (_DeviceChangeRecorder) {
  (0,inheritsLoose/* default */.Z)(OpusDeviceChangeRecorderDecoration, _DeviceChangeRecorder);
  function OpusDeviceChangeRecorderDecoration() {
    return _DeviceChangeRecorder.apply(this, arguments) || this;
  }
  var _proto = OpusDeviceChangeRecorderDecoration.prototype;
  _proto.onRecordEventChange = function onRecordEventChange(type, payload, next) {
    _DeviceChangeRecorder.prototype.onRecordEventChange.call(this, type, payload, next);
  };
  return OpusDeviceChangeRecorderDecoration;
}(DeviceChangeRecorderDecoration);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/datetime.js
var datetime = __webpack_require__(2207);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/timer/timer.js


var Timer = /*#__PURE__*/function (_Eventer) {
  (0,inheritsLoose/* default */.Z)(Timer, _Eventer);
  function Timer() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _Eventer.call.apply(_Eventer, [this].concat(args)) || this;
    _this.timeout = void 0;
    _this.lastDuration = 0;
    _this.lastMillisecond = 0;
    _this.state = 'stop';
    return _this;
  }
  var _proto = Timer.prototype;
  _proto.getTime = function getTime() {
    var time = 0;
    if (this.state === 'running') {
      time = Date.now() - this.lastMillisecond + this.lastDuration;
    } else {
      time = this.lastDuration;
    }
    return time;
  };
  _proto.onTimeChange = function onTimeChange() {
    var _this2 = this;
    var time = this.getTime();
    this.emit('timeChange', {
      time: time,
      millisecond: time,
      format: this.getFormat()
    });
    clearTimeout(this.timeout);
    this.timeout = setTimeout(function () {
      _this2.onTimeChange();
    }, 1000);
  };
  _proto.getFormat = function getFormat() {
    return (0,datetime/* convertMsToTime */._x)(this.getTime());
  };
  _proto.start = function start() {
    if (this.state === 'running') {
      return;
    }
    this.lastMillisecond = Date.now();
    this.onTimeChange();
    this.state = 'running';
  };
  _proto.pause = function pause() {
    if (this.state === 'pause') {
      return;
    }
    this.lastDuration = this.getTime();
    this.state = 'pause';
    clearTimeout(this.timeout);
  };
  _proto.stop = function stop() {
    if (this.state === 'stop') {
      return;
    }
    this.lastDuration = 0;
    this.lastMillisecond = 0;
    this.state = 'stop';
    clearTimeout(this.timeout);
  };
  _proto.reset = function reset(duration) {
    if (duration === void 0) {
      duration = 0;
    }
    this.lastDuration = duration;
    this.lastMillisecond = Date.now();
  };
  return Timer;
}(eventer/* Eventer */.n);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/timer/timerConnection.js

var TimerConnection = /*#__PURE__*/function () {
  function TimerConnection(params) {
    var _this = this;
    this.params = void 0;
    this.handleStart = function () {
      _this.params.timer.start();
    };
    this.handleStop = function () {
      _this.params.timer.pause();
    };
    this.onMeetingStateChange = function (event) {
      if (event.state === meetingModel/* MeetingState */.k.Stop) {
        _this.params.timer.stop();
      } else if (event.state === meetingModel/* MeetingState */.k.Pause) {
        _this.params.timer.pause();
      } else if (event.state === meetingModel/* MeetingState */.k.InMeeting) {
        _this.params.timer.start();
      }
    };
    this.params = params;
    this.listen();
  }
  var _proto = TimerConnection.prototype;
  _proto.listen = function listen() {
    var _this$params = this.params,
      recorder = _this$params.recorder,
      meetingController = _this$params.meetingController;
    recorder.on('start', this.handleStart);
    recorder.on('stop', this.handleStop);
    meetingController.on('meetingStateChange', this.onMeetingStateChange);
  };
  _proto.unlisten = function unlisten() {
    var _this$params2 = this.params,
      recorder = _this$params2.recorder,
      meetingController = _this$params2.meetingController;
    recorder.off('start', this.handleStart);
    recorder.off('stop', this.handleStop);
    meetingController.off('meetingStateChange', this.onMeetingStateChange);
  };
  return TimerConnection;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/createTingwuMeeting.js











var createDefaultRecorder = function createDefaultRecorder(_ref) {
  var encoderPath4Safari = _ref.encoderPath4Safari,
    onRecordingDeviceChange = _ref.onRecordingDeviceChange;
  var recorder = new OpusRecorder();
  if (encoderPath4Safari) {
    recorder.setExtConfig((0,esm_extends/* default */.Z)({}, recorder.getExtConfig(), {
      encoderPath4Safari: encoderPath4Safari
    }));
  }
  recorder.setDecorations([new OpusDeviceChangeRecorderDecoration(recorder, onRecordingDeviceChange)]);
  return recorder;
};
var createTingwuMeeting = function createTingwuMeeting(params) {
  var _params$recorder = params.recorder,
    recorder = _params$recorder === void 0 ? createDefaultRecorder({
      encoderPath4Safari: params == null ? void 0 : params.encoderPath4Safari,
      onRecordingDeviceChange: params == null ? void 0 : params.onRecordingDeviceChange
    }) : _params$recorder,
    _params$connection = params.connection,
    connection = _params$connection === void 0 ? new RWSConnection() : _params$connection,
    controller = params.controller,
    createCustomCommands = params.createCustomCommands,
    onSaveMeetingResult = params.onSaveMeetingResult,
    onFetchTranslates = params.onFetchTranslates,
    onTranslateMeetingResult = params.onTranslateMeetingResult,
    _params$onTingwuBallS = params.onTingwuBallStatusChange,
    onTingwuBallStatusChange = _params$onTingwuBallS === void 0 ? noop/* default */.Z : _params$onTingwuBallS,
    onSendLog = params.onSendLog;
  var meetingController = new MeetingController();
  var timer = new Timer();
  var timerConnection = new TimerConnection({
    recorder: recorder,
    timer: timer,
    meetingController: meetingController
  });
  var meetingContext = new MeetingContext(meetingController, recorder, connection, timer);
  if (onSendLog) {
    implementReport(function () {
      var _meetingContext$meeti;
      var transId = ((_meetingContext$meeti = meetingContext.meetingConfig) == null ? void 0 : _meetingContext$meeti.transId) || 'unknown';
      for (var _len = arguments.length, messages = new Array(_len), _key = 0; _key < _len; _key++) {
        messages[_key] = arguments[_key];
      }
      onSendLog.apply(void 0, [transId].concat(messages));
    });
  }
  var messageInput = new MessageInput(meetingContext);
  var messageOutput = new MessageOutput(meetingContext);
  meetingContext.setMessageInput(messageInput);
  meetingContext.setMessageOutput(messageOutput);
  var extCommands = createCustomCommands ? createCustomCommands({
    context: meetingContext
  }) : [];
  var commands = [new OpusCommand(meetingContext), new StartCommand(meetingContext), new StopCommand(meetingContext), new ConnectTimeoutCommand(meetingContext), new InMeetingCommand(meetingContext), new VocabularyCommand(meetingContext), new SmartReplaceWordCommand(meetingContext), new InMeetingTranslateCommand(meetingContext), new TranscriptionCommand(meetingContext, controller), new TranslateCommand(meetingContext, controller), new AsrCommand(meetingContext, controller), new PingPongCommand(meetingContext), new ParagraphChangeCommand(meetingContext, controller, onSaveMeetingResult), new UnfixTranslateCommand(meetingContext, controller, onFetchTranslates), new FixTranslateCommand(meetingContext, controller, onTranslateMeetingResult), new TingwuBallStatusCommand(meetingContext, onTingwuBallStatusChange), new UnfixCleanCommand(meetingContext, controller)].concat(extCommands);
  var meetingConnection = new MeetingConnection(meetingContext, commands);
  var destroy = function destroy() {
    meetingController.unlisten();
    meetingConnection.unlisten();
    messageOutput.unlisten();
    timerConnection.unlisten();
  };
  return {
    meetingController: meetingController,
    connection: connection,
    recorder: recorder,
    meetingContext: meetingContext,
    messageInput: messageInput,
    messageOutput: messageOutput,
    timer: timer,
    timerConnection: timerConnection,
    destroy: destroy
  };
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-meeting@0.3.71@@ali/tingwu-meeting/dist-web/command/meetingTimeoutCommand.js


var MeetingTimeoutCommand = /*#__PURE__*/function (_AbstractCommand) {
  (0,inheritsLoose/* default */.Z)(MeetingTimeoutCommand, _AbstractCommand);

  // 4 hours
  function MeetingTimeoutCommand(context, params) {
    var _this;
    _this = _AbstractCommand.call(this, context) || this;
    _this.maxMeetingTime = 4 * 3600 * 1000;
    _this.onTimeout = void 0;
    var maxMeetingTime = params.maxMeetingTime,
      onTimeout = params.onTimeout;
    if (maxMeetingTime != null) {
      _this.maxMeetingTime = maxMeetingTime;
    }
    _this.onTimeout = onTimeout;
    return _this;
  }
  var _proto = MeetingTimeoutCommand.prototype;
  _proto.onReady = function onReady() {
    var _this2 = this;
    var _this$context = this.context,
      timer = _this$context.timer,
      meetingController = _this$context.meetingController;
    this.needCleanups(timer.on('timeChange', function (_ref) {
      var millisecond = _ref.millisecond;
      if (millisecond >= _this2.maxMeetingTime) {
        meetingController.stopMeeting();
        _this2.onTimeout();
      }
    }));
  };
  return MeetingTimeoutCommand;
}(AbstractCommand);
// EXTERNAL MODULE: ./src/components/index.ts + 359 modules
var components = __webpack_require__(5572);
// EXTERNAL MODULE: ./src/utils/index.ts
var utils = __webpack_require__(5340);
// EXTERNAL MODULE: ./src/services/index.ts + 6 modules
var services = __webpack_require__(0);
// EXTERNAL MODULE: ./src/eventer.ts
var src_eventer = __webpack_require__(9048);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/index.js + 5 modules
var config_provider = __webpack_require__(7183);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/message/index.js + 7 modules
var message = __webpack_require__(696);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/index.js + 25 modules
var es_modal = __webpack_require__(3323);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/button/index.js
var es_button = __webpack_require__(7788);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(4816);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(5292);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(8863);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(8271);
;// CONCATENATED MODULE: ./src/libs/chromeExtensionOpusRecorder.ts
var defaultEncoderConfig={bufferLength:4096,encoderApplication:2049,mediaTrackConstraints:true,monitorGain:0,numberOfChannels:1,recordingGain:1,wavBitDepth:16,sourceNode:{context:null},streamPages:true,encoderFrameSize:20,maxFramesPerPage:5,resampleQuality:10,encoderSampleRate:16000};var ChromeExtensionOpusRecorder=/*#__PURE__*/function(_AbstractRecorder){(0,inherits/* default */.Z)(ChromeExtensionOpusRecorder,_AbstractRecorder);var _super=(0,createSuper/* default */.Z)(ChromeExtensionOpusRecorder);function ChromeExtensionOpusRecorder(params){var _this;(0,classCallCheck/* default */.Z)(this,ChromeExtensionOpusRecorder);_this=_super.call(this);_this.opusWorker=void 0;_this.chromeAudioContext=void 0;_this.getAudioContextHook=void 0;_this.getEncoderPath=void 0;_this.input=void 0;_this.processor=void 0;_this.numChannels=2;_this.isMute=false;var getAudioContextHook=params.getAudioContextHook,getEncoderPath=params.getEncoderPath;_this.getAudioContextHook=getAudioContextHook;_this.getEncoderPath=getEncoderPath;return _this;}(0,createClass/* default */.Z)(ChromeExtensionOpusRecorder,[{key:"start",value:function start(){var _this2=this;this.isMute=false;return new Promise(function(resolve){_this2.chromeAudioContext=_this2.getAudioContextHook();_this2.prepareEncoder();var _this2$chromeAudioCon=_this2.chromeAudioContext,audioContext=_this2$chromeAudioCon.audioContext,source=_this2$chromeAudioCon.source;_this2.input=audioContext.createGain();source.connect(_this2.input);var numChannels=_this2.numChannels;_this2.processor=audioContext.createScriptProcessor(1024,numChannels,numChannels);_this2.input.connect(_this2.processor);_this2.processor.connect(audioContext.destination);_this2.processor.onaudioprocess=function(event){var buffers=[];for(var ch=0;ch<numChannels;++ch){buffers[ch]=event.inputBuffer.getChannelData(ch);}_this2.encode(buffers);};_this2.emit('start',{});resolve();});}},{key:"pause",value:function pause(){this.isMute=true;return Promise.resolve();}},{key:"resume",value:function resume(){this.isMute=false;return Promise.resolve();}},{key:"stop",value:function stop(){var _this3=this;return new Promise(function(resolve){var _this3$input,_this3$processor;if(_this3.chromeAudioContext){var _this3$chromeAudioCon=_this3.chromeAudioContext,micStream=_this3$chromeAudioCon.micStream,tabStream=_this3$chromeAudioCon.tabStream,audioContext=_this3$chromeAudioCon.audioContext;micStream===null||micStream===void 0?void 0:micStream.getTracks().forEach(function(track){track.stop();});tabStream.getTracks().forEach(function(track){track.stop();});audioContext.close();}(_this3$input=_this3.input)===null||_this3$input===void 0?void 0:_this3$input.disconnect();(_this3$processor=_this3.processor)===null||_this3$processor===void 0?void 0:_this3$processor.disconnect();delete _this3.input;delete _this3.processor;_this3.emit('stop',{});_this3.finishEncoder();resolve();});}},{key:"prepareEncoder",value:function prepareEncoder(){var _this4=this;if(!this.chromeAudioContext){return;}var audioContext=this.chromeAudioContext.audioContext;this.opusWorker=new Worker(this.getEncoderPath());var initCommand=Object.assign({command:'init',originalSampleRate:audioContext.sampleRate,wavSampleRate:audioContext.sampleRate},defaultEncoderConfig);this.opusWorker.postMessage(initCommand);this.opusWorker.postMessage({command:'getHeaderPages'});this.opusWorker.onmessage=function(_ref){var data=_ref.data;if(_this4.isMute){return;}if(data.message==='page'){_this4.emit('dataavailable',{data:data.page});}};}},{key:"encode",value:function encode(data){if(!this.opusWorker){return;}this.opusWorker.postMessage({command:'encode',buffers:[data[0]]});}},{key:"finishEncoder",value:function finishEncoder(){if(!this.opusWorker){return;}this.opusWorker.postMessage({command:'done'});this.opusWorker.onmessage=null;delete this.opusWorker;}}]);return ChromeExtensionOpusRecorder;}(AbstractRecorder);
;// CONCATENATED MODULE: ./src/libs/index.ts

// EXTERNAL MODULE: ./src/models/log.ts
var log = __webpack_require__(4395);
// EXTERNAL MODULE: ./src/extends/index.ts + 8 modules
var src_extends = __webpack_require__(8227);
// EXTERNAL MODULE: ./node_modules/_styled-components@5.3.11@styled-components/dist/styled-components.browser.esm.js + 4 modules
var styled_components_browser_esm = __webpack_require__(2010);
// EXTERNAL MODULE: ./src/components/loginPanel/styled.tsx
var styled = __webpack_require__(2073);
// EXTERNAL MODULE: ./src/index.css
var src = __webpack_require__(4676);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(9386);
;// CONCATENATED MODULE: ./src/content.tsx
var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6;config_provider/* default */.ZP.config({prefixCls:'tweant'});var StorageNotificationFCTitle=styled_components_browser_esm/* default */.ZP.div(_templateObject||(_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  font-weight: 500;\n  color: #f25a5a;\n  text-align: center;\n  line-height: 20px;\n  font-size: 14px;\n"])));var StorageNotificationFCTitleEnough=styled_components_browser_esm/* default */.ZP.div(_templateObject2||(_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n    height: 20px;\n    font-weight: 500;\n    font-size: 14px;\n    color: #F25A5A;\n    letter-spacing: 0;\n    text-align: center;\n    line-height: 20px;\n"])));var StorageNotificationBody=styled_components_browser_esm/* default */.ZP.div(_templateObject3||(_templateObject3=(0,taggedTemplateLiteral/* default */.Z)(["\n  position: absolute;\n  left: 0px;\n  width: 100%;\n  top: 44px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  .BigMusicIcon {\n    width: 92px;\n    margin-top: 10px\n  }\n  .StorageNotificationContent {\n    margin-top: 20px;\n  }\n"])));var StorageNotificationFCDescEnough=styled_components_browser_esm/* default */.ZP.div(_templateObject4||(_templateObject4=(0,taggedTemplateLiteral/* default */.Z)(["\n  font-weight: 400;\n  font-size: 12px;\n  color: rgba(39, 38, 77, 0.65);\n  line-height: 20px;\n  text-align: center;\n"])));var StorageNotificationFCDesc=styled_components_browser_esm/* default */.ZP.div(_templateObject5||(_templateObject5=(0,taggedTemplateLiteral/* default */.Z)(["\n  font-weight: 400;\n  font-size: 12px;\n  color: rgba(39, 38, 77, 0.65);\n  line-height: 20px;\n"])));var StorageNotificationFCTextButton=styled_components_browser_esm/* default */.ZP.span(_templateObject6||(_templateObject6=(0,taggedTemplateLiteral/* default */.Z)(["\n  font-weight: 400;\n  font-size: 12px;\n  color: #605ce5;\n  line-height: 20px;\n  cursor: pointer;\n"])));var OPUS_ABSOLUTE_URL=chrome.runtime.getURL("opusEncoderWorker.min.js");var ANTD_CSS_URL=chrome.runtime.getURL("antd.css");var TWEANTD_CSS_URL=chrome.runtime.getURL("tweantd.css");var controller=new dist_web_controller/* Controller */.Qr();var id="tingwu-extension-".concat(String(Date.now()));// function generateTranscription() {
//   const transcription = new Transcription({
//     format: 'opus',
//   });
//   transcription.setFactoryRecorder((s) => {
//     const recorder = new DefaultRecorder(s);
//     const encoder = new OpusEncoder(
//       getWorkerUrl(OPUS_ABSOLUTE_URL),
//       s,
//     );
//     return new RecorderWithEncoder(recorder, encoder);
//   });
//   return transcription;
// }
var localAudioContext;var getAudioContextHook=function getAudioContextHook(){return localAudioContext;};var onSaveMeetingResult=/*#__PURE__*/function(){var _ref=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(transId,payload){return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return services/* service */.X.saveMeetingDocResult(Number(transId),payload);case 2:case"end":return _context.stop();}},_callee);}));return function onSaveMeetingResult(_x,_x2){return _ref.apply(this,arguments);};}();var onFetchTranslates=/*#__PURE__*/function(){var _ref2=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(meetingId,sourceLanguage,targetLanguage,needTranslates){var body,_ref3,translatedList;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return services/* service */.X.getTranslates(meetingId,sourceLanguage,targetLanguage,needTranslates);case 3:body=_context2.sent;_ref3=body.data||{},translatedList=_ref3.translatedList;return _context2.abrupt("return",translatedList);case 8:_context2.prev=8;_context2.t0=_context2["catch"](0);console.error(_context2.t0);throw _context2.t0;case 12:case"end":return _context2.stop();}},_callee2,null,[[0,8]]);}));return function onFetchTranslates(_x3,_x4,_x5,_x6){return _ref2.apply(this,arguments);};}();var onTranslateMeetingResult=/*#__PURE__*/function(){var _ref4=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee3(meetingId,sourceLanguage,targetLanguage,payload){var body,_ref5,translatedDoc,p;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;_context3.next=3;return services/* service */.X.getRealtimeTranslate(meetingId,sourceLanguage,targetLanguage,payload);case 3:body=_context3.sent;_ref5=body.data||{},translatedDoc=_ref5.translatedDoc;p=JSON.parse(translatedDoc);return _context3.abrupt("return",{pg:[p]});case 9:_context3.prev=9;_context3.t0=_context3["catch"](0);console.error(_context3.t0);throw _context3.t0;case 13:case"end":return _context3.stop();}},_callee3,null,[[0,9]]);}));return function onTranslateMeetingResult(_x7,_x8,_x9,_x10){return _ref4.apply(this,arguments);};}();var recorder=new ChromeExtensionOpusRecorder({getAudioContextHook:getAudioContextHook,getEncoderPath:function getEncoderPath(){return (0,utils/* getWorkerUrl */.G6)(OPUS_ABSOLUTE_URL);}});var overTimeState=false;var setoverTimeStateFun=function setoverTimeStateFun(){overTimeState=false;};var _createTingwuMeeting=createTingwuMeeting({controller:controller,recorder:recorder,onSaveMeetingResult:onSaveMeetingResult,onFetchTranslates:onFetchTranslates,onTranslateMeetingResult:onTranslateMeetingResult,onTingwuBallStatusChange:function onTingwuBallStatusChange(){},onSendLog:function onSendLog(){},createCustomCommands:function createCustomCommands(_ref6){var context=_ref6.context;return[new MeetingTimeoutCommand(context,{onTimeout:function onTimeout(){overTimeState=true;}//超时时间，不给的话，就是四小时
// maxMeetingTime: 1000,
})];}}),meetingController=_createTingwuMeeting.meetingController,meetingContext=_createTingwuMeeting.meetingContext,timer=_createTingwuMeeting.timer;var getTransId=function getTransId(){var _meetingContext$meeti;return(_meetingContext$meeti=meetingContext.meetingConfig)===null||_meetingContext$meeti===void 0?void 0:_meetingContext$meeti.transId;};var getMeetingContext=function getMeetingContext(){return meetingContext;};var prepareCss=function prepareCss(){var link=document.createElement("link");link.rel="stylesheet";link.href=ANTD_CSS_URL;document.head.prepend(link);var link2=document.createElement("link");link2.rel="stylesheet";link2.href=TWEANTD_CSS_URL;document.head.prepend(link2);};function initElements(){return _initElements.apply(this,arguments);}function _initElements(){_initElements=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(){var callByIcon,isVisibleTips,hasNoCompetence,elem,container,root,_args2=arguments;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:callByIcon=_args2.length>0&&_args2[0]!==undefined?_args2[0]:false;isVisibleTips=_args2.length>1&&_args2[1]!==undefined?_args2[1]:false;hasNoCompetence=_args2.length>2&&_args2[2]!==undefined?_args2[2]:false;elem=document.getElementById(id);if(!(elem!=null)){_context5.next=7;break;}if(callByIcon){src_eventer/* eventer */.M.emit('recalled',{isVisibleTips:isVisibleTips,hasNoCompetence:hasNoCompetence});}return _context5.abrupt("return");case 7:container=document.createElement("div");container.id=id;container.setAttribute("data-test-version",(0,src_extends/* getGlobalConfig */.H)().getTestInfo());document.body.append(container);prepareCss();root=client.createRoot(container);root.render(/*#__PURE__*/(0,jsx_runtime.jsx)(components/* Provider */.zt,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(components/* App */.gV,{controller:controller,meetingController:meetingController,timer:timer,getTransId:getTransId,getMeetingContext:getMeetingContext})}));case 14:case"end":return _context5.stop();}},_callee5);}));return _initElements.apply(this,arguments);}chrome.runtime.onMessage.addListener(/*#__PURE__*/function(){var _ref7=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(request,sender,sendResponse){var type,payload,env,streamId,options,enableMicphone,filename,dirId,sourceLanguage,response,_response$data,meetingId,transId,meetingJoinUrl,targetLanguage,doExitMeetingErrorMap,modal,modal1;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:type=request.type,payload=request.payload;env=(0,src_extends/* getGlobalConfig */.H)().getEnvInfo();// const { errorCode } = useErrorCodeFun();
if(!(type==="initTingwu")){_context4.next=7;break;}initElements(true);sendResponse("hello");_context4.next=66;break;case 7:if(!(type==="startCaptureDesktopMedia")){_context4.next=66;break;}initElements();streamId=payload.streamId,options=payload.options,enableMicphone=payload.enableMicphone,filename=payload.filename,dirId=payload.dirId,sourceLanguage=payload.sourceLanguage;if(options){_context4.next=13;break;}// http协议，没有权限无法正常调用本地多媒体设备
initElements(true,false,true);return _context4.abrupt("return");case 13:if(options.canRequestAudioTrack){_context4.next=16;break;}initElements(true,true);// window.alert('需要分享标签中的音频才可以正常使用听悟插件');
return _context4.abrupt("return");case 16:_context4.prev=16;_context4.prev=17;_context4.next=20;return (0,utils/* getTingwuAudioContextByStreamId */.rw)(streamId,enableMicphone);case 20:localAudioContext=_context4.sent;_context4.next=27;break;case 23:_context4.prev=23;_context4.t0=_context4["catch"](17);if((_context4.t0===null||_context4.t0===void 0?void 0:_context4.t0.type)==='micPermissionDenied'){message/* default */.ZP.destroy();message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById('Submit_Button')||document.body;}});message/* default */.ZP.warn({content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:"\u62B1\u6B49\uFF0C\u5F53\u524D\u7F51\u9875\u65E0\u6CD5\u4F7F\u7528\u672C\u529F\u80FD"}),duration:3});}return _context4.abrupt("return");case 27:_context4.next=29;return services/* service */.X.startMeeting(filename,dirId,sourceLanguage);case 29:response=_context4.sent;_response$data=response.data,meetingId=_response$data.meetingId,transId=_response$data.transId,meetingJoinUrl=_response$data.meetingJoinUrl;services/* service */.X.getSyncTransTag(Number(transId),{read:'1'});if(meetingJoinUrl){_context4.next=34;break;}throw new Error("`meetingJoinUrl` not provider");case 34:// globalTranscription.setConnection(
//   new WsConnection(response.data.meetingJoinUrl),
// );
controller.injectSpeakersGetter(function(){return[];});controller.injectSpeakersSetter(function(){});controller.injectDefaultSpeakerNameGetter(function(){return"";});controller.resetModelValue();controller.setLivingMode(true);controller.setTranslateMode(translateController/* TranslateMode */.R.Disabled);targetLanguage=sourceLanguage==="cn"?"en":"cn";meetingController.startMeeting({serverUrl:meetingJoinUrl,transId:String(transId),meetingId:String(meetingId),sourceLanguage:sourceLanguage,targetLanguage:targetLanguage,enableTranslate:true});(0,log/* sendLog */.gp)("start_record_success",{et:"SYS",c1:String(transId),c2:window.location.href});_context4.next=45;return services/* service */.X.setMarksGuideStatus(1);case 45:_context4.next=66;break;case 47:_context4.prev=47;_context4.t1=_context4["catch"](16);console.error(_context4.t1);doExitMeetingErrorMap={"ACT.accountLocked":"账号已过期无法转写，支持查看历史会议纪要!","ACT.accountExpired":"账号已过期无法转写，支持查看历史会议纪要!","CHA.quotaFileSizeError":"已超过每日文件转写大小限制，开启失败!","CHA.quotaDurationError":"已超过每日会议时长上限，开启失败!"};message/* default */.ZP.destroy();message/* default */.ZP.config({getContainer:function getContainer(){return document.getElementById("draggable_panel")||document.body;}});if(!doExitMeetingErrorMap[_context4.t1===null||_context4.t1===void 0?void 0:_context4.t1.code]){_context4.next=57;break;}message/* default */.ZP.error(doExitMeetingErrorMap[_context4.t1.code]);_context4.next=66;break;case 57:_context4.t2=_context4.t1===null||_context4.t1===void 0?void 0:_context4.t1.code;_context4.next=_context4.t2==="TIG.TransTimeInsufficient"?60:_context4.t2==="TIG.StorageInsufficient"?62:_context4.t2==="TIG.TransTimeAndStorageInsufficient"?64:66;break;case 60:modal=es_modal/* default */.Z.info({getContainer:function getContainer(){return document.getElementById("draggable_panel")||document.body;},centered:true,icon:null,width:276,bodyStyle:{height:303},closable:true,closeIcon:/*#__PURE__*/(0,jsx_runtime.jsx)(styled/* CloseButton */.PZ,{}),okButtonProps:{style:{display:"none"}},title:null,content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:/*#__PURE__*/(0,jsx_runtime.jsxs)(StorageNotificationBody,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)("img",{src:chrome.runtime.getURL("equityNotification.png"),alt:"",className:"BigMusicIcon"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"StorageNotificationContent",children:[/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationFCTitle,{children:"\u62B1\u6B49\uFF0C\u8F6C\u5199\u65F6\u957F\u5DF2\u7528\u5B8C"}),/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationFCDesc,{style:{marginTop:8,textAlign:"center"},children:"\u53EF\u524D\u5F80\u6743\u76CA\u52A0\u6CB9\u7AD9\u83B7\u53D6\u8F6C\u5199\u65F6\u957F"}),/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{textAlign:"center"},children:/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.Z,{type:"primary",style:{marginTop:20,paddingLeft:20,paddingRight:20},onClick:function onClick(){modal===null||modal===void 0?void 0:modal.destroy();var u=env.tingwuUrl+"/equity/receive";window.open(u);},children:"\u6743\u76CA\u52A0\u6CB9\u7AD9"})})]})]})})});return _context4.abrupt("break",66);case 62:es_modal/* default */.Z.info({getContainer:function getContainer(){return document.getElementById("draggable_panel")||document.body;},centered:true,icon:null,width:276,bodyStyle:{height:268},closable:true,closeIcon:/*#__PURE__*/(0,jsx_runtime.jsx)(styled/* CloseButton */.PZ,{}),okButtonProps:{style:{display:"none"}},title:null,content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:/*#__PURE__*/(0,jsx_runtime.jsxs)(StorageNotificationBody,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)("img",{src:chrome.runtime.getURL("equityNotification.png"),alt:"",className:"BigMusicIcon"}),/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"StorageNotificationContent",children:/*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationFCTitle,{children:"\u62B1\u6B49\uFF0C\u5B58\u50A8\u7A7A\u95F4\u4E0D\u8DB3"}),/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationFCDesc,{style:{marginTop:16,textAlign:"center"},children:"\u8BF7\u5220\u9664\u8BB0\u5F55\u5E76\u6E05\u7406\u56DE\u6536\u7AD9\u540E\u518D\u4F7F\u7528"})]})})]})})});return _context4.abrupt("break",66);case 64:modal1=es_modal/* default */.Z.info({getContainer:function getContainer(){return document.getElementById("draggable_panel")||document.body;},centered:true,icon:null,width:276,bodyStyle:{height:306},closable:true,closeIcon:/*#__PURE__*/(0,jsx_runtime.jsx)(styled/* CloseButton */.PZ,{}),okButtonProps:{style:{display:"none"}},title:null,content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:/*#__PURE__*/(0,jsx_runtime.jsxs)(StorageNotificationBody,{children:[/*#__PURE__*/(0,jsx_runtime.jsx)("img",{src:chrome.runtime.getURL("equityNotification.png"),alt:"",className:"BigMusicIcon"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{className:"StorageNotificationContent",children:[/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationFCTitleEnough,{children:"\u8F6C\u5199\u65F6\u957F\u4E0E\u5B58\u50A8\u7A7A\u95F4\u90FD\u7528\u5B8C\u5566"}),/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{style:{marginTop:10},children:[/*#__PURE__*/(0,jsx_runtime.jsx)("div",{children:/*#__PURE__*/(0,jsx_runtime.jsxs)(StorageNotificationFCDesc,{children:["\u53EF\u524D\u5F80",/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationFCTextButton,{style:{marginLeft:9,marginRight:9},onClick:function onClick(){modal1===null||modal1===void 0?void 0:modal1.destroy();var u=env.tingwuUrl+"/equity/receive";window.open(u);},children:"\u6743\u76CA\u52A0\u6CB9\u7AD9"}),"\u83B7\u53D6\u514D\u8D39\u8F6C\u5199\u65F6\u957F"]})}),/*#__PURE__*/(0,jsx_runtime.jsxs)("div",{style:{marginTop:4},children:[/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationFCDescEnough,{children:"\u5B58\u50A8\u7A7A\u95F4\u4E0D\u8DB3\uFF0C\u8BF7\u5220\u9664\u8BB0\u5F55"}),/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationFCDescEnough,{children:"\u5E76\u6E05\u7406\u56DE\u6536\u7AD9\u540E\u518D\u4F7F\u7528"})]})]})]})]})})});return _context4.abrupt("break",66);case 66:case"end":return _context4.stop();}},_callee4,null,[[16,47],[17,23]]);}));return function(_x11,_x12,_x13){return _ref7.apply(this,arguments);};}());/* harmony default export */ var content = ({});

/***/ }),

/***/ 9048:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   M: function() { return /* binding */ eventer; }
/* harmony export */ });
/* harmony import */ var _ali_tingwu_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6321);
var eventer=new _ali_tingwu_common__WEBPACK_IMPORTED_MODULE_0__/* .Eventer */ .n();

/***/ }),

/***/ 8227:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  H: function() { return /* reexport */ getGlobalConfig; }
});

// UNUSED EXPORTS: createConfig

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
;// CONCATENATED MODULE: ./node_modules/_@ali_ateb@0.0.5@@ali/ateb/dist-web/index.js


// Key Types
function isExtension(ext) {
  return ext instanceof Function;
}
function defaultApplicator(generator, strategy) {
  return generator(strategy);
}
var Ateb = /*#__PURE__*/function () {
  /**
   * The partial generator taking a strategy object and generate a target object
   * 
   * @type {PartialGenerator<R, S, D>}
   * @memberof Ateb
   */

  /**
   * The applicator deciding how to apply the generator on the strategy
   *
   * @type {Applicator<O, R>}
   * @memberof Ateb
   */

  /**
   * A wrapper of the extensible expression with chained methods
   * @param generator
   * @param strategy 
   * @param applicator 
   */
  function Ateb(generator, strategy, applicator) {
    this.generator = void 0;
    this.strategy = void 0;
    this.generate = void 0;
    this.applicator = void 0;
    this.generator = generator;
    this.strategy = strategy;
    this.applicator = applicator;
    this.generate =
    /**
     * Generate value from a partial strategy using the given applicator (by default \gs.gs)
     * @param override A partial strategy to override the defaults
     * @returns A value generated through the given applicator (by default \gs.gs)
     */
    function (override) {
      return applicator(generator, (0,esm_extends/* default */.Z)({}, strategy, override));
    };
  }
  /**
   * Extend the Ateb to generated a new Ateb with additional behaviors and extensible strategies
   * @param extender An extension to the Ateb with additional strategy of T
   * @returns A new Ateb with strategy S & T
   */

  var _proto = Ateb.prototype;
  _proto.extendedBy = function extendedBy(ext) {
    var generator = this.generator,
      strategy = this.strategy;
    var _ref = isExtension(ext) ? ext({}) : ext,
      decorator = _ref[0],
      override = _ref[1];
    return new Ateb(decorator(generator), (0,esm_extends/* default */.Z)({}, strategy, override), this.applicator);
  }
  /**
   * Get a new Ateb using the given applicator
   * @param applicator The applicator
   * @returns The new Ateb
   */;

  _proto.usingApplicator = function usingApplicator(applicator) {
    return new Ateb(this.generator, this.strategy, applicator);
  }
  /**
   * Define an extension for the Ateb with given strategy
   * @param strategy The default strategy filling the slots in the extension
   * @returns The clause to fill the Decorator of the extension
   */;

  _proto.extensionWithStrategy = function extensionWithStrategy(strategy) {
    return {
      /**
       * The clause to fill the Decorator of the extension
       * @param decorator The Decorator of the extension
       * @returns An extension for the specified Ateb
       */
      andDecorator: function andDecorator(decorator) {
        /**
         * Generator extender from the extension with an overriding strategy
         * @param strategy The overriding strategy
         * @returns A tuple of [Decorator, Strategy] as an extender
         */
        var extension = function extension(override) {
          return [decorator, (0,esm_extends/* default */.Z)({}, strategy, override)];
        };
        return extension;
      }
    };
  };
  return Ateb;
}();
var index = {
  /**
   * The clause to fill the default strategy of the Ateb
   * @param strategy The default strategy of the Ateb
   * @returns The clause to fill the Generator of the Ateb
   */
  withStrategy: function withStrategy(strategy) {
    return {
      /**
       * The clause to fill the Generator of the Ateb
       * @param generator The Generator of the Ateb
       * @returns The Ateb with given Strategy and Generator
       */
      andGenerator: function andGenerator(generator) {
        return new Ateb(generator, strategy, defaultApplicator);
      }
    };
  }
};
/* harmony default export */ var dist_web = (index);

;// CONCATENATED MODULE: ./src/extends/logo.ts
var logoInAliBase64='data:image/svg+xml;base64, ';var logoBase64='data:image/svg+xml;base64, ';var logoTongyiBase64='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAPCAYAAAB6Iuj1AAAAAXNSR0IArs4c6QAABFlJREFUWEfdWE1oFVcU/s6Ymvc04BMV08aFiibaCt1IKVSMWXXTdtelIN0U2kWTTbVUMIFCoUVS0JWLgouCIKWbRropvoBQKi2tRU1SSH+wiihisU0zajKnnDv3TM6bd9/MvHRVZzPv3jn3nHO/+52f+whdPhdeT+5TxA0GsCbh6ZfP9xzqUsUTLU7d7O6Lw0nzcQ8PgwhghrxrD2nstc/ok270qCwzHyKi5mrW2jXMPE5E4/9Vj6wXn+Sd90tsAGiW+VsZ0HNv8Og/65JJwRGyKsUTTz2iPw+fiTZ2uxnv+EUiIv1doGMktEEFkdl5NWHGDtw8yB6UzIx893PDflKjLWRPbIwAEJkTHXwdqQzop28lzb/6oIZb9L3zUVRZT45ZGRAeVHFWbEwbpzOgLLMBXFQQPSiySSfrARY2CQDZo/MeFImMCa9Ho0TstrEwoF/8dPZF3tqoDMTk0eT+Qh0NR82VM3ZU3XIvGnvzVPdhbxijTuVP3zkcCjPdpDDch6qGvOiSzZaxTA5OAW2TNYcnekVW2StrdGzBnJbDrAzosY8Ti6Q5dqC2hKvj78WNdJK+Tl/1I0VpwOYqwwBxUB23IAdD3rNYWenyMTMLmPK7bW+eoRq2FtB2pvncbg5dIsACKH7KOnlc5EpEVAb07dMJa+6078vPEW5vBm70x8CmFvae7QRqLmfavGRP3/4OMijAUg3FtnD3LLZ50AIaOntn0x+QpiBNIRpJOtacOlEJ0OMfcvNGPw9n1cib/3GQcGUwHez7PsG1vY/BAwmwJp2LQGeTDkw1oFpAKzPUA9QCYBE7SwBVhmZ5UdOMYbV+61SQ0sAsCkv59v4HPDqzmydNcXeLru8gzO5oXf3s5QQz2wVUBjZ4ttK6jjZyIeiKislPpQw1uVPDUQAuyodBhpo87L7bnK0tmfG1I2SyjsCLBwDevyJF34Hql2T87kke/WGIJwkEhkR8+v5lG2F+IKx3z5x0/EASLYP6GHNDy6+ip/ZlSDoAaFcMVZ3KTD/uBlAXykWAGhulbZPoofrMUhw/pF76I8n2XBugW1sf0ab+Ber1/bur7UK1azsJD9YX83roV16YeyHqK5IyIa+J3W3MFChJBcK8YIHJsVOGomcllwUafdM2qWsC6LC2V3rAHbqKFkBt0bM9tQvH+jdJvLiLevMArP2dMbiURuxCHbizMX0XPc/P8NSVg9ErFcFUsTEADdOY24otVTyrrqZfDYKXY6vrNU0+zN+mst7V5tgqgJoKL0tdG+UYajde+3Y5jndGLcA27jLiDYR4bVm2Bfb9zFNXXyoGM8esjIVee+gaqldB229qvm27DXn9WoVdaxO6luY7hFUAmve1HVCFbPsl/vy3IZzClpQZAz8lf998mgoDfc88T82+WA5mh1wqG9f+U29jEo7Zs5q7etl/BfnvRfL2W0hO50qrvO6of5a/whIfuL11Bdj6IvDMHZ6a3786IMs5//+T+BfwNWzhLt64mAAAAABJRU5ErkJggg==';
;// CONCATENATED MODULE: ./src/extends/atebBasicConfig.ts
var atebBasicConfig=dist_web.withStrategy({version:'1.0.0',getTestInfo:function getTestInfo(){return'basic';},renderExtContent:function renderExtContent(){var idName=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return null;},renderLogoSize:function renderLogoSize(){return'100px';},renderLogoUrl:function renderLogoUrl(){return'logoStartPanelAli.svg';},renderLogoAndTitleUrl:function renderLogoAndTitleUrl(){return'logoStartPanelAli.svg';},renderLogoSizeInCaption:function renderLogoSizeInCaption(){return'86px';},renderLogoBase64:function renderLogoBase64(){return logoInAliBase64;},getEnvInfo:function getEnvInfo(){return{publishName:'alibabaGroup',tingwuUrl:'https://tingwu.aliyuncs.com',loginUrl:'https://tingwu.aliyuncs.com/register/login',apiPrefix:'https://tingwu.aliyuncs.com/api',env:'prod'};}}).andGenerator(function(s){return s;});var extPreBasicConfig=atebBasicConfig.extensionWithStrategy({getEnvInfo:function getEnvInfo(){return{publishName:'alibabaGroup',tingwuUrl:'https://pre-tingwu.aliyuncs.com',loginUrl:'https://pre-tingwu.aliyuncs.com/register/login',apiPrefix:'https://pre-tingwu.aliyuncs.com/api',env:'pre'};}}).andDecorator(function(generator){return function(props){return generator((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},props),{},{getTestInfo:function getTestInfo(){return props.getTestInfo()+'/pre';}}));};});
;// CONCATENATED MODULE: ./src/extends/extPublicServerConfig.ts
var extPublicServerConfig=atebBasicConfig.extensionWithStrategy({getEnvInfo:function getEnvInfo(){return{publishName:'publicServer',tingwuUrl:'https://tingwu.aliyun.com',loginUrl:'https://tingwu.aliyun.com/register/login',apiPrefix:'https://tingwu.aliyun.com/api',env:'prod'};},renderLogoSize:function renderLogoSize(){return'95px';},renderLogoSizeInCaption:function renderLogoSizeInCaption(){return'84px';},renderLogoUrl:function renderLogoUrl(){return'logoStartPanelTongyi.svg';},renderLogoAndTitleUrl:function renderLogoAndTitleUrl(){return'logoSlogan.svg';},renderLogoBase64:function renderLogoBase64(){return'logoTongyi.svg';}}).andDecorator(function(generator){return function(props){return generator((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},props),{},{getTestInfo:function getTestInfo(){return props.getTestInfo()+'/publicServer';}}));};});var extPrePublicServerConfig=atebBasicConfig.extendedBy(extPublicServerConfig).extensionWithStrategy({getEnvInfo:function getEnvInfo(){return{publishName:'publicServer',tingwuUrl:'https://pre-tingwu.aliyun.com',loginUrl:'https://pre-tingwu.aliyun.com/register/login',apiPrefix:'https://pre-tingwu.aliyun.com/api',env:'pre'};}}).andDecorator(function(generator){return function(props){return generator((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},props),{},{getTestInfo:function getTestInfo(){return props.getTestInfo()+'/publicServerPre';}}));};});
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/taggedTemplateLiteral.js
var taggedTemplateLiteral = __webpack_require__(9008);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/index.js + 25 modules
var modal = __webpack_require__(3323);
// EXTERNAL MODULE: ./node_modules/_styled-components@5.3.11@styled-components/dist/styled-components.browser.esm.js + 4 modules
var styled_components_browser_esm = __webpack_require__(2010);
// EXTERNAL MODULE: ./node_modules/_recoil@0.7.7@recoil/es/index.js + 5 modules
var es = __webpack_require__(3637);
// EXTERNAL MODULE: ./src/models/index.ts + 5 modules
var models = __webpack_require__(2585);
// EXTERNAL MODULE: ./src/services/index.ts + 6 modules
var services = __webpack_require__(0);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(9386);
;// CONCATENATED MODULE: ./src/components/updateVersionDailog/upfateVersionDialog.tsx
var _templateObject,_templateObject2;var CloseButton=styled_components_browser_esm/* default */.ZP.div(_templateObject||(_templateObject=(0,taggedTemplateLiteral/* default */.Z)(["\n  background-image: url(",");\n  background-size: contain;\n  background-repeat: no-repeat;\n  background-position: center center;\n  width: 20px;\n  height: 20px;\n  cursor: pointer;\n  &:hover {\n    background-image: url(",");\n  }\n"])),chrome.runtime.getURL("closeSmall.svg"),chrome.runtime.getURL("closeHoverSmall.svg"));var StorageNotificationBody=styled_components_browser_esm/* default */.ZP.div(_templateObject2||(_templateObject2=(0,taggedTemplateLiteral/* default */.Z)(["\n  position: absolute;\n  left: 0px;\n  width: 100%;\n  top: 44px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  .des {\n    height: 40px;\n    width: 172px;\n    font-family: PingFangSC;\n    font-weight: 400;\n    font-size: 12px;\n    color: rgba(39, 38, 77, 0.65);\n    letter-spacing: 0;\n    text-align: justify;\n    line-height: 20px;\n    display: block;\n  }\n  .StorageNotificationContent {\n    margin-top: 20px;\n  }\n"])));var semver=__webpack_require__(3779);var UpdateVersionDialog=/*#__PURE__*/(0,_react_18_2_0_react.memo)(function(props){var idName=props.idName,version=props.version;var _useRecoilState=(0,es/* useRecoilState */.FV)(models/* isShowAppState */.mC),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,2),isShowApp=_useRecoilState2[0],setIsShowApp=_useRecoilState2[1];var _useConfig=(0,models/* useConfig */.ZR)(),tingwuUrl=_useConfig.tingwuUrl;(0,_react_18_2_0_react.useEffect)(function(){services/* service */.X.fetchDomainConfig().then(function(res){if(res.data&&res.data.chrome&&res.data.chrome.version&&semver.lt(version,res.data.chrome.version)){var u=res.data.chrome.updateUrl;toastContain(u);}});},[]);var toastContain=function toastContain(url){return modal/* default */.Z.info({getContainer:function getContainer(){return document.getElementById(idName)||document.body;},centered:true,width:220,icon:null,className:"extensionDialog",bodyStyle:{height:184},closable:true,closeIcon:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{style:{marginTop:"20px",marginLeft:"12px"},children:/*#__PURE__*/(0,jsx_runtime.jsx)(CloseButton,{})}),okButtonProps:{style:{marginTop:"48px",marginLeft:"39px",float:"left"}},okText:"立即下载",title:"版本更新",onOk:function onOk(){// 跳转链接
window.open(url);return Promise.reject();},onCancel:function onCancel(){setIsShowApp(false);},content:/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(StorageNotificationBody,{children:/*#__PURE__*/(0,jsx_runtime.jsx)("div",{className:"StorageNotificationContent",children:/*#__PURE__*/(0,jsx_runtime.jsx)("span",{className:"des",children:"\u5F53\u524D\u7248\u672C\u63D2\u4EF6\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u901A\u4E49\u542C\u609F\u63D0\u4F9B\u7684\u670D\u52A1\uFF0C\u8BF7\u66F4\u65B0\u81F3\u6700\u65B0\u7248\u672C"})})})})});};return/*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{});});
;// CONCATENATED MODULE: ./src/components/updateVersionDailog/index.ts

;// CONCATENATED MODULE: ./src/extends/extToDeveloper.tsx
// const UpgradeTip: React.FC<{
//   version: string;
// }> = (props) => {
//   const { version } = props;
//   return <div>{version}</div>;
// }
var extToDeveloper=atebBasicConfig.extensionWithStrategy({}).andDecorator(function(generator){return function(props){return generator((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},props),{},{renderExtContent:function renderExtContent(){var idName=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return[props.renderExtContent(),/*#__PURE__*/(0,jsx_runtime.jsx)(UpdateVersionDialog,{version:props.version,idName:idName})];},getTestInfo:function getTestInfo(){return props.getTestInfo()+"/developer";}}));};});
;// CONCATENATED MODULE: ./src/extends/createConfig.ts
var createConfig=function createConfig(){var publishName=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'alibabaGroup';var serverEnv=arguments.length>1?arguments[1]:undefined;var installMode=arguments.length>2?arguments[2]:undefined;var extensions=[];switch(publishName){case'publicServer':{extensions.push(extPublicServerConfig);if(serverEnv==='pre'){extensions.push(extPrePublicServerConfig);}break;}case'alibabaGroup':default:{if(serverEnv==='pre'){extensions.push(extPreBasicConfig);}break;}}if(installMode==='developer'){extensions.push(extToDeveloper);}var result=extensions.reduce(function(current,next){return current.extendedBy(next);},atebBasicConfig).generate({});return result;};var publishName="publicServer"||0;var serverEnv="prod"||0;var installMode="developer"||0;var _config=createConfig(publishName,serverEnv,installMode);var getGlobalConfig=function getGlobalConfig(){return _config;};
;// CONCATENATED MODULE: ./src/extends/index.ts


/***/ }),

/***/ 2585:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  JD: function() { return /* reexport */ appReadyState; },
  rJ: function() { return /* reexport */ avatarUrlState; },
  UY: function() { return /* reexport */ folderLoadedState; },
  pO: function() { return /* reexport */ foldersState; },
  Vt: function() { return /* reexport */ isExpandState; },
  Mf: function() { return /* reexport */ isLoginState; },
  zd: function() { return /* reexport */ isNotifyUserTransFinishState; },
  qA: function() { return /* reexport */ isPauseRecordState; },
  mC: function() { return /* reexport */ isShowAppState; },
  o8: function() { return /* reexport */ isStartRecordState; },
  q9: function() { return /* reexport */ isStopingState; },
  rV: function() { return /* reexport */ marksGuideState; },
  Mm: function() { return /* reexport */ panelHeightState; },
  bJ: function() { return /* reexport */ panelPositionState; },
  jk: function() { return /* reexport */ secondState; },
  vT: function() { return /* reexport */ showLanguageState; },
  I1: function() { return /* reexport */ sourceLanguageState; },
  oN: function() { return /* reexport */ targetLanguageState; },
  gV: function() { return /* reexport */ transIdState; },
  C5: function() { return /* reexport */ translateSwitchState; },
  ZR: function() { return /* reexport */ useConfig; },
  WR: function() { return /* reexport */ useFolder; },
  CA: function() { return /* reexport */ useMarksGuide; },
  RW: function() { return /* reexport */ usePanelVisible; },
  a: function() { return /* reexport */ useRecord; },
  aF: function() { return /* reexport */ useUser; },
  j3: function() { return /* reexport */ userIdState; },
  o2: function() { return /* reexport */ userNameState; }
});

// UNUSED EXPORTS: captionVisibleState, mainPanelVisibleState

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_recoil@0.7.7@recoil/es/index.js + 5 modules
var es = __webpack_require__(3637);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7921);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(2171);
// EXTERNAL MODULE: ./src/services/index.ts + 6 modules
var services = __webpack_require__(0);
;// CONCATENATED MODULE: ./src/models/folder.ts
var foldersState=(0,es/* atom */.cn)({key:'folder/folders',default:[]});var folderLoadedState=(0,es/* atom */.cn)({key:'folder/isFolderLoaded',default:false});var useFolder=function useFolder(){var fetchFolders=(0,es/* useRecoilCallback */._8)(function(_ref){var set=_ref.set;return/*#__PURE__*/(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(){var result;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return services/* service */.X.getDirList();case 3:result=_context.sent;set(foldersState,result.data);set(folderLoadedState,true);_context.next=11;break;case 8:_context.prev=8;_context.t0=_context["catch"](0);set(folderLoadedState,false);case 11:_context.prev=11;set(appReadyState,true);return _context.finish(11);case 14:case"end":return _context.stop();}},_callee,null,[[0,8,11,14]]);}));},[]);return{fetchFolders:fetchFolders};};
;// CONCATENATED MODULE: ./src/models/app.ts
var appReadyState=(0,es/* atom */.cn)({key:'app/appReady',default:false});var mainPanelVisibleState=(0,es/* atom */.cn)({key:'app/mainPanelVisible',default:true});var captionVisibleState=(0,es/* atom */.cn)({key:'app/captionVisible',default:false});var isLoginState=(0,es/* selector */.nZ)({key:'app/isLogin',get:function get(_ref){var _get=_ref.get;return _get(folderLoadedState);}});var isShowAppState=(0,es/* atom */.cn)({key:'app/showApp',default:true});var panelHeightState=(0,es/* atom */.cn)({key:'app/panelHeight',default:window.innerHeight-24<480?window.innerHeight-24:480});var panelPositionState=(0,es/* atom */.cn)({key:'app/panelPosition',default:{x:0,y:0}});var usePanelVisible=function usePanelVisible(){var _useRecoilState=(0,es/* useRecoilState */.FV)(mainPanelVisibleState),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,2),mainPanelVisible=_useRecoilState2[0],setMainPanelVisible=_useRecoilState2[1];var _useRecoilState3=(0,es/* useRecoilState */.FV)(captionVisibleState),_useRecoilState4=(0,slicedToArray/* default */.Z)(_useRecoilState3,2),captionVisible=_useRecoilState4[0],setCaptionVisible=_useRecoilState4[1];var showCaption=(0,_react_18_2_0_react.useCallback)(function(){setCaptionVisible(true);setMainPanelVisible(false);},[]);var showMainPanel=(0,_react_18_2_0_react.useCallback)(function(){setMainPanelVisible(true);setCaptionVisible(false);},[]);return{mainPanelVisible:mainPanelVisible,setMainPanelVisible:setMainPanelVisible,captionVisible:captionVisible,setCaptionVisible:setCaptionVisible,showCaption:showCaption,showMainPanel:showMainPanel};};
// EXTERNAL MODULE: ./src/extends/index.ts + 8 modules
var src_extends = __webpack_require__(8227);
;// CONCATENATED MODULE: ./src/models/config.ts
var useConfig=function useConfig(){return (0,src_extends/* getGlobalConfig */.H)().getEnvInfo();};
;// CONCATENATED MODULE: ./src/models/record.ts
var isStartRecordState=(0,es/* atom */.cn)({key:'record/isStartRecord',default:false});var isPauseRecordState=(0,es/* atom */.cn)({key:'record/isPauseRecord',default:false});var isStopingState=(0,es/* atom */.cn)({key:'record/isStoping',default:false});var isExpandState=(0,es/* atom */.cn)({key:'record/isExpand',default:true});var secondState=(0,es/* atom */.cn)({key:'record/second',default:0});var isNotifyUserTransFinishState=(0,es/* atom */.cn)({key:'record/isNotifyUserTransFinish',default:false});// 翻译开关
var translateSwitchState=(0,es/* atom */.cn)({key:'record/translateSwitch',default:false});// 源语言
var sourceLanguageState=(0,es/* atom */.cn)({key:'record/sourceLanguage',default:'cn'});// 目标语言
var targetLanguageState=(0,es/* atom */.cn)({key:'record/targetLanguage',default:'cn'});// 显示语言，默认1纯译文，2双语
var showLanguageState=(0,es/* atom */.cn)({key:'record/showLanguage',default:1});// 会议Id
var transIdState=(0,es/* atom */.cn)({key:'record/transId',default:''});var useRecord=function useRecord(){var _useRecoilState=(0,es/* useRecoilState */.FV)(isStartRecordState),_useRecoilState2=(0,slicedToArray/* default */.Z)(_useRecoilState,1),isStartRecord=_useRecoilState2[0];var startRecord=(0,_react_18_2_0_react.useCallback)(/*#__PURE__*/function(){var _ref=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(enableMicphone,filename,dirId,sourceLanguage){return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(!isStartRecord){_context.next=2;break;}return _context.abrupt("return");case 2:_context.next=4;return chrome.runtime.sendMessage({type:'desktopCapture',payload:{enableMicphone:enableMicphone,filename:filename,dirId:dirId,sourceLanguage:sourceLanguage}});case 4:case"end":return _context.stop();}},_callee);}));return function(_x,_x2,_x3,_x4){return _ref.apply(this,arguments);};}(),[isStartRecord]);return{startRecord:startRecord};};
;// CONCATENATED MODULE: ./src/models/user.ts
var defaultUrl="".concat(chrome.runtime.getURL('defaultUrl.png'));var avatarUrlState=(0,es/* atom */.cn)({key:'user/avatarUrl',default:defaultUrl});var userNameState=(0,es/* atom */.cn)({key:"user/userName",default:''});var userIdState=(0,es/* atom */.cn)({key:"user/userId",default:''});// 标记引导弹窗，默认0展示，1不展示
var marksGuideState=(0,es/* atom */.cn)({key:"user/marksGuide",default:0});var useUser=function useUser(){var fetchUser=(0,es/* useRecoilCallback */._8)(function(_ref){var set=_ref.set;return/*#__PURE__*/(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(){var result;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return services/* service */.X.getUserInfo();case 2:result=_context.sent;set(avatarUrlState,defaultUrl);// todo：后端从登录获取showName，集团内部账户是花名，外包WB工号开头同学是空的。
set(userNameState,result.data.showName||'');set(userIdState,result.data.userId||'');case 6:case"end":return _context.stop();}},_callee);}));},[]);return{fetchUser:fetchUser};};var useMarksGuide=function useMarksGuide(){var fetchMarksGuide=(0,es/* useRecoilCallback */._8)(function(_ref3){var set=_ref3.set;return/*#__PURE__*/(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(){var result;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return services/* service */.X.getMarksGuideStatus();case 2:result=_context2.sent;set(marksGuideState,result.data.recordValue);case 4:case"end":return _context2.stop();}},_callee2);}));},[]);return{fetchMarksGuide:fetchMarksGuide};};
;// CONCATENATED MODULE: ./src/models/index.ts


/***/ }),

/***/ 4395:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   JL: function() { return /* binding */ sendLogWithUnknownUser; },
/* harmony export */   NR: function() { return /* binding */ setSendLog; },
/* harmony export */   gp: function() { return /* binding */ sendLog; },
/* harmony export */   ox: function() { return /* binding */ setSendLogWithUnknownUser; }
/* harmony export */ });
var _sendLog=function _sendLog(){};var _sendLogWithUnknownUser=function _sendLogWithUnknownUser(){};var setSendLog=function setSendLog(sl){_sendLog=sl;};var setSendLogWithUnknownUser=function setSendLogWithUnknownUser(sl){_sendLogWithUnknownUser=sl;};var sendLog=function sendLog(eventId,params){return _sendLog(eventId,params);};var sendLogWithUnknownUser=function sendLogWithUnknownUser(eventId,params){return _sendLogWithUnknownUser(eventId,params);};

/***/ }),

/***/ 0:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  X: function() { return /* binding */ service; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7921);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(2171);
// EXTERNAL MODULE: ./node_modules/_axios@0.27.2@axios/index.js
var _axios_0_27_2_axios = __webpack_require__(8577);
var _axios_0_27_2_axios_default = /*#__PURE__*/__webpack_require__.n(_axios_0_27_2_axios);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
;// CONCATENATED MODULE: ./src/services/chromeRequest.ts
// content 发送数据到 background 请求
var sendMessage=function sendMessage(api,method,params){chrome.runtime.sendMessage({api:api,type:'request',method:method,params:params},function(res){// console.log(res, 'success'); // 发送回调成功
});};var arrApi={};// content 从 background 监听数据 返回
var msgAddListener=function msgAddListener(api){return new Promise(function(resolve,reject){arrApi[api]=true;chrome.runtime.onMessage.addListener(/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(request,sender,sendResponse){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(arrApi[api]&&request.type==='request'){resolve(request.myData);Reflect.deleteProperty(arrApi,api);};case 2:case"end":return _context.stop();}},_callee);}));return function(_x,_x2,_x3){return _ref.apply(this,arguments);};}());});};
// EXTERNAL MODULE: ./src/utils/index.ts
var utils = __webpack_require__(5340);
// EXTERNAL MODULE: ./src/eventer.ts
var eventer = __webpack_require__(9048);
;// CONCATENATED MODULE: ./src/services/createAxiosInstanceNew.ts
var innerMsgAddListener=function innerMsgAddListener(api){return new Promise(function(resolve,reject){chrome.runtime.onMessage.addListener(/*#__PURE__*/function(){var _ref=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(request,sender,sendResponse){var _api,response,_msg;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_api=(0,utils/* cutApiFn */.TU)(api);// aa=api
if(!(request.cutApi===_api&&request.type==="request")){_context.next=16;break;}response=request.myData;// if(response.content) {
//   resolve(response);
//   return;
// }
if(!response.code){_context.next=14;break;}_context.t0=response.code;_context.next=_context.t0==="0"?7:_context.t0==="CMN.NotLogin"?9:12;break;case 7:resolve(response);return _context.abrupt("break",13);case 9:// 未登录
// useFolderNew(false);
eventer/* eventer */.M.emit("logOut",{apiUrl:api});reject((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({},response),{},{data:{}}));return _context.abrupt("break",13);case 12:// 业务错误
reject(response);case 13:return _context.abrupt("return");case 14:// 服务错误
_msg="".concat(response.statusText,"\uFF08status=").concat(response.status,"\uFF09");reject(new Error(_msg));case 16:case"end":return _context.stop();}},_callee);}));return function(_x,_x2,_x3){return _ref.apply(this,arguments);};}());});};var createAxiosInstance=function createAxiosInstance(){var post=/*#__PURE__*/function(){var _ref2=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(api,body){return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:sendMessage(api,"post",body);_context2.next=3;return innerMsgAddListener(api);case 3:return _context2.abrupt("return",_context2.sent);case 4:case"end":return _context2.stop();}},_callee2);}));return function post(_x4,_x5){return _ref2.apply(this,arguments);};}();var get=/*#__PURE__*/function(){var _ref3=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee3(api){return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:sendMessage(api,"get");_context3.next=3;return innerMsgAddListener(api);case 3:return _context3.abrupt("return",_context3.sent);case 4:case"end":return _context3.stop();}},_callee3);}));return function get(_x6){return _ref3.apply(this,arguments);};}();return{post:post,get:get};};
;// CONCATENATED MODULE: ./src/services/home.ts
var genGetDirList=function genGetDirList(instance,config){return function(){var body={action:'getDirList',version:'1.0',returnDetails:true};return instance.post("".concat(config.apiPrefix,"/directory/request?getDirList"),body);};};
;// CONCATENATED MODULE: ./src/services/meeting.ts
;var genStartMeeting=function genStartMeeting(instance,config){return function(name){var dirId=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var sourceLanguage=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'cn';var body={action:'createMeeting',meetingType:'101',version:'1.0',dirId:dirId,tag:{showName:name,fileType:'meeting',lang:sourceLanguage,meetingPgPartial:'1',client:'chrome_extension',nFix:'1'}};return instance.post("".concat(config.apiPrefix,"/meeting/request?createMeeting"),body);};};var genStopMeeting=function genStopMeeting(instance,config){return function(meetingId){var body={action:'stopMeeting',version:'1.0',meetingId:meetingId,tag:{roleSplitNum:-1}};return instance.post("".concat(config.apiPrefix,"/meeting/request?stopMeeting"),body);};};var domainConfig=function domainConfig(instance,config){return function(){var body={namespace:'chrome'};return instance.post("".concat(config.apiPrefix,"/conf/pc"),body);};};var genSaveMeetingDocResult=function genSaveMeetingDocResult(instance,config){return function(transId,payload){var body={action:'saveMeetingDocResult',version:'1.0',content:JSON.stringify(payload),transId:transId};return instance.post("".concat(config.apiPrefix,"/meeting/request?saveMeetingDocResult"),body);};};var genGetTranslates=function genGetTranslates(instance,config){return function(meetingId,sourceLanguage,targetLanguage,needTranslates){var body={action:'transientTranslate',version:'1.0',meetingId:meetingId,sourceLanguage:sourceLanguage,targetLanguage:targetLanguage,textList:needTranslates,userId:''};return instance.post("".concat(config.apiPrefix,"/meeting/request?transientTranslate"),body);};};var genGetRealtimeTranslate=function genGetRealtimeTranslate(instance,config){return function(meetingId,sourceLanguage,targetLanguage,payload){var body={action:'realtimeTranslate',version:'1.0',meetingId:meetingId,sourceLanguage:sourceLanguage,targetLanguage:targetLanguage,sourceDoc:JSON.stringify(payload)};return instance.post("".concat(config.apiPrefix,"/meeting/request?realtimeTranslate"),body);};};var getGetMeetingHistoryTranslate=function getGetMeetingHistoryTranslate(instance,config){return function(meetingId,sourceLanguage,targetLanguage,paragraphIds){var body={action:'meetingTranslate',version:'1.0',meetingId:meetingId,sourceLanguage:sourceLanguage,targetLanguage:targetLanguage,paragraphIds:paragraphIds};return instance.post("".concat(config.apiPrefix,"/meeting/request?meetingTranslate"),body);};};var genGetSyncTransTag=function genGetSyncTransTag(instance,config){return function(transId,tag){var body={action:"syncTransTag",version:"1.0",transId:transId,tag:tag};return instance.post("".concat(config.apiPrefix,"/tag/request?syncTransTag"),body);};};
// EXTERNAL MODULE: ./src/extends/index.ts + 8 modules
var src_extends = __webpack_require__(8227);
;// CONCATENATED MODULE: ./src/services/user.ts
var _getGlobalConfig$getE=(0,src_extends/* getGlobalConfig */.H)().getEnvInfo(),publishName=_getGlobalConfig$getE.publishName;var genGetUserInfo=function genGetUserInfo(instance,config){return function(){if(publishName==="alibabaGroup"){return instance.get("".concat(config.apiPrefix,"/account/info?Trans"));}else{return instance.get("".concat(config.apiPrefix,"/tingwu/account/info?Trans"));}};};var getAccountStatus=function getAccountStatus(instance,config){return function(){var body={action:"getAccountStatus",version:"1.0",statusKey:"BigModelUserProtocol"// 服务端会进行校验，需要是服务端设置的有效key
};return instance.post("".concat(config.apiPrefix,"/tingwu/account/request"),body);};};var updateAccountStatus=function updateAccountStatus(instance,config){return function(statusValue){var body={action:"updateAccountStatus",statusValue:statusValue,version:"1.0",statusKey:"BigModelUserProtocol"// 服务端会进行校验，需要是服务端设置的有效key
};return instance.post("".concat(config.apiPrefix,"/tingwu/account/request"),body);};};// 设置标记引导弹窗数据
var senMarksGuideStatus=function senMarksGuideStatus(instance,config){return function(recordValue){var body={action:"syncClientRecord",recordType:0,recordKey:"MarkupFeatureGuide",recordValue:recordValue};return instance.post("".concat(config.apiPrefix,"/record/request?setMarksGuideStatus"),body);};};// 获取标记引导弹窗数据
var genMarksGuideStatus=function genMarksGuideStatus(instance,config){return function(){var body={action:"getClientRecord",recordType:0,recordKey:"MarkupFeatureGuide"};return instance.post("".concat(config.apiPrefix,"/record/request?getMarksGuideStatus"),body);};};
;// CONCATENATED MODULE: ./src/services/createRequestService.ts
// import { createAxiosInstance } from "./createAxiosInstance";
// import { httpRequest } from '../utils/tools';
var createRequestService=function createRequestService(){var instance=createAxiosInstance();var _getGlobalConfig$getE=(0,src_extends/* getGlobalConfig */.H)().getEnvInfo(),apiPrefix=_getGlobalConfig$getE.apiPrefix,env=_getGlobalConfig$getE.env;var config={apiPrefix:apiPrefix};var getUserInfoIsInAliUrl;if(env==="prod"){getUserInfoIsInAliUrl={apiPrefix:"https://tingwu.aliyuncs.com/api"};}else{getUserInfoIsInAliUrl={apiPrefix:"https://pre-tingwu.aliyuncs.com/api"};}return{getDirList:genGetDirList(instance,config),startMeeting:genStartMeeting(instance,config),stopMeeting:genStopMeeting(instance,config),saveMeetingDocResult:genSaveMeetingDocResult(instance,config),fetchDomainConfig:domainConfig(instance,config),getUserInfo:genGetUserInfo(instance,config),getAccountStatus:getAccountStatus(instance,config),updateAccountStatus:updateAccountStatus(instance,config),getUserInfoIsInAli:genGetUserInfo(instance,getUserInfoIsInAliUrl),getTranslates:genGetTranslates(instance,config),getRealtimeTranslate:genGetRealtimeTranslate(instance,config),getMeetingHistoryTranslate:getGetMeetingHistoryTranslate(instance,config),getSyncTransTag:genGetSyncTransTag(instance,config),setMarksGuideStatus:senMarksGuideStatus(instance,config),getMarksGuideStatus:genMarksGuideStatus(instance,config),isWhiteList:function(){var _isWhiteList=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(){var _Boolean,result;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return _axios_0_27_2_axios_default().get("https://alilang-intranet.alibaba-inc.com/is_white_list.json");case 3:result=_context.sent;return _context.abrupt("return",(_Boolean=Boolean(result===null||result===void 0?void 0:result.data.content))!==null&&_Boolean!==void 0?_Boolean:false);case 7:_context.prev=7;_context.t0=_context["catch"](0);return _context.abrupt("return",false);case 10:case"end":return _context.stop();}},_callee,null,[[0,7]]);}));function isWhiteList(){return _isWhiteList.apply(this,arguments);}return isWhiteList;}()// isWhiteList: async () => {
//   try {
//     const result = await httpRequest('GET', `https://alilang-intranet.alibaba-inc.com/is_white_list.json`);
//     return Boolean((result as any)?.content) ?? false;
//   } catch (error) {
//     return false;
//   }
// },
};};
;// CONCATENATED MODULE: ./src/services/index.ts
var service=createRequestService();

/***/ }),

/***/ 6452:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   n: function() { return /* binding */ getCurrentTab; }
/* harmony export */ });
var getCurrentTab=function getCurrentTab(){return new Promise(function(resolve){chrome.tabs.query({active:true,currentWindow:true},function(tabs){var tab=tabs[0];resolve(tab);});});};

/***/ }),

/***/ 2364:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   _: function() { return /* binding */ getChromeMainVersion; }
/* harmony export */ });
var getChromeMainVersion=function getChromeMainVersion(){var match=navigator.userAgent.match(/Chrome\/(\d+)/);return match?parseInt(match[1]):undefined;};

/***/ }),

/***/ 5340:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   G6: function() { return /* reexport safe */ _worker__WEBPACK_IMPORTED_MODULE_2__.G; },
/* harmony export */   TU: function() { return /* reexport safe */ _tools__WEBPACK_IMPORTED_MODULE_4__.TU; },
/* harmony export */   _k: function() { return /* reexport safe */ _env__WEBPACK_IMPORTED_MODULE_3__._; },
/* harmony export */   nU: function() { return /* reexport safe */ _chrome__WEBPACK_IMPORTED_MODULE_0__.n; },
/* harmony export */   rw: function() { return /* reexport safe */ _stream__WEBPACK_IMPORTED_MODULE_1__.r; }
/* harmony export */ });
/* harmony import */ var _chrome__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6452);
/* harmony import */ var _stream__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5715);
/* harmony import */ var _worker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8565);
/* harmony import */ var _env__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2364);
/* harmony import */ var _tools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1031);


/***/ }),

/***/ 5715:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   r: function() { return /* binding */ getTingwuAudioContextByStreamId; }
/* harmony export */ });
/* harmony import */ var _Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7921);
/* harmony import */ var _Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2171);
// @ts-ignore
if(!navigator.getUserMedia){// @ts-ignore
navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;}var getMicStream=function getMicStream(){return new Promise(function(resolve,reject){// @ts-ignore
if(navigator.getUserMedia){// @ts-ignore
navigator.getUserMedia({audio:true},function(stream){resolve(stream);},function(error){reject(error);});}else{reject();}});};var getTingwuAudioContextByStreamId=function getTingwuAudioContextByStreamId(streamId,enableMicphone){return new Promise(function(resolve,reject){navigator.mediaDevices.getUserMedia({video:{// @ts-ignore
mandatory:{chromeMediaSource:'screen',chromeMediaSourceId:streamId}},audio:{// @ts-ignore
mandatory:{chromeMediaSource:'desktop',chromeMediaSourceId:streamId}}}).then(/*#__PURE__*/function(){var _ref=(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(/*#__PURE__*/(0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee(stream){var audioCtx,source,micStream,gain,destination,tingwuAudioContext;return (0,_Users_chenxinqi_tingwu_chrome_extension_node_modules_babel_runtime_7_22_5_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:stream.removeTrack(stream.getVideoTracks()[0]);audioCtx=new AudioContext({sampleRate:16000});if(!enableMicphone){_context.next=21;break;}_context.prev=3;_context.next=6;return getMicStream();case 6:micStream=_context.sent;_context.next=13;break;case 9:_context.prev=9;_context.t0=_context["catch"](3);stream===null||stream===void 0?void 0:stream.getTracks().forEach(function(track){track.stop();});reject({type:'micPermissionDenied'});case 13:gain=audioCtx.createGain();if(micStream){audioCtx.createMediaStreamSource(micStream).connect(gain);}audioCtx.createMediaStreamSource(stream).connect(gain);destination=audioCtx.createMediaStreamDestination();gain.connect(destination);source=audioCtx.createMediaStreamSource(destination.stream);_context.next=22;break;case 21:source=audioCtx.createMediaStreamSource(stream);case 22:tingwuAudioContext={tabStream:stream,micStream:micStream,source:source,audioContext:audioCtx};resolve(tingwuAudioContext);case 24:case"end":return _context.stop();}},_callee,null,[[3,9]]);}));return function(_x){return _ref.apply(this,arguments);};}());});};

/***/ }),

/***/ 1031:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   TU: function() { return /* binding */ cutApiFn; }
/* harmony export */ });
/* unused harmony exports randomTraceId, httpRequest */
var randomTraceId=function randomTraceId(){var len=arguments.length>0&&arguments[0]!==undefined?arguments[0]:32;// 16位16进制字符
var digits='0123456789abcdef';var n='';for(var i=0;i<len;i+=1){var rand=Math.floor(Math.random()*digits.length);n+=digits[rand];}return n;};//切割简化 api, 取 关键值
var cutApiFn=function cutApiFn(api){return api.includes('/api/')&&api.split('/api/')[1]||'Illegal Api';};// 封装http请求, 根据项目 支持 get
var httpRequest=function httpRequest(method,url){return new Promise(function(resolve,reject){var xhr=new XMLHttpRequest();xhr.responseType='json';// 指定返回类型
xhr.onreadystatechange=function(){switch(xhr.status){case 200:resolve(xhr.response);break;default:resolve({status:xhr.status,res:xhr.response,content:false});}};xhr.open(method,url,true);xhr.setRequestHeader('Content-type','application/json, text/plain, */*');xhr.send(null);});};

/***/ }),

/***/ 8565:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   G: function() { return /* binding */ getWorkerUrl; }
/* harmony export */ });
var getWorkerUrl=function getWorkerUrl(url){var content="importScripts('".concat(url,"');");return URL.createObjectURL(new Blob([content],{type:'text/javascript'}));};

/***/ }),

/***/ 5629:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   G6: function() { return /* binding */ isSafari; },
/* harmony export */   vU: function() { return /* binding */ isFirefox; }
/* harmony export */ });
/* unused harmony export isIE */
var getOs = function getOs() {
  if (navigator.userAgent.indexOf('MSIE') > 0) {
    return 'MSIE';
  }
  if (navigator.userAgent.indexOf('Firefox') > 0) {
    return 'Firefox';
  }
  if (navigator.userAgent.indexOf('Chrome') > 0) {
    return 'Chrome';
  }
  if (navigator.userAgent.indexOf('Safari') > 0) {
    return 'Safari';
  }
  if (navigator.userAgent.indexOf('Camino') > 0) {
    return 'Camino';
  }
  if (navigator.userAgent.indexOf('Gecko/') > 0) {
    return 'Gecko';
  }
};
var isFirefox = function isFirefox() {
  return getOs() === 'Firefox';
};
var isIE = function isIE() {
  return getOs() === 'MSIE';
};
var isSafari = function isSafari() {
  return getOs() === 'Safari';
};

/***/ }),

/***/ 2207:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   _x: function() { return /* binding */ convertMsToTime; },
/* harmony export */   iQ: function() { return /* binding */ getFlexibleTime; }
/* harmony export */ });
/* unused harmony exports convertMsToHHMM, isOverOneHour */
/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5448);
/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var dayjs_plugin_duration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1376);
/* harmony import */ var dayjs_plugin_duration__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_duration__WEBPACK_IMPORTED_MODULE_1__);


dayjs__WEBPACK_IMPORTED_MODULE_0___default().extend((dayjs_plugin_duration__WEBPACK_IMPORTED_MODULE_1___default()));
var convertMsToTime = function convertMsToTime(ms) {
  return dayjs__WEBPACK_IMPORTED_MODULE_0___default().duration(ms).format('HH:mm:ss');
};
var convertMsToHHMM = function convertMsToHHMM(ms) {
  return dayjs.duration(ms).format('HH:mm');
};
var oneHour = 3600 * 1000;
var isOverOneHour = function isOverOneHour(ms) {
  return ms >= oneHour;
};
var getFlexibleTime = function getFlexibleTime(ms) {
  if (isOverOneHour(ms)) {
    return dayjs__WEBPACK_IMPORTED_MODULE_0___default().duration(ms).format('HH:mm:ss');
  } else {
    return dayjs__WEBPACK_IMPORTED_MODULE_0___default().duration(ms).format('mm:ss');
  }
};

/***/ }),

/***/ 6321:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   i: function() { return /* binding */ EventResult; },
/* harmony export */   n: function() { return /* binding */ Eventer; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5292);

function _createForOfIteratorHelperLoose(o, allowArrayLike) {
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  if (it) return (it = it.call(o)).next.bind(it);
  if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
    if (it) o = it;
    var i = 0;
    return function () {
      if (i >= o.length) return {
        done: true
      };
      return {
        done: false,
        value: o[i++]
      };
    };
  }
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _unsupportedIterableToArray(o, minLen) {
  if (!o) return;
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor) n = o.constructor.name;
  if (n === "Map" || n === "Set") return Array.from(o);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
  if (len == null || len > arr.length) len = arr.length;
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
    arr2[i] = arr[i];
  }
  return arr2;
}
var EventResult = /*#__PURE__*/function () {
  function EventResult() {
    this._isDefaultPrevented = false;
    this._isStopped = false;
  }
  var _proto = EventResult.prototype;
  _proto.preventDefault = function preventDefault() {
    this._isDefaultPrevented = true;
  };
  _proto.stop = function stop() {
    this._isStopped = true;
  };
  (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(EventResult, [{
    key: "isDefaultPrevented",
    get: function get() {
      return this._isDefaultPrevented;
    }
  }, {
    key: "isStopped",
    get: function get() {
      return this._isStopped;
    }
  }]);
  return EventResult;
}();
function nextTick(callback) {
  if (typeof window === 'object' && window.requestAnimationFrame) window.requestAnimationFrame(callback);else if (typeof setTimeout === 'function') setTimeout(callback, 1); // 若不支持setTimeout降级为同步方法（例如j2v8环境）
  else callback();
}
var Eventer = /*#__PURE__*/function () {
  function Eventer() {
    this.listeners = {};
  }
  var _proto2 = Eventer.prototype;

  /* 绑定事件监听器 */
  _proto2.on = function on(type, handler) {
    var _this = this;
    var list = this.listeners[type] || [];
    list.push(handler);
    this.listeners[type] = list;
    return function () {
      return _this.off(type, handler);
    };
  }
  /**
   * 把当前已经注册的监听器重新输送出去
   * @param callback 输出的回调
   * @param clearCurrent 输出后是否清除当前实例上的监听器
   */;

  _proto2.pipe = function pipe(callback, clearCurrent) {
    if (clearCurrent === void 0) {
      clearCurrent = true;
    }
    var listeners = this.listeners;
    Object.keys(listeners).forEach(function (key) {
      var list = listeners[key] || [];
      list.forEach(function (h) {
        return callback(key, h);
      });
    });
    if (clearCurrent) this.listeners = {};
  }
  /* 移除事件监听器 */;

  _proto2.off = function off(type, handler) {
    var list = this.listeners[type] || [];
    this.listeners[type] = handler ? list.filter(function (f) {
      return f !== handler;
    }) : [];
  }
  /* 移除所有监听器 */;

  _proto2.offAll = function offAll() {
    var _this2 = this;
    Object.keys(this.listeners).forEach(function (k) {
      _this2.listeners[k] = [];
    });
  }
  /* 触发事件（同步执行） */;

  _proto2.emit = function emit(type, event) {
    var eventResult = new EventResult();
    var list = this.listeners[type] || [];
    for (var _iterator = _createForOfIteratorHelperLoose(list), _step; !(_step = _iterator()).done;) {
      var _handler = _step.value;
      _handler(event, eventResult);
      if (eventResult.isStopped) {
        break;
      }
    }
    return eventResult;
  }
  /* 触发事件（下一帧执行） */;

  _proto2.emitAsync = function emitAsync(type, event) {
    var _this3 = this;
    nextTick(function () {
      return _this3.emit(type, event);
    });
  };
  return Eventer;
}();

/***/ }),

/***/ 7839:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   s: function() { return /* binding */ isIntersectRanges; }
/* harmony export */ });
var isIntersectRanges = function isIntersectRanges(range1, range2) {
  // 计算两个区间[a,b] [c,d]是否有重叠, 通过判断min(b,d) > max(a,c)来判断是否重叠
  return Math.min(range1.end, range2.end) > Math.max(range1.start, range2.start);
};

/***/ }),

/***/ 5392:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   p: function() { return /* binding */ AbstractCmdController; }
/* harmony export */ });
var AbstractCmdController = function AbstractCmdController(controller) {
  this.controller = void 0;
  this.controller = controller;
};

/***/ }),

/***/ 7064:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Qr: function() { return /* binding */ Controller; },
  FR: function() { return /* binding */ TranscriptingState; }
});

// UNUSED EXPORTS: TranslateMode

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/assertThisInitialized.js
var assertThisInitialized = __webpack_require__(2901);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inheritsLoose.js
var inheritsLoose = __webpack_require__(2918);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/eventer.js
var eventer = __webpack_require__(6321);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/utils/word.js
var word = __webpack_require__(3720);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/model/book.js




function genDefaultTranscription() {
  return {
    paragraphs: {},
    words: {},
    pids: [],
    appearedWids: {},
    userChangedSidsMap: {}
  };
}
var Book = /*#__PURE__*/function (_Eventer) {
  (0,inheritsLoose/* default */.Z)(Book, _Eventer);
  function Book() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _Eventer.call.apply(_Eventer, [this].concat(args)) || this;
    _this.transcription = genDefaultTranscription();
    _this.paragraphVersions = {};
    _this.uniqueId = 0;
    return _this;
  }
  var _proto = Book.prototype;
  _proto.updateParagraphVersion = function updateParagraphVersion() {
    var _this2 = this;
    for (var _len2 = arguments.length, pids = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
      pids[_key2] = arguments[_key2];
    }
    pids.forEach(function (pid) {
      _this2.paragraphVersions[pid] = ++_this2.uniqueId;
    });
  };
  _proto.resetModelValue = function resetModelValue() {
    this.transcription = genDefaultTranscription();
    this.paragraphVersions = {};
    this.uniqueId = 0;
  };
  _proto.updateWord = function updateWord(pid, wid, word, userChangeText) {
    this.transcription.words[wid] = word;
    if (userChangeText) {
      this.transcription.userChangedSidsMap[word.sentenceId] = true;
    }
    this.updateParagraphVersion(pid);
    this.emit('wordChange', {
      pid: pid,
      wid: wid,
      word: word
    });
    this.emit('paragraphChangeSpecific', {
      addParagraphPids: [],
      updateParagraphPids: [pid],
      removeParagraphPids: []
    });
  };
  _proto.updateWords = function updateWords(pid, words) {
    var _this3 = this;
    words.forEach(function (word) {
      _this3.transcription.words[word.wid] = word;
    });
    this.updateParagraphVersion(pid);
    this.emit('paragraphChange', {
      pid: pid
    });
    this.emit('paragraphChangeSpecific', {
      addParagraphPids: [],
      updateParagraphPids: [pid],
      removeParagraphPids: []
    });
  };
  _proto.deleteWord = function deleteWord(pid, wid, newOrder) {
    delete this.transcription.words[wid];
    this.transcription.paragraphs[pid].wids = newOrder;
    this.updateParagraphVersion(pid);
    this.emit('paragraphChange', {
      pid: pid
    });
    this.emit('paragraphChangeSpecific', {
      addParagraphPids: [],
      updateParagraphPids: [pid],
      removeParagraphPids: []
    });
  };
  _proto.addWord = function addWord(pid, word, newOrder) {
    this.transcription.words[word.wid] = word;
    this.transcription.paragraphs[pid].wids = newOrder;
    this.transcription.appearedWids[word.wid] = true;
    this.updateParagraphVersion(pid);
    this.emit('paragraphChange', {
      pid: pid
    });
    this.emit('paragraphChangeSpecific', {
      addParagraphPids: [],
      updateParagraphPids: [pid],
      removeParagraphPids: []
    });
  };
  _proto.isAppearedWid = function isAppearedWid(wid) {
    var _this$transcription$a;
    return (_this$transcription$a = this.transcription.appearedWids[wid]) != null ? _this$transcription$a : false;
  };
  _proto.moveWord = function moveWord(originPid, originNewOrder, targetPid, targetNewOrder) {
    this.transcription.paragraphs[originPid].wids = originNewOrder;
    this.transcription.paragraphs[targetPid].wids = targetNewOrder;
    this.updateParagraphVersion(originPid, targetPid);
    this.emit('paragraphChange', {
      pid: originPid
    });
    this.emit('paragraphChange', {
      pid: targetPid
    });
    this.emit('paragraphChangeSpecific', {
      addParagraphPids: [],
      updateParagraphPids: [originPid, targetPid],
      removeParagraphPids: []
    });
  };
  _proto.addParagraph = function addParagraph(prevPid, pid, paragraph) {
    var pids = this.transcription.pids;
    if (prevPid === undefined) {
      pids.unshift(pid);
    } else {
      var pos = pids.indexOf(prevPid);
      if (pos !== -1) {
        pids.splice(pos + 1, 0, pid);
      }
    }
    this.transcription.paragraphs[pid] = paragraph;
    var maybeChangedPids = prevPid ? [prevPid, pid] : [pid];
    this.updateParagraphVersion(pid);
    this.emit('paragraphListChange', {
      maybeChangedPids: maybeChangedPids
    });
    this.emit('paragraphChangeSpecific', {
      addParagraphPids: [pid],
      updateParagraphPids: [],
      removeParagraphPids: []
    });
  };
  _proto.removeParagraph = function removeParagraph(pid) {
    var _removeParagraphs;
    var _this$transcription = this.transcription,
      pids = _this$transcription.pids,
      paragraphs = _this$transcription.paragraphs;
    var willDeletedParagraph = paragraphs[pid];
    var pos = pids.indexOf(pid);
    var prevPid = pids[pos - 1];
    var nextPid = pids[pos + 1];
    if (pos !== -1) {
      pids.splice(pos, 1);
    }
    delete paragraphs[pid];
    var maybeChangedPids = [prevPid, nextPid].filter(function (i) {
      return i != null;
    });
    this.updateParagraphVersion.apply(this, maybeChangedPids.concat([pid]));
    this.emit('paragraphListChange', {
      maybeChangedPids: maybeChangedPids
    });
    this.emit('paragraphChangeSpecific', {
      addParagraphPids: [],
      updateParagraphPids: [],
      removeParagraphPids: [pid],
      removeParagraphs: (_removeParagraphs = {}, _removeParagraphs[pid] = willDeletedParagraph, _removeParagraphs)
    });
  };
  _proto.updateParagraph = function updateParagraph(pid, paragraph) {
    var oldParagraph = this.transcription.paragraphs[pid];
    this.transcription.paragraphs[pid] = paragraph;
    this.updateParagraphVersion(pid);
    this.emit('paragraphChange', {
      pid: pid
    });
    if (oldParagraph && oldParagraph.isUnfix && !paragraph.isUnfix) {
      this.emit('lastUnfixPidChange', {
        pid: pid
      });
    }
    this.emit('paragraphChangeSpecific', {
      addParagraphPids: [],
      updateParagraphPids: [pid],
      removeParagraphPids: []
    });
  };
  _proto.getWordBySc = function getWordBySc(_sc) {
    return (0,word/* getWordBySc */.n)(_sc);
  };
  _proto.getPByPid = function getPByPid(pid) {
    var paragraph = this.transcription.paragraphs[pid];
    var allWords = this.transcription.words;
    if (!paragraph) {
      return undefined;
    }
    var words = paragraph.wids.map(function (wid) {
      return allWords[wid];
    });
    var sc = words.map(function (word) {
      return (0,esm_extends/* default */.Z)({
        id: Number(word.wid),
        bt: word.beginTime,
        et: word.endTime,
        si: Number(word.sentenceId),
        tc: word.text
      }, word.tag ? {
        tag: {
          mark: word.tag
        }
      } : {});
    });
    return {
      pi: pid,
      ui: paragraph.uid,
      sc: sc
    };
  };
  _proto.isUserChangedSentence = function isUserChangedSentence(sid) {
    var _this$transcription$u;
    return (_this$transcription$u = this.transcription.userChangedSidsMap[sid]) != null ? _this$transcription$u : false;
  };
  _proto.fromJSON = function fromJSON(model) {
    var _this4 = this;
    var paragraphs = {};
    var pids = [];
    var words = {};
    model.pg.forEach(function (_pg) {
      if (pids.indexOf(_pg.pi) > -1) {
        // 避免重复PID导致听悟后续流程错误，重复PID检测目前在应用层，这里暂时不做上报
        return;
      }
      var wids = [];
      _pg.sc.forEach(function (_sc) {
        var word = _this4.getWordBySc(_sc);
        words[word.wid] = word;
        wids.push(word.wid);
      });
      paragraphs[_pg.pi] = {
        pid: _pg.pi,
        uid: _pg.ui,
        wids: wids
      };
      pids.push(_pg.pi);
    });
    this.transcription = {
      paragraphs: paragraphs,
      pids: pids,
      words: words,
      appearedWids: {},
      userChangedSidsMap: {}
    };
  };
  _proto.toJSON = function toJSON() {
    var _this5 = this;
    var pg = [];
    this.transcription.pids.forEach(function (pid) {
      var p = _this5.getPByPid(pid);
      if (p) {
        pg.push(p);
      }
    });
    return {
      pg: pg
    };
  };
  return Book;
}(eventer/* Eventer */.n);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/persist/op.js
var persist_op = __webpack_require__(2710);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/model/op.js

var invertOp = function invertOp(op) {
  if (op.action === 'updateWord') {
    var _op$payload = op.payload,
      pid = _op$payload.pid,
      wid = _op$payload.wid,
      oldValue = _op$payload.oldValue,
      newValue = _op$payload.newValue;
    return (0,persist_op/* createOperation */.z)('updateWord', {
      pid: pid,
      wid: wid,
      newValue: oldValue,
      oldValue: newValue
    });
  } else if (op.action === 'updateWords') {
    var _op$payload2 = op.payload,
      _pid = _op$payload2.pid,
      _oldValue = _op$payload2.oldValue,
      _newValue = _op$payload2.newValue;
    return (0,persist_op/* createOperation */.z)('updateWords', {
      pid: _pid,
      newValue: _oldValue,
      oldValue: _newValue
    });
  } else if (op.action === 'deleteWord') {
    var _op$payload3 = op.payload,
      _pid2 = _op$payload3.pid,
      _wid = _op$payload3.wid,
      word = _op$payload3.word,
      oldOrder = _op$payload3.oldOrder,
      newOrder = _op$payload3.newOrder;
    return (0,persist_op/* createOperation */.z)('addWord', {
      pid: _pid2,
      wid: _wid,
      word: word,
      oldOrder: newOrder,
      newOrder: oldOrder
    });
  } else if (op.action === 'addWord') {
    var _op$payload4 = op.payload,
      _pid3 = _op$payload4.pid,
      _wid2 = _op$payload4.wid,
      _word = _op$payload4.word,
      _oldOrder = _op$payload4.oldOrder,
      _newOrder = _op$payload4.newOrder;
    return (0,persist_op/* createOperation */.z)('deleteWord', {
      pid: _pid3,
      wid: _wid2,
      word: _word,
      oldOrder: _newOrder,
      newOrder: _oldOrder
    });
  } else if (op.action === 'addParagraph') {
    var _op$payload5 = op.payload,
      prevPid = _op$payload5.prevPid,
      _pid4 = _op$payload5.pid,
      paragraph = _op$payload5.paragraph;
    return (0,persist_op/* createOperation */.z)('removeParagraph', {
      prevPid: prevPid,
      pid: _pid4,
      paragraph: paragraph
    });
  } else if (op.action === 'removeParagraph') {
    var _op$payload6 = op.payload,
      _prevPid = _op$payload6.prevPid,
      _pid5 = _op$payload6.pid,
      _paragraph = _op$payload6.paragraph;
    return (0,persist_op/* createOperation */.z)('addParagraph', {
      prevPid: _prevPid,
      pid: _pid5,
      paragraph: _paragraph
    });
  } else if (op.action === 'updateParagraph') {
    var _op$payload7 = op.payload,
      _pid6 = _op$payload7.pid,
      oldParagraph = _op$payload7.oldParagraph,
      _paragraph2 = _op$payload7.paragraph;
    return (0,persist_op/* createOperation */.z)('updateParagraph', {
      pid: _pid6,
      oldParagraph: _paragraph2,
      paragraph: oldParagraph
    });
  } else if (op.action === 'moveWord') {
    var _op$payload8 = op.payload,
      originPid = _op$payload8.originPid,
      targetPid = _op$payload8.targetPid,
      originOldOrder = _op$payload8.originOldOrder,
      originNewOrder = _op$payload8.originNewOrder,
      targetOldOrder = _op$payload8.targetOldOrder,
      targetNewOrder = _op$payload8.targetNewOrder;
    return (0,persist_op/* createOperation */.z)('moveWord', {
      originPid: originPid,
      targetPid: targetPid,
      originOldOrder: originNewOrder,
      originNewOrder: originOldOrder,
      targetOldOrder: targetNewOrder,
      targetNewOrder: targetOldOrder
    });
  }
  return null;
};
var applyOp = function applyOp(book, op) {
  if (op.action === 'updateWord') {
    var _op$payload9 = op.payload,
      pid = _op$payload9.pid,
      wid = _op$payload9.wid,
      newValue = _op$payload9.newValue,
      userChangeText = _op$payload9.userChangeText;
    book.updateWord(pid, wid, newValue, userChangeText);
  } else if (op.action === 'updateWords') {
    var _op$payload10 = op.payload,
      _pid7 = _op$payload10.pid,
      _newValue2 = _op$payload10.newValue;
    book.updateWords(_pid7, _newValue2);
  } else if (op.action === 'deleteWord') {
    var _op$payload11 = op.payload,
      _pid8 = _op$payload11.pid,
      _wid3 = _op$payload11.wid,
      newOrder = _op$payload11.newOrder;
    book.deleteWord(_pid8, _wid3, newOrder);
  } else if (op.action === 'addWord') {
    var _op$payload12 = op.payload,
      _pid9 = _op$payload12.pid,
      word = _op$payload12.word,
      _newOrder2 = _op$payload12.newOrder;
    book.addWord(_pid9, word, _newOrder2);
  } else if (op.action === 'addParagraph') {
    var _op$payload13 = op.payload,
      prevPid = _op$payload13.prevPid,
      _pid10 = _op$payload13.pid,
      paragraph = _op$payload13.paragraph;
    book.addParagraph(prevPid, _pid10, paragraph);
  } else if (op.action === 'removeParagraph') {
    var _pid11 = op.payload.pid;
    book.removeParagraph(_pid11);
  } else if (op.action === 'updateParagraph') {
    var _op$payload14 = op.payload,
      _pid12 = _op$payload14.pid,
      _paragraph3 = _op$payload14.paragraph;
    book.updateParagraph(_pid12, _paragraph3);
  } else if (op.action === 'moveWord') {
    var _op$payload15 = op.payload,
      originPid = _op$payload15.originPid,
      originNewOrder = _op$payload15.originNewOrder,
      targetPid = _op$payload15.targetPid,
      targetNewOrder = _op$payload15.targetNewOrder;
    book.moveWord(originPid, originNewOrder, targetPid, targetNewOrder);
  }
  return invertOp(op);
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/model/index.js



var Model = /*#__PURE__*/function () {
  function Model() {
    this.book = void 0;
    this.book = new Book();
  }
  var _proto = Model.prototype;
  _proto.fromJSON = function fromJSON(json) {
    this.book.fromJSON(json);
  };
  _proto.toJSON = function toJSON() {
    return this.book.toJSON();
  };
  _proto.serialize = function serialize() {
    var clone = this.toJSON();
    return JSON.stringify(clone);
  };
  _proto.deserialize = function deserialize(jsonStr) {
    try {
      var json = JSON.parse(jsonStr);
      this.fromJSON(json);
    } catch (error) {
      // TODO: report this error
      console.error(error);
      throw error;
    }
  };
  _proto.applyOps = function applyOps(ops) {
    var _this = this;
    var reverseOps = [];
    ops.forEach(function (op) {
      var reverseOp = applyOp(_this.book, op);
      reverseOps.unshift(reverseOp);
    });
    return reverseOps;
  };
  return Model;
}();
;// CONCATENATED MODULE: ./node_modules/_css-line-break@2.1.0@css-line-break/dist/css-line-break.es5.js
/*
 * css-line-break 2.1.0 <https://github.com/niklasvh/css-line-break#readme>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
var toCodePoints = function toCodePoints(str) {
  var codePoints = [];
  var i = 0;
  var length = str.length;
  while (i < length) {
    var value = str.charCodeAt(i++);
    if (value >= 0xd800 && value <= 0xdbff && i < length) {
      var extra = str.charCodeAt(i++);
      if ((extra & 0xfc00) === 0xdc00) {
        codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000);
      } else {
        codePoints.push(value);
        i--;
      }
    } else {
      codePoints.push(value);
    }
  }
  return codePoints;
};
var fromCodePoint = function fromCodePoint() {
  var codePoints = [];
  for (var _i = 0; _i < arguments.length; _i++) {
    codePoints[_i] = arguments[_i];
  }
  if (String.fromCodePoint) {
    return String.fromCodePoint.apply(String, codePoints);
  }
  var length = codePoints.length;
  if (!length) {
    return '';
  }
  var codeUnits = [];
  var index = -1;
  var result = '';
  while (++index < length) {
    var codePoint = codePoints[index];
    if (codePoint <= 0xffff) {
      codeUnits.push(codePoint);
    } else {
      codePoint -= 0x10000;
      codeUnits.push((codePoint >> 10) + 0xd800, codePoint % 0x400 + 0xdc00);
    }
    if (index + 1 === length || codeUnits.length > 0x4000) {
      result += String.fromCharCode.apply(String, codeUnits);
      codeUnits.length = 0;
    }
  }
  return result;
};
var chars$2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
// Use a lookup table to find the index.
var lookup$2 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
for (var i$2 = 0; i$2 < chars$2.length; i$2++) {
  lookup$2[chars$2.charCodeAt(i$2)] = i$2;
}

/*
 * utrie 1.0.2 <https://github.com/niklasvh/utrie>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
// Use a lookup table to find the index.
var lookup$1 = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
for (var i$1 = 0; i$1 < chars$1.length; i$1++) {
  lookup$1[chars$1.charCodeAt(i$1)] = i$1;
}
var decode = function decode(base64) {
  var bufferLength = base64.length * 0.75,
    len = base64.length,
    i,
    p = 0,
    encoded1,
    encoded2,
    encoded3,
    encoded4;
  if (base64[base64.length - 1] === '=') {
    bufferLength--;
    if (base64[base64.length - 2] === '=') {
      bufferLength--;
    }
  }
  var buffer = typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined' && typeof Uint8Array.prototype.slice !== 'undefined' ? new ArrayBuffer(bufferLength) : new Array(bufferLength);
  var bytes = Array.isArray(buffer) ? buffer : new Uint8Array(buffer);
  for (i = 0; i < len; i += 4) {
    encoded1 = lookup$1[base64.charCodeAt(i)];
    encoded2 = lookup$1[base64.charCodeAt(i + 1)];
    encoded3 = lookup$1[base64.charCodeAt(i + 2)];
    encoded4 = lookup$1[base64.charCodeAt(i + 3)];
    bytes[p++] = encoded1 << 2 | encoded2 >> 4;
    bytes[p++] = (encoded2 & 15) << 4 | encoded3 >> 2;
    bytes[p++] = (encoded3 & 3) << 6 | encoded4 & 63;
  }
  return buffer;
};
var polyUint16Array = function polyUint16Array(buffer) {
  var length = buffer.length;
  var bytes = [];
  for (var i = 0; i < length; i += 2) {
    bytes.push(buffer[i + 1] << 8 | buffer[i]);
  }
  return bytes;
};
var polyUint32Array = function polyUint32Array(buffer) {
  var length = buffer.length;
  var bytes = [];
  for (var i = 0; i < length; i += 4) {
    bytes.push(buffer[i + 3] << 24 | buffer[i + 2] << 16 | buffer[i + 1] << 8 | buffer[i]);
  }
  return bytes;
};

/** Shift size for getting the index-2 table offset. */
var UTRIE2_SHIFT_2 = 5;
/** Shift size for getting the index-1 table offset. */
var UTRIE2_SHIFT_1 = 6 + 5;
/**
 * Shift size for shifting left the index array values.
 * Increases possible data size with 16-bit index values at the cost
 * of compactability.
 * This requires data blocks to be aligned by UTRIE2_DATA_GRANULARITY.
 */
var UTRIE2_INDEX_SHIFT = 2;
/**
 * Difference between the two shift sizes,
 * for getting an index-1 offset from an index-2 offset. 6=11-5
 */
var UTRIE2_SHIFT_1_2 = UTRIE2_SHIFT_1 - UTRIE2_SHIFT_2;
/**
 * The part of the index-2 table for U+D800..U+DBFF stores values for
 * lead surrogate code _units_ not code _points_.
 * Values for lead surrogate code _points_ are indexed with this portion of the table.
 * Length=32=0x20=0x400>>UTRIE2_SHIFT_2. (There are 1024=0x400 lead surrogates.)
 */
var UTRIE2_LSCP_INDEX_2_OFFSET = 0x10000 >> UTRIE2_SHIFT_2;
/** Number of entries in a data block. 32=0x20 */
var UTRIE2_DATA_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_2;
/** Mask for getting the lower bits for the in-data-block offset. */
var UTRIE2_DATA_MASK = UTRIE2_DATA_BLOCK_LENGTH - 1;
var UTRIE2_LSCP_INDEX_2_LENGTH = 0x400 >> UTRIE2_SHIFT_2;
/** Count the lengths of both BMP pieces. 2080=0x820 */
var UTRIE2_INDEX_2_BMP_LENGTH = UTRIE2_LSCP_INDEX_2_OFFSET + UTRIE2_LSCP_INDEX_2_LENGTH;
/**
 * The 2-byte UTF-8 version of the index-2 table follows at offset 2080=0x820.
 * Length 32=0x20 for lead bytes C0..DF, regardless of UTRIE2_SHIFT_2.
 */
var UTRIE2_UTF8_2B_INDEX_2_OFFSET = UTRIE2_INDEX_2_BMP_LENGTH;
var UTRIE2_UTF8_2B_INDEX_2_LENGTH = 0x800 >> 6; /* U+0800 is the first code point after 2-byte UTF-8 */
/**
 * The index-1 table, only used for supplementary code points, at offset 2112=0x840.
 * Variable length, for code points up to highStart, where the last single-value range starts.
 * Maximum length 512=0x200=0x100000>>UTRIE2_SHIFT_1.
 * (For 0x100000 supplementary code points U+10000..U+10ffff.)
 *
 * The part of the index-2 table for supplementary code points starts
 * after this index-1 table.
 *
 * Both the index-1 table and the following part of the index-2 table
 * are omitted completely if there is only BMP data.
 */
var UTRIE2_INDEX_1_OFFSET = UTRIE2_UTF8_2B_INDEX_2_OFFSET + UTRIE2_UTF8_2B_INDEX_2_LENGTH;
/**
 * Number of index-1 entries for the BMP. 32=0x20
 * This part of the index-1 table is omitted from the serialized form.
 */
var UTRIE2_OMITTED_BMP_INDEX_1_LENGTH = 0x10000 >> UTRIE2_SHIFT_1;
/** Number of entries in an index-2 block. 64=0x40 */
var UTRIE2_INDEX_2_BLOCK_LENGTH = 1 << UTRIE2_SHIFT_1_2;
/** Mask for getting the lower bits for the in-index-2-block offset. */
var UTRIE2_INDEX_2_MASK = UTRIE2_INDEX_2_BLOCK_LENGTH - 1;
var slice16 = function slice16(view, start, end) {
  if (view.slice) {
    return view.slice(start, end);
  }
  return new Uint16Array(Array.prototype.slice.call(view, start, end));
};
var slice32 = function slice32(view, start, end) {
  if (view.slice) {
    return view.slice(start, end);
  }
  return new Uint32Array(Array.prototype.slice.call(view, start, end));
};
var createTrieFromBase64 = function createTrieFromBase64(base64, _byteLength) {
  var buffer = decode(base64);
  var view32 = Array.isArray(buffer) ? polyUint32Array(buffer) : new Uint32Array(buffer);
  var view16 = Array.isArray(buffer) ? polyUint16Array(buffer) : new Uint16Array(buffer);
  var headerLength = 24;
  var index = slice16(view16, headerLength / 2, view32[4] / 2);
  var data = view32[5] === 2 ? slice16(view16, (headerLength + view32[4]) / 2) : slice32(view32, Math.ceil((headerLength + view32[4]) / 4));
  return new Trie(view32[0], view32[1], view32[2], view32[3], index, data);
};
var Trie = /** @class */function () {
  function Trie(initialValue, errorValue, highStart, highValueIndex, index, data) {
    this.initialValue = initialValue;
    this.errorValue = errorValue;
    this.highStart = highStart;
    this.highValueIndex = highValueIndex;
    this.index = index;
    this.data = data;
  }
  /**
   * Get the value for a code point as stored in the Trie.
   *
   * @param codePoint the code point
   * @return the value
   */
  Trie.prototype.get = function (codePoint) {
    var ix;
    if (codePoint >= 0) {
      if (codePoint < 0x0d800 || codePoint > 0x0dbff && codePoint <= 0x0ffff) {
        // Ordinary BMP code point, excluding leading surrogates.
        // BMP uses a single level lookup.  BMP index starts at offset 0 in the Trie2 index.
        // 16 bit data is stored in the index array itself.
        ix = this.index[codePoint >> UTRIE2_SHIFT_2];
        ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
        return this.data[ix];
      }
      if (codePoint <= 0xffff) {
        // Lead Surrogate Code Point.  A Separate index section is stored for
        // lead surrogate code units and code points.
        //   The main index has the code unit data.
        //   For this function, we need the code point data.
        // Note: this expression could be refactored for slightly improved efficiency, but
        //       surrogate code points will be so rare in practice that it's not worth it.
        ix = this.index[UTRIE2_LSCP_INDEX_2_OFFSET + (codePoint - 0xd800 >> UTRIE2_SHIFT_2)];
        ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
        return this.data[ix];
      }
      if (codePoint < this.highStart) {
        // Supplemental code point, use two-level lookup.
        ix = UTRIE2_INDEX_1_OFFSET - UTRIE2_OMITTED_BMP_INDEX_1_LENGTH + (codePoint >> UTRIE2_SHIFT_1);
        ix = this.index[ix];
        ix += codePoint >> UTRIE2_SHIFT_2 & UTRIE2_INDEX_2_MASK;
        ix = this.index[ix];
        ix = (ix << UTRIE2_INDEX_SHIFT) + (codePoint & UTRIE2_DATA_MASK);
        return this.data[ix];
      }
      if (codePoint <= 0x10ffff) {
        return this.data[this.highValueIndex];
      }
    }
    // Fall through.  The code point is outside of the legal range of 0..0x10ffff.
    return this.errorValue;
  };
  return Trie;
}();

/*
 * base64-arraybuffer 1.0.2 <https://github.com/niklasvh/base64-arraybuffer>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
// Use a lookup table to find the index.
var lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);
for (var i = 0; i < chars.length; i++) {
  lookup[chars.charCodeAt(i)] = i;
}
var base64 = ' ';
var LETTER_NUMBER_MODIFIER = 50;
// Non-tailorable Line Breaking Classes
var BK = 1; //  Cause a line break (after)
var CR = 2; //  Cause a line break (after), except between CR and LF
var LF = 3; //  Cause a line break (after)
var CM = 4; //  Prohibit a line break between the character and the preceding character
var NL = 5; //  Cause a line break (after)
var WJ = 7; //  Prohibit line breaks before and after
var ZW = 8; //  Provide a break opportunity
var GL = 9; //  Prohibit line breaks before and after
var SP = 10; // Enable indirect line breaks
var ZWJ = 11; // Prohibit line breaks within joiner sequences
// Break Opportunities
var B2 = 12; //  Provide a line break opportunity before and after the character
var BA = 13; //  Generally provide a line break opportunity after the character
var BB = 14; //  Generally provide a line break opportunity before the character
var HY = 15; //  Provide a line break opportunity after the character, except in numeric context
var CB = 16; //   Provide a line break opportunity contingent on additional information
// Characters Prohibiting Certain Breaks
var CL = 17; //  Prohibit line breaks before
var CP = 18; //  Prohibit line breaks before
var EX = 19; //  Prohibit line breaks before
var IN = 20; //  Allow only indirect line breaks between pairs
var NS = 21; //  Allow only indirect line breaks before
var OP = 22; //  Prohibit line breaks after
var QU = 23; //  Act like they are both opening and closing
// Numeric Context
var IS = 24; //  Prevent breaks after any and before numeric
var NU = 25; //  Form numeric expressions for line breaking purposes
var PO = 26; //  Do not break following a numeric expression
var PR = 27; //  Do not break in front of a numeric expression
var SY = 28; //  Prevent a break before; and allow a break after
// Other Characters
var AI = 29; //  Act like AL when the resolvedEAW is N; otherwise; act as ID
var AL = 30; //  Are alphabetic characters or symbols that are used with alphabetic characters
var CJ = 31; //  Treat as NS or ID for strict or normal breaking.
var EB = 32; //  Do not break from following Emoji Modifier
var EM = 33; //  Do not break from preceding Emoji Base
var H2 = 34; //  Form Korean syllable blocks
var H3 = 35; //  Form Korean syllable blocks
var HL = 36; //  Do not break around a following hyphen; otherwise act as Alphabetic
var ID = 37; //  Break before or after; except in some numeric context
var JL = 38; //  Form Korean syllable blocks
var JV = 39; //  Form Korean syllable blocks
var JT = 40; //  Form Korean syllable blocks
var RI = 41; //  Keep pairs together. For pairs; break before and after other classes
var SA = 42; //  Provide a line break opportunity contingent on additional, language-specific context analysis
var XX = 43; //  Have as yet unknown line breaking behavior or unassigned code positions
var ea_OP = [0x2329, 0xff08];
var BREAK_MANDATORY = '!';
var BREAK_NOT_ALLOWED = '×';
var BREAK_ALLOWED = '÷';
var UnicodeTrie = createTrieFromBase64(base64);
var ALPHABETICS = [AL, HL];
var HARD_LINE_BREAKS = [BK, CR, LF, NL];
var SPACE = [SP, ZW];
var PREFIX_POSTFIX = [PR, PO];
var LINE_BREAKS = HARD_LINE_BREAKS.concat(SPACE);
var KOREAN_SYLLABLE_BLOCK = [JL, JV, JT, H2, H3];
var HYPHEN = [HY, BA];
var codePointsToCharacterClasses = function codePointsToCharacterClasses(codePoints, lineBreak) {
  if (lineBreak === void 0) {
    lineBreak = 'strict';
  }
  var types = [];
  var indices = [];
  var categories = [];
  codePoints.forEach(function (codePoint, index) {
    var classType = UnicodeTrie.get(codePoint);
    if (classType > LETTER_NUMBER_MODIFIER) {
      categories.push(true);
      classType -= LETTER_NUMBER_MODIFIER;
    } else {
      categories.push(false);
    }
    if (['normal', 'auto', 'loose'].indexOf(lineBreak) !== -1) {
      // U+2010, – U+2013, 〜 U+301C, ゠ U+30A0
      if ([0x2010, 0x2013, 0x301c, 0x30a0].indexOf(codePoint) !== -1) {
        indices.push(index);
        return types.push(CB);
      }
    }
    if (classType === CM || classType === ZWJ) {
      // LB10 Treat any remaining combining mark or ZWJ as AL.
      if (index === 0) {
        indices.push(index);
        return types.push(AL);
      }
      // LB9 Do not break a combining character sequence; treat it as if it has the line breaking class of
      // the base character in all of the following rules. Treat ZWJ as if it were CM.
      var prev = types[index - 1];
      if (LINE_BREAKS.indexOf(prev) === -1) {
        indices.push(indices[index - 1]);
        return types.push(prev);
      }
      indices.push(index);
      return types.push(AL);
    }
    indices.push(index);
    if (classType === CJ) {
      return types.push(lineBreak === 'strict' ? NS : ID);
    }
    if (classType === SA) {
      return types.push(AL);
    }
    if (classType === AI) {
      return types.push(AL);
    }
    // For supplementary characters, a useful default is to treat characters in the range 10000..1FFFD as AL
    // and characters in the ranges 20000..2FFFD and 30000..3FFFD as ID, until the implementation can be revised
    // to take into account the actual line breaking properties for these characters.
    if (classType === XX) {
      if (codePoint >= 0x20000 && codePoint <= 0x2fffd || codePoint >= 0x30000 && codePoint <= 0x3fffd) {
        return types.push(ID);
      } else {
        return types.push(AL);
      }
    }
    types.push(classType);
  });
  return [indices, types, categories];
};
var isAdjacentWithSpaceIgnored = function isAdjacentWithSpaceIgnored(a, b, currentIndex, classTypes) {
  var current = classTypes[currentIndex];
  if (Array.isArray(a) ? a.indexOf(current) !== -1 : a === current) {
    var i = currentIndex;
    while (i <= classTypes.length) {
      i++;
      var next = classTypes[i];
      if (next === b) {
        return true;
      }
      if (next !== SP) {
        break;
      }
    }
  }
  if (current === SP) {
    var i = currentIndex;
    while (i > 0) {
      i--;
      var prev = classTypes[i];
      if (Array.isArray(a) ? a.indexOf(prev) !== -1 : a === prev) {
        var n = currentIndex;
        while (n <= classTypes.length) {
          n++;
          var next = classTypes[n];
          if (next === b) {
            return true;
          }
          if (next !== SP) {
            break;
          }
        }
      }
      if (prev !== SP) {
        break;
      }
    }
  }
  return false;
};
var previousNonSpaceClassType = function previousNonSpaceClassType(currentIndex, classTypes) {
  var i = currentIndex;
  while (i >= 0) {
    var type = classTypes[i];
    if (type === SP) {
      i--;
    } else {
      return type;
    }
  }
  return 0;
};
var _lineBreakAtIndex = function _lineBreakAtIndex(codePoints, classTypes, indicies, index, forbiddenBreaks) {
  if (indicies[index] === 0) {
    return BREAK_NOT_ALLOWED;
  }
  var currentIndex = index - 1;
  if (Array.isArray(forbiddenBreaks) && forbiddenBreaks[currentIndex] === true) {
    return BREAK_NOT_ALLOWED;
  }
  var beforeIndex = currentIndex - 1;
  var afterIndex = currentIndex + 1;
  var current = classTypes[currentIndex];
  // LB4 Always break after hard line breaks.
  // LB5 Treat CR followed by LF, as well as CR, LF, and NL as hard line breaks.
  var before = beforeIndex >= 0 ? classTypes[beforeIndex] : 0;
  var next = classTypes[afterIndex];
  if (current === CR && next === LF) {
    return BREAK_NOT_ALLOWED;
  }
  if (HARD_LINE_BREAKS.indexOf(current) !== -1) {
    return BREAK_MANDATORY;
  }
  // LB6 Do not break before hard line breaks.
  if (HARD_LINE_BREAKS.indexOf(next) !== -1) {
    return BREAK_NOT_ALLOWED;
  }
  // LB7 Do not break before spaces or zero width space.
  if (SPACE.indexOf(next) !== -1) {
    return BREAK_NOT_ALLOWED;
  }
  // LB8 Break before any character following a zero-width space, even if one or more spaces intervene.
  if (previousNonSpaceClassType(currentIndex, classTypes) === ZW) {
    return BREAK_ALLOWED;
  }
  // LB8a Do not break after a zero width joiner.
  if (UnicodeTrie.get(codePoints[currentIndex]) === ZWJ) {
    return BREAK_NOT_ALLOWED;
  }
  // zwj emojis
  if ((current === EB || current === EM) && UnicodeTrie.get(codePoints[afterIndex]) === ZWJ) {
    return BREAK_NOT_ALLOWED;
  }
  // LB11 Do not break before or after Word joiner and related characters.
  if (current === WJ || next === WJ) {
    return BREAK_NOT_ALLOWED;
  }
  // LB12 Do not break after NBSP and related characters.
  if (current === GL) {
    return BREAK_NOT_ALLOWED;
  }
  // LB12a Do not break before NBSP and related characters, except after spaces and hyphens.
  if ([SP, BA, HY].indexOf(current) === -1 && next === GL) {
    return BREAK_NOT_ALLOWED;
  }
  // LB13 Do not break before ‘]’ or ‘!’ or ‘;’ or ‘/’, even after spaces.
  if ([CL, CP, EX, IS, SY].indexOf(next) !== -1) {
    return BREAK_NOT_ALLOWED;
  }
  // LB14 Do not break after ‘[’, even after spaces.
  if (previousNonSpaceClassType(currentIndex, classTypes) === OP) {
    return BREAK_NOT_ALLOWED;
  }
  // LB15 Do not break within ‘”[’, even with intervening spaces.
  if (isAdjacentWithSpaceIgnored(QU, OP, currentIndex, classTypes)) {
    return BREAK_NOT_ALLOWED;
  }
  // LB16 Do not break between closing punctuation and a nonstarter (lb=NS), even with intervening spaces.
  if (isAdjacentWithSpaceIgnored([CL, CP], NS, currentIndex, classTypes)) {
    return BREAK_NOT_ALLOWED;
  }
  // LB17 Do not break within ‘——’, even with intervening spaces.
  if (isAdjacentWithSpaceIgnored(B2, B2, currentIndex, classTypes)) {
    return BREAK_NOT_ALLOWED;
  }
  // LB18 Break after spaces.
  if (current === SP) {
    return BREAK_ALLOWED;
  }
  // LB19 Do not break before or after quotation marks, such as ‘ ” ’.
  if (current === QU || next === QU) {
    return BREAK_NOT_ALLOWED;
  }
  // LB20 Break before and after unresolved CB.
  if (next === CB || current === CB) {
    return BREAK_ALLOWED;
  }
  // LB21 Do not break before hyphen-minus, other hyphens, fixed-width spaces, small kana, and other non-starters, or after acute accents.
  if ([BA, HY, NS].indexOf(next) !== -1 || current === BB) {
    return BREAK_NOT_ALLOWED;
  }
  // LB21a Don't break after Hebrew + Hyphen.
  if (before === HL && HYPHEN.indexOf(current) !== -1) {
    return BREAK_NOT_ALLOWED;
  }
  // LB21b Don’t break between Solidus and Hebrew letters.
  if (current === SY && next === HL) {
    return BREAK_NOT_ALLOWED;
  }
  // LB22 Do not break before ellipsis.
  if (next === IN) {
    return BREAK_NOT_ALLOWED;
  }
  // LB23 Do not break between digits and letters.
  if (ALPHABETICS.indexOf(next) !== -1 && current === NU || ALPHABETICS.indexOf(current) !== -1 && next === NU) {
    return BREAK_NOT_ALLOWED;
  }
  // LB23a Do not break between numeric prefixes and ideographs, or between ideographs and numeric postfixes.
  if (current === PR && [ID, EB, EM].indexOf(next) !== -1 || [ID, EB, EM].indexOf(current) !== -1 && next === PO) {
    return BREAK_NOT_ALLOWED;
  }
  // LB24 Do not break between numeric prefix/postfix and letters, or between letters and prefix/postfix.
  if (ALPHABETICS.indexOf(current) !== -1 && PREFIX_POSTFIX.indexOf(next) !== -1 || PREFIX_POSTFIX.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1) {
    return BREAK_NOT_ALLOWED;
  }
  // LB25 Do not break between the following pairs of classes relevant to numbers:
  if (
  // (PR | PO) × ( OP | HY )? NU
  [PR, PO].indexOf(current) !== -1 && (next === NU || [OP, HY].indexOf(next) !== -1 && classTypes[afterIndex + 1] === NU) ||
  // ( OP | HY ) × NU
  [OP, HY].indexOf(current) !== -1 && next === NU ||
  // NU ×	(NU | SY | IS)
  current === NU && [NU, SY, IS].indexOf(next) !== -1) {
    return BREAK_NOT_ALLOWED;
  }
  // NU (NU | SY | IS)* × (NU | SY | IS | CL | CP)
  if ([NU, SY, IS, CL, CP].indexOf(next) !== -1) {
    var prevIndex = currentIndex;
    while (prevIndex >= 0) {
      var type = classTypes[prevIndex];
      if (type === NU) {
        return BREAK_NOT_ALLOWED;
      } else if ([SY, IS].indexOf(type) !== -1) {
        prevIndex--;
      } else {
        break;
      }
    }
  }
  // NU (NU | SY | IS)* (CL | CP)? × (PO | PR))
  if ([PR, PO].indexOf(next) !== -1) {
    var prevIndex = [CL, CP].indexOf(current) !== -1 ? beforeIndex : currentIndex;
    while (prevIndex >= 0) {
      var type = classTypes[prevIndex];
      if (type === NU) {
        return BREAK_NOT_ALLOWED;
      } else if ([SY, IS].indexOf(type) !== -1) {
        prevIndex--;
      } else {
        break;
      }
    }
  }
  // LB26 Do not break a Korean syllable.
  if (JL === current && [JL, JV, H2, H3].indexOf(next) !== -1 || [JV, H2].indexOf(current) !== -1 && [JV, JT].indexOf(next) !== -1 || [JT, H3].indexOf(current) !== -1 && next === JT) {
    return BREAK_NOT_ALLOWED;
  }
  // LB27 Treat a Korean Syllable Block the same as ID.
  if (KOREAN_SYLLABLE_BLOCK.indexOf(current) !== -1 && [IN, PO].indexOf(next) !== -1 || KOREAN_SYLLABLE_BLOCK.indexOf(next) !== -1 && current === PR) {
    return BREAK_NOT_ALLOWED;
  }
  // LB28 Do not break between alphabetics (“at”).
  if (ALPHABETICS.indexOf(current) !== -1 && ALPHABETICS.indexOf(next) !== -1) {
    return BREAK_NOT_ALLOWED;
  }
  // LB29 Do not break between numeric punctuation and alphabetics (“e.g.”).
  if (current === IS && ALPHABETICS.indexOf(next) !== -1) {
    return BREAK_NOT_ALLOWED;
  }
  // LB30 Do not break between letters, numbers, or ordinary symbols and opening or closing parentheses.
  if (ALPHABETICS.concat(NU).indexOf(current) !== -1 && next === OP && ea_OP.indexOf(codePoints[afterIndex]) === -1 || ALPHABETICS.concat(NU).indexOf(next) !== -1 && current === CP) {
    return BREAK_NOT_ALLOWED;
  }
  // LB30a Break between two regional indicator symbols if and only if there are an even number of regional
  // indicators preceding the position of the break.
  if (current === RI && next === RI) {
    var i = indicies[currentIndex];
    var count = 1;
    while (i > 0) {
      i--;
      if (classTypes[i] === RI) {
        count++;
      } else {
        break;
      }
    }
    if (count % 2 !== 0) {
      return BREAK_NOT_ALLOWED;
    }
  }
  // LB30b Do not break between an emoji base and an emoji modifier.
  if (current === EB && next === EM) {
    return BREAK_NOT_ALLOWED;
  }
  return BREAK_ALLOWED;
};
var cssFormattedClasses = function cssFormattedClasses(codePoints, options) {
  if (!options) {
    options = {
      lineBreak: 'normal',
      wordBreak: 'normal'
    };
  }
  var _a = codePointsToCharacterClasses(codePoints, options.lineBreak),
    indicies = _a[0],
    classTypes = _a[1],
    isLetterNumber = _a[2];
  if (options.wordBreak === 'break-all' || options.wordBreak === 'break-word') {
    classTypes = classTypes.map(function (type) {
      return [NU, AL, SA].indexOf(type) !== -1 ? ID : type;
    });
  }
  var forbiddenBreakpoints = options.wordBreak === 'keep-all' ? isLetterNumber.map(function (letterNumber, i) {
    return letterNumber && codePoints[i] >= 0x4e00 && codePoints[i] <= 0x9fff;
  }) : undefined;
  return [indicies, classTypes, forbiddenBreakpoints];
};
var Break = /** @class */function () {
  function Break(codePoints, lineBreak, start, end) {
    this.codePoints = codePoints;
    this.required = lineBreak === BREAK_MANDATORY;
    this.start = start;
    this.end = end;
  }
  Break.prototype.slice = function () {
    return fromCodePoint.apply(void 0, this.codePoints.slice(this.start, this.end));
  };
  return Break;
}();
var LineBreaker = function LineBreaker(str, options) {
  var codePoints = toCodePoints(str);
  var _a = cssFormattedClasses(codePoints, options),
    indicies = _a[0],
    classTypes = _a[1],
    forbiddenBreakpoints = _a[2];
  var length = codePoints.length;
  var lastEnd = 0;
  var nextIndex = 0;
  return {
    next: function next() {
      if (nextIndex >= length) {
        return {
          done: true,
          value: null
        };
      }
      var lineBreak = BREAK_NOT_ALLOWED;
      while (nextIndex < length && (lineBreak = _lineBreakAtIndex(codePoints, classTypes, indicies, ++nextIndex, forbiddenBreakpoints)) === BREAK_NOT_ALLOWED) {}
      if (lineBreak !== BREAK_NOT_ALLOWED || nextIndex === length) {
        var value = new Break(codePoints, lineBreak, lastEnd, nextIndex);
        lastEnd = nextIndex;
        return {
          value: value,
          done: false
        };
      }
      return {
        done: true,
        value: null
      };
    }
  };
};

;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/words.js

var getWordsCount = function getWordsCount(str) {
  try {
    var breaker = LineBreaker(str);
    var wordsCount = 0;
    while (!breaker.next().done) {
      wordsCount += 1;
    }
    return wordsCount;
    /* eslint-disable alidocs/catch-call-function */
  } catch (e) {
    return 0;
  }
};
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/abstractCmdController.js
var abstractCmdController = __webpack_require__(5392);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/liveMeetingController.js


var LiveMeetingController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,inheritsLoose/* default */.Z)(LiveMeetingController, _AbstractCmdControlle);
  function LiveMeetingController() {
    return _AbstractCmdControlle.apply(this, arguments) || this;
  }
  var _proto = LiveMeetingController.prototype;
  _proto.startLiveMeeting = function startLiveMeeting() {};
  _proto.endLiveMeeting = function endLiveMeeting() {};
  return LiveMeetingController;
}(abstractCmdController/* AbstractCmdController */.p);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_SetCache.js + 2 modules
var _SetCache = __webpack_require__(8668);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIndexOf.js + 3 modules
var _baseIndexOf = __webpack_require__(2084);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayIncludes.js


/**
 * A specialized version of `_.includes` for arrays without support for
 * specifying an index to search from.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */
function arrayIncludes(array, value) {
  var length = array == null ? 0 : array.length;
  return !!length && (0,_baseIndexOf/* default */.Z)(array, value, 0) > -1;
}
/* harmony default export */ var _arrayIncludes = (arrayIncludes);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayIncludesWith.js
/**
 * This function is like `arrayIncludes` except that it accepts a comparator.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @param {Function} comparator The comparator invoked per element.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */
function arrayIncludesWith(array, value, comparator) {
  var index = -1,
    length = array == null ? 0 : array.length;
  while (++index < length) {
    if (comparator(value, array[index])) {
      return true;
    }
  }
  return false;
}
/* harmony default export */ var _arrayIncludesWith = (arrayIncludesWith);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cacheHas.js
var _cacheHas = __webpack_require__(4117);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Set.js
var _Set = __webpack_require__(1987);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/noop.js
var noop = __webpack_require__(8027);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_setToArray.js
var _setToArray = __webpack_require__(94);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_createSet.js




/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/**
 * Creates a set object of `values`.
 *
 * @private
 * @param {Array} values The values to add to the set.
 * @returns {Object} Returns the new set.
 */
var createSet = !(_Set/* default */.Z && 1 / (0,_setToArray/* default */.Z)(new _Set/* default */.Z([, -0]))[1] == INFINITY) ? noop/* default */.Z : function (values) {
  return new _Set/* default */.Z(values);
};
/* harmony default export */ var _createSet = (createSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseUniq.js







/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * The base implementation of `_.uniqBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 */
function baseUniq(array, iteratee, comparator) {
  var index = -1,
    includes = _arrayIncludes,
    length = array.length,
    isCommon = true,
    result = [],
    seen = result;
  if (comparator) {
    isCommon = false;
    includes = _arrayIncludesWith;
  } else if (length >= LARGE_ARRAY_SIZE) {
    var set = iteratee ? null : _createSet(array);
    if (set) {
      return (0,_setToArray/* default */.Z)(set);
    }
    isCommon = false;
    includes = _cacheHas/* default */.Z;
    seen = new _SetCache/* default */.Z();
  } else {
    seen = iteratee ? [] : result;
  }
  outer: while (++index < length) {
    var value = array[index],
      computed = iteratee ? iteratee(value) : value;
    value = comparator || value !== 0 ? value : 0;
    if (isCommon && computed === computed) {
      var seenIndex = seen.length;
      while (seenIndex--) {
        if (seen[seenIndex] === computed) {
          continue outer;
        }
      }
      if (iteratee) {
        seen.push(computed);
      }
      result.push(value);
    } else if (!includes(seen, computed, comparator)) {
      if (seen !== result) {
        seen.push(computed);
      }
      result.push(value);
    }
  }
  return result;
}
/* harmony default export */ var _baseUniq = (baseUniq);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/uniq.js


/**
 * Creates a duplicate-free version of an array, using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons, in which only the first occurrence of each element
 * is kept. The order of result values is determined by the order they occur
 * in the array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.uniq([2, 1, 2]);
 * // => [2, 1]
 */
function uniq(array) {
  return array && array.length ? _baseUniq(array) : [];
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_uniq = (uniq);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/utils/search.js

var findSelections = function findSelections(textContent, keyword, extraParams) {
  var offset = 0;
  var keywordLength = keyword.length;
  var foundTexts = [];
  while (true) {
    var pos = textContent.indexOf(keyword, offset);
    if (pos > -1) {
      var startOffset = pos;
      var endOffset = pos + keywordLength;
      foundTexts.push((0,esm_extends/* default */.Z)({
        startOffset: startOffset,
        endOffset: endOffset
      }, extraParams || {}));
      offset = pos + keywordLength;
    } else {
      break;
    }
  }
  return foundTexts;
};
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/translateController.js
var translateController = __webpack_require__(8674);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/searchReplaceController.js





var SearchReplaceController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,inheritsLoose/* default */.Z)(SearchReplaceController, _AbstractCmdControlle);
  function SearchReplaceController(controller) {
    var _this;
    _this = _AbstractCmdControlle.call(this, controller) || this;
    _this.keyword = '';
    _this.foundResultMap = {};
    _this.activeIndex = undefined;
    _this.isSearchTranslate = true;
    controller.on('paragraphChange', function (_ref) {
      var pid = _ref.pid;
      if (_this.keyword) {
        var foundResult = _this.findTextContent(pid, _this.keyword);
        if (foundResult.origin.length > 0 || foundResult.translate.length > 0) {
          _this.foundResultMap[pid] = foundResult;
        } else {
          delete _this.foundResultMap[pid];
        }
        setTimeout(function () {
          _this.emitSearchReplaceEvent(false);
        }, 0);
      }
    });
    return _this;
  }
  var _proto = SearchReplaceController.prototype;
  _proto.getFoundSelections = function getFoundSelections() {
    var _this2 = this;
    var controller = this.controller;
    var pids = controller.getPids(true);
    var foundSelections = [];
    pids.forEach(function (pid) {
      var result = _this2.foundResultMap[pid];
      if (result) {
        if (result.origin.length > 0) {
          foundSelections.push.apply(foundSelections, result.origin);
        }
        if (result.translate.length > 0) {
          foundSelections.push.apply(foundSelections, result.translate);
        }
      }
    });
    return foundSelections;
  };
  _proto.getFoundSelectionsByPid = function getFoundSelectionsByPid(pid) {
    return this.foundResultMap[pid];
  };
  _proto.getActiveFoundSelection = function getActiveFoundSelection() {
    if (this.activeIndex === undefined) {
      return undefined;
    }
    return this.getFoundSelections()[this.activeIndex];
  };
  _proto.findTextContent = function findTextContent(pid, _keyword) {
    var foundResult = {
      origin: [],
      translate: []
    };
    var translateMode = this.controller.getTranslateMode(pid);
    if (translateMode === translateController/* TranslateMode */.R.Disabled || translateMode === translateController/* TranslateMode */.R.OriginAndTranslate) {
      foundResult.origin = this.findOriginTextContent(pid, _keyword);
    }
    if (this.isSearchTranslate) {
      if (translateMode === translateController/* TranslateMode */.R.TranslateOnly || translateMode === translateController/* TranslateMode */.R.OriginAndTranslate) {
        foundResult.translate = this.findTranslateContent(pid, _keyword);
      }
    }
    return foundResult;
  };
  _proto.findOriginTextContent = function findOriginTextContent(pid, _keyword) {
    var _textContent = this.controller.getTextContent(pid);
    var textContent = _textContent.toLowerCase();
    var keyword = _keyword.toLowerCase();
    if (!keyword) {
      return [];
    }
    return findSelections(textContent, keyword, {
      pid: pid
    });
  };
  _proto.findTranslateContent = function findTranslateContent(pid, _keyword) {
    var translate = this.controller.getTranslate(pid);
    if (!translate || translate.translateResult.length === 0) {
      return [];
    }
    var textContent = translate.translateResult.reduce(function (result, word) {
      return result + word.text;
    }, '').toLowerCase();
    var keyword = _keyword.toLowerCase();
    if (!keyword) {
      return [];
    }
    return findSelections(textContent, keyword, {
      pid: pid,
      readonly: true
    });
  };
  _proto.find = function find(keyword, isSearchTranslate) {
    var _this3 = this;
    if (isSearchTranslate === void 0) {
      isSearchTranslate = true;
    }
    var controller = this.controller;
    this.keyword = keyword;
    this.isSearchTranslate = isSearchTranslate;
    var pids = controller.getPids(true);
    this.foundResultMap = {};
    pids.forEach(function (pid) {
      var foundeds = _this3.findTextContent(pid, keyword);
      if (foundeds.origin.length > 0 || foundeds.translate.length > 0) {
        _this3.foundResultMap[pid] = foundeds;
      }
    });
  };
  _proto.findAndMark = function findAndMark(keyword, isSearchTranslate, enableScroll) {
    var _maybeChangedPids;
    if (isSearchTranslate === void 0) {
      isSearchTranslate = true;
    }
    if (enableScroll === void 0) {
      enableScroll = true;
    }
    var maybeChangedPids = Object.keys(this.foundResultMap);
    this.find(keyword, isSearchTranslate);
    var selectionLength = this.getFoundSelections().length;
    if (selectionLength > 0) {
      if (!this.activeIndex || selectionLength <= this.activeIndex) {
        this.activeIndex = 0;
      }
    } else {
      this.activeIndex = undefined;
    }
    maybeChangedPids = _lodash_es_4_17_21_lodash_es_uniq((_maybeChangedPids = maybeChangedPids).concat.apply(_maybeChangedPids, Object.keys(this.foundResultMap)));
    this.controller.emit('paragraphListChange', {
      maybeChangedPids: maybeChangedPids
    });
    this.emitSearchReplaceEvent(enableScroll);
    return this.foundResultMap;
  };
  _proto.reFindAndMark = function reFindAndMark() {
    if (this.keyword) {
      this.findAndMark(this.keyword, this.isSearchTranslate, false);
    }
  };
  _proto.generateFoundPrevNext = function generateFoundPrevNext(type) {
    var selections = this.getFoundSelections();
    var maybeChangedPids = [];
    if (this.activeIndex !== undefined) {
      maybeChangedPids.push(selections[this.activeIndex].pid);
    }
    if (this.activeIndex === undefined) {
      this.activeIndex = 0;
    }
    if (type === 'prev') {
      if (this.activeIndex === 0) {
        this.activeIndex = selections.length - 1;
      } else {
        this.activeIndex--;
      }
    } else if (type === 'next') {
      if (this.activeIndex + 1 === selections.length) {
        this.activeIndex = 0;
      } else {
        this.activeIndex++;
      }
    }
    maybeChangedPids.push(selections[this.activeIndex].pid);
    this.controller.emit('paragraphListChange', {
      maybeChangedPids: maybeChangedPids
    });
    this.emitSearchReplaceEvent();
  };
  _proto.prev = function prev() {
    this.generateFoundPrevNext('prev');
  };
  _proto.next = function next() {
    this.generateFoundPrevNext('next');
  };
  _proto.replace = function replace(text) {
    if (this.activeIndex === undefined) {
      return;
    }
    var selections = this.getFoundSelections();
    var length = selections.length;
    var selection = selections[this.activeIndex];
    var nextSelection = selections[this.activeIndex + 1];
    var prevSelection = selections[this.activeIndex - 1];
    if (selection.readonly) {
      return;
    }
    this.controller.dontSelectNext().replaceText(selection.pid, selection.startOffset, selection.endOffset, text);
    var maybeChangedPids = [selection.pid];
    if (nextSelection === undefined) {
      this.activeIndex = length - 1;
      if (prevSelection) {
        maybeChangedPids.push(prevSelection.pid);
      }
    } else {
      maybeChangedPids.push(nextSelection.pid);
    }
    this.controller.emit('paragraphListChange', {
      maybeChangedPids: maybeChangedPids
    });
    this.emitSearchReplaceEvent();
  };
  _proto.replaceAll = function replaceAll(text) {
    var maybeChangedPids = Object.keys(this.foundResultMap);
    var pLength = maybeChangedPids.length;
    if (pLength === 0) {
      return;
    }
    this.controller.dontSelectNext();
    var pIndex = 0;
    for (var _i = 0, _Object$entries = Object.entries(this.foundResultMap); _i < _Object$entries.length; _i++) {
      var _Object$entries$_i = _Object$entries[_i],
        foundResult = _Object$entries$_i[1];
      var origin = foundResult.origin;
      var offset = 0;
      var selectionLength = origin.length;
      for (var i = 0; i < selectionLength; i++) {
        var selection = origin[i];
        this.controller.replaceText(selection.pid, selection.startOffset + offset, selection.endOffset + offset, text, !(pIndex + 1 === pLength && i + 1 === selectionLength));
        offset += text.length - (selection.endOffset - selection.startOffset);
      }
      pIndex++;
    }
    this.reFindAndMark();
    this.controller.emit('paragraphListChange', {
      maybeChangedPids: maybeChangedPids
    });
    this.emitSearchReplaceEvent();
  };
  _proto.emitSearchReplaceEvent = function emitSearchReplaceEvent(enableScroll) {
    var _this$activeIndex;
    if (enableScroll === void 0) {
      enableScroll = true;
    }
    var selections = this.getFoundSelections();
    this.controller.emit('searchReplaceChange', {
      keyword: this.keyword,
      activeIndex: (_this$activeIndex = this.activeIndex) != null ? _this$activeIndex : 0,
      foundLength: selections.length,
      selections: selections,
      enableScroll: enableScroll
    });
  };
  _proto.resetFind = function resetFind() {
    var maybeChangedPids = Object.keys(this.foundResultMap);
    this.keyword = '';
    this.activeIndex = undefined;
    this.foundResultMap = {};
    this.controller.emit('paragraphListChange', {
      maybeChangedPids: maybeChangedPids
    });
    this.emitSearchReplaceEvent();
  };
  _proto.reset = function reset() {
    this.keyword = '';
    this.activeIndex = undefined;
    this.isSearchTranslate = true;
    this.foundResultMap = {};
  };
  return SearchReplaceController;
}(abstractCmdController/* AbstractCmdController */.p);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/voiceWordController.js


var VoiceWordController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,inheritsLoose/* default */.Z)(VoiceWordController, _AbstractCmdControlle);
  function VoiceWordController() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCmdControlle.call.apply(_AbstractCmdControlle, [this].concat(args)) || this;
    _this.playingVoicePid = void 0;
    _this.playingVoiceWord = void 0;
    _this.isEnablePlayingVoice = false;
    return _this;
  }
  var _proto = VoiceWordController.prototype;
  _proto.startPlayingVoiceWord = function startPlayingVoiceWord() {
    this.isEnablePlayingVoice = true;
    this.controller.emit('blurCurrentTextEditor', {});
    this.controller.emit('playingVoiceWordEnableChange', {
      enable: true
    });
  };
  _proto.endPlayingVoiceWord = function endPlayingVoiceWord() {
    this.isEnablePlayingVoice = false;
    this.controller.emit('playingVoiceWordEnableChange', {
      enable: false
    });
  };
  _proto.getIsEnablePlayingVoice = function getIsEnablePlayingVoice() {
    return this.isEnablePlayingVoice;
  };
  _proto.setPlayingVoiceWord = function setPlayingVoiceWord(pid, word, forceDisplay, isPlaying, seekWithExtContent) {
    if (forceDisplay === void 0) {
      forceDisplay = false;
    }
    if (isPlaying === void 0) {
      isPlaying = true;
    }
    if (seekWithExtContent === void 0) {
      seekWithExtContent = false;
    }
    var playingVoicePid = this.playingVoicePid;
    this.playingVoicePid = pid;
    this.playingVoiceWord = word;
    if (playingVoicePid && playingVoicePid !== pid) {
      this.controller.emit('playingVoiceWordChange', {
        pid: playingVoicePid,
        word: undefined
      });
    }
    this.controller.emit('playingVoiceWordChange', {
      pid: pid,
      word: word,
      forceDisplay: forceDisplay,
      seekWithExtContent: seekWithExtContent,
      isPlaying: isPlaying
    });
  };
  _proto.getPlayingPidAndWord = function getPlayingPidAndWord() {
    return [this.playingVoicePid, this.playingVoiceWord];
  };
  _proto.getPlayingWord = function getPlayingWord(pid) {
    if (this.playingVoicePid === pid) {
      return this.playingVoiceWord;
    }
    return undefined;
  };
  _proto.setPlayingVoiceWordByTime = function setPlayingVoiceWordByTime(timestamp, forceDisplay, isPlaying, seekWithExtContent) {
    if (forceDisplay === void 0) {
      forceDisplay = false;
    }
    if (isPlaying === void 0) {
      isPlaying = true;
    }
    if (seekWithExtContent === void 0) {
      seekWithExtContent = false;
    }
    var _ref = this.controller.getLastWordByTime(timestamp) || [],
      pid = _ref[0],
      word = _ref[1];
    if (pid && word) {
      this.setPlayingVoiceWord(pid, word, forceDisplay, isPlaying, seekWithExtContent);
    }
  };
  _proto.getNextSentencesByTime = function getNextSentencesByTime(timestamp) {
    var _this$controller$getM = this.controller.getMatchedWordsByTime(timestamp),
      allWords = _this$controller$getM[0],
      pos = _this$controller$getM[1],
      words = _this$controller$getM[2];
    var _ref2 = words.length > 0 ? words[words.length - 1] : allWords[pos],
      lastWord = _ref2[1];
    var length = allWords.length;
    var foundSentenceId;
    var sentences = [];
    for (var i = 0; i < length; i++) {
      var _allWords$i = allWords[i],
        word = _allWords$i[1];
      if (!foundSentenceId && Number(word.sentenceId) > Number(lastWord.sentenceId)) {
        foundSentenceId = word.sentenceId;
      }
      if (foundSentenceId && word.sentenceId === foundSentenceId) {
        sentences.push(word);
      }
    }
    return sentences;
  };
  _proto.getPrevSentencesByTime = function getPrevSentencesByTime(timestamp) {
    var _this$controller$getM2 = this.controller.getMatchedWordsByTime(timestamp),
      allWords = _this$controller$getM2[0],
      pos = _this$controller$getM2[1],
      words = _this$controller$getM2[2];
    var _ref3 = words.length > 0 ? words[0] : allWords[pos],
      firstWord = _ref3[1];
    var length = allWords.length;
    var foundSentenceId;
    var sentences = [];
    for (var i = length - 1; i >= 0; i--) {
      var _allWords$i2 = allWords[i],
        word = _allWords$i2[1];
      if (!foundSentenceId && Number(word.sentenceId) < Number(firstWord.sentenceId)) {
        foundSentenceId = word.sentenceId;
      }
      if (foundSentenceId && word.sentenceId === foundSentenceId) {
        sentences.unshift(word);
      }
    }
    return sentences;
  };
  _proto.clearPlayingVoiceWord = function clearPlayingVoiceWord() {
    var playingVoicePid = this.playingVoicePid;
    this.reset();
    if (playingVoicePid) {
      this.controller.emit('playingVoiceWordChange', {
        pid: playingVoicePid,
        word: undefined
      });
    }
  };
  _proto.reset = function reset() {
    this.playingVoicePid = undefined;
    this.playingVoiceWord = undefined;
  };
  return VoiceWordController;
}(abstractCmdController/* AbstractCmdController */.p);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/agendaController.js


var AgendaController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,inheritsLoose/* default */.Z)(AgendaController, _AbstractCmdControlle);
  function AgendaController() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCmdControlle.call.apply(_AbstractCmdControlle, [this].concat(args)) || this;
    _this.agendas = [];
    _this.activeAgendaIndex = void 0;
    _this.enableActiveAgenda = false;
    return _this;
  }
  var _proto = AgendaController.prototype;
  _proto.getEnableActiveAgenda = function getEnableActiveAgenda() {
    return this.enableActiveAgenda;
  };
  _proto.setAgendas = function setAgendas(agendas) {
    this.agendas = agendas;
    this.controller.emit('agendasChange', {
      agendas: agendas
    });
  };
  _proto.getAgendas = function getAgendas() {
    return this.agendas;
  };
  _proto.fromJSON = function fromJSON(agendaCheckpoints) {
    if (!agendaCheckpoints || agendaCheckpoints.length === 0) {
      this.setAgendas([]);
    }
    var agendas = agendaCheckpoints.map(function (cp) {
      return {
        id: String(cp.id),
        title: cp.value,
        beginTime: cp.time || 0,
        endTime: cp.endTime || 0,
        highlightContents: (cp.extensions || []).map(function (ext) {
          return {
            beginTime: ext.startTime,
            endTime: ext.endTime,
            sid: String(ext.sId)
          };
        })
      };
    });
    this.setAgendas(agendas);
    this.activeAgendaIndex = undefined;
  };
  _proto.getActiveAgenda = function getActiveAgenda() {
    if (this.activeAgendaIndex == null || !this.agendas) {
      return undefined;
    }
    return this.agendas[this.activeAgendaIndex];
  };
  _proto.setActiveAgendaById = function setActiveAgendaById(id) {
    if (!this.agendas) {
      return;
    }
    var length = this.agendas.length;
    for (var i = 0; i < length; i++) {
      var agenda = this.agendas[i];
      if (agenda.id === id) {
        if (this.activeAgendaIndex === i) {
          return;
        }
        this.enableActiveAgenda = true;
        this.activeAgendaIndex = i;
        this.controller.emit('activeAgendaChange', {
          agenda: this.agendas[i]
        });
        return;
      }
    }
    this.clearActiveAgenda();
  };
  _proto.clearActiveAgenda = function clearActiveAgenda() {
    this.enableActiveAgenda = false;
    this.activeAgendaIndex = undefined;
    this.controller.emit('activeAgendaChange', {
      agenda: undefined
    });
  };
  _proto.setActiveAgendaByTime = function setActiveAgendaByTime(timestamp) {
    var _this2 = this;
    if (!this.agendas) {
      return;
    }
    this.agendas.some(function (agenda) {
      if (agenda) {
        if (timestamp >= agenda.beginTime && timestamp <= agenda.endTime) {
          _this2.setActiveAgendaById(agenda.id);
          return true;
        }
      }
      return false;
    });
  };
  _proto.getActiveAgendaHighlightSids = function getActiveAgendaHighlightSids() {
    if (this.activeAgendaIndex == null || !this.agendas || !this.agendas[this.activeAgendaIndex]) {
      return [];
    }
    return this.agendas[this.activeAgendaIndex].highlightContents.map(function (c) {
      return c.sid;
    });
  };
  _proto.reset = function reset() {
    this.agendas = [];
    this.activeAgendaIndex = undefined;
    this.enableActiveAgenda = false;
  };
  return AgendaController;
}(abstractCmdController/* AbstractCmdController */.p);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/paragraphFilterController.js


var ParagraphFilterController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,inheritsLoose/* default */.Z)(ParagraphFilterController, _AbstractCmdControlle);
  function ParagraphFilterController() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCmdControlle.call.apply(_AbstractCmdControlle, [this].concat(args)) || this;
    _this.filterOption = {};
    return _this;
  }
  var _proto = ParagraphFilterController.prototype;
  _proto.setFilterOption = function setFilterOption(filterOption) {
    this.filterOption = filterOption;
  };
  _proto.getFilterOption = function getFilterOption() {
    return this.filterOption;
  };
  _proto.isPidVisible = function isPidVisible(pid) {
    var paragraph = this.controller.getParagraph(pid);
    var words = this.controller.getWords(pid);
    var _this$filterOption = this.filterOption,
      filterMarkParagraph = _this$filterOption.filterMarkParagraph,
      filterIncludeUids = _this$filterOption.filterIncludeUids,
      filterTags = _this$filterOption.filterTags,
      _this$filterOption$fi = _this$filterOption.filterUnfix,
      filterUnfix = _this$filterOption$fi === void 0 ? true : _this$filterOption$fi;
    if (filterUnfix === false && paragraph.isUnfix) {
      return true;
    }
    if (filterMarkParagraph && !this.controller.isHasParagraphMarkColor(pid)) {
      return false;
    }
    if (filterIncludeUids) {
      if (filterIncludeUids.length === 0) {
        return false;
      }
      if (!filterIncludeUids.includes(paragraph.uid)) {
        return false;
      }
    }
    if (filterTags && filterTags.length > 0) {
      var length = filterTags.length;
      var isFound = false;
      var _loop = function _loop(i) {
        var tag = filterTags[i];
        var found = words.find(function (word) {
          return word.tag === tag;
        });
        if (found) {
          isFound = true;
          return "continue";
        }
      };
      for (var i = 0; i < length; i++) {
        var _ret = _loop(i);
        if (_ret === "continue") continue;
      }
      if (!isFound) {
        return false;
      }
    }
    return true;
  };
  _proto.reset = function reset() {
    this.setFilterOption({});
  };
  return ParagraphFilterController;
}(abstractCmdController/* AbstractCmdController */.p);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/unfixToFixedController.js


var UnfixToFixedController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,inheritsLoose/* default */.Z)(UnfixToFixedController, _AbstractCmdControlle);
  function UnfixToFixedController() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCmdControlle.call.apply(_AbstractCmdControlle, [this].concat(args)) || this;
    _this.unfixToFixedPid = void 0;
    _this.unfixToFixedKeepFocusPid = void 0;
    _this.lastUnfixPid = void 0;
    _this.lastUnfixIsFocus = false;
    _this.firstUnfixPid = void 0;
    return _this;
  }
  var _proto = UnfixToFixedController.prototype;
  _proto.setLastUnfixPid = function setLastUnfixPid(lastUnfixPid) {
    if (!this.firstUnfixPid) {
      this.firstUnfixPid = lastUnfixPid;
    }
    if (this.lastUnfixPid) {
      if (this.lastUnfixIsFocus) {
        this.unfixToFixedKeepFocusPid = this.lastUnfixPid;
      }
      this.unfixToFixedPid = this.lastUnfixPid;
    }
    this.lastUnfixPid = lastUnfixPid;
    this.lastUnfixIsFocus = false;
  };
  _proto.getLastUnfixPid = function getLastUnfixPid() {
    return this.lastUnfixPid;
  };
  _proto.getUnfixToFixedPid = function getUnfixToFixedPid() {
    return this.unfixToFixedPid;
  };
  _proto.setLastUnfixIsFocus = function setLastUnfixIsFocus(isFocus) {
    this.lastUnfixIsFocus = isFocus;
  };
  _proto.clearFocus = function clearFocus() {
    this.lastUnfixIsFocus = false;
    this.unfixToFixedKeepFocusPid = undefined;
  };
  _proto.getUnfixToFixedKeepFocusPid = function getUnfixToFixedKeepFocusPid() {
    return this.unfixToFixedKeepFocusPid;
  };
  _proto.getFirstUnfixPid = function getFirstUnfixPid() {
    return this.firstUnfixPid;
  };
  _proto.isFirstUnfixPid = function isFirstUnfixPid(pid) {
    var unfixPid = this.controller.getUnfixPid();
    if (unfixPid && unfixPid !== this.firstUnfixPid) {
      return false;
    }
    return this.firstUnfixPid === pid;
  };
  _proto.reset = function reset() {
    this.unfixToFixedPid = undefined;
    this.lastUnfixPid = undefined;
    this.firstUnfixPid = undefined;
    this.unfixToFixedKeepFocusPid = undefined;
    this.lastUnfixIsFocus = false;
  };
  return UnfixToFixedController;
}(abstractCmdController/* AbstractCmdController */.p);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseClamp.js
var _baseClamp = __webpack_require__(5903);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseToString.js
var _baseToString = __webpack_require__(4937);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toInteger.js + 1 modules
var toInteger = __webpack_require__(1785);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toString.js
var _lodash_es_4_17_21_lodash_es_toString = __webpack_require__(3682);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/startsWith.js





/**
 * Checks if `string` starts with the given target string.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to inspect.
 * @param {string} [target] The string to search for.
 * @param {number} [position=0] The position to search from.
 * @returns {boolean} Returns `true` if `string` starts with `target`,
 *  else `false`.
 * @example
 *
 * _.startsWith('abc', 'a');
 * // => true
 *
 * _.startsWith('abc', 'b');
 * // => false
 *
 * _.startsWith('abc', 'b', 1);
 * // => true
 */
function startsWith(string, target, position) {
  string = (0,_lodash_es_4_17_21_lodash_es_toString/* default */.Z)(string);
  position = position == null ? 0 : (0,_baseClamp/* default */.Z)((0,toInteger/* default */.Z)(position), 0, string.length);
  target = (0,_baseToString/* default */.Z)(target);
  return string.slice(position, position + target.length) == target;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_startsWith = (startsWith);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/utils/speaker.js

var getSpeaker = function getSpeaker(uid, speakers) {
  var found = speakers.find(function (speaker) {
    return speaker.uid === uid;
  });
  return found;
};
var defaultSpeakerName = '发言人';
var firstSpeaker = {
  uid: '1',
  name: ''
};
var getSpeakerName = function getSpeakerName(speaker, getDefaultName) {
  return speaker && speaker.name || getDefaultName(speaker);
};
var UID_START_WORD = 'c';
var isUserGeneratedSpeaker = function isUserGeneratedSpeaker(speaker) {
  return _lodash_es_4_17_21_lodash_es_startsWith(speaker.uid, UID_START_WORD);
};
var isAlibabaEmployeeSpeaker = function isAlibabaEmployeeSpeaker(speaker) {
  return Boolean(speaker.bizUid);
};
var globalSpeakerUid = 1;
var getNextGeneratedUid = function getNextGeneratedUid(speakers) {
  var id = 0;
  speakers.filter(function (speaker) {
    return isUserGeneratedSpeaker(speaker);
  }).forEach(function (speaker) {
    var match = speaker.uid.match(/\d+$/);
    if (match) {
      var parsedId = parseInt(match[0], 10);
      if (parsedId > id) {
        id = parsedId;
      }
    }
  });
  ++id;
  if (id > globalSpeakerUid) {
    globalSpeakerUid = id;
  } else {
    ++globalSpeakerUid;
  }
  return globalSpeakerUid;
};
var generateSpeakerUid = function generateSpeakerUid(speakers) {
  var id = getNextGeneratedUid(speakers);
  return "" + UID_START_WORD + id;
};
var getDisplayAlibabaEmployeeName = function getDisplayAlibabaEmployeeName(employee) {
  return "" + employee.name + (employee.nickName ? "(" + employee.nickName + ")" : '');
};
var findSpeakerPosByBizUid = function findSpeakerPosByBizUid(speakers, bizUid) {
  var length = speakers.length;
  for (var i = 0; i < length; i++) {
    var _speaker = speakers[i];
    if (_speaker.bizUid === bizUid) {
      return i;
    }
  }
  return -1;
};
var findSpeakerByBizUid = function findSpeakerByBizUid(speakers, bizUid) {
  return speakers[findSpeakerPosByBizUid(speakers, bizUid)];
};
var findSpeakerPosByUid = function findSpeakerPosByUid(speakers, uid) {
  var length = speakers.length;
  for (var i = 0; i < length; i++) {
    var _speaker2 = speakers[i];
    if (_speaker2.uid === uid) {
      return i;
    }
  }
  return -1;
};
var findSpeakerByUid = function findSpeakerByUid(speakers, uid) {
  return speakers[findSpeakerPosByUid(speakers, uid)];
};
var findNotAlibabaSpeakerPosByName = function findNotAlibabaSpeakerPosByName(speakers, name, getDefaultSpeakerName) {
  var length = speakers.length;
  for (var i = 0; i < length; i++) {
    var _speaker3 = speakers[i];
    var speakerName = _speaker3.name || getDefaultSpeakerName(_speaker3);
    var isAlibaba = isAlibabaEmployeeSpeaker(_speaker3);
    if (!isAlibaba && speakerName === name) {
      return i;
    }
  }
  return -1;
};
var findNotAlibabaSpeakerByName = function findNotAlibabaSpeakerByName(speakers, name, getDefaultSpeakerName) {
  return speakers[findNotAlibabaSpeakerPosByName(speakers, name, getDefaultSpeakerName)];
};
var getBeforeChangeSpeakers = function getBeforeChangeSpeakers(controller, currentSpeakers, targetPids, newUid) {
  var otherParagraphs = controller.getParagraphs().filter(function (paragraph) {
    return targetPids.indexOf(paragraph.pid) === -1;
  });
  var uids = otherParagraphs.map(function (paragraph) {
    return paragraph.uid;
  });
  var tempUid = controller.getEmptyUnfixTempUid();
  if (tempUid) {
    uids.push(tempUid);
  }
  if (newUid) {
    uids.push(newUid);
  }
  var newSpeakers = [];
  currentSpeakers.forEach(function (speaker) {
    if (uids.includes(speaker.uid)) {
      newSpeakers.push(speaker);
    }
  });
  return newSpeakers;
};
var createSpeakerChangeListener = function createSpeakerChangeListener(controller, onUserChanged) {
  var getCurrentPidUidMap = function getCurrentPidUidMap() {
    var paragraphs = controller.getParagraphs();
    var currentPrevPidUidMap = {};
    paragraphs.forEach(function (paragraph) {
      currentPrevPidUidMap[paragraph.pid] = paragraph.uid;
    });
    return currentPrevPidUidMap;
  };
  var diff = function diff(prev, next) {
    var userChangedLog = {};
    var allChangeUids = {};
    var prevKeys = Object.keys(prev);
    if (prevKeys.length !== Object.keys(next).length) {
      return allChangeUids;
    }
    prevKeys.forEach(function (key) {
      var prevUid = prev[key];
      var nextUid = next[key];
      if (!prevUid || !nextUid) {
        return;
      }
      if (!userChangedLog[prevUid]) {
        userChangedLog[prevUid] = {
          changes: {},
          notChanges: 0
        };
      }
      if (prevUid === nextUid) {
        userChangedLog[prevUid].notChanges++;
      } else {
        userChangedLog[prevUid].changes[nextUid] = true;
      }
    });
    var uids = Object.keys(userChangedLog);
    uids.forEach(function (uid) {
      var log = userChangedLog[uid];
      var changes = log.changes,
        notChanges = log.notChanges;
      var changesKeys = Object.keys(changes);
      if (changesKeys.length === 1 && notChanges === 0) {
        allChangeUids[uid] = changesKeys[0];
      }
    });
    return allChangeUids;
  };
  var cleans = [];
  var prevPidUidMap = getCurrentPidUidMap();
  cleans.push(controller.on('modelValueChange', function () {
    prevPidUidMap = getCurrentPidUidMap();
  }), controller.on('paragraphChangeSpecific', function () {
    var currentPidUidMap = getCurrentPidUidMap();
    var userChanged = diff(prevPidUidMap, currentPidUidMap);
    if (Object.keys(userChanged).length > 0) {
      onUserChanged(userChanged);
    }
    prevPidUidMap = currentPidUidMap;
  }));
  return function () {
    cleans.forEach(function (clean) {
      clean();
    });
  };
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/speakerController.js



var MAX_SPEAKER = 50;
var SpeakerController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,inheritsLoose/* default */.Z)(SpeakerController, _AbstractCmdControlle);
  function SpeakerController(controller) {
    var _this;
    _this = _AbstractCmdControlle.call(this, controller) || this;
    _this.speakersGetter = void 0;
    _this.speakersSetter = void 0;
    _this.defaultSpeakerNameGetter = function () {
      return '发言人';
    };
    _this.tempRemovedSpeakers = {};
    _this.commonUseSpeakersGetter = void 0;
    _this.commonUseSpeakersSetter = void 0;
    _this.renderAvatarGetter = void 0;
    _this.maxSpeaker = MAX_SPEAKER;
    _this.historySpeakerMap = {};
    _this.getCommonUseSpeakers = function () {
      if (!_this.commonUseSpeakersGetter) {
        throw new Error('You need implement `commonUseSpeakersGetter`, ' + 'please use `controller.injectCommonUseSpeakersGetter` to implement it.');
      }
      return _this.commonUseSpeakersGetter() || [];
    };
    _this.setCommonUseSpeakers = function (speakers) {
      if (!_this.commonUseSpeakersSetter) {
        throw new Error('You need implement `commonUseSpeakersSetter`, ' + 'please use `controller.injectCommonUseSpeakersSetter` to implement it.');
      }
      return _this.commonUseSpeakersSetter(speakers);
    };
    _this.getSpeakers = function () {
      if (!_this.speakersGetter) {
        throw new Error('You need implement `speakersGetter`, ' + 'please use `controller.injectSpeakersGetter` to implement it.');
      }
      return _this.speakersGetter() || [];
    };
    _this.setSpeakers = function (speakers) {
      if (!_this.speakersSetter) {
        throw new Error('You need implement `speakersSetter`, ' + 'please use `controller.injectSpeakersSetter` to implement it.');
      }
      [].concat(speakers, _this.getSpeakers()).forEach(function (speaker) {
        if (!_this.historySpeakerMap[speaker.uid]) {
          _this.historySpeakerMap[speaker.uid] = speaker;
        }
      });
      return _this.speakersSetter(speakers);
    };
    _this.renderAvatar = function (uid, size) {
      if (!_this.renderAvatarGetter) {
        throw new Error('You need implement `renderAvatarGetter`, ' + 'please use `controller.injectRenderAvatarGetter` to implement it.');
      }
      return _this.renderAvatarGetter(uid, size);
    };
    _this.getDefaultSpeakerName = function (speaker) {
      return _this.defaultSpeakerNameGetter(speaker);
    };
    _this.listenEvents();
    return _this;
  }
  var _proto = SpeakerController.prototype;
  _proto.injectSpeakersGetter = function injectSpeakersGetter(speakersGetter) {
    var _this2 = this;
    this.speakersGetter = speakersGetter;
    var speakers = speakersGetter();
    speakers.forEach(function (speaker) {
      if (!_this2.historySpeakerMap[speaker.uid]) {
        _this2.historySpeakerMap[speaker.uid] = speaker;
      }
    });
  };
  _proto.injectSpeakersSetter = function injectSpeakersSetter(speakersSetter) {
    this.speakersSetter = speakersSetter;
  };
  _proto.injectCommonUseSpeakersGetter = function injectCommonUseSpeakersGetter(commonUseSpeakersGetter) {
    this.commonUseSpeakersGetter = commonUseSpeakersGetter;
  };
  _proto.injectCommonUseSpeakersSetter = function injectCommonUseSpeakersSetter(commonUseSpeakersSetter) {
    this.commonUseSpeakersSetter = commonUseSpeakersSetter;
  };
  _proto.injectDefaultSpeakerNameGetter = function injectDefaultSpeakerNameGetter(defaultSpeakerNameGetter) {
    this.defaultSpeakerNameGetter = defaultSpeakerNameGetter;
  };
  _proto.injectRenderAvatarGetter = function injectRenderAvatarGetter(renderAvatarGetter) {
    this.renderAvatarGetter = renderAvatarGetter;
  };
  _proto.listenEvents = function listenEvents() {
    var _this3 = this;
    this.controller.on('emptyUnfixParagraphShowUp', function () {
      var speakers = _this3.getSpeakers() || [];
      var found = speakers.find(function (speaker) {
        return speaker.uid === firstSpeaker.uid;
      });
      if (!found) {
        _this3.setSpeakers(speakers.concat(firstSpeaker));
        _this3.controller.setEmptyUnfixTempUid(firstSpeaker.uid);
      }
    });
    this.controller.on('paragraphChange', function (_ref) {
      var pid = _ref.pid;
      var paragraph = _this3.controller.getParagraph(pid);
      if (paragraph.isUnfix) {
        return;
      }
      var speakers = _this3.getSpeakers() || [];
      var found = speakers.find(function (speaker) {
        return speaker.uid === paragraph.uid;
      });
      if (!found) {
        var addedSpeaker = _this3.historySpeakerMap[paragraph.uid] || {
          uid: paragraph.uid,
          name: getSpeakerName(undefined, function () {
            return '';
          })
        };
        _this3.setSpeakers(getBeforeChangeSpeakers(_this3.controller, speakers, []).concat(addedSpeaker));
      }
    });
    this.controller.on('bookParagraphChangeSpecific', function (_ref2) {
      var removeParagraphPids = _ref2.removeParagraphPids,
        removeParagraphs = _ref2.removeParagraphs,
        addParagraphPids = _ref2.addParagraphPids;
      var speakers = _this3.getSpeakers();
      if (removeParagraphPids.length > 0) {
        Object.keys(removeParagraphs || {}).forEach(function (pid) {
          var paragraph = removeParagraphs[pid];
          var uid = paragraph.uid;
          var speaker = findSpeakerByUid(speakers, uid);
          if (speaker) {
            _this3.tempRemovedSpeakers[uid] = speaker;
          }
        });
        var newSpeakers = getBeforeChangeSpeakers(_this3.controller, speakers, []);
        _this3.setSpeakers(newSpeakers);
      } else if (addParagraphPids.length > 0) {
        addParagraphPids.forEach(function (pid) {
          var paragraph = _this3.controller.getParagraph(pid);
          var uid = paragraph.uid;
          var speaker = findSpeakerByUid(speakers, uid);
          if (_this3.tempRemovedSpeakers[uid]) {
            if (!speaker) {
              var _newSpeakers = speakers.concat(_this3.tempRemovedSpeakers[uid]);
              _this3.setSpeakers(_newSpeakers);
              _this3.controller.emit('speakerNameChange', {
                uid: uid
              });
            }
            delete _this3.tempRemovedSpeakers[uid];
          }
        });
      }
    });
  };

  // 常用发言人列表更新
  _proto.updateCommonUseSpeakersList = function updateCommonUseSpeakersList(speakers) {
    // const speakers = this.getCommonUseSpeakers();
    this.setCommonUseSpeakers(speakers);
  };
  _proto.setMaxSpeaker = function setMaxSpeaker(maxSpeaker) {
    if (maxSpeaker === void 0) {
      maxSpeaker = MAX_SPEAKER;
    }
    this.maxSpeaker = maxSpeaker;
  };
  _proto.getMaxSpeaker = function getMaxSpeaker() {
    return Math.max(this.getSpeakers().length, this.maxSpeaker);
  };
  _proto.isVaildSpeakers = function isVaildSpeakers(speakers) {
    if (speakers.length > this.getMaxSpeaker()) {
      this.controller.emit('detectSpeakerFull', {});
      return false;
    }
    return true;
  };
  _proto.updateOneByAlibabaEmployeeOnEmptyUnfix = function updateOneByAlibabaEmployeeOnEmptyUnfix(alibabaEmployee) {
    var speakers = this.getSpeakers();
    var speaker = findSpeakerByBizUid(speakers, alibabaEmployee.bizUid);
    var tempUid = this.controller.getEmptyUnfixTempUid();
    if (speaker) {
      if (tempUid !== speaker.uid) {
        this.controller.setEmptyUnfixTempUid(speaker.uid);
        var newSpeakers = getBeforeChangeSpeakers(this.controller, speakers, [], speaker.uid);
        if (this.isVaildSpeakers(newSpeakers)) {
          this.setSpeakers(newSpeakers);
          this.controller.setEmptyUnfixTempUid(speaker.uid);
        }
      }
    } else {
      var _uid = generateSpeakerUid(speakers);
      var addedSpeaker = {
        uid: _uid,
        name: getDisplayAlibabaEmployeeName(alibabaEmployee),
        avatarUrl: alibabaEmployee.avatarUrl,
        bizUid: alibabaEmployee.bizUid
      };
      var _newSpeakers2 = getBeforeChangeSpeakers(this.controller, speakers, [], _uid).concat(addedSpeaker);
      if (this.isVaildSpeakers(_newSpeakers2)) {
        this.setSpeakers(_newSpeakers2);
        this.controller.setEmptyUnfixTempUid(_uid);
      }
    }
  };
  _proto.updateOneByHistorySpeakerOnEmptyUnfix = function updateOneByHistorySpeakerOnEmptyUnfix(speaker) {
    var tempUid = this.controller.getEmptyUnfixTempUid();
    var speakers = this.getSpeakers();
    if (tempUid !== speaker.uid) {
      this.controller.setEmptyUnfixTempUid(speaker.uid);
      var newSpeakers = getBeforeChangeSpeakers(this.controller, speakers, [], speaker.uid);
      if (this.isVaildSpeakers(newSpeakers)) {
        this.setSpeakers(newSpeakers);
      }
    }
  };
  _proto.updateOneByInputTextOnEmptyUnfix = function updateOneByInputTextOnEmptyUnfix(oldInputText, inputText) {
    if (oldInputText === inputText || !inputText) {
      return;
    }
    var tempUid = this.controller.getEmptyUnfixTempUid();
    var speakers = this.getSpeakers();
    var speaker = tempUid ? findSpeakerByUid(speakers, tempUid) : undefined;
    var sameNameSpeaker = findNotAlibabaSpeakerByName(speakers, inputText, this.getDefaultSpeakerName);
    if (sameNameSpeaker && sameNameSpeaker.uid !== tempUid) {
      var newSpeakers = getBeforeChangeSpeakers(this.controller, speakers, [], sameNameSpeaker.uid);
      if (this.isVaildSpeakers(newSpeakers)) {
        this.setSpeakers(newSpeakers);
        this.controller.setEmptyUnfixTempUid(sameNameSpeaker.uid);
      }
    } else if (!speaker || speaker.name !== inputText) {
      var _uid2 = generateSpeakerUid(speakers);
      var addedSpeaker = {
        uid: _uid2,
        name: inputText
      };
      var _newSpeakers3 = getBeforeChangeSpeakers(this.controller, speakers, [], _uid2).concat(addedSpeaker);
      if (this.isVaildSpeakers(_newSpeakers3)) {
        this.controller.setEmptyUnfixTempUid(_uid2);
        this.setSpeakers(_newSpeakers3);
      }
    }
  };
  _proto.updateOneByAlibabaEmployee = function updateOneByAlibabaEmployee(pid, alibabaEmployee) {
    var paragraph = this.controller.getParagraph(pid);
    var speakers = this.getSpeakers();
    var speaker = findSpeakerByBizUid(speakers, alibabaEmployee.bizUid);
    if (speaker) {
      if (paragraph.uid !== speaker.uid) {
        var newSpeakers = getBeforeChangeSpeakers(this.controller, speakers, [paragraph.pid], speaker.uid);
        if (this.isVaildSpeakers(newSpeakers)) {
          this.setSpeakers(newSpeakers);
          this.controller.updateUserByPid(pid, speaker.uid);
          this.controller.emit('speakerNameChange', {
            uid: speaker.uid
          });
        }
      }
    } else {
      var _uid3 = generateSpeakerUid(speakers);
      var addedSpeaker = {
        uid: _uid3,
        name: getDisplayAlibabaEmployeeName(alibabaEmployee),
        avatarUrl: alibabaEmployee.avatarUrl,
        bizUid: alibabaEmployee.bizUid
      };
      var _newSpeakers4 = getBeforeChangeSpeakers(this.controller, speakers, [paragraph.pid], _uid3).concat(addedSpeaker);
      if (this.isVaildSpeakers(_newSpeakers4)) {
        this.setSpeakers(_newSpeakers4);
        this.controller.updateUserByPid(pid, _uid3);
      }
    }
  };
  _proto.updateOneByHistorySpeaker = function updateOneByHistorySpeaker(pid, speaker) {
    var paragraph = this.controller.getParagraph(pid);
    var speakers = this.getSpeakers();
    if (paragraph.uid !== speaker.uid) {
      this.controller.updateUserByPid(pid, speaker.uid);
      var newSpeakers = getBeforeChangeSpeakers(this.controller, speakers, [paragraph.pid], speaker.uid);
      if (this.isVaildSpeakers(newSpeakers)) {
        this.setSpeakers(newSpeakers);
        this.controller.emit('speakerNameChange', {
          uid: speaker.uid
        });
      }
    }
  };
  _proto.updateOneByInputText = function updateOneByInputText(pid, oldInputText, inputText) {
    if (oldInputText === inputText || !inputText) {
      return;
    }
    var paragraph = this.controller.getParagraph(pid);
    var speakers = this.getSpeakers();
    var speaker = findSpeakerByUid(speakers, paragraph.uid);
    var sameNameSpeaker = findNotAlibabaSpeakerByName(speakers, inputText, this.getDefaultSpeakerName);
    if (sameNameSpeaker && sameNameSpeaker.uid !== paragraph.uid) {
      var newSpeakers = getBeforeChangeSpeakers(this.controller, speakers, [paragraph.pid], sameNameSpeaker.uid);
      if (this.isVaildSpeakers(newSpeakers)) {
        this.setSpeakers(newSpeakers);
        this.controller.updateUserByPid(pid, sameNameSpeaker.uid);
      }
    } else if (!speaker || speaker.name !== inputText) {
      var _uid4 = generateSpeakerUid(speakers);
      var addedSpeaker = {
        uid: _uid4,
        name: inputText
      };
      var _newSpeakers5 = getBeforeChangeSpeakers(this.controller, speakers, [paragraph.pid], _uid4).concat(addedSpeaker);
      if (this.isVaildSpeakers(_newSpeakers5)) {
        this.setSpeakers(_newSpeakers5);
        this.controller.updateUserByPid(pid, _uid4);
      }
    }
  };
  _proto.updateManyByAlibabaEmployee = function updateManyByAlibabaEmployee(currentPid, alibabaEmployee) {
    var paragraph = this.controller.getParagraph(currentPid);
    var speakers = this.getSpeakers();
    var pids = this.controller.getParagraphsByUid(paragraph.uid).map(function (p) {
      return p.pid;
    });
    var speaker = findSpeakerByBizUid(speakers, alibabaEmployee.bizUid);
    if (speaker) {
      var _uid5 = speaker.uid;
      var updatedSpeaker = {
        uid: _uid5,
        name: getDisplayAlibabaEmployeeName(alibabaEmployee),
        avatarUrl: alibabaEmployee.avatarUrl,
        bizUid: alibabaEmployee.bizUid
      };
      var newSpeakers = getBeforeChangeSpeakers(this.controller, speakers, pids, _uid5);
      var pos = findSpeakerPosByBizUid(newSpeakers, alibabaEmployee.bizUid);
      newSpeakers[pos] = updatedSpeaker;
      if (this.isVaildSpeakers(newSpeakers)) {
        this.setSpeakers(newSpeakers);
        this.controller.updateAllUsers(pids, _uid5);
      }
    } else {
      var _uid6 = generateSpeakerUid(speakers);
      var addedSpeaker = {
        uid: _uid6,
        name: getDisplayAlibabaEmployeeName(alibabaEmployee),
        avatarUrl: alibabaEmployee.avatarUrl,
        bizUid: alibabaEmployee.bizUid
      };
      var _newSpeakers6 = getBeforeChangeSpeakers(this.controller, speakers, pids, _uid6).concat(addedSpeaker);
      if (this.isVaildSpeakers(_newSpeakers6)) {
        this.setSpeakers(_newSpeakers6);
        this.controller.updateAllUsers(pids, _uid6);
      }
    }
  };
  _proto.updateManyByHistorySpeaker = function updateManyByHistorySpeaker(currentPid, speaker) {
    var speakers = this.getSpeakers();
    var paragraph = this.controller.getParagraph(currentPid);
    var pids = this.controller.getParagraphsByUid(paragraph.uid).map(function (p) {
      return p.pid;
    });
    var newSpeakers = getBeforeChangeSpeakers(this.controller, speakers, pids, speaker.uid);
    if (this.isVaildSpeakers(newSpeakers)) {
      this.setSpeakers(newSpeakers);
      this.controller.updateAllUsers(pids, speaker.uid);
    }
  };
  _proto.updateManyByInputText = function updateManyByInputText(currentPid, oldInputText, inputText) {
    if (oldInputText === inputText || !inputText) {
      return;
    }
    var speakers = this.getSpeakers();
    var paragraph = this.controller.getParagraph(currentPid);
    var pids = this.controller.getParagraphsByUid(paragraph.uid).map(function (p) {
      return p.pid;
    });
    var speaker = findSpeakerByUid(speakers, paragraph.uid);
    var sameNameSpeaker = findNotAlibabaSpeakerByName(speakers, inputText, this.getDefaultSpeakerName);
    if (sameNameSpeaker) {
      var newSpeakers = getBeforeChangeSpeakers(this.controller, speakers, pids, sameNameSpeaker.uid);
      if (this.isVaildSpeakers(newSpeakers)) {
        this.setSpeakers(newSpeakers);
        this.controller.updateAllUsers(pids, sameNameSpeaker.uid);
      }
    } else if (speaker) {
      if (speaker.name === inputText) {
        var _newSpeakers7 = getBeforeChangeSpeakers(this.controller, speakers, pids, speaker.uid);
        if (this.isVaildSpeakers(_newSpeakers7)) {
          this.setSpeakers(_newSpeakers7);
          this.controller.updateAllUsers(pids, speaker.uid);
        }
      } else {
        var _uid7 = generateSpeakerUid(speakers);
        var newSpeaker = {
          uid: _uid7,
          name: inputText
        };
        var _newSpeakers8 = getBeforeChangeSpeakers(this.controller, speakers, pids, _uid7).concat(newSpeaker);
        if (this.isVaildSpeakers(_newSpeakers8)) {
          this.setSpeakers(_newSpeakers8);
          this.controller.updateAllUsers(pids, _uid7);
        }
      }
    } else {
      var _uid8 = generateSpeakerUid(speakers);
      var addedSpeaker = {
        uid: _uid8,
        name: inputText
      };
      var _newSpeakers9 = getBeforeChangeSpeakers(this.controller, speakers, pids, _uid8).concat(addedSpeaker);
      if (this.isVaildSpeakers(_newSpeakers9)) {
        this.setSpeakers(_newSpeakers9);
        this.controller.updateAllUsers(pids, _uid8);
      }
    }
  };
  _proto.renderSpeakerName = function renderSpeakerName(uid) {
    if (uid) {
      var _speakers = this.getSpeakers() || [];
      var _speaker = getSpeaker(uid, _speakers);
      var _name = getSpeakerName(_speaker, this.getDefaultSpeakerName);
      return _name;
    } else {
      return getSpeakerName(undefined, this.getDefaultSpeakerName);
    }
  };
  _proto.reset = function reset() {
    this.tempRemovedSpeakers = {};
    this.historySpeakerMap = {};
  };
  return SpeakerController;
}(abstractCmdController/* AbstractCmdController */.p);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-common@0.3.71@@ali/tingwu-common/dist-web/range.js
var dist_web_range = __webpack_require__(7839);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/reader/book.js

var book_Book = /*#__PURE__*/function () {
  function Book(model) {
    this.model = void 0;
    this.cachedWords = {};
    this.model = model;
  }
  var _proto = Book.prototype;
  _proto.getPids = function getPids() {
    return this.model.book.transcription.pids;
  } // There is no cached support.
  ;

  _proto.getParagraphs = function getParagraphs() {
    var _this = this;
    return this.getPids().map(function (pid) {
      return _this.getParagraph(pid);
    });
  };
  _proto.getParagraph = function getParagraph(pid) {
    return this.model.book.transcription.paragraphs[pid];
  };
  _proto.getParagraphByWid = function getParagraphByWid(wid) {
    var paragraphs = this.getParagraphs();
    var length = paragraphs.length;
    for (var i = 0; i < length; i++) {
      var paragraph = paragraphs[i];
      if (paragraph.wids.indexOf(wid) > -1) {
        return paragraph;
      }
    }
    return undefined;
  };
  _proto.getParagraphBySid = function getParagraphBySid(sid) {
    var paragraphs = this.getParagraphs();
    var length = paragraphs.length;
    for (var i = 0; i < length; i++) {
      var paragraph = paragraphs[i];
      var words = this.getWords(paragraph.pid);
      var wordLength = words.length;
      for (var j = 0; j < wordLength; j++) {
        var word = words[j];
        if (word.sentenceId === sid) {
          return paragraph;
        }
      }
    }
    return undefined;
  };
  _proto.getCurrentWords = function getCurrentWords(pid) {
    var _this$model$book$tran = this.model.book.transcription,
      paragraphs = _this$model$book$tran.paragraphs,
      allWords = _this$model$book$tran.words;
    if (!paragraphs[pid]) {
      return [];
    }
    var words = [];
    paragraphs[pid].wids.forEach(function (wid) {
      var word = allWords[wid];
      if (word) {
        words.push(word);
      }
    });
    return words;
  };
  _proto.getWords = function getWords(pid) {
    var cache = this.cachedWords[pid];
    var version = this.model.book.paragraphVersions[pid];
    if (!cache || cache.version !== version) {
      var words = this.getCurrentWords(pid);
      if (words.length === 0) {
        // `modelValue` was not ready, dont goto cache.
        return [];
      }
      this.cachedWords[pid] = {
        words: words,
        version: version
      };
    }
    return this.cachedWords[pid].words;
  };
  _proto.getWordsByWids = function getWordsByWids(wids) {
    var _this2 = this;
    var words = [];
    wids.forEach(function (wid) {
      var word = _this2.model.book.transcription.words[wid];
      if (word) {
        words.push(word);
      }
    });
    return words;
  };
  _proto.getWord = function getWord(wid) {
    return this.model.book.transcription.words[wid];
  };
  _proto.getTextContent = function getTextContent(pid) {
    return this.getWords(pid).map(function (w) {
      return w.text;
    }).join('');
  };
  _proto.getTextContentWithoutNfixing = function getTextContentWithoutNfixing(pid) {
    return this.getWords(pid).filter(function (w) {
      return !w.nFix;
    }).map(function (w) {
      return w.text;
    }).join('');
  };
  _proto.getWordByOffset = function getWordByOffset(pid, offset) {
    var words = this.getWords(pid);
    var foundWord;
    var pos = 0;
    words.some(function (word) {
      pos += word.text.length;
      if (pos > offset) {
        foundWord = word;
        return true;
      }
      return false;
    });
    return foundWord;
  };
  _proto.getAllTextContent = function getAllTextContent() {
    var _this3 = this;
    return this.getPids().map(function (pid) {
      return _this3.getTextContent(pid);
    });
  };
  _proto.getSentencesBySids = function getSentencesBySids(sids) {
    var _this4 = this;
    var pids = this.getPids();
    var sentences = {};
    pids.forEach(function (pid) {
      var words = _this4.getWords(pid);
      words.forEach(function (word) {
        if (sids.indexOf(word.sentenceId) > -1) {
          if (!sentences[word.sentenceId]) {
            sentences[word.sentenceId] = {
              sid: word.sentenceId,
              wids: [word.wid]
            };
          } else {
            sentences[word.sentenceId].wids.push(word.wid);
          }
        }
      });
    });
    return sentences;
  };
  _proto.getFirstWordBySid = function getFirstWordBySid(sid) {
    var sentenceMap = this.getSentencesBySids([sid]);
    var sentence = sentenceMap[sid];
    if (!sentence) {
      return undefined;
    }
    var wids = sentence.wids;
    return this.getWord(wids[0]);
  };
  _proto.getParagraphByTimestampRange = function getParagraphByTimestampRange(range) {
    var _this5 = this;
    var paragraphs = this.getParagraphs();
    return paragraphs.filter(function (paragraph) {
      var words = _this5.getWords(paragraph.pid);
      if (words.length === 0) {
        return false;
      }
      var beginTime = words[0].beginTime;
      var endTime = words[words.length - 1].endTime;
      var paragraphRange = {
        start: beginTime,
        end: endTime
      };
      return (0,dist_web_range/* isIntersectRanges */.s)(range, paragraphRange);
    });
  };
  _proto.isAppearedWid = function isAppearedWid(wid) {
    return this.model.book.isAppearedWid(wid);
  };
  _proto.isUserChangedSentence = function isUserChangedSentence(sid) {
    return this.model.book.isUserChangedSentence(sid);
  };
  _proto.getLatestSid = function getLatestSid() {
    var paragraphs = this.getParagraphs();
    for (var i = paragraphs.length - 1; i >= 0; i--) {
      var paragraph = paragraphs[i];
      if (paragraph.wids.length > 0) {
        var word = this.getWord(paragraph.wids[paragraph.wids.length - 1]);
        if (word) {
          return word.sentenceId;
        }
      }
    }
    return undefined;
  };
  _proto.getAllUidsArrayAndMap = function getAllUidsArrayAndMap() {
    var paragraphs = this.getParagraphs();
    var uids = [];
    var uidsMap = {};
    paragraphs.forEach(function (paragraph) {
      var uid = paragraph.uid;
      if (uidsMap[uid] == null) {
        uidsMap[uid] = true;
        uids.push(uid);
      }
    });
    return {
      uids: uids,
      uidsMap: uidsMap
    };
  };
  _proto.getAllUids = function getAllUids() {
    return this.getAllUidsArrayAndMap().uids;
  };
  _proto.getAllUidsMap = function getAllUidsMap() {
    return this.getAllUidsArrayAndMap().uidsMap;
  };
  return Book;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/reader/index.js

var createReader = function createReader(model) {
  return {
    book: new book_Book(model)
  };
};
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/utils/text.js
var utils_text = __webpack_require__(2345);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/cloneDeep.js + 15 modules
var cloneDeep = __webpack_require__(3557);
// EXTERNAL MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/utils/report.js
var report = __webpack_require__(2360);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/utils/paragraph.js





var generatePid = function generatePid(prevPid, nextPid) {
  if (!prevPid) {
    if (!nextPid) {
      return +new Date() + "500000";
    } else {
      var _c = parseInt(nextPid.slice(0, 13), 10);
      var _c2 = 0;
      var _n = parseInt(nextPid.slice(0, 13), 10);
      var _n2 = parseInt(nextPid.slice(13), 10);
      return "" + Math.floor((_c + _n) / 2) + Math.floor((_c2 + _n2) / 2);
    }
  }
  var c1 = parseInt(prevPid.slice(0, 10), 10);
  var c2 = parseInt(prevPid.slice(10), 10);
  if (!nextPid) {
    return "" + c1 + (c2 + 500000);
  }
  var n1 = parseInt(nextPid.slice(0, 10), 10);
  var n2 = parseInt(nextPid.slice(10), 10);
  return "" + Math.floor((c1 + n1) / 2) + Math.floor((c2 + n2) / 2);
};
var tokenSeed = +new Date();
var generateWid = function generateWid() {
  return String(tokenSeed++ * 10 + 1); // 客户端生成的ID以1结尾，服务端以0结尾
};

var generateAddParagraphOps = function generateAddParagraphOps(controller, prevPid, newPid, startOffset) {
  var paragraph = controller.getParagraph(prevPid);
  var words = controller.getWords(prevPid);
  var ops = [];
  var newParagraph = (0,cloneDeep/* default */.Z)(paragraph);
  newParagraph.pid = newPid;
  newParagraph.wids = [];
  delete newParagraph.isUnfix;
  ops.push((0,persist_op/* createOperation */.z)('addParagraph', {
    prevPid: prevPid,
    pid: newPid,
    paragraph: newParagraph
  }));
  var offset = 0;
  var toMoveIds = [];
  var newParagraphOrder = [];
  var oldParagraphOrder = paragraph.wids;
  words.forEach(function (word) {
    var startAt = offset;
    offset += word.text.length;
    if (startOffset < offset) {
      if (startOffset > startAt) {
        var newWordToUpdate = (0,cloneDeep/* default */.Z)(word);
        newWordToUpdate.text = word.text.slice(0, startOffset - startAt);
        var newWordToAdd = (0,cloneDeep/* default */.Z)(word);
        newWordToAdd.wid = generateWid();
        newWordToAdd.text = word.text.slice(startOffset - startAt);
        ops.push((0,persist_op/* createOperation */.z)('updateWord', {
          pid: prevPid,
          wid: word.wid,
          oldValue: word,
          newValue: newWordToUpdate
        }), (0,persist_op/* createOperation */.z)('addWord', {
          pid: newPid,
          wid: newWordToAdd.wid,
          word: newWordToAdd,
          oldOrder: newParagraphOrder,
          newOrder: newParagraphOrder = newParagraphOrder.concat(newWordToAdd.wid)
        }));
      } else {
        toMoveIds.push(word.wid);
      }
    }
  });
  if (toMoveIds.length > 0) {
    ops.push((0,persist_op/* createOperation */.z)('moveWord', {
      originPid: prevPid,
      targetPid: newPid,
      originOldOrder: oldParagraphOrder,
      originNewOrder: oldParagraphOrder = oldParagraphOrder.filter(function (wid) {
        return toMoveIds.indexOf(wid) === -1;
      }),
      targetOldOrder: newParagraphOrder,
      targetNewOrder: newParagraphOrder = newParagraphOrder.concat(toMoveIds)
    })); // move all words

    if (toMoveIds.length === words.length) {
      var firstWord = words[0];
      var newWord = (0,cloneDeep/* default */.Z)(firstWord);
      newWord.wid = generateWid();
      newWord.text = '';
      newWord.beginTime = firstWord.beginTime;
      newWord.endTime = firstWord.beginTime;
      ops.push((0,persist_op/* createOperation */.z)('addWord', {
        pid: prevPid,
        wid: newWord.wid,
        word: newWord,
        oldOrder: oldParagraphOrder,
        newOrder: oldParagraphOrder = oldParagraphOrder.concat(newWord.wid)
      }));
    }
  } // press `Enter` by tail -- no addWord, no updateWord, no moveWord

  if (ops.length === 1) {
    var lastWord = words[words.length - 1];
    var _newWord = (0,cloneDeep/* default */.Z)(lastWord);
    _newWord.wid = generateWid();
    _newWord.text = '';
    _newWord.beginTime = lastWord.endTime;
    _newWord.endTime = lastWord.endTime;
    ops.push((0,persist_op/* createOperation */.z)('addWord', {
      pid: newPid,
      wid: _newWord.wid,
      word: _newWord,
      oldOrder: newParagraphOrder,
      newOrder: newParagraphOrder = newParagraphOrder.concat(_newWord.wid)
    }));
  }
  return ops;
};
var getPreviousPid = function getPreviousPid(controller, pid) {
  var pids = controller.getPids();
  var pos = pids.indexOf(pid);
  if (pos !== -1) {
    return pids[pos - 1] || undefined;
  }
  return undefined;
};
var generateMergeParagraphOps = function generateMergeParagraphOps(controller, prevPid, pid) {
  var ops = [];
  if (!prevPid) {
    return ops;
  }
  var prevParagraph = controller.getParagraph(prevPid);
  var currentParagraph = controller.getParagraph(pid);
  var wids = currentParagraph.wids;
  if (controller.getTextContent(pid).length === 0 && wids.length === 1) {
    ops.push((0,persist_op/* createOperation */.z)('deleteWord', {
      pid: pid,
      wid: wids[0],
      word: controller.getWord(wids[0]),
      oldOrder: currentParagraph.wids,
      newOrder: []
    }));
  } else {
    ops.push((0,persist_op/* createOperation */.z)('moveWord', {
      originPid: currentParagraph.pid,
      originOldOrder: currentParagraph.wids,
      originNewOrder: [],
      targetPid: prevParagraph.pid,
      targetOldOrder: prevParagraph.wids,
      targetNewOrder: prevParagraph.wids.concat(currentParagraph.wids)
    }));
  }
  ops.push((0,persist_op/* createOperation */.z)('removeParagraph', {
    prevPid: prevParagraph.pid,
    pid: currentParagraph.pid,
    paragraph: currentParagraph
  }));
  return ops;
};
var generateRemoveParagraphOps = function generateRemoveParagraphOps(controller, pid) {
  var ops = [];
  var pids = controller.getPids();
  var pos = pids.indexOf(pid);
  if (pos === -1) {
    return ops;
  }
  var prevPid = pos === 0 ? undefined : pids[pos - 1];
  var paragraph = controller.getParagraph(pid);
  var wids = paragraph.wids;
  var tempOrder = wids.slice();
  wids.forEach(function (wid) {
    var word = controller.getWord(wid);
    var oldOrder = tempOrder;
    var newOrder = tempOrder.splice(1);
    tempOrder = newOrder;
    ops.push((0,persist_op/* createOperation */.z)('deleteWord', {
      pid: pid,
      wid: wid,
      word: word,
      oldOrder: oldOrder,
      newOrder: newOrder
    }));
  });
  ops.push((0,persist_op/* createOperation */.z)('removeParagraph', {
    prevPid: prevPid,
    pid: pid,
    paragraph: paragraph
  }));
  return ops;
};
var generateFixParagraph = function generateFixParagraph(controller, pid) {
  var ops = [];
  var paragraph = controller.getParagraph(pid);
  if (paragraph.isUnfix) {
    var newWids = paragraph.wids;
    var _getAvibleNfixingWids = (0,utils_text/* getAvibleNfixingWids */.oz)(controller, paragraph.wids),
      nfixingWids = _getAvibleNfixingWids.nfixingWids;
    if (nfixingWids.length > 0) {
      // 成段时剔除nfixing的word
      newWids = paragraph.wids.filter(function (wid) {
        return !nfixingWids.includes(wid);
      });
      controller.pushTempNfixingWids(nfixingWids);
      (0,report/* report */.A)('push nfixingWids', {
        nfixingWids: nfixingWids
      });
    }
    var isEmptyContent = newWids.length === 0 || newWids.length === 1 && !controller.getWord(newWids[0]).text;
    if (isEmptyContent) {
      var pids = controller.getPids().filter(function (p) {
        return p !== pid;
      });
      var prevPid = pids.length > 0 ? pids[pids.length - 1] : undefined;
      ops.push((0,persist_op/* createOperation */.z)('removeParagraph', {
        prevPid: prevPid,
        pid: pid,
        paragraph: paragraph
      }));
    } else {
      ops.push((0,persist_op/* createOperation */.z)('updateParagraph', {
        pid: pid,
        oldParagraph: paragraph,
        paragraph: (0,esm_extends/* default */.Z)({}, paragraph, {
          wids: newWids,
          isUnfix: false
        })
      }));
    }
  }
  return ops;
};
var generateAddUnfixParagraph = function generateAddUnfixParagraph(controller, pid, uid, paragraphAttrs) {
  if (paragraphAttrs === void 0) {
    paragraphAttrs = {};
  }
  var ops = [];
  var pids = controller.getPids();
  var prevPid = pids.length === 0 ? undefined : pids[pids.length - 1];
  if (prevPid) {
    var fixOps = generateFixParagraph(controller, prevPid);
    if (fixOps.length > 0) {
      ops.push.apply(ops, fixOps);
    }
  } // 避免words添加之前被删掉，导致wid和words不同步。

  var wids = controller.popTempNfixingWids().filter(function (wid) {
    return controller.getWord(wid);
  });
  (0,report/* report */.A)('popTempNfixingWids', {
    wids: wids
  });
  ops.push((0,persist_op/* createOperation */.z)('addParagraph', {
    prevPid: prevPid,
    pid: pid,
    paragraph: (0,esm_extends/* default */.Z)({
      pid: pid,
      wids: wids,
      uid: uid,
      isUnfix: true
    }, paragraphAttrs)
  }));
  return ops;
};
var generateAppendWords = function generateAppendWords(controller, pid, words) {
  var ops = [];
  var paragraph = controller.getParagraph(pid);
  var wids = paragraph.wids.slice();
  words.forEach(function (word) {
    var isAppeared = controller.isAppearedWid(word.wid);
    if (isAppeared) {
      var oldWord = controller.getWord(word.wid); // 当有旧词时更新

      if (oldWord) {
        ops.push((0,persist_op/* createOperation */.z)('updateWord', {
          pid: pid,
          wid: word.wid,
          oldValue: oldWord,
          newValue: (0,esm_extends/* default */.Z)({}, oldWord, {
            sentenceId: word.sentenceId,
            beginTime: word.beginTime,
            endTime: word.endTime,
            nFix: word.nFix
          })
        }));
      }
    } else {
      ops.push((0,persist_op/* createOperation */.z)('addWord', {
        pid: pid,
        wid: word.wid,
        word: word,
        oldOrder: wids,
        newOrder: wids = wids.concat(word.wid)
      }));
    }
  });
  return ops;
};
var generateSetParagraphMark = function generateSetParagraphMark(controller, pid, tagColor) {
  var ops = [];
  var paragraph = controller.getParagraph(pid);
  if (!paragraph) {
    return [];
  }
  var oldWords = [];
  var newWords = [];
  paragraph.wids.forEach(function (wid) {
    var word = controller.getWord(wid);
    if (!word) {
      return;
    }
    var newWord = (0,cloneDeep/* default */.Z)(word);
    newWord.tag = tagColor;
    oldWords.push(word);
    newWords.push(newWord);
  });
  if (newWords.length > 0) {
    ops.push((0,persist_op/* createOperation */.z)('updateWords', {
      pid: pid,
      oldValue: oldWords,
      newValue: newWords
    }));
  }
  return ops;
};
var generateUpdateUserByPid = function generateUpdateUserByPid(controller, pid, uid) {
  var ops = [];
  var paragraph = controller.getParagraph(pid);
  ops.push((0,persist_op/* createOperation */.z)('updateParagraph', {
    pid: pid,
    oldParagraph: paragraph,
    paragraph: (0,esm_extends/* default */.Z)({}, paragraph, {
      uid: uid
    })
  }));
  return ops;
};
var generateUpdateAllUsers = function generateUpdateAllUsers(controller, pids, uid) {
  var ops = [];
  pids.forEach(function (pid) {
    var paragraph = controller.getParagraph(pid);
    ops.push((0,persist_op/* createOperation */.z)('updateParagraph', {
      pid: pid,
      oldParagraph: paragraph,
      paragraph: (0,esm_extends/* default */.Z)({}, paragraph, {
        uid: uid
      })
    }));
  });
  return ops;
};
var paragraph_insertTextAndAddParagraph = function insertTextAndAddParagraph(controller, pid, startOffset, text) {
  var ops = (0,utils_text/* generateInsertTextOps */.re)(controller, pid, startOffset, text);
  var pids = controller.getPids();
  var pos = pids.indexOf(pid);
  var prevPid = pids[pos - 1];
  var newPid = generatePid(prevPid, pid);
  var paragraph = controller.getParagraph(pid);
  var newParagraph = (0,cloneDeep/* default */.Z)(paragraph);
  newParagraph.pid = newPid;
  newParagraph.wids = [];
  delete newParagraph.isUnfix;
  var _getNfixingAndFixedWi = (0,utils_text/* getNfixingAndFixedWids */.c)(controller, paragraph.wids),
    nfixingWids = _getNfixingAndFixedWi.nfixingWids;
  var originOldOrder = paragraph.wids;
  var originNewOrder = paragraph.wids.filter(function (wi) {
    return nfixingWids.includes(wi);
  });
  var targetOldOrder = newParagraph.wids;
  var targetNewOrder = paragraph.wids.filter(function (wi) {
    return !nfixingWids.includes(wi);
  });
  if (targetNewOrder.length > 0) {
    ops.push((0,persist_op/* createOperation */.z)('addParagraph', {
      prevPid: prevPid,
      pid: newPid,
      paragraph: newParagraph
    }));
    ops.push((0,persist_op/* createOperation */.z)('moveWord', {
      originPid: pid,
      originOldOrder: originOldOrder,
      originNewOrder: originNewOrder,
      targetPid: newPid,
      targetOldOrder: targetOldOrder,
      targetNewOrder: targetNewOrder
    }));
  }
  if (originNewOrder.length === 0) {
    var wid = paragraph.wids[paragraph.wids.length - 1];
    var word = controller.getWord(wid);
    var newWord = (0,esm_extends/* default */.Z)({}, word, {
      wid: generateWid(),
      text: '',
      beginTime: word.endTime,
      tag: ''
    });
    ops.push((0,persist_op/* createOperation */.z)('addWord', {
      pid: pid,
      wid: newWord.wid,
      word: newWord,
      oldOrder: [],
      newOrder: [newWord.wid]
    }));
  }
  return ops;
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/setter/book.js

var createSetterBook = function createSetterBook(controller, apply) {
  return {
    insertText: function insertText(pid, startOffset, text) {
      var ops = (0,utils_text/* generateInsertTextOps */.re)(controller, pid, startOffset, text);
      var nextSelection = {
        pid: pid,
        startOffset: startOffset + text.length,
        endOffset: startOffset + text.length
      };
      apply(ops, nextSelection);
    },
    insertTextAndAddParagraph: function insertTextAndAddParagraph(pid, startOffset, text) {
      var ops = paragraph_insertTextAndAddParagraph(controller, pid, startOffset, text);
      var userFixedPid;
      var nextSelection;
      var addParagraphOp = ops.find(function (op) {
        return op.action === 'addParagraph';
      });
      if ((addParagraphOp == null ? void 0 : addParagraphOp.action) === 'addParagraph') {
        userFixedPid = addParagraphOp.payload.pid;
        var addWordOp = ops.find(function (op) {
          return op.action === 'addWord';
        });
        var moveWordOp = ops.find(function (op) {
          return op.action === 'moveWord';
        });
        if (addWordOp) {
          var offset = startOffset + text.length;
          nextSelection = {
            pid: userFixedPid,
            startOffset: offset,
            endOffset: offset
          };
        } else if (moveWordOp) {
          var newWids = moveWordOp.payload.targetNewOrder;
          var newWordsLength = newWids.reduce(function (prev, wid) {
            var word = controller.getWord(wid);
            return prev + word.text.length;
          }, 0);
          var _offset = Math.max(0, startOffset + text.length - newWordsLength);
          nextSelection = {
            pid: pid,
            startOffset: _offset,
            endOffset: _offset
          };
        }
      }
      return apply(ops, nextSelection, {
        userFixedPid: userFixedPid
      });
    },
    deleteTextRange: function deleteTextRange(pid, startOffset, endOffset) {
      var ops = (0,utils_text/* generateDeleteTextRangeOps */.Ms)(controller, pid, startOffset, endOffset);
      var nextSelection = {
        pid: pid,
        startOffset: startOffset,
        endOffset: startOffset
      };
      apply(ops, nextSelection);
    },
    addParagraph: function addParagraph(prevPid, newPid, startOffset) {
      var ops = generateAddParagraphOps(controller, prevPid, newPid, startOffset);
      var nextSelection;
      var addParagraphOp = ops.find(function (op) {
        return op.action === 'addParagraph';
      });
      if ((addParagraphOp == null ? void 0 : addParagraphOp.action) === 'addParagraph') {
        nextSelection = {
          pid: addParagraphOp.payload.pid,
          startOffset: 0,
          endOffset: 0
        };
      }
      apply(ops, nextSelection);
    },
    mergeParagraph: function mergeParagraph(prevPid, pid) {
      var ops = generateMergeParagraphOps(controller, prevPid, pid);
      var text = controller.getTextContent(prevPid);
      var nextSelection = {
        pid: prevPid,
        startOffset: text.length,
        endOffset: text.length
      };
      apply(ops, nextSelection);
    },
    removeParagraph: function removeParagraph(pid) {
      var ops = generateRemoveParagraphOps(controller, pid);
      var pids = controller.getPids();
      var pos = pids.indexOf(pid);
      var nextPid = pids[pos + 1];
      var nextSelection;
      if (nextPid != null) {
        nextSelection = {
          pid: nextPid,
          startOffset: 0,
          endOffset: 0
        };
      }
      apply(ops, nextSelection);
    },
    addUnfixParagraph: function addUnfixParagraph(pid, uid, attrs) {
      var ops = generateAddUnfixParagraph(controller, pid, uid, attrs);
      apply(ops);
    },
    addFixParagraph: function addFixParagraph(pid, selection) {
      var ops = generateFixParagraph(controller, pid);
      apply(ops, selection);
    },
    appendWords: function appendWords(pid, words) {
      var ops = generateAppendWords(controller, pid, words);
      apply(ops);
    },
    setParagraphMark: function setParagraphMark(pid, tagColor) {
      var ops = generateSetParagraphMark(controller, pid, tagColor);
      apply(ops);
    },
    updateUserByPid: function updateUserByPid(pid, uid) {
      var ops = generateUpdateUserByPid(controller, pid, uid);
      apply(ops);
    },
    updateAllUsers: function updateAllUsers(pids, uid) {
      var ops = generateUpdateAllUsers(controller, pids, uid);
      apply(ops);
    },
    updateWords: function updateWords(pid, words, attrs, oldSelection) {
      var ops = (0,utils_text/* generateUpdateWords */.NV)(pid, words, attrs);
      var originWords = controller.getWords(pid);
      var offset = 0;
      var lastWord = words[words.length - 1];
      originWords.some(function (word) {
        offset += word.text.length;
        return word.wid === lastWord.wid;
      });
      var nextSelection = {
        pid: pid,
        startOffset: offset,
        endOffset: offset
      };
      apply(ops, oldSelection || nextSelection);
    }
  };
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/setter/index.js


var createSetter = function createSetter(controller, model, hooks) {
  var isNextSilent = false;
  var isNextPreteat = false;
  function apply(change, nextSelection, extPayload) {
    hooks.beforeApply(isNextSilent, extPayload);
    var inverse = model.applyOps(change);
    hooks.afterApply(change, inverse, nextSelection, isNextSilent, isNextPreteat);
    isNextSilent = false;
    isNextPreteat = false;
  }
  function nextApplyPreteat() {
    isNextPreteat = true;
  }
  function nextApplySilent() {
    isNextSilent = true;
  }
  return {
    apply: apply,
    nextApplyPreteat: nextApplyPreteat,
    nextApplySilent: nextApplySilent,
    book: createSetterBook(controller, apply)
  };
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/model/stacker.js
var UndoRedoStacker = /*#__PURE__*/function () {
  function UndoRedoStacker(model, hooks) {
    this.waiting = undefined;
    this.undoStack = [];
    this.redoStack = [];
    this.model = void 0;
    this.hooks = void 0;
    this.maxStackerLength = void 0;
    this.model = model;
    this.hooks = hooks;
    this.maxStackerLength = 100;
  }
  var _proto = UndoRedoStacker.prototype;
  _proto.stash = function stash(change, inverse, prevSelection, nextSelection) {
    var waiting = this.waiting;
    if (waiting) {
      waiting.change = waiting.change.concat(change);
      waiting.inverse = inverse.concat(waiting.inverse);
      if (!waiting.selection.prev) {
        waiting.selection.prev = prevSelection;
      }
      waiting.selection.next = nextSelection;
    } else {
      this.waiting = {
        change: change,
        inverse: inverse,
        selection: {
          prev: prevSelection,
          next: nextSelection
        }
      };
    }
    this.submit();
  };
  _proto.preteat = function preteat(change, inverse, prevSelection) {
    var waiting = this.waiting;
    if (!waiting) {
      this.waiting = {
        change: change,
        inverse: inverse,
        selection: {
          prev: prevSelection
        }
      };
    } else {
      waiting.change = waiting.change.concat(change);
      waiting.inverse = inverse.concat(waiting.inverse);
      if (!waiting.selection.prev) {
        waiting.selection.prev = prevSelection;
      }
    }
  };
  _proto.commit = function commit(change, inverse) {
    this.stash(change, inverse);
  };
  _proto.hasStash = function hasStash() {
    return this.waiting !== undefined;
  };
  _proto.getPopStash = function getPopStash() {
    var waiting = this.waiting;
    this.waiting = undefined;
    return waiting;
  };
  _proto.submit = function submit() {
    var popStash = this.getPopStash();
    if (!popStash) {
      return;
    }
    this.pushUndoStack(popStash);
    this.redoStack = [];
  };
  _proto.pushUndoStack = function pushUndoStack(stash) {
    if (this.undoStack.length >= this.maxStackerLength) {
      this.undoStack.shift();
    }
    this.undoStack.push(stash);
  };
  _proto.restoreSelection = function restoreSelection(selection) {
    this.hooks.restoreSelection(selection);
  };
  _proto.undo = function undo() {
    var undoStack = this.undoStack,
      model = this.model,
      redoStack = this.redoStack;
    var last = undoStack.pop();
    if (!last) {
      return;
    }
    var inverse = last.inverse,
      prev = last.selection.prev;
    model.applyOps(inverse);
    redoStack.push(last);
    if (prev) {
      this.restoreSelection(prev);
    }
  };
  _proto.redo = function redo() {
    var undoStack = this.undoStack,
      model = this.model,
      redoStack = this.redoStack;
    var last = redoStack.pop();
    if (!last) {
      return;
    }
    var change = last.change,
      next = last.selection.next;
    model.applyOps(change);
    undoStack.push(last);
    if (next) {
      this.restoreSelection(next);
    }
  };
  _proto.canRedo = function canRedo() {
    return this.redoStack.length > 0;
  };
  _proto.canUndo = function canUndo() {
    return this.undoStack.length > 0;
  };
  _proto.reset = function reset() {
    this.undoStack = [];
    this.redoStack = [];
  };
  return UndoRedoStacker;
}();
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/utils/controller.js
var id = 0;
var generateControllerId = function generateControllerId() {
  return String(++id);
};
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseMerge.js + 8 modules
var _baseMerge = __webpack_require__(1554);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_createAssigner.js + 1 modules
var _createAssigner = __webpack_require__(9755);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/mergeWith.js



/**
 * This method is like `_.merge` except that it accepts `customizer` which
 * is invoked to produce the merged values of the destination and source
 * properties. If `customizer` returns `undefined`, merging is handled by the
 * method instead. The `customizer` is invoked with six arguments:
 * (objValue, srcValue, key, object, source, stack).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} customizer The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   if (_.isArray(objValue)) {
 *     return objValue.concat(srcValue);
 *   }
 * }
 *
 * var object = { 'a': [1], 'b': [2] };
 * var other = { 'a': [3], 'b': [4] };
 *
 * _.mergeWith(object, other, customizer);
 * // => { 'a': [1, 3], 'b': [2, 4] }
 */
var mergeWith = (0,_createAssigner/* default */.Z)(function (object, source, srcIndex, customizer) {
  (0,_baseMerge/* default */.Z)(object, source, srcIndex, customizer);
});
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_mergeWith = (mergeWith);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js
var isArray = __webpack_require__(4263);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/assign.js
var _lodash_es_4_17_21_lodash_es_assign = __webpack_require__(5648);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/event.js

var formatParagraphChangeSpecificEvent = function formatParagraphChangeSpecificEvent(event) {
  var newEvent = (0,cloneDeep/* default */.Z)(event);
  newEvent.updateParagraphPids = newEvent.updateParagraphPids.filter(function (pid) {
    return newEvent.addParagraphPids.indexOf(pid) === -1;
  });
  newEvent.updateParagraphPids = newEvent.updateParagraphPids.filter(function (pid) {
    return newEvent.removeParagraphPids.indexOf(pid) === -1;
  });
  return newEvent;
};
var createParagraphChangeSpecificHandler = function createParagraphChangeSpecificHandler(callback) {
  function genEmptyHolder() {
    return {
      addParagraphPids: [],
      removeParagraphPids: [],
      updateParagraphPids: [],
      removeParagraphs: {}
    };
  }
  var holder = genEmptyHolder();
  var timer;
  return function (args) {
    _lodash_es_4_17_21_lodash_es_mergeWith(holder, args, function (a, b) {
      if ((0,isArray/* default */.Z)(a)) {
        return _lodash_es_4_17_21_lodash_es_uniq(a.concat(b));
      } else {
        (0,_lodash_es_4_17_21_lodash_es_assign/* default */.Z)({}, a, b);
      }
    });
    clearTimeout(timer);
    timer = setTimeout(function () {
      callback(formatParagraphChangeSpecificEvent(holder));
      holder = genEmptyHolder();
    }, 0);
  };
};
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/captionCmdController.js


var CaptionCmdController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,inheritsLoose/* default */.Z)(CaptionCmdController, _AbstractCmdControlle);
  function CaptionCmdController(controller) {
    var _this;
    _this = _AbstractCmdControlle.call(this, controller) || this;
    _this.paragraphCaptionMap = {};
    _this.listen();
    return _this;
  }
  var _proto = CaptionCmdController.prototype;
  _proto.listen = function listen() {
    var _this2 = this;
    this.controller.on('modelValueChange', function () {
      _this2.calcAllCaptions();
      _this2.controller.emit('captionChange', {});
    });
    this.controller.on('paragraphChangeSpecific', function (event) {
      var addParagraphPids = event.addParagraphPids,
        removeParagraphPids = event.removeParagraphPids,
        updateParagraphPids = event.updateParagraphPids;
      [].concat(addParagraphPids, updateParagraphPids).forEach(function (pid) {
        _this2.calcCaptionsByPid(pid);
      });
      removeParagraphPids.forEach(function (pid) {
        delete _this2.paragraphCaptionMap[pid];
      });
      _this2.controller.emit('captionChange', {});
    });
  };
  _proto.getParagraphCaptionsMap = function getParagraphCaptionsMap() {
    return this.paragraphCaptionMap;
  };
  _proto.getCaptionArray = function getCaptionArray() {
    var _this3 = this;
    var pids = this.controller.getPids();
    var captions = [];
    pids.forEach(function (pid) {
      var paragraphCaption = _this3.paragraphCaptionMap[pid];
      if (paragraphCaption) {
        captions.push.apply(captions, paragraphCaption.captions);
      }
    });
    return captions;
  };
  _proto.getCaptionByTimestamp = function getCaptionByTimestamp(timestamp) {
    var _this4 = this;
    var pids = Object.keys(this.paragraphCaptionMap);
    var foundCaption;
    pids.some(function (pid) {
      var paragraphCaption = _this4.paragraphCaptionMap[pid];
      if (timestamp >= paragraphCaption.beginTime && timestamp <= paragraphCaption.endTime) {
        paragraphCaption.captions.some(function (caption) {
          if (timestamp >= caption.beginTime && timestamp <= caption.endTime) {
            foundCaption = caption;
            return true;
          }
          return false;
        });
        return true;
      }
      return false;
    });
    return foundCaption;
  };
  _proto.calcAllCaptions = function calcAllCaptions() {
    var _this5 = this;
    var pids = this.controller.getPids();
    this.paragraphCaptionMap = {};
    pids.forEach(function (pid) {
      _this5.calcCaptionsByPid(pid);
    });
  };
  _proto.calcCaptionsByPid = function calcCaptionsByPid(pid) {
    var paragraph = this.controller.getParagraph(pid);
    delete this.paragraphCaptionMap[pid];
    if (!paragraph) {
      return;
    }
    var uid = paragraph.uid;
    var words = this.controller.getWords(pid);
    if (words.length === 0) {
      return;
    }
    var beginTime = words[0].beginTime;
    var endTime = words[words.length - 1].endTime;
    var paragraphCaption = {
      pid: pid,
      beginTime: beginTime,
      endTime: endTime,
      captions: []
    };
    var captionBeginTime;
    var catptionText = '';
    words.forEach(function (word) {
      catptionText += word.text;
      if (!captionBeginTime) {
        captionBeginTime = word.beginTime;
      }
      if (/[，。？,.?](\s)*$/.test(catptionText)) {
        catptionText = catptionText.replace(/[，。？,.?](\s)*$/, '');
        paragraphCaption.captions.push({
          beginTime: captionBeginTime,
          endTime: word.endTime,
          text: catptionText,
          uid: uid
        });
        catptionText = '';
        captionBeginTime = undefined;
      }
    });
    this.paragraphCaptionMap[pid] = paragraphCaption;
  };
  return CaptionCmdController;
}(abstractCmdController/* AbstractCmdController */.p);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/extractController.js


var ExtractController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,inheritsLoose/* default */.Z)(ExtractController, _AbstractCmdControlle);
  function ExtractController() {
    return _AbstractCmdControlle.apply(this, arguments) || this;
  }
  var _proto = ExtractController.prototype;
  _proto.getAllExtractContent = function getAllExtractContent() {
    var controller = this.controller;
    var extraContents = [];
    controller.getPids().forEach(function (pid) {
      var words = controller.getWords(pid);
      var textContent = controller.getTextContent(pid);
      var paragraph = controller.getParagraph(pid);
      if (words.length > 0) {
        extraContents.push({
          pid: pid,
          beginTime: words[0].beginTime,
          uid: paragraph.uid,
          words: words,
          textContent: textContent
        });
      }
    });
    return extraContents;
  };
  _proto.getExtraContentByTag = function getExtraContentByTag(tag) {
    var controller = this.controller;
    var extraContents = [];
    controller.getPids().forEach(function (pid) {
      var paragraph = controller.getParagraph(pid);
      var words = controller.getWords(pid);
      var foundTag;
      words.forEach(function (word) {
        if (!foundTag || word.tag !== foundTag) {
          if (word.tag && (tag == null || word.tag === tag)) {
            foundTag = word.tag;
            extraContents.push({
              pid: pid,
              beginTime: word.beginTime,
              uid: paragraph.uid,
              words: [],
              textContent: ''
            });
          } else {
            foundTag = undefined;
          }
        }
        if (foundTag && word.tag === foundTag) {
          var lastExtraContent = extraContents[extraContents.length - 1];
          if (lastExtraContent) {
            lastExtraContent.words.push(word);
            lastExtraContent.textContent = lastExtraContent.words.map(function (w) {
              return w.text;
            }).join('');
          }
        }
      });
    });
    return extraContents;
  };
  return ExtractController;
}(abstractCmdController/* AbstractCmdController */.p);
;// CONCATENATED MODULE: ./node_modules/_@ali_tingwu-core@0.3.71@@ali/tingwu-core/dist-web/controller/index.js





















 // 特殊情况
// 1. click pause btn
// 2. has unfix paragraph
// 3. fix && stash_text为空 -> 不显示蓝色气泡
// 4. 增加stash_text -> 显示蓝色气泡
// 5. fix
// 6. complete -> 不显示蓝色气泡

var TranscriptingState;
(function (TranscriptingState) {
  TranscriptingState[TranscriptingState["Enabled"] = 0] = "Enabled";
  TranscriptingState[TranscriptingState["Disabing"] = 1] = "Disabing";
  TranscriptingState[TranscriptingState["Disabled"] = 2] = "Disabled";
})(TranscriptingState || (TranscriptingState = {}));
var Controller = /*#__PURE__*/function (_Eventer) {
  (0,inheritsLoose/* default */.Z)(Controller, _Eventer);

  // 实时模式unfix区编辑文字数超过下列数量时会主动成段
  function Controller(runningOnServer) {
    var _this;
    if (runningOnServer === void 0) {
      runningOnServer = false;
    }
    _this = _Eventer.call(this) || this;
    _this.id = void 0;
    _this.reader = void 0;
    _this.setter = void 0;
    _this.runningOnServer = void 0;
    _this.model = void 0;
    _this.liveMeetingController = void 0;
    _this.searchReplaceController = void 0;
    _this.voiceWordController = void 0;
    _this.paragraphFilterController = void 0;
    _this.translateController = void 0;
    _this.agendaController = void 0;
    _this.speakerController = void 0;
    _this.unfixToFixedController = void 0;
    _this.captionCmdController = void 0;
    _this.extractController = void 0;
    _this.undoRedoStacker = void 0;
    _this.livingMode = false;
    _this.transcriptingState = TranscriptingState.Disabled;
    _this.unfixChangedWaiting = {};
    _this.lastUnfixPid = void 0;
    _this.userFixedPid = void 0;
    _this.tempUid = void 0;
    _this.tempMark = void 0;
    _this.holdUnfixContent = '';
    _this.editorFocusPid = void 0;
    _this.readonly = false;
    _this.unfixMaxWords = 160;
    _this.prevRecordSelection = void 0;
    _this.nextRecordSelection = void 0;
    _this.nextSelection = void 0;
    _this.currentSelection = void 0;
    _this.isDontSelectNext = false;
    _this.tempNfixingWids = [];
    _this.genSelectWordHandler = function (callback) {
      return function (args) {
        var selection = args.selection;
        if (selection) {
          var pid = selection.pid,
            startOffset = selection.startOffset,
            endOffset = selection.endOffset,
            readonly = selection.readonly;
          if (readonly) {
            // translate
            return;
          }
          var _words = _this.getWords(pid);
          var matchWords = [];
          var offset = 0;
          _words.some(function (word, index) {
            var nextOffset = offset + word.text.length;
            if (startOffset === endOffset) {
              if (startOffset > offset && startOffset <= nextOffset) {
                matchWords.push(word);
                return true;
              } else if (startOffset === 0 && index === 0) {
                matchWords.push(word);
                return true;
              }
            } else if (startOffset <= offset && endOffset > offset || endOffset >= nextOffset && startOffset < nextOffset) {
              matchWords.push(word);
            }
            if (endOffset < offset) {
              return true;
            }
            offset = nextOffset;
            return false;
          });
          if (matchWords[0]) {
            _this.setPlayingVoiceWord(pid, matchWords[0]);
          }
          callback(matchWords);
        } else {
          callback(undefined);
        }
      };
    };
    _this.listenSelectWordhandler = undefined;
    _this.listenSearchReplaceChagnehandler = undefined;
    _this.listenNeedSeekToWord = undefined;
    _this.startListenSelectWordCallback = void 0;
    _this.startListenSelectWord = function (callback) {
      if (_this.listenSelectWordhandler != null) {
        console.error('You are listening `select word` events. ' + 'please check your code. ' + 'dont listen this events twice.');
        return;
      }
      _this.startListenSelectWordCallback = callback;
      _this.listenSelectWordhandler = _this.genSelectWordHandler(callback);
      var _assertThisInitialize = (0,assertThisInitialized/* default */.Z)(_this),
        listenSelectWordhandler = _assertThisInitialize.listenSelectWordhandler;
      _this.listenSearchReplaceChagnehandler = function (event) {
        listenSelectWordhandler({
          selection: event.selections[event.activeIndex]
        });
      };
      _this.listenNeedSeekToWord = function (event) {
        return callback([event.word]);
      };
      _this.on('mouseUpSelectionChange', _this.listenSelectWordhandler);
      _this.on('searchReplaceChange', _this.listenSearchReplaceChagnehandler);
      _this.on('needSeekToWord', _this.listenNeedSeekToWord);
      return _this.endListenSelectWord;
    };
    _this.endListenSelectWord = function () {
      _this.off('mouseUpSelectionChange', _this.listenSelectWordhandler);
      _this.off('searchReplaceChange', _this.listenSearchReplaceChagnehandler);
      _this.off('needSeekToWord', _this.listenNeedSeekToWord);
      _this.listenSelectWordhandler = undefined;
      _this.listenSearchReplaceChagnehandler = undefined;
      _this.listenNeedSeekToWord = undefined;
      _this.startListenSelectWordCallback = undefined;
    };
    _this.recordTimeout = void 0;
    _this.id = generateControllerId();
    _this.runningOnServer = runningOnServer;
    _this.model = new Model();
    _this.undoRedoStacker = new UndoRedoStacker(_this.model, {
      restoreSelection: function restoreSelection(s) {
        _this.handleSelectionChange(s);
      }
    });
    _this.reader = createReader(_this.model);
    _this.setter = createSetter((0,assertThisInitialized/* default */.Z)(_this), _this.model, {
      beforeApply: function beforeApply(isSilent, extPayload) {
        var _ref = extPayload || {},
          userFixedPid = _ref.userFixedPid;
        _this.userFixedPid = userFixedPid;
        if (isSilent) {
          if (_this.currentSelection) {
            _this.handleSelectionChange(_this.currentSelection);
          }
        } else if (!_this.prevRecordSelection && _this.currentSelection) {
          _this.recordPrevSelection(_this.currentSelection);
        }
      },
      afterApply: function afterApply(c, i, nextSelection, isSilent, isPreteat) {
        (0,report/* report */.A)('applyOps', c);
        if (isSilent) {
          return;
        }
        if (c.length === 0) {
          _this.recordPrevSelection(undefined);
          return;
        }
        if (isPreteat) {
          _this.undoRedoStacker.preteat(c, i, _this.getPopPrevSelection());
        } else {
          _this.undoRedoStacker.stash(c, i, _this.getPopPrevSelection(), nextSelection);
          if (nextSelection && !_this.getDontSelectNext()) {
            _this.handleSelectionChange(nextSelection);
          }
        }
      }
    });
    _this.liveMeetingController = new LiveMeetingController((0,assertThisInitialized/* default */.Z)(_this));
    _this.searchReplaceController = new SearchReplaceController((0,assertThisInitialized/* default */.Z)(_this));
    _this.voiceWordController = new VoiceWordController((0,assertThisInitialized/* default */.Z)(_this));
    _this.paragraphFilterController = new ParagraphFilterController((0,assertThisInitialized/* default */.Z)(_this));
    _this.translateController = new translateController/* TranslateController */.g((0,assertThisInitialized/* default */.Z)(_this));
    _this.agendaController = new AgendaController((0,assertThisInitialized/* default */.Z)(_this));
    _this.speakerController = new SpeakerController((0,assertThisInitialized/* default */.Z)(_this));
    _this.unfixToFixedController = new UnfixToFixedController((0,assertThisInitialized/* default */.Z)(_this));
    _this.captionCmdController = new CaptionCmdController((0,assertThisInitialized/* default */.Z)(_this));
    _this.extractController = new ExtractController((0,assertThisInitialized/* default */.Z)(_this));
    _this.listenModelEvents();
    return _this;
  }
  var _proto = Controller.prototype;
  _proto.getReadonly = function getReadonly() {
    return this.readonly;
  };
  _proto.setReadonly = function setReadonly(readonly) {
    this.readonly = readonly;
    this.emit('readonlyChange', {
      readonly: readonly
    });
  };
  _proto.getEditorFocusPid = function getEditorFocusPid() {
    return this.editorFocusPid;
  };
  _proto.setEditorFocusPid = function setEditorFocusPid(pid) {
    this.editorFocusPid = pid;
    this.emit('editorFocusChange', {
      pid: pid
    });
    if (pid && pid === this.unfixToFixedController.getLastUnfixPid()) {
      this.unfixToFixedController.setLastUnfixIsFocus(true);
    } else {
      this.unfixToFixedController.clearFocus();
    }
  };
  _proto.dontSelectNext = function dontSelectNext() {
    this.isDontSelectNext = true;
    return this;
  };
  _proto.getDontSelectNext = function getDontSelectNext() {
    var isDontSelectNext = this.isDontSelectNext;
    this.isDontSelectNext = false;
    return isDontSelectNext;
  };
  _proto.setCurrentSelection = function setCurrentSelection(selection) {
    this.currentSelection = selection;
    this.emit('selectionChange', {
      selection: selection
    });
  };
  _proto.getCurrentSelection = function getCurrentSelection() {
    return this.currentSelection;
  };
  _proto.setEmptyUnfixTempUid = function setEmptyUnfixTempUid(tempUid) {
    this.tempUid = tempUid;
    this.emit('emptyUnfixSpeakerChange', {});
  };
  _proto.setEmptyUnfixTempParagraphMark = function setEmptyUnfixTempParagraphMark(tempMark) {
    if (this.tempMark === tempMark) {
      return;
    }
    this.tempMark = tempMark;
    this.emit('emptyUnfixParagraphChange', {});
  };
  _proto.getEmptyUnfixTempParagraphMark = function getEmptyUnfixTempParagraphMark() {
    return this.tempMark;
  };
  _proto.getEmptyUnfixTempUid = function getEmptyUnfixTempUid() {
    return this.tempUid;
  };
  _proto.isHasParagraphMarkColor = function isHasParagraphMarkColor(pid, color) {
    var _this2 = this;
    if (color === void 0) {
      color = '';
    }
    var paragraph = this.getParagraph(pid);
    if (!paragraph) {
      return false;
    }
    var wids = paragraph.wids;
    var matchTag = color;
    var isSame = wids.length > 0;
    wids.some(function (wid) {
      var word = _this2.getWord(wid);
      if (!matchTag) {
        matchTag = word.tag;
      } else if (matchTag !== word.tag) {
        isSame = false;
        return true;
      }
      return false;
    });
    return isSame;
  };
  _proto.setLivingMode = function setLivingMode(livingMode) {
    this.livingMode = livingMode; // TODO: maybe another events??

    this.emit('livingModeChange', {
      livingMode: livingMode
    });
  };
  _proto.getLivingMode = function getLivingMode() {
    return this.livingMode;
  };
  _proto.setTranscriptingState = function setTranscriptingState(transcriptingState) {
    this.transcriptingState = transcriptingState;
    if (transcriptingState === TranscriptingState.Disabled) {
      this.setUnfixSentense('');
      this.setUnfixTranslate(undefined, '', []);
    }
    this.emit('transcriptingStateChange', {
      transcriptingState: transcriptingState
    });
  };
  _proto.getTranscriptingState = function getTranscriptingState() {
    return this.transcriptingState;
  };
  _proto.popTempNfixingWids = function popTempNfixingWids() {
    var result = this.tempNfixingWids;
    this.tempNfixingWids = [];
    return result;
  };
  _proto.pushTempNfixingWids = function pushTempNfixingWids(wids) {
    this.tempNfixingWids = wids;
  };
  _proto.clearNfixingWids = function clearNfixingWids() {
    this.tempNfixingWids = [];
  };
  _proto.getUnfixPid = function getUnfixPid() {
    var pids = this.getPids();
    if (pids.length === 0) {
      return undefined;
    }
    var lastPid = pids[pids.length - 1];
    var paragraph = this.getParagraph(lastPid);
    return paragraph.isUnfix ? lastPid : undefined;
  } // 存在空白unfix区时，有文字进入，生成unfixParagraph
  // 此操作不进入历史堆栈
  ;

  _proto.addUnfixParagraph = function addUnfixParagraph(pid, uid, words) {
    var _this3 = this;
    (0,report/* report */.A)('call addUnfixParagraph', {
      pid: pid,
      uid: uid,
      words: words
    });
    if (!this.livingMode) {
      return;
    }
    var paragraph = this.getParagraph(pid);
    if (paragraph && paragraph.isUnfix) {
      this.emit('report', {
        type: 'exception',
        message: "Exist pid: '" + pid + "' found in 'addUnfixParagraph'"
      });
      return;
    }
    var _uid = uid;
    var tempUid = this.getEmptyUnfixTempUid();
    if (tempUid && tempUid !== _uid) {
      this.unfixChangedWaiting[pid] = true;
      _uid = tempUid;
    }
    this.silent();
    this.setter.book.addUnfixParagraph(pid, _uid);
    if (words) {
      var formatedWords = words.map(function (word) {
        if (!_this3.tempMark) {
          return word;
        }
        var newWord = (0,cloneDeep/* default */.Z)(word);
        newWord.tag = _this3.tempMark;
        return newWord;
      });
      this.setter.book.appendWords(pid, formatedWords);
    }
    this.tempMark = undefined;
    this.emitAsync('addFixParagraph', {});
    this.setEmptyUnfixTempUid();
    this.translateController.setUnfixToFixed(pid);
    this.unfixToFixedController.setLastUnfixPid(pid);
  } // 此操作不进入历史堆栈
  // 当前pid必须是unfix段落，才可以调用此方法
  ;

  _proto.addFixParagraph = function addFixParagraph(pid) {
    (0,report/* report */.A)('call addFixParagraph', {
      pid: pid
    });
    if (!this.livingMode) {
      return;
    }
    var paragraph = this.getParagraph(pid);
    if (!paragraph || !paragraph.isUnfix) {
      this.emit('report', {
        type: 'exception',
        message: "Exist pid: '" + pid + "' found in 'addFixParagraph'"
      });
      return;
    }
    this.silent();
    this.setter.book.addFixParagraph(pid);
    this.setEmptyUnfixTempUid();
    this.emitAsync('addFixParagraph', {}); // 清空unfix区内容

    this.setUnfixTranslateByWords(undefined, '', []);
    if (this.getTranscriptingState() === TranscriptingState.Enabled && !this.getUnfixPid()) {
      this.emit('emptyUnfixParagraphShowUp', {});
    }
  } // 添加句子
  // 此操作不进入历史堆栈
  ;

  _proto.appendWords = function appendWords(pid, words) {
    (0,report/* report */.A)('call appendWords', {
      pid: pid,
      words: words
    });
    this.silent();
    this.setter.book.appendWords(pid, words);
  } // 此操作不进入历史堆栈
  ;

  _proto.setParagraphMark = function setParagraphMark(pid, tagColor) {
    (0,report/* report */.A)('call setParagraphMark', {
      pid: pid,
      tagColor: tagColor
    });
    var paragraph = this.getParagraph(pid);
    if (tagColor && this.isHasParagraphMarkColor(pid, tagColor)) {
      return;
    }
    this.silent();
    this.setter.book.setParagraphMark(pid, tagColor);
    if (paragraph.isUnfix) {
      this.unfixChangedWaiting[pid] = true;
    }
    this.emit('markWordsChanged', {
      markedContinuousWords: this.getMarkedContinuousWords()
    });
  } // 修改未成句句子
  ;

  _proto.setUnfixSentense = function setUnfixSentense(text) {
    if (this.holdUnfixContent === text) {
      return;
    }
    this.holdUnfixContent = text;
    this.emit('unfixSentenseChange', {
      text: text
    });
    this.emitUnfixContentChange();
  };
  _proto.getUnfixContent = function getUnfixContent() {
    return this.holdUnfixContent;
  };
  _proto.emitUnfixContentChange = function emitUnfixContentChange() {
    var pid = this.getUnfixPid();
    var words = pid ? this.getWords(pid) : [];
    this.emit('unfixContentChange', {
      unfixContent: this.holdUnfixContent,
      fixWords: words,
      pid: pid
    });
  };
  _proto.recordPrevSelection = function recordPrevSelection(selection) {
    if (this.undoRedoStacker.hasStash()) {
      return;
    }
    this.prevRecordSelection = selection;
  };
  _proto.recordNextSelection = function recordNextSelection(selection) {
    this.nextRecordSelection = selection;
  };
  _proto.getPopPrevSelection = function getPopPrevSelection() {
    var prevRecordSelection = this.prevRecordSelection;
    this.prevRecordSelection = undefined;
    return prevRecordSelection;
  };
  _proto.getPopNextSelection = function getPopNextSelection() {
    var nextRecordSelection = this.nextRecordSelection;
    this.nextRecordSelection = undefined;
    return nextRecordSelection;
  };
  _proto.handleSelectionChange = function handleSelectionChange(selection) {
    this.nextSelection = selection;
    this.currentSelection = selection;
    this.emit('selectionChange', {
      selection: selection
    });
  };
  _proto.getPopSelection = function getPopSelection(pid) {
    var nextSelection = this.nextSelection;
    if (nextSelection && nextSelection.pid === pid) {
      this.nextSelection = undefined;
      return nextSelection;
    }
    return undefined;
  };
  _proto.listenModelEvents = function listenModelEvents() {
    var _this4 = this;
    var book = this.model.book;
    book.on('lastUnfixPidChange', function (_ref2) {
      var pid = _ref2.pid;
      _this4.lastUnfixPid = pid;
    });
    book.on('wordChange', function (_ref3) {
      var pid = _ref3.pid;
      _this4.emit('paragraphChange', {
        pid: pid
      });
    });
    book.on('paragraphChange', function (_ref4) {
      var pid = _ref4.pid;
      _this4.emit('paragraphChange', {
        pid: pid
      });
    });
    book.on('paragraphListChange', function (args) {
      _this4.emit('paragraphListChange', args);
    });
    book.on('paragraphChangeSpecific', function (args) {
      _this4.emit('bookParagraphChangeSpecific', args);
    });
    book.on('paragraphChangeSpecific', createParagraphChangeSpecificHandler(function (args) {
      var updateParagraphUserChangedPids = [];
      var unfixToFixedPids = [];
      var userFixedPids = [];
      args.updateParagraphPids.forEach(function (pid) {
        if (_this4.lastUnfixPid === pid) {
          _this4.lastUnfixPid = undefined;
          unfixToFixedPids.push(pid);
          if (_this4.unfixChangedWaiting[pid]) {
            updateParagraphUserChangedPids.push(pid);
            delete _this4.unfixChangedWaiting[pid];
          }
        }
      });
      if (_this4.userFixedPid) {
        userFixedPids.push(_this4.userFixedPid);
        _this4.userFixedPid = undefined;
      }
      _this4.emit('paragraphChangeSpecific', (0,esm_extends/* default */.Z)({}, args, {
        updateParagraphUserChangedPids: updateParagraphUserChangedPids,
        unfixToFixedPids: unfixToFixedPids,
        userFixedPids: userFixedPids
      }));
    }));
  };
  _proto.resetControllerInfos = function resetControllerInfos() {
    this.undoRedoStacker.reset();
    this.voiceWordController.reset();
    this.searchReplaceController.reset();
    this.paragraphFilterController.reset();
    this.translateController.reset();
    this.agendaController.reset();
    this.unfixToFixedController.reset();
    this.speakerController.reset();
    this.prevRecordSelection = undefined;
    this.nextRecordSelection = undefined;
    this.nextSelection = undefined;
    this.currentSelection = undefined;
    this.livingMode = false;
  };
  _proto.setModelValue = function setModelValue(tranModel) {
    if (tranModel == null || tranModel.pg == null) {
      this.resetModelValue();
    } else {
      this.model.fromJSON(tranModel);
      this.resetControllerInfos();
      this.emit('paragraphListChange', {
        maybeChangedPids: []
      });
      this.emit('modelValueChange', {});
    }
  };
  _proto.getModelValue = function getModelValue() {
    return this.model.book.toJSON();
  };
  _proto.resetModelValue = function resetModelValue() {
    this.model.book.resetModelValue();
    this.resetControllerInfos();
    this.emit('paragraphListChange', {
      maybeChangedPids: []
    });
    this.emit('modelValueChange', {});
  };
  _proto.getPByPid = function getPByPid(pid) {
    return this.model.book.getPByPid(pid);
  };
  _proto.getWordsBySces = function getWordsBySces(sces) {
    var _this5 = this;
    return sces.map(function (sc) {
      return _this5.model.book.getWordBySc(sc);
    });
  };
  _proto.getParagraph = function getParagraph(pid) {
    return this.model.book.transcription.paragraphs[pid];
  };
  _proto.isUserChangedSentence = function isUserChangedSentence(sid) {
    return this.reader.book.isUserChangedSentence(sid);
  };
  _proto.getSentencesBySids = function getSentencesBySids(sids) {
    return this.reader.book.getSentencesBySids(sids);
  };
  _proto.getPids = function getPids(seeUseSence) {
    var _this6 = this;
    if (seeUseSence === void 0) {
      seeUseSence = false;
    }
    var pids = this.reader.book.getPids();
    if (seeUseSence) {
      return pids.filter(function (pid) {
        return _this6.paragraphFilterController.isPidVisible(pid);
      });
    }
    return pids;
  };
  _proto.getParagraphs = function getParagraphs() {
    return this.reader.book.getParagraphs();
  };
  _proto.getParagraphsByUid = function getParagraphsByUid(uid) {
    return this.getParagraphs().filter(function (paragraph) {
      return paragraph.uid === uid;
    });
  };
  _proto.getParagraphByWid = function getParagraphByWid(wid) {
    return this.reader.book.getParagraphByWid(wid);
  };
  _proto.getParagraphBySid = function getParagraphBySid(sid) {
    return this.reader.book.getParagraphBySid(sid);
  };
  _proto.getWords = function getWords(pid) {
    return this.reader.book.getWords(pid);
  };
  _proto.getWordsByWids = function getWordsByWids(wids) {
    return this.reader.book.getWordsByWids(wids);
  };
  _proto.getWord = function getWord(wid) {
    return this.reader.book.getWord(wid);
  };
  _proto.isAppearedWid = function isAppearedWid(wid) {
    return this.reader.book.isAppearedWid(wid);
  };
  _proto.getFirstWordBySid = function getFirstWordBySid(sid) {
    return this.reader.book.getFirstWordBySid(sid);
  };
  _proto.getLatestSid = function getLatestSid() {
    return this.reader.book.getLatestSid();
  };
  _proto.getWordsBySelection = function getWordsBySelection(selection) {
    var startOffset = selection.startOffset,
      endOffset = selection.endOffset;
    var words = this.getWords(selection.pid);
    var matchedWords = [];
    var offset = 0;
    words.forEach(function (word) {
      var nextOffset = offset + word.text.length;
      if (startOffset < nextOffset && endOffset > offset) {
        matchedWords.push(word);
      }
      offset = nextOffset;
    });
    return matchedWords;
  };
  _proto.getTextContent = function getTextContent(pid) {
    return this.reader.book.getTextContent(pid);
  };
  _proto.getTextContentWithoutNfixing = function getTextContentWithoutNfixing(pid) {
    return this.reader.book.getTextContentWithoutNfixing(pid);
  };
  _proto.getWordByOffset = function getWordByOffset(pid, offset) {
    return this.reader.book.getWordByOffset(pid, offset);
  };
  _proto.getAllTextContent = function getAllTextContent() {
    return this.reader.book.getAllTextContent();
  };
  _proto.getAllUidsArrayAndMap = function getAllUidsArrayAndMap() {
    return this.reader.book.getAllUidsArrayAndMap();
  };
  _proto.getAllUids = function getAllUids() {
    return this.reader.book.getAllUids();
  };
  _proto.getAllUidsMap = function getAllUidsMap() {
    return this.reader.book.getAllUidsMap();
  };
  _proto.getAllTextContentByTag = function getAllTextContentByTag(tag) {
    var _this7 = this;
    var textContent = [];
    this.getPids().forEach(function (pid) {
      var words = _this7.getWords(pid);
      var text = words.filter(function (word) {
        return word.tag === tag;
      }).map(function (word) {
        return word.text;
      });
      if (text) {
        textContent.push.apply(textContent, text);
      }
    });
    return textContent;
  };
  _proto.getAllWords = function getAllWords(seeUseSence) {
    var _this8 = this;
    if (seeUseSence === void 0) {
      seeUseSence = false;
    }
    var pids = this.getPids(seeUseSence);
    var allWords = pids.map(function (pid) {
      return [pid, _this8.getWords(pid)];
    }).reduce(function (result, _ref5) {
      var pid = _ref5[0],
        words = _ref5[1];
      result.push.apply(result, words.map(function (word) {
        return [pid, word];
      }));
      return result;
    }, []);
    return allWords;
  } // return [allWords, firstFindPos, matchedWord]
  ;

  _proto.getMatchedWordsByTime = function getMatchedWordsByTime(timestamp) {
    var allWord = this.getAllWords();
    var lastFindPos = 0;
    var matchedWords = [];
    allWord.some(function (_ref6, index) {
      var pid = _ref6[0],
        word = _ref6[1];
      if (timestamp > word.endTime) {
        lastFindPos = index + 1;
      } else if (timestamp < word.beginTime) {
        return true;
      } else if (word.beginTime <= timestamp && word.endTime >= timestamp) {
        matchedWords.push([pid, word]);
      }
      return false;
    });
    return [allWord, lastFindPos, matchedWords];
  };
  _proto.getFirstWordByTime = function getFirstWordByTime(timestamp) {
    var _this$getMatchedWords = this.getMatchedWordsByTime(timestamp),
      allWords = _this$getMatchedWords[0],
      pos = _this$getMatchedWords[1],
      matchedWords = _this$getMatchedWords[2];
    return matchedWords.length > 0 ? matchedWords[0] : allWords[pos];
  };
  _proto.getLastWordByTime = function getLastWordByTime(timestamp) {
    var _this$getMatchedWords2 = this.getMatchedWordsByTime(timestamp),
      allWords = _this$getMatchedWords2[0],
      pos = _this$getMatchedWords2[1],
      matchedWords = _this$getMatchedWords2[2];
    return matchedWords.length > 0 ? matchedWords[matchedWords.length - 1] : allWords[Math.max(pos - 1, 0)];
  };
  _proto.getVisibleParagraphBySids = function getVisibleParagraphBySids(sids) {
    var visiblePids = this.getPids(true);
    var length = sids.length;
    for (var i = 0; i < length; i++) {
      var sid = sids[i];
      var paragraph = this.getParagraphBySid(sid);
      if (paragraph && visiblePids.includes(paragraph.pid)) {
        return paragraph;
      }
    }
    return undefined;
  };
  _proto.getParagraphByTimestampRange = function getParagraphByTimestampRange(range) {
    return this.reader.book.getParagraphByTimestampRange(range);
  };
  _proto.getVisibleParagraphByTimestampRange = function getVisibleParagraphByTimestampRange(range) {
    var visiblePids = this.getPids(true);
    return this.getParagraphByTimestampRange(range).filter(function (paragraph) {
      return visiblePids.includes(paragraph.pid);
    });
  };
  _proto.silent = function silent() {
    this.setter.nextApplySilent();
    return this;
  };
  _proto.preteat = function preteat() {
    this.setter.nextApplyPreteat();
    return this;
  };
  _proto.deleteTextRange = function deleteTextRange(pid, startOffset, endOffset) {
    if (startOffset === endOffset) {
      return;
    }
    if (this.getParagraph(pid).isUnfix) {
      this.unfixChangedWaiting[pid] = true;
    }
    this.setter.book.deleteTextRange(pid, startOffset, endOffset);
  };
  _proto.setUnfixMaxWords = function setUnfixMaxWords(unfixMaxWords) {
    this.unfixMaxWords = unfixMaxWords;
  };
  _proto.getUnfixMaxWords = function getUnfixMaxWords() {
    return this.unfixMaxWords;
  } // 不在包含nfixing中文字的计算
  ;

  _proto.isGreaterThenMaxCount = function isGreaterThenMaxCount(pid, startOffset, text) {
    (0,report/* report */.A)('call isGreaterThenMaxCount', {
      pid: pid,
      startOffset: startOffset,
      text: text
    });
    if (this.getLivingMode() === false) {
      return false;
    }
    var paragraph = this.getParagraph(pid);
    if (!paragraph.isUnfix) {
      return false;
    }
    var word = this.getWordByOffset(pid, startOffset);
    if (word != null && word.nFix) {
      return false;
    }
    var textContent = this.getTextContentWithoutNfixing(pid);
    var string = textContent + text;
    var length = getWordsCount(string);
    (0,report/* report */.A)('call isGreaterThenMaxCount: word and length', {
      word: word,
      length: length
    });
    return length > this.getUnfixMaxWords();
  };
  _proto.insertText = function insertText(pid, startOffset, text) {
    (0,report/* report */.A)('call insertText', {
      pid: pid,
      startOffset: startOffset,
      text: text
    });
    if (this.getParagraph(pid).isUnfix) {
      this.unfixChangedWaiting[pid] = true;
    }
    this.setter.book.insertText(pid, startOffset, text);
  } // 不在包含nfixing中文字的计算
  ;

  _proto.insertTextAndAddParagraph = function insertTextAndAddParagraph(pid, startOffset, text) {
    (0,report/* report */.A)('call insertTextAndAddParagraph', {
      pid: pid,
      startOffset: startOffset,
      text: text
    });
    if (this.getParagraph(pid).isUnfix) {
      this.unfixChangedWaiting[pid] = true;
    }
    this.setter.book.insertTextAndAddParagraph(pid, startOffset, text);
    this.emitAsync('addFixParagraph', {});
    this.emit('uglyUserManualAddParagraph', {});
  };
  _proto.genNewPid = function genNewPid(prevPid) {
    var pids = this.getPids();
    var pos = pids.indexOf(prevPid);
    var nextPid = pids[pos + 1];
    var newPid = generatePid(prevPid, nextPid);
    if (newPid !== prevPid && newPid !== nextPid) {
      return newPid;
    }
    return undefined;
  };
  _proto.addParagraph = function addParagraph(prevPid, startOffset) {
    if (this.getParagraph(prevPid).isUnfix) {
      this.unfixChangedWaiting[prevPid] = true;
    }
    var newPid = this.genNewPid(prevPid);
    if (newPid) {
      this.setter.book.addParagraph(prevPid, newPid, startOffset);
    }
  };
  _proto.mergePrevParagraph = function mergePrevParagraph(pid) {
    var prevId = getPreviousPid(this, pid);
    if (!prevId) {
      return;
    }
    if (this.getParagraph(pid).isUnfix) {
      this.unfixChangedWaiting[pid] = true;
    }
    this.setter.book.mergeParagraph(prevId, pid);
  };
  _proto.removeParagraph = function removeParagraph(pid) {
    this.setter.book.removeParagraph(pid);
  };
  _proto.replaceText = function replaceText(pid, startOffset, endOffset, _replaceText, preteatInsertText) {
    if (preteatInsertText === void 0) {
      preteatInsertText = false;
    }
    if (this.getParagraph(pid).isUnfix) {
      this.unfixChangedWaiting[pid] = true;
    }
    this.preteat();
    this.deleteTextRange(pid, startOffset, endOffset);
    if (preteatInsertText) {
      this.preteat();
    }
    this.insertText(pid, startOffset, _replaceText);
  };
  _proto.updateUserByPid = function updateUserByPid(pid, uid) {
    if (this.getParagraph(pid).isUnfix) {
      this.unfixChangedWaiting[pid] = true;
    }
    this.setter.book.updateUserByPid(pid, uid);
  } // unfix场景没有修改全部用户功能，暂不增加unfixChangedWaiting逻辑
  ;

  _proto.updateAllUsers = function updateAllUsers(pids, uid) {
    this.setter.book.updateAllUsers(pids, uid);
  };
  _proto.startLiveTranscription = function startLiveTranscription() {
    if (this.runningOnServer) {
      return;
    }
    this.liveMeetingController.startLiveMeeting();
  };
  _proto.findAndMark = function findAndMark(keyword, isSearchTranslate) {
    if (isSearchTranslate === void 0) {
      isSearchTranslate = true;
    }
    return this.searchReplaceController.findAndMark(keyword, isSearchTranslate);
  };
  _proto.findNext = function findNext() {
    return this.searchReplaceController.next();
  };
  _proto.findPrev = function findPrev() {
    return this.searchReplaceController.prev();
  };
  _proto.replace = function replace(text) {
    return this.searchReplaceController.replace(text);
  };
  _proto.replaceAll = function replaceAll(text) {
    return this.searchReplaceController.replaceAll(text);
  };
  _proto.getFoundSelectionsByPid = function getFoundSelectionsByPid(pid) {
    return this.searchReplaceController.getFoundSelectionsByPid(pid);
  };
  _proto.getActiveFoundSelection = function getActiveFoundSelection() {
    return this.searchReplaceController.getActiveFoundSelection();
  };
  _proto.resetFind = function resetFind() {
    return this.searchReplaceController.resetFind();
  };
  _proto.setPlayingVoiceWord = function setPlayingVoiceWord(pid, word, forceDisplay) {
    if (forceDisplay === void 0) {
      forceDisplay = false;
    }
    this.voiceWordController.setPlayingVoiceWord(pid, word, forceDisplay);
    if (this.agendaController.getEnableActiveAgenda() && word) {
      this.setActiveAgendaByTime(word.beginTime);
    }
  };
  _proto.setPlayingVoiceWordByTime = function setPlayingVoiceWordByTime(timestamp, forceDisplay) {
    if (forceDisplay === void 0) {
      forceDisplay = false;
    }
    this.voiceWordController.setPlayingVoiceWordByTime(timestamp, forceDisplay);
    if (this.agendaController.getEnableActiveAgenda()) {
      this.agendaController.setActiveAgendaByTime(timestamp);
    }
  };
  _proto.getPlayingPidAndWord = function getPlayingPidAndWord() {
    return this.voiceWordController.getPlayingPidAndWord();
  };
  _proto.getPlayingWord = function getPlayingWord(pid) {
    return this.voiceWordController.getPlayingWord(pid);
  };
  _proto.clearPlayingVoiceWord = function clearPlayingVoiceWord() {
    this.voiceWordController.clearPlayingVoiceWord();
  };
  _proto.getNextSentencesByTime = function getNextSentencesByTime(timestamp) {
    return this.voiceWordController.getNextSentencesByTime(timestamp);
  };
  _proto.getPrevSentencesByTime = function getPrevSentencesByTime(timestamp) {
    return this.voiceWordController.getPrevSentencesByTime(timestamp);
  };
  _proto.setActiveAgendaById = function setActiveAgendaById(agendaId) {
    this.agendaController.setActiveAgendaById(agendaId);
    var activeAgenda = this.getActiveAgenda();
    if (activeAgenda) {
      this.voiceWordController.setPlayingVoiceWordByTime(activeAgenda.beginTime, false, false, true);
    }
  };
  _proto.clearActiveAgenda = function clearActiveAgenda() {
    this.agendaController.clearActiveAgenda();
  };
  _proto.setActiveAgendaByTime = function setActiveAgendaByTime(timestamp) {
    this.agendaController.setActiveAgendaByTime(timestamp);
  };
  _proto.getActiveAgenda = function getActiveAgenda() {
    return this.agendaController.getActiveAgenda();
  };
  _proto.setAgendasFromJSON = function setAgendasFromJSON(cps) {
    this.agendaController.fromJSON(cps);
  };
  _proto.getActiveAgendaHighlightSids = function getActiveAgendaHighlightSids() {
    return this.agendaController.getActiveAgendaHighlightSids();
  };
  _proto.getAgendas = function getAgendas() {
    return this.agendaController.getAgendas();
  };
  _proto.setAgendas = function setAgendas(agendas) {
    this.agendaController.setAgendas(agendas);
  };
  _proto.detectedFirstShowUpAgenda = function detectedFirstShowUpAgenda(agenda) {
    this.emit('detectedFirstShowUpAgenda', {
      agenda: agenda
    });
  };
  _proto.getEnableActiveAgenda = function getEnableActiveAgenda() {
    return this.agendaController.getEnableActiveAgenda();
  }
  /**
    * @deprecated
    */;

  _proto.prepareSetPlayingWord = function prepareSetPlayingWord() {
    console.warn('请替换prepareSetPlayingWord为startPlayingVoiceWord');
    this.startPlayingVoiceWord();
  };
  _proto.startPlayingVoiceWord = function startPlayingVoiceWord() {
    this.voiceWordController.startPlayingVoiceWord();
  };
  _proto.endPlayingVoiceWord = function endPlayingVoiceWord() {
    this.voiceWordController.endPlayingVoiceWord();
  };
  _proto.getIsEnablePlayingVoice = function getIsEnablePlayingVoice() {
    return this.voiceWordController.getIsEnablePlayingVoice();
  };
  _proto.seekToWord = function seekToWord(word) {
    this.emit('needSeekToWord', {
      word: word
    });
  };
  _proto.readonlyClickWord = function readonlyClickWord(words) {
    if (this.startListenSelectWordCallback) {
      this.startListenSelectWordCallback(words);
    }
  };
  _proto.extraSelectContents = function extraSelectContents(selection, type) {
    var startOffset = selection.startOffset,
      endOffset = selection.endOffset,
      pid = selection.pid;
    if (startOffset === endOffset) {
      return;
    }
    var textContent = this.getTextContent(pid);
    this.emit('extraContents', {
      contents: [textContent.slice(startOffset, endOffset)],
      type: type
    });
  };
  _proto.extraContent = function extraContent(contents, type) {
    this.emit('extraContents', {
      contents: contents,
      type: type
    });
  };
  _proto.markSelectContents = function markSelectContents(selection, tag) {
    var words = this.getWordsBySelection(selection);
    var attrs = {
      tag: tag
    };
    var pid = selection.pid;
    var paragraph = this.getParagraph(pid);
    if (paragraph.isUnfix) {
      this.unfixChangedWaiting[pid] = true;
    }
    this.setter.book.updateWords(pid, words, attrs);
    this.emit('markWordsChanged', {
      markedContinuousWords: this.getMarkedContinuousWords()
    });
  };
  _proto.getSelectionMarkTag = function getSelectionMarkTag() {
    var selection = this.getCurrentSelection();
    if (!selection) {
      return undefined;
    }
    var words = this.getWordsBySelection(selection);
    var result;
    words.some(function (word) {
      if (result == null) {
        result = word.tag;
      } else if (result !== word.tag) {
        result = undefined;
        return true;
      }
      return false;
    });
    return result;
  };
  _proto.getMarkedContinuousWords = function getMarkedContinuousWords(tag) {
    var continuousWords = [];
    var allWords = this.getAllWords();
    var foundTag;
    var length = allWords.length;
    for (var i = 0; i < length; i++) {
      var _allWords$i = allWords[i],
        _word = _allWords$i[1];
      if (!foundTag || _word.tag !== foundTag) {
        if (_word.tag && (tag == null || _word.tag === tag)) {
          foundTag = _word.tag;
          continuousWords.push([]);
        } else {
          foundTag = undefined;
        }
      }
      if (foundTag && _word.tag === foundTag) {
        continuousWords[continuousWords.length - 1].push(_word);
      }
    }
    return continuousWords;
  };
  _proto.needStartPlayVoiceWithSelection = function needStartPlayVoiceWithSelection(selection) {
    var words = this.getWordsBySelection(selection);
    this.emit('needStartPlayVoice', {
      words: words
    });
  };
  _proto.setFilterOption = function setFilterOption(filterOption) {
    this.paragraphFilterController.setFilterOption(filterOption);
    this.searchReplaceController.reFindAndMark();
    this.emit('paragraphFilterChange', {});
  };
  _proto.getFilterOption = function getFilterOption() {
    return this.paragraphFilterController.getFilterOption();
  };
  _proto.setTranslateMode = function setTranslateMode(mode) {
    this.translateController.setTranslateMode(mode);
    this.searchReplaceController.reFindAndMark();
  };
  _proto.getTranslateMode = function getTranslateMode(pid) {
    return this.translateController.getTranslateMode(pid);
  };
  _proto.setTranslate = function setTranslate(pid, translate) {
    var isSuccessful = this.translateController.setTranslate(pid, translate);
    if (isSuccessful) {
      this.searchReplaceController.reFindAndMark();
    }
  };
  _proto.setTranslateByWords = function setTranslateByWords(pid, translate) {
    var isSuccessful = this.translateController.setTranslateByWords(pid, translate);
    if (isSuccessful) {
      this.searchReplaceController.reFindAndMark();
    }
  };
  _proto.setTranslating = function setTranslating(pid, isTranslating) {
    this.translateController.setTranslating(pid, isTranslating);
  };
  _proto.getTranslate = function getTranslate(pid) {
    return this.translateController.getTranslate(pid);
  };
  _proto.setUnfixTranslate = function setUnfixTranslate(pid, unfixContentTranslate, fixContentTranslate) {
    this.translateController.setUnfixTranslate(pid, unfixContentTranslate, fixContentTranslate);
    this.searchReplaceController.reFindAndMark();
  };
  _proto.setUnfixTranslateByWords = function setUnfixTranslateByWords(pid, unfixContentTranslate, fixContentTranslate) {
    this.translateController.setUnfixTranslateByWords(pid, unfixContentTranslate, fixContentTranslate);
    this.searchReplaceController.reFindAndMark();
  };
  _proto.getUnfixTranslate = function getUnfixTranslate() {
    return this.translateController.getUnfixTranslate();
  };
  _proto.emitParagraphNeedTranslate = function emitParagraphNeedTranslate(pid) {
    this.emit('paragraphNeedTranslate', {
      pid: pid
    });
  };
  _proto.injectSpeakersGetter = function injectSpeakersGetter(speakersGetter) {
    this.speakerController.injectSpeakersGetter(speakersGetter);
  };
  _proto.injectSpeakersSetter = function injectSpeakersSetter(speakersSetter) {
    this.speakerController.injectSpeakersSetter(speakersSetter);
  } // 常用发言人
  ;

  _proto.injectCommonUseSpeakersGetter = function injectCommonUseSpeakersGetter(speakersGetter) {
    this.speakerController.injectCommonUseSpeakersGetter(speakersGetter);
  } // 常用发言人
  ;

  _proto.injectCommonUseSpeakersSetter = function injectCommonUseSpeakersSetter(speakersSetter) {
    this.speakerController.injectCommonUseSpeakersSetter(speakersSetter);
  };
  _proto.injectDefaultSpeakerNameGetter = function injectDefaultSpeakerNameGetter(defaultSpeakerNameGetter) {
    this.speakerController.injectDefaultSpeakerNameGetter(defaultSpeakerNameGetter);
  };
  _proto.injectRenderAvatarGetter = function injectRenderAvatarGetter(renderAvatarGetter) {
    this.speakerController.injectRenderAvatarGetter(renderAvatarGetter);
  };
  _proto.getSpeakers = function getSpeakers() {
    return this.speakerController.getSpeakers();
  };
  _proto.setSpeakers = function setSpeakers(speakers) {
    this.speakerController.setSpeakers(speakers);
  };
  _proto.setMaxSpeaker = function setMaxSpeaker(maxSpeaker) {
    this.speakerController.setMaxSpeaker(maxSpeaker);
  };
  _proto.getMaxSpeaker = function getMaxSpeaker() {
    return this.speakerController.getMaxSpeaker();
  };
  _proto.getCommonUseSpeakers = function getCommonUseSpeakers() {
    return this.speakerController.getCommonUseSpeakers();
  };
  _proto.setCommonUseSpeakers = function setCommonUseSpeakers(speakers) {
    this.speakerController.setCommonUseSpeakers(speakers);
  };
  _proto.renderAvatar = function renderAvatar(uid, size) {
    return this.speakerController.renderAvatar(uid, size);
  } // todo----未必会使用，可能只有set就够了
  ;

  _proto.updateCommonUseSpeakersList = function updateCommonUseSpeakersList(speakers) {
    this.speakerController.updateCommonUseSpeakersList(speakers);
  };
  _proto.updateOneByAlibabaEmployeeOnEmptyUnfix = function updateOneByAlibabaEmployeeOnEmptyUnfix(alibabaEmployee) {
    this.speakerController.updateOneByAlibabaEmployeeOnEmptyUnfix(alibabaEmployee);
  };
  _proto.updateOneByHistorySpeakerOnEmptyUnfix = function updateOneByHistorySpeakerOnEmptyUnfix(speaker) {
    this.speakerController.updateOneByHistorySpeakerOnEmptyUnfix(speaker);
  };
  _proto.updateOneByInputTextOnEmptyUnfix = function updateOneByInputTextOnEmptyUnfix(oldInputText, inputText) {
    this.speakerController.updateOneByInputTextOnEmptyUnfix(oldInputText, inputText);
  };
  _proto.updateOneByAlibabaEmployee = function updateOneByAlibabaEmployee(pid, alibabaEmployee) {
    this.speakerController.updateOneByAlibabaEmployee(pid, alibabaEmployee);
  };
  _proto.updateOneByHistorySpeaker = function updateOneByHistorySpeaker(pid, speaker) {
    this.speakerController.updateOneByHistorySpeaker(pid, speaker);
  };
  _proto.updateOneByInputText = function updateOneByInputText(pid, oldInputText, inputText) {
    this.speakerController.updateOneByInputText(pid, oldInputText, inputText);
  };
  _proto.updateManyByAlibabaEmployee = function updateManyByAlibabaEmployee(currentPid, alibabaEmployee) {
    this.speakerController.updateManyByAlibabaEmployee(currentPid, alibabaEmployee);
  };
  _proto.updateManyByHistorySpeaker = function updateManyByHistorySpeaker(currentPid, speaker) {
    this.speakerController.updateManyByHistorySpeaker(currentPid, speaker);
  };
  _proto.updateManyByInputText = function updateManyByInputText(currentPid, oldInputText, inputText) {
    this.speakerController.updateManyByInputText(currentPid, oldInputText, inputText);
  };
  _proto.renderSpeakerName = function renderSpeakerName(uid) {
    return this.speakerController.renderSpeakerName(uid);
  };
  _proto.getLastUnfixPid = function getLastUnfixPid() {
    return this.unfixToFixedController.getLastUnfixPid();
  };
  _proto.getUnfixToFixedPid = function getUnfixToFixedPid() {
    return this.unfixToFixedController.getUnfixToFixedPid();
  };
  _proto.getUnfixToFixedKeepFocusPid = function getUnfixToFixedKeepFocusPid() {
    return this.unfixToFixedController.getUnfixToFixedKeepFocusPid();
  };
  _proto.isFirstUnfixPid = function isFirstUnfixPid(pid) {
    return this.unfixToFixedController.isFirstUnfixPid(pid);
  };
  _proto.emitSaveDocument = function emitSaveDocument() {
    this.emit('saveDocument', {});
  };
  _proto.getParagraphCaptionsMap = function getParagraphCaptionsMap() {
    return this.captionCmdController.getParagraphCaptionsMap();
  };
  _proto.getCaptionArray = function getCaptionArray() {
    return this.captionCmdController.getCaptionArray();
  };
  _proto.getCaptionByTimestamp = function getCaptionByTimestamp(timestamp) {
    return this.captionCmdController.getCaptionByTimestamp(timestamp);
  };
  _proto.getAllExtractContent = function getAllExtractContent() {
    return this.extractController.getAllExtractContent();
  };
  _proto.getExtraContentByTag = function getExtraContentByTag(tag) {
    return this.extractController.getExtraContentByTag(tag);
  };
  _proto.undo = function undo() {
    this.undoRedoStacker.undo();
  };
  _proto.redo = function redo() {
    this.undoRedoStacker.redo();
  };
  _proto.canUndo = function canUndo() {
    return this.undoRedoStacker.canUndo();
  };
  _proto.canRedo = function canRedo() {
    return this.undoRedoStacker.canRedo();
  };
  _proto.isHasContent = function isHasContent() {
    return this.getAllTextContent().join('') !== '';
  };
  _proto.startRecordResultCheck = function startRecordResultCheck() {
    var _this9 = this;
    if (this.isHasContent()) {
      return;
    }
    this.recordTimeout = setTimeout(function () {
      if (!_this9.isHasContent()) {
        _this9.emit('detectEmptyContent', {});
        _this9.stopRecordResultCheck();
      }
    }, 30000);
  };
  _proto.stopRecordResultCheck = function stopRecordResultCheck() {
    clearTimeout(this.recordTimeout);
    this.recordTimeout = undefined;
  };
  _proto.clearNoRecordTip = function clearNoRecordTip() {
    // 外部可控制关闭NoRecordTip
    this.emit('closeNoRecordTip', {});
  };
  return Controller;
}(eventer/* Eventer */.n);

/***/ }),

/***/ 8674:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   R: function() { return /* binding */ TranslateMode; },
/* harmony export */   g: function() { return /* binding */ TranslateController; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2918);
/* harmony import */ var _abstractCmdController__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5392);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3720);



var TranslateMode;
(function (TranslateMode) {
  TranslateMode[TranslateMode["OriginAndTranslate"] = 0] = "OriginAndTranslate";
  TranslateMode[TranslateMode["TranslateOnly"] = 1] = "TranslateOnly";
  TranslateMode[TranslateMode["Disabled"] = 2] = "Disabled";
})(TranslateMode || (TranslateMode = {}));
var TranslateController = /*#__PURE__*/function (_AbstractCmdControlle) {
  (0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(TranslateController, _AbstractCmdControlle);
  function TranslateController() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _AbstractCmdControlle.call.apply(_AbstractCmdControlle, [this].concat(args)) || this;
    _this.fixParagraphTranslate = {};
    _this.unfixParagraphTranslate = {
      fixContentTranslate: [],
      unfixContentTranslate: ''
    };
    _this.translateMode = TranslateMode.Disabled;
    return _this;
  }
  var _proto = TranslateController.prototype;
  _proto.setTranslateMode = function setTranslateMode(translateMode) {
    var oldTranslateMode = this.translateMode;
    this.translateMode = translateMode;
    var livingMode = this.controller.getLivingMode();
    if (livingMode && oldTranslateMode === TranslateMode.Disabled && translateMode !== TranslateMode.Disabled) {
      // 当开启翻译时，触发一次unfixContentChange，为了能够触发一次翻译
      this.controller.emitUnfixContentChange();
    }
    this.controller.emit('translateModeChange', {
      translateMode: translateMode
    });
  };
  _proto.getTranslateMode = function getTranslateMode(_pid) {
    return this.translateMode;
  };
  _proto.setTranslating = function setTranslating(pid, isTranslating) {
    var translate = this.fixParagraphTranslate[pid];
    if (translate && translate.isTranslating === isTranslating && !translate.isTranslateError) {
      return;
    }
    if (translate == null) {
      this.fixParagraphTranslate[pid] = {
        translateResult: [],
        pid: pid,
        isTranslating: isTranslating,
        isTranslateError: false
      };
    } else {
      translate.isTranslating = true;
      translate.isTranslateError = false;
    }
    this.controller.emit('fixParagraphTranslateChange', {
      pid: pid,
      translate: this.fixParagraphTranslate[pid]
    });
  };
  _proto.isTranslateError = function isTranslateError(words) {
    return words.map(function (word) {
      return word.text;
    }).join('').length === 0;
  } //
  // return isSuccessful
  ;

  _proto.setTranslate = function setTranslate(pid, translate) {
    return this.setTranslateByWords(pid, (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .getWordsBySces */ .N)(translate));
  } //
  // return isSuccessful
  ;

  _proto.setTranslateByWords = function setTranslateByWords(pid, translate) {
    var isHasContent = this.controller.getTextContent(pid);
    var isError = isHasContent && this.isTranslateError(translate);
    if (!this.fixParagraphTranslate[pid]) {
      this.fixParagraphTranslate[pid] = {
        pid: pid,
        translateResult: []
      };
    }
    this.fixParagraphTranslate[pid].isTranslating = false;
    if (isError) {
      this.fixParagraphTranslate[pid].isTranslateError = true;
    } else {
      this.fixParagraphTranslate[pid].isTranslateError = false;
      this.fixParagraphTranslate[pid].translateResult = translate;
    }
    this.controller.emit('fixParagraphTranslateChange', {
      pid: pid,
      translate: this.fixParagraphTranslate[pid]
    });
    return !isError;
  };
  _proto.getTranslate = function getTranslate(pid) {
    return this.fixParagraphTranslate[pid];
  };
  _proto.setUnfixTranslate = function setUnfixTranslate(pid, unfixContentTranslate, fixContentTranslate) {
    this.setUnfixTranslateByWords(pid, unfixContentTranslate, (0,_utils__WEBPACK_IMPORTED_MODULE_1__/* .getWordsBySces */ .N)(fixContentTranslate));
  };
  _proto.setUnfixTranslateByWords = function setUnfixTranslateByWords(pid, unfixContentTranslate, fixContentTranslate) {
    this.unfixParagraphTranslate = {
      pid: pid,
      unfixContentTranslate: unfixContentTranslate,
      fixContentTranslate: fixContentTranslate
    };
    this.controller.emit('unfixParagraphTranslateChange', this.unfixParagraphTranslate);
  };
  _proto.getUnfixTranslate = function getUnfixTranslate() {
    return this.unfixParagraphTranslate;
  };
  _proto.setUnfixToFixed = function setUnfixToFixed(newUnfixPid) {
    var _this$getUnfixTransla = this.getUnfixTranslate(),
      pid = _this$getUnfixTransla.pid,
      fixContentTranslate = _this$getUnfixTransla.fixContentTranslate;
    if (pid) {
      this.setUnfixTranslate(newUnfixPid, '', []);
      this.setTranslateByWords(pid, fixContentTranslate);
    }
  };
  _proto.reset = function reset() {
    this.fixParagraphTranslate = {};
    this.unfixParagraphTranslate = {
      fixContentTranslate: [],
      unfixContentTranslate: ''
    };
  };
  return TranslateController;
}(_abstractCmdController__WEBPACK_IMPORTED_MODULE_2__/* .AbstractCmdController */ .p);

/***/ }),

/***/ 2710:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   z: function() { return /* binding */ createOperation; }
/* harmony export */ });
function createOperation(action, payload) {
  return {
    action: action,
    payload: payload
  };
}

/***/ }),

/***/ 2360:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   A: function() { return /* binding */ report; }
/* harmony export */ });
/* unused harmony export implementReport */
var callback = function callback() {};
var implementReport = function implementReport(cb) {
  callback = cb;
};
var report = function report(type, payload) {
  callback(type, payload);
};

/***/ }),

/***/ 2345:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Ms: function() { return /* binding */ generateDeleteTextRangeOps; },
/* harmony export */   NV: function() { return /* binding */ generateUpdateWords; },
/* harmony export */   c: function() { return /* binding */ getNfixingAndFixedWids; },
/* harmony export */   oz: function() { return /* binding */ getAvibleNfixingWids; },
/* harmony export */   qo: function() { return /* binding */ getSidWidsMap; },
/* harmony export */   re: function() { return /* binding */ generateInsertTextOps; }
/* harmony export */ });
/* unused harmony exports insertWordByPos, getIndexByReverseIndex, getIsSelectAllText, getUnfixSidWidsMap */
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4904);
/* harmony import */ var lodash_es__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3557);
/* harmony import */ var _persist__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2710);



var insertWordByPos = function insertWordByPos(text, word, pos) {
  return [text.slice(0, pos), word, text.slice(pos)].join('');
};
var getIndexByReverseIndex = function getIndexByReverseIndex(index, length) {
  return length - index - 1;
};
var getOrdersByDeleteId = function getOrdersByDeleteId(wids, deleteWid) {
  return {
    oldOrder: wids,
    newOrder: wids.filter(function (wid) {
      return wid !== deleteWid;
    })
  };
};
var getIsSelectAllText = function getIsSelectAllText(controller, pid, startOffset, endOffset) {
  var textContent = controller.getTextContent(pid);
  return textContent.length === endOffset - startOffset && startOffset === 0;
};
var generateDeleteTextRangeOps = function generateDeleteTextRangeOps(controller, pid, startOffset, endOffset) {
  var ops = [];
  if (startOffset === endOffset) {
    return ops;
  }
  var words = controller.getWords(pid);
  var paragraph = controller.getParagraph(pid);
  var wids = paragraph.wids.slice();
  var offset = 0;
  var isSelectAllText = getIsSelectAllText(controller, pid, startOffset, endOffset);
  words.some(function (word, index) {
    offset += word.text.length;
    var wordStartAt = offset - word.text.length;
    var oldValue = word.text;
    if (endOffset < wordStartAt) {
      return true;
    } else if (startOffset <= wordStartAt && endOffset >= offset) {
      if (isSelectAllText && index === 0) {
        var newWord = (0,lodash_es__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(word);
        newWord.text = '';
        ops.push((0,_persist__WEBPACK_IMPORTED_MODULE_1__/* .createOperation */ .z)('updateWord', {
          pid: pid,
          wid: word.wid,
          oldValue: word,
          newValue: newWord
        }));
      } else {
        var _getOrdersByDeleteId = getOrdersByDeleteId(wids, word.wid),
          oldOrder = _getOrdersByDeleteId.oldOrder,
          newOrder = _getOrdersByDeleteId.newOrder;
        wids = newOrder;
        ops.push((0,_persist__WEBPACK_IMPORTED_MODULE_1__/* .createOperation */ .z)('deleteWord', {
          pid: pid,
          wid: word.wid,
          word: word,
          oldOrder: oldOrder,
          newOrder: newOrder
        }));
      }
    } else {
      var newValue = '';
      if (startOffset > wordStartAt && endOffset < offset) {
        newValue = [oldValue.slice(0, startOffset - wordStartAt), oldValue.slice(endOffset - wordStartAt)].join('');
      } else if (startOffset > wordStartAt && startOffset < offset) {
        newValue = oldValue.slice(0, startOffset - wordStartAt);
      } else if (endOffset < offset && endOffset > wordStartAt) {
        newValue = oldValue.slice(endOffset - wordStartAt);
      }
      if (newValue) {
        var _newWord = (0,lodash_es__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(word);
        _newWord.text = newValue;
        ops.push((0,_persist__WEBPACK_IMPORTED_MODULE_1__/* .createOperation */ .z)('updateWord', {
          pid: pid,
          wid: word.wid,
          oldValue: word,
          newValue: _newWord
        }));
      }
    }
    return false;
  });
  return ops;
};
var generateInsertTextOps = function generateInsertTextOps(controller, pid, startOffset, text) {
  var words = controller.getWords(pid);
  var offset = 0;
  var ops = [];
  words.some(function (word) {
    offset += word.text.length;
    if (startOffset <= offset) {
      var oldValue = word.text;
      var pos = startOffset - (offset - oldValue.length);
      var newValue = [oldValue.slice(0, pos), text, oldValue.slice(pos)].join('');
      var newWord = (0,lodash_es__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(word);
      newWord.text = newValue;
      ops.push((0,_persist__WEBPACK_IMPORTED_MODULE_1__/* .createOperation */ .z)('updateWord', {
        pid: pid,
        wid: word.wid,
        oldValue: word,
        newValue: newWord,
        userChangeText: true
      }));
      return true;
    }
    return false;
  });
  return ops;
};
var generateUpdateWords = function generateUpdateWords(pid, words, attrs) {
  var ops = [];
  var oldWords = [];
  var newWords = [];
  words.forEach(function (word) {
    oldWords.push(word);
    newWords.push((0,_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, word, attrs));
  });
  ops.push((0,_persist__WEBPACK_IMPORTED_MODULE_1__/* .createOperation */ .z)('updateWords', {
    pid: pid,
    oldValue: oldWords,
    newValue: newWords
  }));
  return ops;
};
var getSidWidsMap = function getSidWidsMap(controller, wids) {
  var sidWidsMap = {};
  var sids = [];
  wids.forEach(function (wid) {
    var word = controller.getWord(wid);
    if (!word) {
      return;
    }
    if (!sidWidsMap[word.sentenceId]) {
      sidWidsMap[word.sentenceId] = {
        isNfixing: false,
        wids: []
      };
      sids.push(word.sentenceId);
    }
    sidWidsMap[word.sentenceId].wids.push(wid);
    if (word.nFix) {
      sidWidsMap[word.sentenceId].isNfixing = true;
    }
  });
  return {
    sidWidsMap: sidWidsMap,
    sids: sids
  };
};
var getUnfixSidWidsMap = function getUnfixSidWidsMap(controller) {
  var result = {
    sidWidsMap: {},
    sids: []
  };
  var unfixPid = controller.getUnfixPid();
  if (unfixPid) {
    var paragraph = controller.getParagraph(unfixPid);
    result = getSidWidsMap(controller, paragraph.wids);
  }
  return result;
};
var getNfixingAndFixedWids = function getNfixingAndFixedWids(controller, wids) {
  var _getSidWidsMap = getSidWidsMap(controller, wids),
    sidWidsMap = _getSidWidsMap.sidWidsMap,
    sids = _getSidWidsMap.sids;
  var nfixingWids = [];
  var fixedWids = [];
  sids.forEach(function (sid) {
    if (sidWidsMap[sid].isNfixing) {
      nfixingWids.push.apply(nfixingWids, sidWidsMap[sid].wids);
    } else {
      fixedWids.push.apply(fixedWids, sidWidsMap[sid].wids);
    }
  });
  return {
    nfixingWids: nfixingWids,
    fixedWids: fixedWids
  };
};
var getAvibleNfixingWids = function getAvibleNfixingWids(controller, wids) {
  var _getNfixingAndFixedWi = getNfixingAndFixedWids(controller, wids),
    nfixingWids = _getNfixingAndFixedWi.nfixingWids,
    fixedWids = _getNfixingAndFixedWi.fixedWids;
  var filteredFixedWids = fixedWids.filter(function (wid) {
    return wid.length < 10;
  }); // The wid great than 10  that user generated.

  if (filteredFixedWids.length === 0) {
    return {
      nfixingWids: nfixingWids
    };
  }
  var lastFixedWid = filteredFixedWids[filteredFixedWids.length - 1];
  return {
    nfixingWids: nfixingWids.filter(function (wid) {
      return Number(wid) > Number(lastFixedWid);
    })
  };
};

/***/ }),

/***/ 3720:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   N: function() { return /* binding */ getWordsBySces; },
/* harmony export */   n: function() { return /* binding */ getWordBySc; }
/* harmony export */ });
var getUniqueId = function () {
  var id = 10000;
  return function () {
    return "W" + ++id;
  };
}();
var getWordBySc = function getWordBySc(sc) {
  var _sc$tag;
  return {
    wid: sc.id != null ? String(sc.id) : getUniqueId(),
    beginTime: sc.bt,
    endTime: sc.et,
    sentenceId: String(sc.si),
    text: sc.tc,
    tag: ((_sc$tag = sc.tag) == null ? void 0 : _sc$tag.mark) || '',
    nFix: sc.pt === 1
  };
};
var getWordsBySces = function getWordsBySces(sces) {
  return sces.map(function (sc) {
    return getWordBySc(sc);
  });
};

/***/ }),

/***/ 2414:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   $: function() { return /* binding */ MeetingModel; },
/* harmony export */   k: function() { return /* binding */ MeetingState; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2918);
/* harmony import */ var _ali_tingwu_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6321);


var MeetingState;
(function (MeetingState) {
  MeetingState[MeetingState["Idle"] = 0] = "Idle";
  MeetingState[MeetingState["PrepareStart"] = 1] = "PrepareStart";
  MeetingState[MeetingState["InMeeting"] = 2] = "InMeeting";
  MeetingState[MeetingState["PreparePause"] = 3] = "PreparePause";
  MeetingState[MeetingState["Pause"] = 4] = "Pause";
  MeetingState[MeetingState["PrepareResume"] = 5] = "PrepareResume";
  MeetingState[MeetingState["PrepareStop"] = 6] = "PrepareStop";
  MeetingState[MeetingState["Stop"] = 7] = "Stop";
})(MeetingState || (MeetingState = {}));
var MeetingModel = /*#__PURE__*/function (_Eventer) {
  (0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(MeetingModel, _Eventer);
  function MeetingModel() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _Eventer.call.apply(_Eventer, [this].concat(args)) || this;
    _this.state = MeetingState.Idle;
    _this.isReadyToSendAudio = false;
    return _this;
  }
  var _proto = MeetingModel.prototype;
  _proto.setMeetingState = function setMeetingState(state) {
    this.state = state;
    this.emit('meetingStateChange', {
      state: state
    });
  };
  _proto.getMeetingState = function getMeetingState() {
    return this.state;
  };
  _proto.isMeetingState = function isMeetingState(state) {
    return this.state === state;
  };
  _proto.isInMeeting = function isInMeeting() {
    return this.state === MeetingState.InMeeting;
  };
  _proto.isEnteringMeeting = function isEnteringMeeting() {
    return [MeetingState.PrepareStart, MeetingState.PrepareResume].includes(this.state);
  };
  _proto.isLeavingMeeting = function isLeavingMeeting() {
    return [MeetingState.PrepareStop, MeetingState.PreparePause].includes(this.state);
  };
  _proto.isLikeInMeeting = function isLikeInMeeting() {
    return [MeetingState.InMeeting, MeetingState.PreparePause, MeetingState.PrepareStop].includes(this.state);
  };
  _proto.isMeetingIdle = function isMeetingIdle() {
    return this.state === MeetingState.Idle || this.state === MeetingState.Stop;
  };
  _proto.getIsReadyToSendAudio = function getIsReadyToSendAudio() {
    return this.isReadyToSendAudio;
  };
  _proto.setIsReadyToSendAudio = function setIsReadyToSendAudio(isReadyToSendAudio) {
    this.isReadyToSendAudio = isReadyToSendAudio;
    this.emit('isReadyToSendAudioChange', {
      isReadyToSendAudio: isReadyToSendAudio
    });
  };
  return MeetingModel;
}(_ali_tingwu_common__WEBPACK_IMPORTED_MODULE_1__/* .Eventer */ .n);

/***/ }),

/***/ 5543:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   R_: function() { return /* binding */ generate; }
/* harmony export */ });
/* unused harmony exports blue, cyan, geekblue, gold, green, grey, lime, magenta, orange, presetDarkPalettes, presetPalettes, presetPrimaryColors, purple, red, volcano, yellow */
/* harmony import */ var _ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2235);
/* harmony import */ var _ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7870);

var hueStep = 2; // 色相阶梯

var saturationStep = 0.16; // 饱和度阶梯，浅色部分

var saturationStep2 = 0.05; // 饱和度阶梯，深色部分

var brightnessStep1 = 0.05; // 亮度阶梯，浅色部分

var brightnessStep2 = 0.15; // 亮度阶梯，深色部分

var lightColorCount = 5; // 浅色数量，主色上

var darkColorCount = 4; // 深色数量，主色下
// 暗色主题颜色映射关系表

var darkColorMap = [{
  index: 7,
  opacity: 0.15
}, {
  index: 6,
  opacity: 0.25
}, {
  index: 5,
  opacity: 0.3
}, {
  index: 5,
  opacity: 0.45
}, {
  index: 5,
  opacity: 0.65
}, {
  index: 5,
  opacity: 0.85
}, {
  index: 4,
  opacity: 0.9
}, {
  index: 3,
  opacity: 0.95
}, {
  index: 2,
  opacity: 0.97
}, {
  index: 1,
  opacity: 0.98
}]; // Wrapper function ported from TinyColor.prototype.toHsv
// Keep it here because of `hsv.h * 360`

function toHsv(_ref) {
  var r = _ref.r,
    g = _ref.g,
    b = _ref.b;
  var hsv = (0,_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__/* .rgbToHsv */ .py)(r, g, b);
  return {
    h: hsv.h * 360,
    s: hsv.s,
    v: hsv.v
  };
} // Wrapper function ported from TinyColor.prototype.toHexString
// Keep it here because of the prefix `#`

function toHex(_ref2) {
  var r = _ref2.r,
    g = _ref2.g,
    b = _ref2.b;
  return "#".concat((0,_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_0__/* .rgbToHex */ .vq)(r, g, b, false));
} // Wrapper function ported from TinyColor.prototype.mix, not treeshakable.
// Amount in range [0, 1]
// Assume color1 & color2 has no alpha, since the following src code did so.

function mix(rgb1, rgb2, amount) {
  var p = amount / 100;
  var rgb = {
    r: (rgb2.r - rgb1.r) * p + rgb1.r,
    g: (rgb2.g - rgb1.g) * p + rgb1.g,
    b: (rgb2.b - rgb1.b) * p + rgb1.b
  };
  return rgb;
}
function getHue(hsv, i, light) {
  var hue; // 根据色相不同，色相转向不同

  if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
    hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
  } else {
    hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
  }
  if (hue < 0) {
    hue += 360;
  } else if (hue >= 360) {
    hue -= 360;
  }
  return hue;
}
function getSaturation(hsv, i, light) {
  // grey color don't change saturation
  if (hsv.h === 0 && hsv.s === 0) {
    return hsv.s;
  }
  var saturation;
  if (light) {
    saturation = hsv.s - saturationStep * i;
  } else if (i === darkColorCount) {
    saturation = hsv.s + saturationStep;
  } else {
    saturation = hsv.s + saturationStep2 * i;
  } // 边界值修正

  if (saturation > 1) {
    saturation = 1;
  } // 第一格的 s 限制在 0.06-0.1 之间

  if (light && i === lightColorCount && saturation > 0.1) {
    saturation = 0.1;
  }
  if (saturation < 0.06) {
    saturation = 0.06;
  }
  return Number(saturation.toFixed(2));
}
function getValue(hsv, i, light) {
  var value;
  if (light) {
    value = hsv.v + brightnessStep1 * i;
  } else {
    value = hsv.v - brightnessStep2 * i;
  }
  if (value > 1) {
    value = 1;
  }
  return Number(value.toFixed(2));
}
function generate(color) {
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var patterns = [];
  var pColor = (0,_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_1__/* .inputToRGB */ .uA)(color);
  for (var i = lightColorCount; i > 0; i -= 1) {
    var hsv = toHsv(pColor);
    var colorString = toHex((0,_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_1__/* .inputToRGB */ .uA)({
      h: getHue(hsv, i, true),
      s: getSaturation(hsv, i, true),
      v: getValue(hsv, i, true)
    }));
    patterns.push(colorString);
  }
  patterns.push(toHex(pColor));
  for (var _i = 1; _i <= darkColorCount; _i += 1) {
    var _hsv = toHsv(pColor);
    var _colorString = toHex((0,_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_1__/* .inputToRGB */ .uA)({
      h: getHue(_hsv, _i),
      s: getSaturation(_hsv, _i),
      v: getValue(_hsv, _i)
    }));
    patterns.push(_colorString);
  } // dark theme patterns

  if (opts.theme === 'dark') {
    return darkColorMap.map(function (_ref3) {
      var index = _ref3.index,
        opacity = _ref3.opacity;
      var darkColorString = toHex(mix((0,_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_1__/* .inputToRGB */ .uA)(opts.backgroundColor || '#141414'), (0,_ctrl_tinycolor__WEBPACK_IMPORTED_MODULE_1__/* .inputToRGB */ .uA)(patterns[index]), opacity * 100));
      return darkColorString;
    });
  }
  return patterns;
}
var presetPrimaryColors = {
  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'
};
var presetPalettes = {};
var presetDarkPalettes = {};
Object.keys(presetPrimaryColors).forEach(function (key) {
  presetPalettes[key] = generate(presetPrimaryColors[key]);
  presetPalettes[key].primary = presetPalettes[key][5]; // dark presetPalettes

  presetDarkPalettes[key] = generate(presetPrimaryColors[key], {
    theme: 'dark',
    backgroundColor: '#141414'
  });
  presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
});
var red = presetPalettes.red;
var volcano = presetPalettes.volcano;
var gold = presetPalettes.gold;
var orange = presetPalettes.orange;
var yellow = presetPalettes.yellow;
var lime = presetPalettes.lime;
var green = presetPalettes.green;
var cyan = presetPalettes.cyan;
var blue = presetPalettes.blue;
var geekblue = presetPalettes.geekblue;
var purple = presetPalettes.purple;
var magenta = presetPalettes.magenta;
var grey = presetPalettes.grey;


/***/ }),

/***/ 2361:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ AntdIcon; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(9686);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(7258);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/Context.js
var Context = __webpack_require__(5066);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(2782);
// EXTERNAL MODULE: ./node_modules/_@ant-design_colors@6.0.0@@ant-design/colors/dist/index.esm.js
var index_esm = __webpack_require__(5543);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/warning.js
var warning = __webpack_require__(8575);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/dynamicCSS.js
var dynamicCSS = __webpack_require__(7344);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/utils.js







function utils_warning(valid, message) {
  (0,warning/* default */.ZP)(valid, "[@ant-design/icons] ".concat(message));
}
function isIconDefinition(target) {
  return (0,esm_typeof/* default */.Z)(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && ((0,esm_typeof/* default */.Z)(target.icon) === 'object' || typeof target.icon === 'function');
}
function normalizeAttrs() {
  var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return Object.keys(attrs).reduce(function (acc, key) {
    var val = attrs[key];
    switch (key) {
      case 'class':
        acc.className = val;
        delete acc.class;
        break;
      default:
        acc[key] = val;
    }
    return acc;
  }, {});
}
function generate(node, key, rootProps) {
  if (!rootProps) {
    return /*#__PURE__*/_react_18_2_0_react.createElement(node.tag, (0,objectSpread2/* default */.Z)({
      key: key
    }, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {
      return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
    }));
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(node.tag, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
    key: key
  }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {
    return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
  }));
}
function getSecondaryColor(primaryColor) {
  // choose the second color
  return (0,index_esm/* generate */.R_)(primaryColor)[0];
}
function normalizeTwoToneColors(twoToneColor) {
  if (!twoToneColor) {
    return [];
  }
  return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
}
// These props make sure that the SVG behaviours like general text.
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
var svgBaseProps = {
  width: '1em',
  height: '1em',
  fill: 'currentColor',
  'aria-hidden': 'true',
  focusable: 'false'
};
var iconStyles = "\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";
var useInsertStyles = function useInsertStyles() {
  var styleStr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : iconStyles;
  var _useContext = (0,_react_18_2_0_react.useContext)(Context/* default */.Z),
    csp = _useContext.csp;
  (0,_react_18_2_0_react.useEffect)(function () {
    (0,dynamicCSS/* updateCSS */.hq)(styleStr, '@ant-design-icons', {
      prepend: true,
      csp: csp
    });
  }, []);
};
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/IconBase.js


var _excluded = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];

var twoToneColorPalette = {
  primaryColor: '#333',
  secondaryColor: '#E6E6E6',
  calculated: false
};
function setTwoToneColors(_ref) {
  var primaryColor = _ref.primaryColor,
    secondaryColor = _ref.secondaryColor;
  twoToneColorPalette.primaryColor = primaryColor;
  twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
  twoToneColorPalette.calculated = !!secondaryColor;
}
function getTwoToneColors() {
  return (0,objectSpread2/* default */.Z)({}, twoToneColorPalette);
}
var IconBase = function IconBase(props) {
  var icon = props.icon,
    className = props.className,
    onClick = props.onClick,
    style = props.style,
    primaryColor = props.primaryColor,
    secondaryColor = props.secondaryColor,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
  var colors = twoToneColorPalette;
  if (primaryColor) {
    colors = {
      primaryColor: primaryColor,
      secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
    };
  }
  useInsertStyles();
  utils_warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
  if (!isIconDefinition(icon)) {
    return null;
  }
  var target = icon;
  if (target && typeof target.icon === 'function') {
    target = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, target), {}, {
      icon: target.icon(colors.primaryColor, colors.secondaryColor)
    });
  }
  return generate(target.icon, "svg-".concat(target.name), (0,objectSpread2/* default */.Z)({
    className: className,
    onClick: onClick,
    style: style,
    'data-icon': target.name,
    width: '1em',
    height: '1em',
    fill: 'currentColor',
    'aria-hidden': 'true'
  }, restProps));
};
IconBase.displayName = 'IconReact';
IconBase.getTwoToneColors = getTwoToneColors;
IconBase.setTwoToneColors = setTwoToneColors;
/* harmony default export */ var components_IconBase = (IconBase);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/twoTonePrimaryColor.js



function setTwoToneColor(twoToneColor) {
  var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
    _normalizeTwoToneColo2 = (0,slicedToArray/* default */.Z)(_normalizeTwoToneColo, 2),
    primaryColor = _normalizeTwoToneColo2[0],
    secondaryColor = _normalizeTwoToneColo2[1];
  return components_IconBase.setTwoToneColors({
    primaryColor: primaryColor,
    secondaryColor: secondaryColor
  });
}
function getTwoToneColor() {
  var colors = components_IconBase.getTwoToneColors();
  if (!colors.calculated) {
    return colors.primaryColor;
  }
  return [colors.primaryColor, colors.secondaryColor];
}
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js




var AntdIcon_excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];






// Initial setting
// should move it to antd main repo?
setTwoToneColor('#1890ff');
var Icon = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var _classNames;
  var className = props.className,
    icon = props.icon,
    spin = props.spin,
    rotate = props.rotate,
    tabIndex = props.tabIndex,
    onClick = props.onClick,
    twoToneColor = props.twoToneColor,
    restProps = (0,objectWithoutProperties/* default */.Z)(props, AntdIcon_excluded);
  var _React$useContext = _react_18_2_0_react.useContext(Context/* default */.Z),
    _React$useContext$pre = _React$useContext.prefixCls,
    prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
    rootClassName = _React$useContext.rootClassName;
  var classString = _classnames_2_3_2_classnames_default()(rootClassName, prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), _classNames), className);
  var iconTabIndex = tabIndex;
  if (iconTabIndex === undefined && onClick) {
    iconTabIndex = -1;
  }
  var svgStyle = rotate ? {
    msTransform: "rotate(".concat(rotate, "deg)"),
    transform: "rotate(".concat(rotate, "deg)")
  } : undefined;
  var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
    _normalizeTwoToneColo2 = (0,slicedToArray/* default */.Z)(_normalizeTwoToneColo, 2),
    primaryColor = _normalizeTwoToneColo2[0],
    secondaryColor = _normalizeTwoToneColo2[1];
  return /*#__PURE__*/_react_18_2_0_react.createElement("span", (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
    role: "img",
    "aria-label": icon.name
  }, restProps), {}, {
    ref: ref,
    tabIndex: iconTabIndex,
    onClick: onClick,
    className: classString
  }), /*#__PURE__*/_react_18_2_0_react.createElement(components_IconBase, {
    icon: icon,
    primaryColor: primaryColor,
    secondaryColor: secondaryColor,
    style: svgStyle
  }));
});
Icon.displayName = 'AntdIcon';
Icon.getTwoToneColor = getTwoToneColor;
Icon.setTwoToneColor = setTwoToneColor;
/* harmony default export */ var AntdIcon = (Icon);

/***/ }),

/***/ 5066:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);

var IconContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({});
/* harmony default export */ __webpack_exports__.Z = (IconContext);

/***/ }),

/***/ 2169:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ icons_CheckCircleOutlined; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/CheckCircleOutlined.js
// This icon file is generated automatically.
var CheckCircleOutlined = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"
      }
    }, {
      "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"
      }
    }]
  },
  "name": "check-circle",
  "theme": "outlined"
};
/* harmony default export */ var asn_CheckCircleOutlined = (CheckCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(2361);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CheckCircleOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var CheckCircleOutlined_CheckCircleOutlined = function CheckCircleOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_CheckCircleOutlined
  }));
};
CheckCircleOutlined_CheckCircleOutlined.displayName = 'CheckCircleOutlined';
/* harmony default export */ var icons_CheckCircleOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(CheckCircleOutlined_CheckCircleOutlined));

/***/ }),

/***/ 2842:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ icons_CloseCircleFilled; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/CloseCircleFilled.js
// This icon file is generated automatically.
var CloseCircleFilled = {
  "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"
};
/* harmony default export */ var asn_CloseCircleFilled = (CloseCircleFilled);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(2361);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseCircleFilled.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var CloseCircleFilled_CloseCircleFilled = function CloseCircleFilled(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_CloseCircleFilled
  }));
};
CloseCircleFilled_CloseCircleFilled.displayName = 'CloseCircleFilled';
/* harmony default export */ var icons_CloseCircleFilled = (/*#__PURE__*/_react_18_2_0_react.forwardRef(CloseCircleFilled_CloseCircleFilled));

/***/ }),

/***/ 1566:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ icons_CloseCircleOutlined; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/CloseCircleOutlined.js
// This icon file is generated automatically.
var CloseCircleOutlined = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-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 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"
      }
    }, {
      "tag": "path",
      "attrs": {
        "d": "M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
      }
    }]
  },
  "name": "close-circle",
  "theme": "outlined"
};
/* harmony default export */ var asn_CloseCircleOutlined = (CloseCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(2361);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseCircleOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var CloseCircleOutlined_CloseCircleOutlined = function CloseCircleOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_CloseCircleOutlined
  }));
};
CloseCircleOutlined_CloseCircleOutlined.displayName = 'CloseCircleOutlined';
/* harmony default export */ var icons_CloseCircleOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(CloseCircleOutlined_CloseCircleOutlined));

/***/ }),

/***/ 7586:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ icons_CloseOutlined; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/CloseOutlined.js
// This icon file is generated automatically.
var CloseOutlined = {
  "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"
};
/* harmony default export */ var asn_CloseOutlined = (CloseOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(2361);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var CloseOutlined_CloseOutlined = function CloseOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_CloseOutlined
  }));
};
CloseOutlined_CloseOutlined.displayName = 'CloseOutlined';
/* harmony default export */ var icons_CloseOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(CloseOutlined_CloseOutlined));

/***/ }),

/***/ 1544:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ icons_ExclamationCircleOutlined; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
// This icon file is generated automatically.
var ExclamationCircleOutlined = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
      }
    }, {
      "tag": "path",
      "attrs": {
        "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"
      }
    }]
  },
  "name": "exclamation-circle",
  "theme": "outlined"
};
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(2361);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_ExclamationCircleOutlined
  }));
};
ExclamationCircleOutlined_ExclamationCircleOutlined.displayName = 'ExclamationCircleOutlined';
/* harmony default export */ var icons_ExclamationCircleOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined));

/***/ }),

/***/ 6416:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ icons_InfoCircleOutlined; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/InfoCircleOutlined.js
// This icon file is generated automatically.
var InfoCircleOutlined = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
      }
    }, {
      "tag": "path",
      "attrs": {
        "d": "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"
      }
    }]
  },
  "name": "info-circle",
  "theme": "outlined"
};
/* harmony default export */ var asn_InfoCircleOutlined = (InfoCircleOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(2361);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/InfoCircleOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var InfoCircleOutlined_InfoCircleOutlined = function InfoCircleOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_InfoCircleOutlined
  }));
};
InfoCircleOutlined_InfoCircleOutlined.displayName = 'InfoCircleOutlined';
/* harmony default export */ var icons_InfoCircleOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(InfoCircleOutlined_InfoCircleOutlined));

/***/ }),

/***/ 5730:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ icons_LoadingOutlined; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/LoadingOutlined.js
// This icon file is generated automatically.
var LoadingOutlined = {
  "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"
};
/* harmony default export */ var asn_LoadingOutlined = (LoadingOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(2361);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/LoadingOutlined.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var LoadingOutlined_LoadingOutlined = function LoadingOutlined(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_LoadingOutlined
  }));
};
LoadingOutlined_LoadingOutlined.displayName = 'LoadingOutlined';
/* harmony default export */ var icons_LoadingOutlined = (/*#__PURE__*/_react_18_2_0_react.forwardRef(LoadingOutlined_LoadingOutlined));

/***/ }),

/***/ 2235:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   T6: function() { return /* binding */ convertHexToDecimal; },
/* harmony export */   VD: function() { return /* binding */ parseIntFromHex; },
/* harmony export */   WE: function() { return /* binding */ hsvToRgb; },
/* harmony export */   Yt: function() { return /* binding */ numberInputToObject; },
/* harmony export */   lC: function() { return /* binding */ rgbToHsl; },
/* harmony export */   py: function() { return /* binding */ rgbToHsv; },
/* harmony export */   rW: function() { return /* binding */ rgbToRgb; },
/* harmony export */   s: function() { return /* binding */ rgbaToHex; },
/* harmony export */   ve: function() { return /* binding */ hslToRgb; },
/* harmony export */   vq: function() { return /* binding */ rgbToHex; }
/* harmony export */ });
/* unused harmony exports rgbaToArgbHex, convertDecimalToHex */
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7024);

// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
/**
 * Handle bounds / percentage checking to conform to CSS color spec
 * <http://www.w3.org/TR/css3-color/>
 * *Assumes:* r, g, b in [0, 255] or [0, 1]
 * *Returns:* { r, g, b } in [0, 255]
 */
function rgbToRgb(r, g, b) {
  return {
    r: (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(r, 255) * 255,
    g: (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(g, 255) * 255,
    b: (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(b, 255) * 255
  };
}
/**
 * Converts an RGB color value to HSL.
 * *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
 * *Returns:* { h, s, l } in [0,1]
 */
function rgbToHsl(r, g, b) {
  r = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(r, 255);
  g = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(g, 255);
  b = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(b, 255);
  var max = Math.max(r, g, b);
  var min = Math.min(r, g, b);
  var h = 0;
  var s = 0;
  var l = (max + min) / 2;
  if (max === min) {
    s = 0;
    h = 0; // achromatic
  } else {
    var d = max - min;
    s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
    switch (max) {
      case r:
        h = (g - b) / d + (g < b ? 6 : 0);
        break;
      case g:
        h = (b - r) / d + 2;
        break;
      case b:
        h = (r - g) / d + 4;
        break;
      default:
        break;
    }
    h /= 6;
  }
  return {
    h: h,
    s: s,
    l: l
  };
}
function hue2rgb(p, q, t) {
  if (t < 0) {
    t += 1;
  }
  if (t > 1) {
    t -= 1;
  }
  if (t < 1 / 6) {
    return p + (q - p) * (6 * t);
  }
  if (t < 1 / 2) {
    return q;
  }
  if (t < 2 / 3) {
    return p + (q - p) * (2 / 3 - t) * 6;
  }
  return p;
}
/**
 * Converts an HSL color value to RGB.
 *
 * *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
 * *Returns:* { r, g, b } in the set [0, 255]
 */
function hslToRgb(h, s, l) {
  var r;
  var g;
  var b;
  h = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(h, 360);
  s = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(s, 100);
  l = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(l, 100);
  if (s === 0) {
    // achromatic
    g = l;
    b = l;
    r = l;
  } else {
    var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
    var p = 2 * l - q;
    r = hue2rgb(p, q, h + 1 / 3);
    g = hue2rgb(p, q, h);
    b = hue2rgb(p, q, h - 1 / 3);
  }
  return {
    r: r * 255,
    g: g * 255,
    b: b * 255
  };
}
/**
 * Converts an RGB color value to HSV
 *
 * *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
 * *Returns:* { h, s, v } in [0,1]
 */
function rgbToHsv(r, g, b) {
  r = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(r, 255);
  g = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(g, 255);
  b = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(b, 255);
  var max = Math.max(r, g, b);
  var min = Math.min(r, g, b);
  var h = 0;
  var v = max;
  var d = max - min;
  var s = max === 0 ? 0 : d / max;
  if (max === min) {
    h = 0; // achromatic
  } else {
    switch (max) {
      case r:
        h = (g - b) / d + (g < b ? 6 : 0);
        break;
      case g:
        h = (b - r) / d + 2;
        break;
      case b:
        h = (r - g) / d + 4;
        break;
      default:
        break;
    }
    h /= 6;
  }
  return {
    h: h,
    s: s,
    v: v
  };
}
/**
 * Converts an HSV color value to RGB.
 *
 * *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
 * *Returns:* { r, g, b } in the set [0, 255]
 */
function hsvToRgb(h, s, v) {
  h = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(h, 360) * 6;
  s = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(s, 100);
  v = (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .bound01 */ .sh)(v, 100);
  var i = Math.floor(h);
  var f = h - i;
  var p = v * (1 - s);
  var q = v * (1 - f * s);
  var t = v * (1 - (1 - f) * s);
  var mod = i % 6;
  var r = [v, q, p, p, t, v][mod];
  var g = [t, v, v, q, p, p][mod];
  var b = [p, p, t, v, v, q][mod];
  return {
    r: r * 255,
    g: g * 255,
    b: b * 255
  };
}
/**
 * Converts an RGB color to hex
 *
 * Assumes r, g, and b are contained in the set [0, 255]
 * Returns a 3 or 6 character hex
 */
function rgbToHex(r, g, b, allow3Char) {
  var hex = [(0,_util__WEBPACK_IMPORTED_MODULE_0__/* .pad2 */ .FZ)(Math.round(r).toString(16)), (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .pad2 */ .FZ)(Math.round(g).toString(16)), (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .pad2 */ .FZ)(Math.round(b).toString(16))];
  // Return a 3 character hex if possible
  if (allow3Char && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1))) {
    return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
  }
  return hex.join('');
}
/**
 * Converts an RGBA color plus alpha transparency to hex
 *
 * Assumes r, g, b are contained in the set [0, 255] and
 * a in [0, 1]. Returns a 4 or 8 character rgba hex
 */
// eslint-disable-next-line max-params
function rgbaToHex(r, g, b, a, allow4Char) {
  var hex = [(0,_util__WEBPACK_IMPORTED_MODULE_0__/* .pad2 */ .FZ)(Math.round(r).toString(16)), (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .pad2 */ .FZ)(Math.round(g).toString(16)), (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .pad2 */ .FZ)(Math.round(b).toString(16)), (0,_util__WEBPACK_IMPORTED_MODULE_0__/* .pad2 */ .FZ)(convertDecimalToHex(a))];
  // Return a 4 character hex if possible
  if (allow4Char && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1)) && hex[3].startsWith(hex[3].charAt(1))) {
    return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
  }
  return hex.join('');
}
/**
 * Converts an RGBA color to an ARGB Hex8 string
 * Rarely used, but required for "toFilter()"
 */
function rgbaToArgbHex(r, g, b, a) {
  var hex = [pad2(convertDecimalToHex(a)), pad2(Math.round(r).toString(16)), pad2(Math.round(g).toString(16)), pad2(Math.round(b).toString(16))];
  return hex.join('');
}
/** Converts a decimal to a hex value */
function convertDecimalToHex(d) {
  return Math.round(parseFloat(d) * 255).toString(16);
}
/** Converts a hex value to a decimal */
function convertHexToDecimal(h) {
  return parseIntFromHex(h) / 255;
}
/** Parse a base-16 hex value into a base-10 integer */
function parseIntFromHex(val) {
  return parseInt(val, 16);
}
function numberInputToObject(color) {
  return {
    r: color >> 16,
    g: (color & 0xff00) >> 8,
    b: color & 0xff
  };
}

/***/ }),

/***/ 6175:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   R: function() { return /* binding */ names; }
/* harmony export */ });
// https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json
/**
 * @hidden
 */
var names = {
  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'
};

/***/ }),

/***/ 7870:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   uA: function() { return /* binding */ inputToRGB; }
/* harmony export */ });
/* unused harmony exports stringInputToObject, isValidCSSUnit */
/* harmony import */ var _conversion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2235);
/* harmony import */ var _css_color_names__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6175);
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7024);
/* eslint-disable @typescript-eslint/no-redundant-type-constituents */



/**
 * Given a string or object, convert that input to RGB
 *
 * Possible string inputs:
 * ```
 * "red"
 * "#f00" or "f00"
 * "#ff0000" or "ff0000"
 * "#ff000000" or "ff000000"
 * "rgb 255 0 0" or "rgb (255, 0, 0)"
 * "rgb 1.0 0 0" or "rgb (1, 0, 0)"
 * "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
 * "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
 * "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
 * "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
 * "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
 * ```
 */
function inputToRGB(color) {
  var rgb = {
    r: 0,
    g: 0,
    b: 0
  };
  var a = 1;
  var s = null;
  var v = null;
  var l = null;
  var ok = false;
  var format = false;
  if (typeof color === 'string') {
    color = stringInputToObject(color);
  }
  if (typeof color === 'object') {
    if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
      rgb = (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .rgbToRgb */ .rW)(color.r, color.g, color.b);
      ok = true;
      format = String(color.r).substr(-1) === '%' ? 'prgb' : 'rgb';
    } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
      s = (0,_util__WEBPACK_IMPORTED_MODULE_1__/* .convertToPercentage */ .JX)(color.s);
      v = (0,_util__WEBPACK_IMPORTED_MODULE_1__/* .convertToPercentage */ .JX)(color.v);
      rgb = (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .hsvToRgb */ .WE)(color.h, s, v);
      ok = true;
      format = 'hsv';
    } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
      s = (0,_util__WEBPACK_IMPORTED_MODULE_1__/* .convertToPercentage */ .JX)(color.s);
      l = (0,_util__WEBPACK_IMPORTED_MODULE_1__/* .convertToPercentage */ .JX)(color.l);
      rgb = (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .hslToRgb */ .ve)(color.h, s, l);
      ok = true;
      format = 'hsl';
    }
    if (Object.prototype.hasOwnProperty.call(color, 'a')) {
      a = color.a;
    }
  }
  a = (0,_util__WEBPACK_IMPORTED_MODULE_1__/* .boundAlpha */ .Yq)(a);
  return {
    ok: ok,
    format: color.format || format,
    r: Math.min(255, Math.max(rgb.r, 0)),
    g: Math.min(255, Math.max(rgb.g, 0)),
    b: Math.min(255, Math.max(rgb.b, 0)),
    a: a
  };
}
// <http://www.w3.org/TR/css3-values/#integers>
var CSS_INTEGER = '[-\\+]?\\d+%?';
// <http://www.w3.org/TR/css3-values/#number-value>
var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
// Allow positive/negative integer/number.  Don't capture the either/or, just the entire outcome.
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
// Actual matching.
// Parentheses and commas are optional, but not required.
// Whitespace can take the place of commas or opening paren
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
var matchers = {
  CSS_UNIT: new RegExp(CSS_UNIT),
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
  rgba: new RegExp('rgba' + PERMISSIVE_MATCH4),
  hsl: new RegExp('hsl' + PERMISSIVE_MATCH3),
  hsla: new RegExp('hsla' + PERMISSIVE_MATCH4),
  hsv: new RegExp('hsv' + PERMISSIVE_MATCH3),
  hsva: new RegExp('hsva' + PERMISSIVE_MATCH4),
  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})$/
};
/**
 * Permissive string parsing.  Take in a number of formats, and output an object
 * based on detected format.  Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
 */
function stringInputToObject(color) {
  color = color.trim().toLowerCase();
  if (color.length === 0) {
    return false;
  }
  var named = false;
  if (_css_color_names__WEBPACK_IMPORTED_MODULE_2__/* .names */ .R[color]) {
    color = _css_color_names__WEBPACK_IMPORTED_MODULE_2__/* .names */ .R[color];
    named = true;
  } else if (color === 'transparent') {
    return {
      r: 0,
      g: 0,
      b: 0,
      a: 0,
      format: 'name'
    };
  }
  // Try to match string input using regular expressions.
  // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
  // Just return an object and let the conversion functions handle that.
  // This way the result will be the same whether the tinycolor is initialized with string or object.
  var match = matchers.rgb.exec(color);
  if (match) {
    return {
      r: match[1],
      g: match[2],
      b: match[3]
    };
  }
  match = matchers.rgba.exec(color);
  if (match) {
    return {
      r: match[1],
      g: match[2],
      b: match[3],
      a: match[4]
    };
  }
  match = matchers.hsl.exec(color);
  if (match) {
    return {
      h: match[1],
      s: match[2],
      l: match[3]
    };
  }
  match = matchers.hsla.exec(color);
  if (match) {
    return {
      h: match[1],
      s: match[2],
      l: match[3],
      a: match[4]
    };
  }
  match = matchers.hsv.exec(color);
  if (match) {
    return {
      h: match[1],
      s: match[2],
      v: match[3]
    };
  }
  match = matchers.hsva.exec(color);
  if (match) {
    return {
      h: match[1],
      s: match[2],
      v: match[3],
      a: match[4]
    };
  }
  match = matchers.hex8.exec(color);
  if (match) {
    return {
      r: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[1]),
      g: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[2]),
      b: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[3]),
      a: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .convertHexToDecimal */ .T6)(match[4]),
      format: named ? 'name' : 'hex8'
    };
  }
  match = matchers.hex6.exec(color);
  if (match) {
    return {
      r: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[1]),
      g: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[2]),
      b: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[3]),
      format: named ? 'name' : 'hex'
    };
  }
  match = matchers.hex4.exec(color);
  if (match) {
    return {
      r: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[1] + match[1]),
      g: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[2] + match[2]),
      b: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[3] + match[3]),
      a: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .convertHexToDecimal */ .T6)(match[4] + match[4]),
      format: named ? 'name' : 'hex8'
    };
  }
  match = matchers.hex3.exec(color);
  if (match) {
    return {
      r: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[1] + match[1]),
      g: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[2] + match[2]),
      b: (0,_conversion__WEBPACK_IMPORTED_MODULE_0__/* .parseIntFromHex */ .VD)(match[3] + match[3]),
      format: named ? 'name' : 'hex'
    };
  }
  return false;
}
/**
 * Check to see if it looks like a CSS unit
 * (see `matchers` above for definition).
 */
function isValidCSSUnit(color) {
  return Boolean(matchers.CSS_UNIT.exec(String(color)));
}

/***/ }),

/***/ 7024:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   FZ: function() { return /* binding */ pad2; },
/* harmony export */   JX: function() { return /* binding */ convertToPercentage; },
/* harmony export */   V2: function() { return /* binding */ clamp01; },
/* harmony export */   Yq: function() { return /* binding */ boundAlpha; },
/* harmony export */   sh: function() { return /* binding */ bound01; }
/* harmony export */ });
/* unused harmony exports isOnePointZero, isPercentage */
/**
 * Take input from [0, n] and return it as [0, 1]
 * @hidden
 */
function bound01(n, max) {
  if (isOnePointZero(n)) {
    n = '100%';
  }
  var isPercent = isPercentage(n);
  n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));
  // Automatically convert percentage into number
  if (isPercent) {
    n = parseInt(String(n * max), 10) / 100;
  }
  // Handle floating point rounding errors
  if (Math.abs(n - max) < 0.000001) {
    return 1;
  }
  // Convert into [0, 1] range if it isn't already
  if (max === 360) {
    // If n is a hue given in degrees,
    // wrap around out-of-range values into [0, 360] range
    // then convert into [0, 1].
    n = (n < 0 ? n % max + max : n % max) / parseFloat(String(max));
  } else {
    // If n not a hue given in degrees
    // Convert into [0, 1] range if it isn't already.
    n = n % max / parseFloat(String(max));
  }
  return n;
}
/**
 * Force a number between 0 and 1
 * @hidden
 */
function clamp01(val) {
  return Math.min(1, Math.max(0, val));
}
/**
 * Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
 * <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
 * @hidden
 */
function isOnePointZero(n) {
  return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;
}
/**
 * Check to see if string passed in is a percentage
 * @hidden
 */
function isPercentage(n) {
  return typeof n === 'string' && n.indexOf('%') !== -1;
}
/**
 * Return a valid alpha value [0,1] with all invalid values being set to 1
 * @hidden
 */
function boundAlpha(a) {
  a = parseFloat(a);
  if (isNaN(a) || a < 0 || a > 1) {
    a = 1;
  }
  return a;
}
/**
 * Replace a decimal with it's percentage value
 * @hidden
 */
function convertToPercentage(n) {
  if (n <= 1) {
    return "".concat(Number(n) * 100, "%");
  }
  return n;
}
/**
 * Force a hex value to have 2 characters
 * @hidden
 */
function pad2(c) {
  return c.length === 1 ? '0' + c : String(c);
}

/***/ }),

/***/ 1175:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   mL: function() { return /* binding */ getTransitionName; },
/* harmony export */   q0: function() { return /* binding */ getTransitionDirection; }
/* harmony export */ });
/* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8186);

// ================== Collapse Motion ==================
var getCollapsedHeight = function getCollapsedHeight() {
  return {
    height: 0,
    opacity: 0
  };
};
var getRealHeight = function getRealHeight(node) {
  var scrollHeight = node.scrollHeight;
  return {
    height: scrollHeight,
    opacity: 1
  };
};
var getCurrentHeight = function getCurrentHeight(node) {
  return {
    height: node ? node.offsetHeight : 0
  };
};
var skipOpacityTransition = function skipOpacityTransition(_, event) {
  return (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height';
};
var collapseMotion = {
  motionName: 'ant-motion-collapse',
  onAppearStart: getCollapsedHeight,
  onEnterStart: getCollapsedHeight,
  onAppearActive: getRealHeight,
  onEnterActive: getRealHeight,
  onLeaveStart: getCurrentHeight,
  onLeaveActive: getCollapsedHeight,
  onAppearEnd: skipOpacityTransition,
  onEnterEnd: skipOpacityTransition,
  onLeaveEnd: skipOpacityTransition,
  motionDeadline: 500
};
var SelectPlacements = (0,_type__WEBPACK_IMPORTED_MODULE_0__/* .tuple */ .b)('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
var getTransitionDirection = function getTransitionDirection(placement) {
  if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {
    return "slide-down";
  }
  return "slide-up";
};
var getTransitionName = function getTransitionName(rootPrefixCls, motion, transitionName) {
  if (transitionName !== undefined) {
    return transitionName;
  }
  return "".concat(rootPrefixCls, "-").concat(motion);
};

/* harmony default export */ __webpack_exports__.ZP = (collapseMotion);

/***/ }),

/***/ 5390:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   M2: function() { return /* binding */ isFragment; },
/* harmony export */   Tm: function() { return /* binding */ cloneElement; },
/* harmony export */   l$: function() { return /* binding */ isValidElement; }
/* harmony export */ });
/* unused harmony export replaceElement */
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);

var isValidElement = react__WEBPACK_IMPORTED_MODULE_0__.isValidElement;

function isFragment(child) {
  return child && isValidElement(child) && child.type === react__WEBPACK_IMPORTED_MODULE_0__.Fragment;
}
function replaceElement(element, replacement, props) {
  if (!isValidElement(element)) {
    return replacement;
  }
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(element, typeof props === 'function' ? props(element.props || {}) : props);
}
function cloneElement(element, props) {
  return replaceElement(element, element, props);
}

/***/ }),

/***/ 3010:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   fk: function() { return /* binding */ detectFlexGapSupported; },
/* harmony export */   jD: function() { return /* binding */ canUseDocElement; }
/* harmony export */ });
/* harmony import */ var rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6665);


var canUseDocElement = function canUseDocElement() {
  return (0,rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)() && window.document.documentElement;
};

var flexGapSupported;
var detectFlexGapSupported = function detectFlexGapSupported() {
  if (!canUseDocElement()) {
    return false;
  }
  if (flexGapSupported !== undefined) {
    return flexGapSupported;
  }
  // create flex container with row-gap set
  var flex = document.createElement('div');
  flex.style.display = 'flex';
  flex.style.flexDirection = 'column';
  flex.style.rowGap = '1px';
  // create two, elements inside it
  flex.appendChild(document.createElement('div'));
  flex.appendChild(document.createElement('div'));
  // append to the DOM (needed to obtain scrollHeight)
  document.body.appendChild(flex);
  flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap
  document.body.removeChild(flex);
  return flexGapSupported;
};

/***/ }),

/***/ 8186:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   b: function() { return /* binding */ tuple; }
/* harmony export */ });
/* unused harmony export tupleNum */
// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
var tuple = function tuple() {
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
    args[_key] = arguments[_key];
  }
  return args;
};
var tupleNum = function tupleNum() {
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
    args[_key2] = arguments[_key2];
  }
  return args;
};

/***/ }),

/***/ 1873:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ wave; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(4816);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(5292);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/assertThisInitialized.js
var assertThisInitialized = __webpack_require__(2901);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(8863);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(8271);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/dynamicCSS.js
var dynamicCSS = __webpack_require__(7344);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/ref.js
var es_ref = __webpack_require__(1212);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/context.js
var context = __webpack_require__(6563);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/raf.js
var raf = __webpack_require__(9906);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/raf.js

var id = 0;
var ids = {};
// Support call raf with delay specified frame
function wrapperRaf(callback) {
  var delayFrames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
  var myId = id++;
  var restFrames = delayFrames;
  function internalCallback() {
    restFrames -= 1;
    if (restFrames <= 0) {
      callback();
      delete ids[myId];
    } else {
      ids[myId] = (0,raf/* default */.Z)(internalCallback);
    }
  }
  ids[myId] = (0,raf/* default */.Z)(internalCallback);
  return myId;
}
wrapperRaf.cancel = function cancel(pid) {
  if (pid === undefined) return;
  raf/* default */.Z.cancel(ids[pid]);
  delete ids[pid];
};
wrapperRaf.ids = ids; // export this for test usage
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(5390);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/wave.js











var styleForPseudo;
// Where el is the DOM element you'd like to test for visibility
function isHidden(element) {
  if (false) {}
  return !element || element.offsetParent === null || element.hidden;
}
function getValidateContainer(nodeRoot) {
  if (nodeRoot instanceof Document) {
    return nodeRoot.body;
  }
  return Array.from(nodeRoot.childNodes).find(function (ele) {
    return (ele === null || ele === void 0 ? void 0 : ele.nodeType) === Node.ELEMENT_NODE;
  });
}
function isNotGrey(color) {
  // eslint-disable-next-line no-useless-escape
  var match = (color || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);
  if (match && match[1] && match[2] && match[3]) {
    return !(match[1] === match[2] && match[2] === match[3]);
  }
  return true;
}
var Wave = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(Wave, _React$Component);
  var _super = (0,createSuper/* default */.Z)(Wave);
  function Wave() {
    var _this;
    (0,classCallCheck/* default */.Z)(this, Wave);
    _this = _super.apply(this, arguments);
    _this.containerRef = /*#__PURE__*/_react_18_2_0_react.createRef();
    _this.animationStart = false;
    _this.destroyed = false;
    _this.onClick = function (node, waveColor) {
      var _a, _b;
      var _this$props = _this.props,
        insertExtraNode = _this$props.insertExtraNode,
        disabled = _this$props.disabled;
      if (disabled || !node || isHidden(node) || node.className.includes('-leave')) {
        return;
      }
      _this.extraNode = document.createElement('div');
      var _assertThisInitialize = (0,assertThisInitialized/* default */.Z)(_this),
        extraNode = _assertThisInitialize.extraNode;
      var getPrefixCls = _this.context.getPrefixCls;
      extraNode.className = "".concat(getPrefixCls(''), "-click-animating-node");
      var attributeName = _this.getAttributeName();
      node.setAttribute(attributeName, 'true');
      // Not white or transparent or grey
      if (waveColor && waveColor !== '#fff' && waveColor !== '#ffffff' && waveColor !== 'rgb(255, 255, 255)' && waveColor !== 'rgba(255, 255, 255, 1)' && isNotGrey(waveColor) && !/rgba\((?:\d*, ){3}0\)/.test(waveColor) &&
      // any transparent rgba color
      waveColor !== 'transparent') {
        extraNode.style.borderColor = waveColor;
        var nodeRoot = ((_a = node.getRootNode) === null || _a === void 0 ? void 0 : _a.call(node)) || node.ownerDocument;
        var nodeBody = (_b = getValidateContainer(nodeRoot)) !== null && _b !== void 0 ? _b : nodeRoot;
        styleForPseudo = (0,dynamicCSS/* updateCSS */.hq)("\n      [".concat(getPrefixCls(''), "-click-animating-without-extra-node='true']::after, .").concat(getPrefixCls(''), "-click-animating-node {\n        --antd-wave-shadow-color: ").concat(waveColor, ";\n      }"), 'antd-wave', {
          csp: _this.csp,
          attachTo: nodeBody
        });
      }
      if (insertExtraNode) {
        node.appendChild(extraNode);
      }
      ['transition', 'animation'].forEach(function (name) {
        node.addEventListener("".concat(name, "start"), _this.onTransitionStart);
        node.addEventListener("".concat(name, "end"), _this.onTransitionEnd);
      });
    };
    _this.onTransitionStart = function (e) {
      if (_this.destroyed) {
        return;
      }
      var node = _this.containerRef.current;
      if (!e || e.target !== node || _this.animationStart) {
        return;
      }
      _this.resetEffect(node);
    };
    _this.onTransitionEnd = function (e) {
      if (!e || e.animationName !== 'fadeEffect') {
        return;
      }
      _this.resetEffect(e.target);
    };
    _this.bindAnimationEvent = function (node) {
      if (!node || !node.getAttribute || node.getAttribute('disabled') || node.className.includes('disabled')) {
        return;
      }
      var onClick = function onClick(e) {
        // Fix radio button click twice
        if (e.target.tagName === 'INPUT' || isHidden(e.target)) {
          return;
        }
        _this.resetEffect(node);
        // Get wave color from target
        var waveColor = getComputedStyle(node).getPropertyValue('border-top-color') ||
        // Firefox Compatible
        getComputedStyle(node).getPropertyValue('border-color') || getComputedStyle(node).getPropertyValue('background-color');
        _this.clickWaveTimeoutId = window.setTimeout(function () {
          return _this.onClick(node, waveColor);
        }, 0);
        wrapperRaf.cancel(_this.animationStartId);
        _this.animationStart = true;
        // Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.
        _this.animationStartId = wrapperRaf(function () {
          _this.animationStart = false;
        }, 10);
      };
      node.addEventListener('click', onClick, true);
      return {
        cancel: function cancel() {
          node.removeEventListener('click', onClick, true);
        }
      };
    };
    _this.renderWave = function (_ref) {
      var csp = _ref.csp;
      var children = _this.props.children;
      _this.csp = csp;
      if (! /*#__PURE__*/_react_18_2_0_react.isValidElement(children)) return children;
      var ref = _this.containerRef;
      if ((0,es_ref/* supportRef */.Yr)(children)) {
        ref = (0,es_ref/* composeRef */.sQ)(children.ref, _this.containerRef);
      }
      return (0,reactNode/* cloneElement */.Tm)(children, {
        ref: ref
      });
    };
    return _this;
  }
  (0,createClass/* default */.Z)(Wave, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.destroyed = false;
      var node = this.containerRef.current;
      if (!node || node.nodeType !== 1) {
        return;
      }
      this.instance = this.bindAnimationEvent(node);
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      if (this.instance) {
        this.instance.cancel();
      }
      if (this.clickWaveTimeoutId) {
        clearTimeout(this.clickWaveTimeoutId);
      }
      this.destroyed = true;
    }
  }, {
    key: "getAttributeName",
    value: function getAttributeName() {
      var getPrefixCls = this.context.getPrefixCls;
      var insertExtraNode = this.props.insertExtraNode;
      return insertExtraNode ? "".concat(getPrefixCls(''), "-click-animating") : "".concat(getPrefixCls(''), "-click-animating-without-extra-node");
    }
  }, {
    key: "resetEffect",
    value: function resetEffect(node) {
      var _this2 = this;
      if (!node || node === this.extraNode || !(node instanceof Element)) {
        return;
      }
      var insertExtraNode = this.props.insertExtraNode;
      var attributeName = this.getAttributeName();
      node.setAttribute(attributeName, 'false'); // edge has bug on `removeAttribute` #14466
      if (styleForPseudo) {
        styleForPseudo.innerHTML = '';
      }
      if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {
        node.removeChild(this.extraNode);
      }
      ['transition', 'animation'].forEach(function (name) {
        node.removeEventListener("".concat(name, "start"), _this2.onTransitionStart);
        node.removeEventListener("".concat(name, "end"), _this2.onTransitionEnd);
      });
    }
  }, {
    key: "render",
    value: function render() {
      return /*#__PURE__*/_react_18_2_0_react.createElement(context/* ConfigConsumer */.C, null, this.renderWave);
    }
  }]);
  return Wave;
}(_react_18_2_0_react.Component);
Wave.contextType = context/* ConfigContext */.E_;
/* harmony default export */ var wave = (Wave);

/***/ }),

/***/ 5539:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  n: function() { return /* binding */ convertLegacyProps; },
  Z: function() { return /* binding */ button_button; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(2782);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(7258);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/omit.js
var omit = __webpack_require__(9287);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/context.js
var context = __webpack_require__(6563);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(2146);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/SizeContext.js
var SizeContext = __webpack_require__(2340);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/space/Compact.js
var Compact = __webpack_require__(7587);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/reactNode.js
var reactNode = __webpack_require__(5390);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/type.js
var type = __webpack_require__(8186);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/wave.js + 1 modules
var wave = __webpack_require__(1873);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/button/button-group.js


var __rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};




var GroupSizeContext = /*#__PURE__*/_react_18_2_0_react.createContext(undefined);
var ButtonGroup = function ButtonGroup(props) {
  var _classNames;
  var _React$useContext = _react_18_2_0_react.useContext(context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  var customizePrefixCls = props.prefixCls,
    size = props.size,
    className = props.className,
    others = __rest(props, ["prefixCls", "size", "className"]);
  var prefixCls = getPrefixCls('btn-group', customizePrefixCls);
  // large => lg
  // small => sm
  var sizeCls = '';
  switch (size) {
    case 'large':
      sizeCls = 'lg';
      break;
    case 'small':
      sizeCls = 'sm';
      break;
    case 'middle':
    case undefined:
      break;
    default:
       false ? 0 : void 0;
  }
  var classes = _classnames_2_3_2_classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
  return /*#__PURE__*/_react_18_2_0_react.createElement(GroupSizeContext.Provider, {
    value: size
  }, /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({}, others, {
    className: classes
  })));
};
/* harmony default export */ var button_group = (ButtonGroup);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
var LoadingOutlined = __webpack_require__(5730);
// EXTERNAL MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/index.js + 12 modules
var es = __webpack_require__(158);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/button/LoadingIcon.js



var getCollapsedWidth = function getCollapsedWidth() {
  return {
    width: 0,
    opacity: 0,
    transform: 'scale(0)'
  };
};
var getRealWidth = function getRealWidth(node) {
  return {
    width: node.scrollWidth,
    opacity: 1,
    transform: 'scale(1)'
  };
};
var LoadingIcon = function LoadingIcon(_ref) {
  var prefixCls = _ref.prefixCls,
    loading = _ref.loading,
    existIcon = _ref.existIcon;
  var visible = !!loading;
  if (existIcon) {
    return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-loading-icon")
    }, /*#__PURE__*/_react_18_2_0_react.createElement(LoadingOutlined/* default */.Z, null));
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(es/* default */.ZP, {
    visible: visible,
    // We do not really use this motionName
    motionName: "".concat(prefixCls, "-loading-icon-motion"),
    removeOnLeave: true,
    onAppearStart: getCollapsedWidth,
    onAppearActive: getRealWidth,
    onEnterStart: getCollapsedWidth,
    onEnterActive: getRealWidth,
    onLeaveStart: getRealWidth,
    onLeaveActive: getCollapsedWidth
  }, function (_ref2, ref) {
    var className = _ref2.className,
      style = _ref2.style;
    return /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-loading-icon"),
      style: style,
      ref: ref
    }, /*#__PURE__*/_react_18_2_0_react.createElement(LoadingOutlined/* default */.Z, {
      className: className
    }));
  });
};
/* harmony default export */ var button_LoadingIcon = (LoadingIcon);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/button/button.js




var button_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};
/* eslint-disable react/button-has-type */













var rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
var isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
function isString(str) {
  return typeof str === 'string';
}
function isUnBorderedButtonType(type) {
  return type === 'text' || type === 'link';
}
// Insert one space between two chinese characters automatically.
function insertSpace(child, needInserted) {
  // Check the child if is undefined or null.
  if (child === null || child === undefined) {
    return;
  }
  var SPACE = needInserted ? ' ' : '';
  // strictNullChecks oops.
  if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {
    return (0,reactNode/* cloneElement */.Tm)(child, {
      children: child.props.children.split('').join(SPACE)
    });
  }
  if (typeof child === 'string') {
    return isTwoCNChar(child) ? /*#__PURE__*/_react_18_2_0_react.createElement("span", null, child.split('').join(SPACE)) : /*#__PURE__*/_react_18_2_0_react.createElement("span", null, child);
  }
  if ((0,reactNode/* isFragment */.M2)(child)) {
    return /*#__PURE__*/_react_18_2_0_react.createElement("span", null, child);
  }
  return child;
}
function spaceChildren(children, needInserted) {
  var isPrevChildPure = false;
  var childList = [];
  _react_18_2_0_react.Children.forEach(children, function (child) {
    var type = (0,esm_typeof/* default */.Z)(child);
    var isCurrentChildPure = type === 'string' || type === 'number';
    if (isPrevChildPure && isCurrentChildPure) {
      var lastIndex = childList.length - 1;
      var lastChild = childList[lastIndex];
      childList[lastIndex] = "".concat(lastChild).concat(child);
    } else {
      childList.push(child);
    }
    isPrevChildPure = isCurrentChildPure;
  });
  // Pass to React.Children.map to auto fill key
  return _react_18_2_0_react.Children.map(childList, function (child) {
    return insertSpace(child, needInserted);
  });
}
var ButtonTypes = (0,type/* tuple */.b)('default', 'primary', 'ghost', 'dashed', 'link', 'text');
var ButtonShapes = (0,type/* tuple */.b)('default', 'circle', 'round');
var ButtonHTMLTypes = (0,type/* tuple */.b)('submit', 'button', 'reset');
function convertLegacyProps(type) {
  if (type === 'danger') {
    return {
      danger: true
    };
  }
  return {
    type: type
  };
}
var InternalButton = function InternalButton(props, ref) {
  var _classNames;
  var _props$loading = props.loading,
    loading = _props$loading === void 0 ? false : _props$loading,
    customizePrefixCls = props.prefixCls,
    _props$type = props.type,
    type = _props$type === void 0 ? 'default' : _props$type,
    danger = props.danger,
    _props$shape = props.shape,
    shape = _props$shape === void 0 ? 'default' : _props$shape,
    customizeSize = props.size,
    customDisabled = props.disabled,
    className = props.className,
    children = props.children,
    icon = props.icon,
    _props$ghost = props.ghost,
    ghost = _props$ghost === void 0 ? false : _props$ghost,
    _props$block = props.block,
    block = _props$block === void 0 ? false : _props$block,
    _props$htmlType = props.htmlType,
    htmlType = _props$htmlType === void 0 ? 'button' : _props$htmlType,
    rest = button_rest(props, ["loading", "prefixCls", "type", "danger", "shape", "size", "disabled", "className", "children", "icon", "ghost", "block", "htmlType"]);
  var size = _react_18_2_0_react.useContext(SizeContext/* default */.Z);
  // ===================== Disabled =====================
  var disabled = _react_18_2_0_react.useContext(DisabledContext/* default */.Z);
  var mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
  var groupSize = _react_18_2_0_react.useContext(GroupSizeContext);
  var _React$useState = _react_18_2_0_react.useState(!!loading),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    innerLoading = _React$useState2[0],
    setLoading = _React$useState2[1];
  var _React$useState3 = _react_18_2_0_react.useState(false),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    hasTwoCNChar = _React$useState4[0],
    setHasTwoCNChar = _React$useState4[1];
  var _React$useContext = _react_18_2_0_react.useContext(context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    autoInsertSpaceInButton = _React$useContext.autoInsertSpaceInButton,
    direction = _React$useContext.direction;
  var buttonRef = ref || /*#__PURE__*/_react_18_2_0_react.createRef();
  var isNeedInserted = function isNeedInserted() {
    return _react_18_2_0_react.Children.count(children) === 1 && !icon && !isUnBorderedButtonType(type);
  };
  var fixTwoCNChar = function fixTwoCNChar() {
    // Fix for HOC usage like <FormatMessage />
    if (!buttonRef || !buttonRef.current || autoInsertSpaceInButton === false) {
      return;
    }
    var buttonText = buttonRef.current.textContent;
    if (isNeedInserted() && isTwoCNChar(buttonText)) {
      if (!hasTwoCNChar) {
        setHasTwoCNChar(true);
      }
    } else if (hasTwoCNChar) {
      setHasTwoCNChar(false);
    }
  };
  // =============== Update Loading ===============
  var loadingOrDelay = typeof loading === 'boolean' ? loading : (loading === null || loading === void 0 ? void 0 : loading.delay) || true;
  _react_18_2_0_react.useEffect(function () {
    var delayTimer = null;
    if (typeof loadingOrDelay === 'number') {
      delayTimer = window.setTimeout(function () {
        delayTimer = null;
        setLoading(loadingOrDelay);
      }, loadingOrDelay);
    } else {
      setLoading(loadingOrDelay);
    }
    return function () {
      if (delayTimer) {
        // in order to not perform a React state update on an unmounted component
        // and clear timer after 'loadingOrDelay' updated.
        window.clearTimeout(delayTimer);
        delayTimer = null;
      }
    };
  }, [loadingOrDelay]);
  _react_18_2_0_react.useEffect(fixTwoCNChar, [buttonRef]);
  var handleClick = function handleClick(e) {
    var onClick = props.onClick;
    // https://github.com/ant-design/ant-design/issues/30207
    if (innerLoading || mergedDisabled) {
      e.preventDefault();
      return;
    }
    onClick === null || onClick === void 0 ? void 0 : onClick(e);
  };
   false ? 0 : void 0;
   false ? 0 : void 0;
  var prefixCls = getPrefixCls('btn', customizePrefixCls);
  var autoInsertSpace = autoInsertSpaceInButton !== false;
  var _useCompactItemContex = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction),
    compactSize = _useCompactItemContex.compactSize,
    compactItemClassnames = _useCompactItemContex.compactItemClassnames;
  var sizeClassNameMap = {
    large: 'lg',
    small: 'sm',
    middle: undefined
  };
  var sizeFullname = compactSize || groupSize || customizeSize || size;
  var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
  var iconType = innerLoading ? 'loading' : icon;
  var linkButtonRestProps = (0,omit/* default */.Z)(rest, ['navigate']);
  var classes = _classnames_2_3_2_classnames_default()(prefixCls, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(shape), shape !== 'default' && shape), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(type), type), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(sizeCls), sizeCls), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-icon-only"), !children && children !== 0 && !!iconType), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-background-ghost"), ghost && !isUnBorderedButtonType(type)), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-loading"), innerLoading), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-two-chinese-chars"), hasTwoCNChar && autoInsertSpace && !innerLoading), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-block"), block), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-dangerous"), !!danger), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), linkButtonRestProps.href !== undefined && mergedDisabled), _classNames), compactItemClassnames, className);
  var iconNode = icon && !innerLoading ? icon : /*#__PURE__*/_react_18_2_0_react.createElement(button_LoadingIcon, {
    existIcon: !!icon,
    prefixCls: prefixCls,
    loading: !!innerLoading
  });
  var kids = children || children === 0 ? spaceChildren(children, isNeedInserted() && autoInsertSpace) : null;
  if (linkButtonRestProps.href !== undefined) {
    return /*#__PURE__*/_react_18_2_0_react.createElement("a", (0,esm_extends/* default */.Z)({}, linkButtonRestProps, {
      className: classes,
      onClick: handleClick,
      ref: buttonRef
    }), iconNode, kids);
  }
  var buttonNode = /*#__PURE__*/_react_18_2_0_react.createElement("button", (0,esm_extends/* default */.Z)({}, rest, {
    type: htmlType,
    className: classes,
    onClick: handleClick,
    disabled: mergedDisabled,
    ref: buttonRef
  }), iconNode, kids);
  if (isUnBorderedButtonType(type)) {
    return buttonNode;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(wave/* default */.Z, {
    disabled: !!innerLoading
  }, buttonNode);
};
var Button = /*#__PURE__*/_react_18_2_0_react.forwardRef(InternalButton);
if (false) {}
Button.Group = button_group;
Button.__ANT_BUTTON = true;
/* harmony default export */ var button_button = (Button);

/***/ }),

/***/ 7788:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5539);

/* harmony default export */ __webpack_exports__.Z = (_button__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z);

/***/ }),

/***/ 2146:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   n: function() { return /* binding */ DisabledContextProvider; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);

var DisabledContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(false);
var DisabledContextProvider = function DisabledContextProvider(_ref) {
  var children = _ref.children,
    disabled = _ref.disabled;
  var originDisabled = react__WEBPACK_IMPORTED_MODULE_0__.useContext(DisabledContext);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(DisabledContext.Provider, {
    value: disabled !== null && disabled !== void 0 ? disabled : originDisabled
  }, children);
};
/* harmony default export */ __webpack_exports__.Z = (DisabledContext);

/***/ }),

/***/ 2340:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   q: function() { return /* binding */ SizeContextProvider; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);

var SizeContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(undefined);
var SizeContextProvider = function SizeContextProvider(_ref) {
  var children = _ref.children,
    size = _ref.size;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(SizeContext.Consumer, null, function (originSize) {
    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(SizeContext.Provider, {
      value: size || originSize
    }, children);
  });
};
/* harmony default export */ __webpack_exports__.Z = (SizeContext);

/***/ }),

/***/ 6563:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   C: function() { return /* binding */ ConfigConsumer; },
/* harmony export */   E_: function() { return /* binding */ ConfigContext; }
/* harmony export */ });
/* unused harmony export withConfigConsumer */
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);


var defaultGetPrefixCls = function defaultGetPrefixCls(suffixCls, customizePrefixCls) {
  if (customizePrefixCls) return customizePrefixCls;
  return suffixCls ? "ant-".concat(suffixCls) : 'ant';
};
// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.
var ConfigContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({
  // We provide a default function for Context without provider
  getPrefixCls: defaultGetPrefixCls
});
var ConfigConsumer = ConfigContext.Consumer;
/** @deprecated Use hooks instead. This is a legacy function */
function withConfigConsumer(config) {
  return function withConfigConsumerFunc(Component) {
    // Wrap with ConfigConsumer. Since we need compatible with react 15, be care when using ref methods
    var SFC = function SFC(props) {
      return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (configProps) {
        var basicPrefixCls = config.prefixCls;
        var getPrefixCls = configProps.getPrefixCls;
        var customizePrefixCls = props.prefixCls;
        var prefixCls = getPrefixCls(basicPrefixCls, customizePrefixCls);
        return /*#__PURE__*/React.createElement(Component, _extends({}, configProps, props, {
          prefixCls: prefixCls
        }));
      });
    };
    var cons = Component.constructor;
    var name = cons && cons.displayName || Component.name || 'Component';
    if (false) {}
    return SFC;
  };
}

/***/ }),

/***/ 7183:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  ZP: function() { return /* binding */ config_provider; },
  w6: function() { return /* binding */ globalConfig; }
});

// UNUSED EXPORTS: ConfigConsumer, ConfigContext, configConsumerProps, defaultIconPrefixCls, defaultPrefixCls

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/Context.js
var Context = __webpack_require__(5066);
// EXTERNAL MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/index.js + 18 modules
var es = __webpack_require__(5016);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useMemo.js
var useMemo = __webpack_require__(5404);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/locale.js
var modal_locale = __webpack_require__(6959);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/locale-provider/context.js
var context = __webpack_require__(6649);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/locale-provider/index.js





var ANT_MARK = 'internalMark';
var LocaleProvider = function LocaleProvider(props) {
  var _props$locale = props.locale,
    locale = _props$locale === void 0 ? {} : _props$locale,
    children = props.children,
    _ANT_MARK__ = props._ANT_MARK__;
  if (false) {}
  _react_18_2_0_react.useEffect(function () {
    (0,modal_locale/* changeConfirmLocale */.f)(locale && locale.Modal);
    return function () {
      (0,modal_locale/* changeConfirmLocale */.f)();
    };
  }, [locale]);
  var getMemoizedContextValue = _react_18_2_0_react.useMemo(function () {
    return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, locale), {
      exist: true
    });
  }, [locale]);
  return /*#__PURE__*/_react_18_2_0_react.createElement(context/* default */.Z.Provider, {
    value: getMemoizedContextValue
  }, children);
};
/* harmony default export */ var locale_provider = (LocaleProvider);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/locale-provider/LocaleReceiver.js + 1 modules
var LocaleReceiver = __webpack_require__(6971);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/locale/default.js + 5 modules
var locale_default = __webpack_require__(7618);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/message/index.js + 7 modules
var message = __webpack_require__(696);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CheckCircleOutlined.js + 1 modules
var CheckCircleOutlined = __webpack_require__(2169);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules
var CloseCircleOutlined = __webpack_require__(1566);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
var CloseOutlined = __webpack_require__(7586);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
var ExclamationCircleOutlined = __webpack_require__(1544);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/InfoCircleOutlined.js + 1 modules
var InfoCircleOutlined = __webpack_require__(6416);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(7258);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-notification@4.6.1@rc-notification/es/index.js + 1 modules
var _rc_notification_4_6_1_rc_notification_es = __webpack_require__(1023);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_rc-notification@4.6.1@rc-notification/es/useNotification.js
var es_useNotification = __webpack_require__(5065);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/context.js
var config_provider_context = __webpack_require__(6563);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/notification/hooks/useNotification.js





function createUseNotification(getNotificationInstance, getRCNoticeProps) {
  var useNotification = function useNotification() {
    // We can only get content by render
    var getPrefixCls;
    // We create a proxy to handle delay created instance
    var innerInstance = null;
    var proxy = {
      add: function add(noticeProps, holderCallback) {
        innerInstance === null || innerInstance === void 0 ? void 0 : innerInstance.component.add(noticeProps, holderCallback);
      }
    };
    var _useRCNotification = (0,es_useNotification/* default */.Z)(proxy),
      _useRCNotification2 = (0,slicedToArray/* default */.Z)(_useRCNotification, 2),
      hookNotify = _useRCNotification2[0],
      holder = _useRCNotification2[1];
    function notify(args) {
      var customizePrefixCls = args.prefixCls;
      var mergedPrefixCls = getPrefixCls('notification', customizePrefixCls);
      getNotificationInstance((0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, args), {
        prefixCls: mergedPrefixCls
      }), function (_ref) {
        var prefixCls = _ref.prefixCls,
          instance = _ref.instance;
        innerInstance = instance;
        hookNotify(getRCNoticeProps(args, prefixCls));
      });
    }
    // Fill functions
    var hookApiRef = _react_18_2_0_react.useRef({});
    hookApiRef.current.open = notify;
    ['success', 'info', 'warning', 'error'].forEach(function (type) {
      hookApiRef.current[type] = function (args) {
        return hookApiRef.current.open((0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, args), {
          type: type
        }));
      };
    });
    return [hookApiRef.current, /*#__PURE__*/_react_18_2_0_react.createElement(config_provider_context/* ConfigConsumer */.C, {
      key: "holder"
    }, function (context) {
      getPrefixCls = context.getPrefixCls;
      return holder;
    })];
  };
  return useNotification;
}
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/notification/index.js



var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
  function adopt(value) {
    return value instanceof P ? value : new P(function (resolve) {
      resolve(value);
    });
  }
  return new (P || (P = Promise))(function (resolve, reject) {
    function fulfilled(value) {
      try {
        step(generator.next(value));
      } catch (e) {
        reject(e);
      }
    }
    function rejected(value) {
      try {
        step(generator["throw"](value));
      } catch (e) {
        reject(e);
      }
    }
    function step(result) {
      result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
    }
    step((generator = generator.apply(thisArg, _arguments || [])).next());
  });
};










var notificationInstance = {};
var defaultDuration = 4.5;
var defaultTop = 24;
var defaultBottom = 24;
var defaultPrefixCls = '';
var defaultPlacement = 'topRight';
var defaultGetContainer;
var defaultCloseIcon;
var rtl = false;
var maxCount;
function setNotificationConfig(options) {
  var duration = options.duration,
    placement = options.placement,
    bottom = options.bottom,
    top = options.top,
    getContainer = options.getContainer,
    closeIcon = options.closeIcon,
    prefixCls = options.prefixCls;
  if (prefixCls !== undefined) {
    defaultPrefixCls = prefixCls;
  }
  if (duration !== undefined) {
    defaultDuration = duration;
  }
  if (placement !== undefined) {
    defaultPlacement = placement;
  } else if (options.rtl) {
    defaultPlacement = 'topLeft';
  }
  if (bottom !== undefined) {
    defaultBottom = bottom;
  }
  if (top !== undefined) {
    defaultTop = top;
  }
  if (getContainer !== undefined) {
    defaultGetContainer = getContainer;
  }
  if (closeIcon !== undefined) {
    defaultCloseIcon = closeIcon;
  }
  if (options.rtl !== undefined) {
    rtl = options.rtl;
  }
  if (options.maxCount !== undefined) {
    maxCount = options.maxCount;
  }
}
function getPlacementStyle(placement) {
  var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTop;
  var bottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultBottom;
  var style;
  switch (placement) {
    case 'top':
      style = {
        left: '50%',
        transform: 'translateX(-50%)',
        right: 'auto',
        top: top,
        bottom: 'auto'
      };
      break;
    case 'topLeft':
      style = {
        left: 0,
        top: top,
        bottom: 'auto'
      };
      break;
    case 'topRight':
      style = {
        right: 0,
        top: top,
        bottom: 'auto'
      };
      break;
    case 'bottom':
      style = {
        left: '50%',
        transform: 'translateX(-50%)',
        right: 'auto',
        top: 'auto',
        bottom: bottom
      };
      break;
    case 'bottomLeft':
      style = {
        left: 0,
        top: 'auto',
        bottom: bottom
      };
      break;
    default:
      style = {
        right: 0,
        top: 'auto',
        bottom: bottom
      };
      break;
  }
  return style;
}
function getNotificationInstance(args, callback) {
  var _args$placement = args.placement,
    placement = _args$placement === void 0 ? defaultPlacement : _args$placement,
    top = args.top,
    bottom = args.bottom,
    _args$getContainer = args.getContainer,
    getContainer = _args$getContainer === void 0 ? defaultGetContainer : _args$getContainer,
    customizePrefixCls = args.prefixCls;
  var _globalConfig = globalConfig(),
    getPrefixCls = _globalConfig.getPrefixCls,
    getIconPrefixCls = _globalConfig.getIconPrefixCls;
  var prefixCls = getPrefixCls('notification', customizePrefixCls || defaultPrefixCls);
  var iconPrefixCls = getIconPrefixCls();
  var cacheKey = "".concat(prefixCls, "-").concat(placement);
  var cacheInstance = notificationInstance[cacheKey];
  if (cacheInstance) {
    Promise.resolve(cacheInstance).then(function (instance) {
      callback({
        prefixCls: "".concat(prefixCls, "-notice"),
        iconPrefixCls: iconPrefixCls,
        instance: instance
      });
    });
    return;
  }
  var notificationClass = _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-").concat(placement), (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-rtl"), rtl === true));
  notificationInstance[cacheKey] = new Promise(function (resolve) {
    _rc_notification_4_6_1_rc_notification_es/* default */.Z.newInstance({
      prefixCls: prefixCls,
      className: notificationClass,
      style: getPlacementStyle(placement, top, bottom),
      getContainer: getContainer,
      maxCount: maxCount
    }, function (notification) {
      resolve(notification);
      callback({
        prefixCls: "".concat(prefixCls, "-notice"),
        iconPrefixCls: iconPrefixCls,
        instance: notification
      });
    });
  });
}
var typeToIcon = {
  success: CheckCircleOutlined/* default */.Z,
  info: InfoCircleOutlined/* default */.Z,
  error: CloseCircleOutlined/* default */.Z,
  warning: ExclamationCircleOutlined/* default */.Z
};
function getRCNoticeProps(args, prefixCls, iconPrefixCls) {
  var durationArg = args.duration,
    icon = args.icon,
    type = args.type,
    description = args.description,
    message = args.message,
    btn = args.btn,
    onClose = args.onClose,
    onClick = args.onClick,
    key = args.key,
    style = args.style,
    className = args.className,
    _args$closeIcon = args.closeIcon,
    closeIcon = _args$closeIcon === void 0 ? defaultCloseIcon : _args$closeIcon,
    props = args.props;
  var duration = durationArg === undefined ? defaultDuration : durationArg;
  var iconNode = null;
  if (icon) {
    iconNode = /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-icon")
    }, args.icon);
  } else if (type) {
    iconNode = /*#__PURE__*/_react_18_2_0_react.createElement(typeToIcon[type] || null, {
      className: "".concat(prefixCls, "-icon ").concat(prefixCls, "-icon-").concat(type)
    });
  }
  var closeIconToRender = /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: "".concat(prefixCls, "-close-x")
  }, closeIcon || /*#__PURE__*/_react_18_2_0_react.createElement(CloseOutlined/* default */.Z, {
    className: "".concat(prefixCls, "-close-icon")
  }));
  var autoMarginTag = !description && iconNode ? /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: "".concat(prefixCls, "-message-single-line-auto-margin")
  }) : null;
  return {
    content: /*#__PURE__*/_react_18_2_0_react.createElement(config_provider, {
      iconPrefixCls: iconPrefixCls
    }, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: iconNode ? "".concat(prefixCls, "-with-icon") : '',
      role: "alert"
    }, iconNode, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-message")
    }, autoMarginTag, message), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-description")
    }, description), btn ? /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-btn")
    }, btn) : null)),
    duration: duration,
    closable: true,
    closeIcon: closeIconToRender,
    onClose: onClose,
    onClick: onClick,
    key: key,
    style: style || {},
    className: _classnames_2_3_2_classnames_default()(className, (0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-").concat(type), !!type)),
    props: props
  };
}
function notice(args) {
  getNotificationInstance(args, function (_ref) {
    var prefixCls = _ref.prefixCls,
      iconPrefixCls = _ref.iconPrefixCls,
      instance = _ref.instance;
    instance.notice(getRCNoticeProps(args, prefixCls, iconPrefixCls));
  });
}
var api = {
  open: notice,
  close: function close(key) {
    Object.keys(notificationInstance).forEach(function (cacheKey) {
      return Promise.resolve(notificationInstance[cacheKey]).then(function (instance) {
        instance.removeNotice(key);
      });
    });
  },
  config: setNotificationConfig,
  destroy: function destroy() {
    Object.keys(notificationInstance).forEach(function (cacheKey) {
      Promise.resolve(notificationInstance[cacheKey]).then(function (instance) {
        instance.destroy();
      });
      delete notificationInstance[cacheKey]; // lgtm[js/missing-await]
    });
  }
};

['success', 'info', 'warning', 'error'].forEach(function (type) {
  api[type] = function (args) {
    return api.open((0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, args), {
      type: type
    }));
  };
});
api.warn = api.warning;
api.useNotification = createUseNotification(getNotificationInstance, getRCNoticeProps);
/** @internal test Only function. Not work on production */
var getInstance = function getInstance(cacheKey) {
  return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
    return _regeneratorRuntime().wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          return _context.abrupt("return",  false ? 0 : null);
        case 1:
        case "end":
          return _context.stop();
      }
    }, _callee);
  }));
};
/* harmony default export */ var notification = (api);
// EXTERNAL MODULE: ./node_modules/_@ant-design_colors@6.0.0@@ant-design/colors/dist/index.esm.js
var index_esm = __webpack_require__(5543);
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.0@@ctrl/tinycolor/dist/module/conversion.js
var conversion = __webpack_require__(2235);
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.0@@ctrl/tinycolor/dist/module/css-color-names.js
var css_color_names = __webpack_require__(6175);
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.0@@ctrl/tinycolor/dist/module/format-input.js
var format_input = __webpack_require__(7870);
// EXTERNAL MODULE: ./node_modules/_@ctrl_tinycolor@3.6.0@@ctrl/tinycolor/dist/module/util.js
var util = __webpack_require__(7024);
;// CONCATENATED MODULE: ./node_modules/_@ctrl_tinycolor@3.6.0@@ctrl/tinycolor/dist/module/index.js




var TinyColor = /** @class */function () {
  function TinyColor(color, opts) {
    if (color === void 0) {
      color = '';
    }
    if (opts === void 0) {
      opts = {};
    }
    var _a;
    // If input is already a tinycolor, return itself
    if (color instanceof TinyColor) {
      // eslint-disable-next-line no-constructor-return
      return color;
    }
    if (typeof color === 'number') {
      color = (0,conversion/* numberInputToObject */.Yt)(color);
    }
    this.originalInput = color;
    var rgb = (0,format_input/* inputToRGB */.uA)(color);
    this.originalInput = color;
    this.r = rgb.r;
    this.g = rgb.g;
    this.b = rgb.b;
    this.a = rgb.a;
    this.roundA = Math.round(100 * this.a) / 100;
    this.format = (_a = opts.format) !== null && _a !== void 0 ? _a : rgb.format;
    this.gradientType = opts.gradientType;
    // Don't let the range of [0,255] come back in [0,1].
    // Potentially lose a little bit of precision here, but will fix issues where
    // .5 gets interpreted as half of the total, instead of half of 1
    // If it was supposed to be 128, this was already taken care of by `inputToRgb`
    if (this.r < 1) {
      this.r = Math.round(this.r);
    }
    if (this.g < 1) {
      this.g = Math.round(this.g);
    }
    if (this.b < 1) {
      this.b = Math.round(this.b);
    }
    this.isValid = rgb.ok;
  }
  TinyColor.prototype.isDark = function () {
    return this.getBrightness() < 128;
  };
  TinyColor.prototype.isLight = function () {
    return !this.isDark();
  };
  /**
   * Returns the perceived brightness of the color, from 0-255.
   */
  TinyColor.prototype.getBrightness = function () {
    // http://www.w3.org/TR/AERT#color-contrast
    var rgb = this.toRgb();
    return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
  };
  /**
   * Returns the perceived luminance of a color, from 0-1.
   */
  TinyColor.prototype.getLuminance = function () {
    // http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
    var rgb = this.toRgb();
    var R;
    var G;
    var B;
    var RsRGB = rgb.r / 255;
    var GsRGB = rgb.g / 255;
    var BsRGB = rgb.b / 255;
    if (RsRGB <= 0.03928) {
      R = RsRGB / 12.92;
    } else {
      // eslint-disable-next-line prefer-exponentiation-operator
      R = Math.pow((RsRGB + 0.055) / 1.055, 2.4);
    }
    if (GsRGB <= 0.03928) {
      G = GsRGB / 12.92;
    } else {
      // eslint-disable-next-line prefer-exponentiation-operator
      G = Math.pow((GsRGB + 0.055) / 1.055, 2.4);
    }
    if (BsRGB <= 0.03928) {
      B = BsRGB / 12.92;
    } else {
      // eslint-disable-next-line prefer-exponentiation-operator
      B = Math.pow((BsRGB + 0.055) / 1.055, 2.4);
    }
    return 0.2126 * R + 0.7152 * G + 0.0722 * B;
  };
  /**
   * Returns the alpha value of a color, from 0-1.
   */
  TinyColor.prototype.getAlpha = function () {
    return this.a;
  };
  /**
   * Sets the alpha value on the current color.
   *
   * @param alpha - The new alpha value. The accepted range is 0-1.
   */
  TinyColor.prototype.setAlpha = function (alpha) {
    this.a = (0,util/* boundAlpha */.Yq)(alpha);
    this.roundA = Math.round(100 * this.a) / 100;
    return this;
  };
  /**
   * Returns whether the color is monochrome.
   */
  TinyColor.prototype.isMonochrome = function () {
    var s = this.toHsl().s;
    return s === 0;
  };
  /**
   * Returns the object as a HSVA object.
   */
  TinyColor.prototype.toHsv = function () {
    var hsv = (0,conversion/* rgbToHsv */.py)(this.r, this.g, this.b);
    return {
      h: hsv.h * 360,
      s: hsv.s,
      v: hsv.v,
      a: this.a
    };
  };
  /**
   * Returns the hsva values interpolated into a string with the following format:
   * "hsva(xxx, xxx, xxx, xx)".
   */
  TinyColor.prototype.toHsvString = function () {
    var hsv = (0,conversion/* rgbToHsv */.py)(this.r, this.g, this.b);
    var h = Math.round(hsv.h * 360);
    var s = Math.round(hsv.s * 100);
    var v = Math.round(hsv.v * 100);
    return this.a === 1 ? "hsv(".concat(h, ", ").concat(s, "%, ").concat(v, "%)") : "hsva(".concat(h, ", ").concat(s, "%, ").concat(v, "%, ").concat(this.roundA, ")");
  };
  /**
   * Returns the object as a HSLA object.
   */
  TinyColor.prototype.toHsl = function () {
    var hsl = (0,conversion/* rgbToHsl */.lC)(this.r, this.g, this.b);
    return {
      h: hsl.h * 360,
      s: hsl.s,
      l: hsl.l,
      a: this.a
    };
  };
  /**
   * Returns the hsla values interpolated into a string with the following format:
   * "hsla(xxx, xxx, xxx, xx)".
   */
  TinyColor.prototype.toHslString = function () {
    var hsl = (0,conversion/* rgbToHsl */.lC)(this.r, this.g, this.b);
    var h = Math.round(hsl.h * 360);
    var s = Math.round(hsl.s * 100);
    var l = Math.round(hsl.l * 100);
    return this.a === 1 ? "hsl(".concat(h, ", ").concat(s, "%, ").concat(l, "%)") : "hsla(".concat(h, ", ").concat(s, "%, ").concat(l, "%, ").concat(this.roundA, ")");
  };
  /**
   * Returns the hex value of the color.
   * @param allow3Char will shorten hex value to 3 char if possible
   */
  TinyColor.prototype.toHex = function (allow3Char) {
    if (allow3Char === void 0) {
      allow3Char = false;
    }
    return (0,conversion/* rgbToHex */.vq)(this.r, this.g, this.b, allow3Char);
  };
  /**
   * Returns the hex value of the color -with a # prefixed.
   * @param allow3Char will shorten hex value to 3 char if possible
   */
  TinyColor.prototype.toHexString = function (allow3Char) {
    if (allow3Char === void 0) {
      allow3Char = false;
    }
    return '#' + this.toHex(allow3Char);
  };
  /**
   * Returns the hex 8 value of the color.
   * @param allow4Char will shorten hex value to 4 char if possible
   */
  TinyColor.prototype.toHex8 = function (allow4Char) {
    if (allow4Char === void 0) {
      allow4Char = false;
    }
    return (0,conversion/* rgbaToHex */.s)(this.r, this.g, this.b, this.a, allow4Char);
  };
  /**
   * Returns the hex 8 value of the color -with a # prefixed.
   * @param allow4Char will shorten hex value to 4 char if possible
   */
  TinyColor.prototype.toHex8String = function (allow4Char) {
    if (allow4Char === void 0) {
      allow4Char = false;
    }
    return '#' + this.toHex8(allow4Char);
  };
  /**
   * Returns the shorter hex value of the color depends on its alpha -with a # prefixed.
   * @param allowShortChar will shorten hex value to 3 or 4 char if possible
   */
  TinyColor.prototype.toHexShortString = function (allowShortChar) {
    if (allowShortChar === void 0) {
      allowShortChar = false;
    }
    return this.a === 1 ? this.toHexString(allowShortChar) : this.toHex8String(allowShortChar);
  };
  /**
   * Returns the object as a RGBA object.
   */
  TinyColor.prototype.toRgb = function () {
    return {
      r: Math.round(this.r),
      g: Math.round(this.g),
      b: Math.round(this.b),
      a: this.a
    };
  };
  /**
   * Returns the RGBA values interpolated into a string with the following format:
   * "RGBA(xxx, xxx, xxx, xx)".
   */
  TinyColor.prototype.toRgbString = function () {
    var r = Math.round(this.r);
    var g = Math.round(this.g);
    var b = Math.round(this.b);
    return this.a === 1 ? "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ")") : "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(this.roundA, ")");
  };
  /**
   * Returns the object as a RGBA object.
   */
  TinyColor.prototype.toPercentageRgb = function () {
    var fmt = function fmt(x) {
      return "".concat(Math.round((0,util/* bound01 */.sh)(x, 255) * 100), "%");
    };
    return {
      r: fmt(this.r),
      g: fmt(this.g),
      b: fmt(this.b),
      a: this.a
    };
  };
  /**
   * Returns the RGBA relative values interpolated into a string
   */
  TinyColor.prototype.toPercentageRgbString = function () {
    var rnd = function rnd(x) {
      return Math.round((0,util/* bound01 */.sh)(x, 255) * 100);
    };
    return this.a === 1 ? "rgb(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%)") : "rgba(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%, ").concat(this.roundA, ")");
  };
  /**
   * The 'real' name of the color -if there is one.
   */
  TinyColor.prototype.toName = function () {
    if (this.a === 0) {
      return 'transparent';
    }
    if (this.a < 1) {
      return false;
    }
    var hex = '#' + (0,conversion/* rgbToHex */.vq)(this.r, this.g, this.b, false);
    for (var _i = 0, _a = Object.entries(css_color_names/* names */.R); _i < _a.length; _i++) {
      var _b = _a[_i],
        key = _b[0],
        value = _b[1];
      if (hex === value) {
        return key;
      }
    }
    return false;
  };
  TinyColor.prototype.toString = function (format) {
    var formatSet = Boolean(format);
    format = format !== null && format !== void 0 ? format : this.format;
    var formattedString = false;
    var hasAlpha = this.a < 1 && this.a >= 0;
    var needsAlphaFormat = !formatSet && hasAlpha && (format.startsWith('hex') || format === 'name');
    if (needsAlphaFormat) {
      // Special case for "transparent", all other non-alpha formats
      // will return rgba when there is transparency.
      if (format === 'name' && this.a === 0) {
        return this.toName();
      }
      return this.toRgbString();
    }
    if (format === 'rgb') {
      formattedString = this.toRgbString();
    }
    if (format === 'prgb') {
      formattedString = this.toPercentageRgbString();
    }
    if (format === 'hex' || format === 'hex6') {
      formattedString = this.toHexString();
    }
    if (format === 'hex3') {
      formattedString = this.toHexString(true);
    }
    if (format === 'hex4') {
      formattedString = this.toHex8String(true);
    }
    if (format === 'hex8') {
      formattedString = this.toHex8String();
    }
    if (format === 'name') {
      formattedString = this.toName();
    }
    if (format === 'hsl') {
      formattedString = this.toHslString();
    }
    if (format === 'hsv') {
      formattedString = this.toHsvString();
    }
    return formattedString || this.toHexString();
  };
  TinyColor.prototype.toNumber = function () {
    return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
  };
  TinyColor.prototype.clone = function () {
    return new TinyColor(this.toString());
  };
  /**
   * Lighten the color a given amount. Providing 100 will always return white.
   * @param amount - valid between 1-100
   */
  TinyColor.prototype.lighten = function (amount) {
    if (amount === void 0) {
      amount = 10;
    }
    var hsl = this.toHsl();
    hsl.l += amount / 100;
    hsl.l = (0,util/* clamp01 */.V2)(hsl.l);
    return new TinyColor(hsl);
  };
  /**
   * Brighten the color a given amount, from 0 to 100.
   * @param amount - valid between 1-100
   */
  TinyColor.prototype.brighten = function (amount) {
    if (amount === void 0) {
      amount = 10;
    }
    var rgb = this.toRgb();
    rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));
    rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));
    rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));
    return new TinyColor(rgb);
  };
  /**
   * Darken the color a given amount, from 0 to 100.
   * Providing 100 will always return black.
   * @param amount - valid between 1-100
   */
  TinyColor.prototype.darken = function (amount) {
    if (amount === void 0) {
      amount = 10;
    }
    var hsl = this.toHsl();
    hsl.l -= amount / 100;
    hsl.l = (0,util/* clamp01 */.V2)(hsl.l);
    return new TinyColor(hsl);
  };
  /**
   * Mix the color with pure white, from 0 to 100.
   * Providing 0 will do nothing, providing 100 will always return white.
   * @param amount - valid between 1-100
   */
  TinyColor.prototype.tint = function (amount) {
    if (amount === void 0) {
      amount = 10;
    }
    return this.mix('white', amount);
  };
  /**
   * Mix the color with pure black, from 0 to 100.
   * Providing 0 will do nothing, providing 100 will always return black.
   * @param amount - valid between 1-100
   */
  TinyColor.prototype.shade = function (amount) {
    if (amount === void 0) {
      amount = 10;
    }
    return this.mix('black', amount);
  };
  /**
   * Desaturate the color a given amount, from 0 to 100.
   * Providing 100 will is the same as calling greyscale
   * @param amount - valid between 1-100
   */
  TinyColor.prototype.desaturate = function (amount) {
    if (amount === void 0) {
      amount = 10;
    }
    var hsl = this.toHsl();
    hsl.s -= amount / 100;
    hsl.s = (0,util/* clamp01 */.V2)(hsl.s);
    return new TinyColor(hsl);
  };
  /**
   * Saturate the color a given amount, from 0 to 100.
   * @param amount - valid between 1-100
   */
  TinyColor.prototype.saturate = function (amount) {
    if (amount === void 0) {
      amount = 10;
    }
    var hsl = this.toHsl();
    hsl.s += amount / 100;
    hsl.s = (0,util/* clamp01 */.V2)(hsl.s);
    return new TinyColor(hsl);
  };
  /**
   * Completely desaturates a color into greyscale.
   * Same as calling `desaturate(100)`
   */
  TinyColor.prototype.greyscale = function () {
    return this.desaturate(100);
  };
  /**
   * Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
   * Values outside of this range will be wrapped into this range.
   */
  TinyColor.prototype.spin = function (amount) {
    var hsl = this.toHsl();
    var hue = (hsl.h + amount) % 360;
    hsl.h = hue < 0 ? 360 + hue : hue;
    return new TinyColor(hsl);
  };
  /**
   * Mix the current color a given amount with another color, from 0 to 100.
   * 0 means no mixing (return current color).
   */
  TinyColor.prototype.mix = function (color, amount) {
    if (amount === void 0) {
      amount = 50;
    }
    var rgb1 = this.toRgb();
    var rgb2 = new TinyColor(color).toRgb();
    var p = amount / 100;
    var rgba = {
      r: (rgb2.r - rgb1.r) * p + rgb1.r,
      g: (rgb2.g - rgb1.g) * p + rgb1.g,
      b: (rgb2.b - rgb1.b) * p + rgb1.b,
      a: (rgb2.a - rgb1.a) * p + rgb1.a
    };
    return new TinyColor(rgba);
  };
  TinyColor.prototype.analogous = function (results, slices) {
    if (results === void 0) {
      results = 6;
    }
    if (slices === void 0) {
      slices = 30;
    }
    var hsl = this.toHsl();
    var part = 360 / slices;
    var ret = [this];
    for (hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results;) {
      hsl.h = (hsl.h + part) % 360;
      ret.push(new TinyColor(hsl));
    }
    return ret;
  };
  /**
   * taken from https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js
   */
  TinyColor.prototype.complement = function () {
    var hsl = this.toHsl();
    hsl.h = (hsl.h + 180) % 360;
    return new TinyColor(hsl);
  };
  TinyColor.prototype.monochromatic = function (results) {
    if (results === void 0) {
      results = 6;
    }
    var hsv = this.toHsv();
    var h = hsv.h;
    var s = hsv.s;
    var v = hsv.v;
    var res = [];
    var modification = 1 / results;
    while (results--) {
      res.push(new TinyColor({
        h: h,
        s: s,
        v: v
      }));
      v = (v + modification) % 1;
    }
    return res;
  };
  TinyColor.prototype.splitcomplement = function () {
    var hsl = this.toHsl();
    var h = hsl.h;
    return [this, new TinyColor({
      h: (h + 72) % 360,
      s: hsl.s,
      l: hsl.l
    }), new TinyColor({
      h: (h + 216) % 360,
      s: hsl.s,
      l: hsl.l
    })];
  };
  /**
   * Compute how the color would appear on a background
   */
  TinyColor.prototype.onBackground = function (background) {
    var fg = this.toRgb();
    var bg = new TinyColor(background).toRgb();
    var alpha = fg.a + bg.a * (1 - fg.a);
    return new TinyColor({
      r: (fg.r * fg.a + bg.r * bg.a * (1 - fg.a)) / alpha,
      g: (fg.g * fg.a + bg.g * bg.a * (1 - fg.a)) / alpha,
      b: (fg.b * fg.a + bg.b * bg.a * (1 - fg.a)) / alpha,
      a: alpha
    });
  };
  /**
   * Alias for `polyad(3)`
   */
  TinyColor.prototype.triad = function () {
    return this.polyad(3);
  };
  /**
   * Alias for `polyad(4)`
   */
  TinyColor.prototype.tetrad = function () {
    return this.polyad(4);
  };
  /**
   * Get polyad colors, like (for 1, 2, 3, 4, 5, 6, 7, 8, etc...)
   * monad, dyad, triad, tetrad, pentad, hexad, heptad, octad, etc...
   */
  TinyColor.prototype.polyad = function (n) {
    var hsl = this.toHsl();
    var h = hsl.h;
    var result = [this];
    var increment = 360 / n;
    for (var i = 1; i < n; i++) {
      result.push(new TinyColor({
        h: (h + i * increment) % 360,
        s: hsl.s,
        l: hsl.l
      }));
    }
    return result;
  };
  /**
   * compare color vs current color
   */
  TinyColor.prototype.equals = function (color) {
    return this.toRgbString() === new TinyColor(color).toRgbString();
  };
  return TinyColor;
}();

// kept for backwards compatability with v1
function tinycolor(color, opts) {
  if (color === void 0) {
    color = '';
  }
  if (opts === void 0) {
    opts = {};
  }
  return new TinyColor(color, opts);
}
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/canUseDom.js
var canUseDom = __webpack_require__(6665);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/dynamicCSS.js
var dynamicCSS = __webpack_require__(7344);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/cssVariables.js
/* eslint-disable import/prefer-default-export, prefer-destructuring */





var dynamicStyleMark = "-ant-".concat(Date.now(), "-").concat(Math.random());
function getStyle(globalPrefixCls, theme) {
  var variables = {};
  var formatColor = function formatColor(color, updater) {
    var clone = color.clone();
    clone = (updater === null || updater === void 0 ? void 0 : updater(clone)) || clone;
    return clone.toRgbString();
  };
  var fillColor = function fillColor(colorVal, type) {
    var baseColor = new TinyColor(colorVal);
    var colorPalettes = (0,index_esm/* generate */.R_)(baseColor.toRgbString());
    variables["".concat(type, "-color")] = formatColor(baseColor);
    variables["".concat(type, "-color-disabled")] = colorPalettes[1];
    variables["".concat(type, "-color-hover")] = colorPalettes[4];
    variables["".concat(type, "-color-active")] = colorPalettes[6];
    variables["".concat(type, "-color-outline")] = baseColor.clone().setAlpha(0.2).toRgbString();
    variables["".concat(type, "-color-deprecated-bg")] = colorPalettes[0];
    variables["".concat(type, "-color-deprecated-border")] = colorPalettes[2];
  };
  // ================ Primary Color ================
  if (theme.primaryColor) {
    fillColor(theme.primaryColor, 'primary');
    var primaryColor = new TinyColor(theme.primaryColor);
    var primaryColors = (0,index_esm/* generate */.R_)(primaryColor.toRgbString());
    // Legacy - We should use semantic naming standard
    primaryColors.forEach(function (color, index) {
      variables["primary-".concat(index + 1)] = color;
    });
    // Deprecated
    variables['primary-color-deprecated-l-35'] = formatColor(primaryColor, function (c) {
      return c.lighten(35);
    });
    variables['primary-color-deprecated-l-20'] = formatColor(primaryColor, function (c) {
      return c.lighten(20);
    });
    variables['primary-color-deprecated-t-20'] = formatColor(primaryColor, function (c) {
      return c.tint(20);
    });
    variables['primary-color-deprecated-t-50'] = formatColor(primaryColor, function (c) {
      return c.tint(50);
    });
    variables['primary-color-deprecated-f-12'] = formatColor(primaryColor, function (c) {
      return c.setAlpha(c.getAlpha() * 0.12);
    });
    var primaryActiveColor = new TinyColor(primaryColors[0]);
    variables['primary-color-active-deprecated-f-30'] = formatColor(primaryActiveColor, function (c) {
      return c.setAlpha(c.getAlpha() * 0.3);
    });
    variables['primary-color-active-deprecated-d-02'] = formatColor(primaryActiveColor, function (c) {
      return c.darken(2);
    });
  }
  // ================ Success Color ================
  if (theme.successColor) {
    fillColor(theme.successColor, 'success');
  }
  // ================ Warning Color ================
  if (theme.warningColor) {
    fillColor(theme.warningColor, 'warning');
  }
  // ================= Error Color =================
  if (theme.errorColor) {
    fillColor(theme.errorColor, 'error');
  }
  // ================= Info Color ==================
  if (theme.infoColor) {
    fillColor(theme.infoColor, 'info');
  }
  // Convert to css variables
  var cssList = Object.keys(variables).map(function (key) {
    return "--".concat(globalPrefixCls, "-").concat(key, ": ").concat(variables[key], ";");
  });
  return "\n  :root {\n    ".concat(cssList.join('\n'), "\n  }\n  ").trim();
}
function registerTheme(globalPrefixCls, theme) {
  var style = getStyle(globalPrefixCls, theme);
  if ((0,canUseDom/* default */.Z)()) {
    (0,dynamicCSS/* updateCSS */.hq)(style, "".concat(dynamicStyleMark, "-dynamic-theme"));
  } else {
     false ? 0 : void 0;
  }
}
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(2146);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/SizeContext.js
var SizeContext = __webpack_require__(2340);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/index.js















var configConsumerProps = (/* unused pure expression or super */ null && (['getTargetContainer', 'getPopupContainer', 'rootPrefixCls', 'getPrefixCls', 'renderEmpty', 'csp', 'autoInsertSpaceInButton', 'locale', 'pageHeader']));
// These props is used by `useContext` directly in sub component
var PASSED_PROPS = ['getTargetContainer', 'getPopupContainer', 'renderEmpty', 'pageHeader', 'input', 'pagination', 'form'];
var config_provider_defaultPrefixCls = 'ant';
var defaultIconPrefixCls = 'anticon';
var globalPrefixCls;
var globalIconPrefixCls;
function getGlobalPrefixCls() {
  return globalPrefixCls || config_provider_defaultPrefixCls;
}
function getGlobalIconPrefixCls() {
  return globalIconPrefixCls || defaultIconPrefixCls;
}
var setGlobalConfig = function setGlobalConfig(_ref) {
  var prefixCls = _ref.prefixCls,
    iconPrefixCls = _ref.iconPrefixCls,
    theme = _ref.theme;
  if (prefixCls !== undefined) {
    globalPrefixCls = prefixCls;
  }
  if (iconPrefixCls !== undefined) {
    globalIconPrefixCls = iconPrefixCls;
  }
  if (theme) {
    registerTheme(getGlobalPrefixCls(), theme);
  }
};
var globalConfig = function globalConfig() {
  return {
    getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
      if (customizePrefixCls) return customizePrefixCls;
      return suffixCls ? "".concat(getGlobalPrefixCls(), "-").concat(suffixCls) : getGlobalPrefixCls();
    },
    getIconPrefixCls: getGlobalIconPrefixCls,
    getRootPrefixCls: function getRootPrefixCls(rootPrefixCls, customizePrefixCls) {
      // Customize rootPrefixCls is first priority
      if (rootPrefixCls) {
        return rootPrefixCls;
      }
      // If Global prefixCls provided, use this
      if (globalPrefixCls) {
        return globalPrefixCls;
      }
      // [Legacy] If customize prefixCls provided, we cut it to get the prefixCls
      if (customizePrefixCls && customizePrefixCls.includes('-')) {
        return customizePrefixCls.replace(/^(.*)-[^-]*$/, '$1');
      }
      // Fallback to default prefixCls
      return getGlobalPrefixCls();
    }
  };
};
var ProviderChildren = function ProviderChildren(props) {
  var _a, _b;
  var children = props.children,
    csp = props.csp,
    autoInsertSpaceInButton = props.autoInsertSpaceInButton,
    form = props.form,
    locale = props.locale,
    componentSize = props.componentSize,
    direction = props.direction,
    space = props.space,
    virtual = props.virtual,
    dropdownMatchSelectWidth = props.dropdownMatchSelectWidth,
    legacyLocale = props.legacyLocale,
    parentContext = props.parentContext,
    iconPrefixCls = props.iconPrefixCls,
    componentDisabled = props.componentDisabled;
  var getPrefixCls = _react_18_2_0_react.useCallback(function (suffixCls, customizePrefixCls) {
    var prefixCls = props.prefixCls;
    if (customizePrefixCls) return customizePrefixCls;
    var mergedPrefixCls = prefixCls || parentContext.getPrefixCls('');
    return suffixCls ? "".concat(mergedPrefixCls, "-").concat(suffixCls) : mergedPrefixCls;
  }, [parentContext.getPrefixCls, props.prefixCls]);
  var config = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, parentContext), {
    csp: csp,
    autoInsertSpaceInButton: autoInsertSpaceInButton,
    locale: locale || legacyLocale,
    direction: direction,
    space: space,
    virtual: virtual,
    dropdownMatchSelectWidth: dropdownMatchSelectWidth,
    getPrefixCls: getPrefixCls
  });
  // Pass the props used by `useContext` directly with child component.
  // These props should merged into `config`.
  PASSED_PROPS.forEach(function (propName) {
    var propValue = props[propName];
    if (propValue) {
      config[propName] = propValue;
    }
  });
  // https://github.com/ant-design/ant-design/issues/27617
  var memoedConfig = (0,useMemo/* default */.Z)(function () {
    return config;
  }, config, function (prevConfig, currentConfig) {
    var prevKeys = Object.keys(prevConfig);
    var currentKeys = Object.keys(currentConfig);
    return prevKeys.length !== currentKeys.length || prevKeys.some(function (key) {
      return prevConfig[key] !== currentConfig[key];
    });
  });
  var memoIconContextValue = _react_18_2_0_react.useMemo(function () {
    return {
      prefixCls: iconPrefixCls,
      csp: csp
    };
  }, [iconPrefixCls, csp]);
  var childNode = children;
  // Additional Form provider
  var validateMessages = {};
  if (locale) {
    validateMessages = ((_a = locale.Form) === null || _a === void 0 ? void 0 : _a.defaultValidateMessages) || ((_b = locale_default/* default */.Z.Form) === null || _b === void 0 ? void 0 : _b.defaultValidateMessages) || {};
  }
  if (form && form.validateMessages) {
    validateMessages = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, validateMessages), form.validateMessages);
  }
  if (Object.keys(validateMessages).length > 0) {
    childNode = /*#__PURE__*/_react_18_2_0_react.createElement(es/* FormProvider */.RV, {
      validateMessages: validateMessages
    }, children);
  }
  if (locale) {
    childNode = /*#__PURE__*/_react_18_2_0_react.createElement(locale_provider, {
      locale: locale,
      _ANT_MARK__: ANT_MARK
    }, childNode);
  }
  if (iconPrefixCls || csp) {
    childNode = /*#__PURE__*/_react_18_2_0_react.createElement(Context/* default */.Z.Provider, {
      value: memoIconContextValue
    }, childNode);
  }
  if (componentSize) {
    childNode = /*#__PURE__*/_react_18_2_0_react.createElement(SizeContext/* SizeContextProvider */.q, {
      size: componentSize
    }, childNode);
  }
  if (componentDisabled !== undefined) {
    childNode = /*#__PURE__*/_react_18_2_0_react.createElement(DisabledContext/* DisabledContextProvider */.n, {
      disabled: componentDisabled
    }, childNode);
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(config_provider_context/* ConfigContext */.E_.Provider, {
    value: memoedConfig
  }, childNode);
};
var ConfigProvider = function ConfigProvider(props) {
  _react_18_2_0_react.useEffect(function () {
    if (props.direction) {
      message/* default */.ZP.config({
        rtl: props.direction === 'rtl'
      });
      notification.config({
        rtl: props.direction === 'rtl'
      });
    }
  }, [props.direction]);
  return /*#__PURE__*/_react_18_2_0_react.createElement(LocaleReceiver/* default */.Z, null, function (_, __, legacyLocale) {
    return /*#__PURE__*/_react_18_2_0_react.createElement(config_provider_context/* ConfigConsumer */.C, null, function (context) {
      return /*#__PURE__*/_react_18_2_0_react.createElement(ProviderChildren, (0,esm_extends/* default */.Z)({
        parentContext: context,
        legacyLocale: legacyLocale
      }, props));
    });
  });
};
/** @private internal Usage. do not use in your production */
ConfigProvider.ConfigContext = config_provider_context/* ConfigContext */.E_;
ConfigProvider.SizeContext = SizeContext/* default */.Z;
ConfigProvider.config = setGlobalConfig;
/* harmony default export */ var config_provider = (ConfigProvider);

/***/ }),

/***/ 4095:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Ux: function() { return /* binding */ NoFormStyle; },
/* harmony export */   aM: function() { return /* binding */ FormItemInputContext; }
/* harmony export */ });
/* unused harmony exports FormContext, NoStyleItemContext, FormProvider, FormItemPrefixContext */
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4904);
/* harmony import */ var rc_field_form__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5016);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9512);





var FormContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createContext({
  labelAlign: 'right',
  vertical: false,
  itemRef: function itemRef() {}
});
var NoStyleItemContext = /*#__PURE__*/(/* unused pure expression or super */ null && (React.createContext(null)));
var FormProvider = function FormProvider(props) {
  var providerProps = omit(props, ['prefixCls']);
  return /*#__PURE__*/React.createElement(RcFormProvider, _extends({}, providerProps));
};
var FormItemPrefixContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createContext({
  prefixCls: ''
});
var FormItemInputContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createContext({});
var NoFormStyle = function NoFormStyle(_ref) {
  var children = _ref.children,
    status = _ref.status,
    override = _ref.override;
  var formItemInputContext = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(FormItemInputContext);
  var newFormItemInputContext = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
    var newContext = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, formItemInputContext);
    if (override) {
      delete newContext.isFormItemInput;
    }
    if (status) {
      delete newContext.status;
      delete newContext.hasFeedback;
      delete newContext.feedbackIcon;
    }
    return newContext;
  }, [status, override, formItemInputContext]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(FormItemInputContext.Provider, {
    value: newFormItemInputContext
  }, children);
};

/***/ }),

/***/ 6971:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ locale_provider_LocaleReceiver; }
});

// UNUSED EXPORTS: useLocaleReceiver

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/locale-provider/context.js
var context = __webpack_require__(6649);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/locale/default.js + 5 modules
var locale_default = __webpack_require__(7618);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/locale-provider/default.js

/* harmony default export */ var locale_provider_default = (locale_default/* default */.Z);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/locale-provider/LocaleReceiver.js




var LocaleReceiver = function LocaleReceiver(props) {
  var _props$componentName = props.componentName,
    componentName = _props$componentName === void 0 ? 'global' : _props$componentName,
    defaultLocale = props.defaultLocale,
    children = props.children;
  var antLocale = _react_18_2_0_react.useContext(context/* default */.Z);
  var getLocale = _react_18_2_0_react.useMemo(function () {
    var _a;
    var locale = defaultLocale || locale_provider_default[componentName];
    var localeFromContext = (_a = antLocale === null || antLocale === void 0 ? void 0 : antLocale[componentName]) !== null && _a !== void 0 ? _a : {};
    return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, locale instanceof Function ? locale() : locale), localeFromContext || {});
  }, [componentName, defaultLocale, antLocale]);
  var getLocaleCode = _react_18_2_0_react.useMemo(function () {
    var localeCode = antLocale && antLocale.locale;
    // Had use LocaleProvide but didn't set locale
    if (antLocale && antLocale.exist && !localeCode) {
      return locale_provider_default.locale;
    }
    return localeCode;
  }, [antLocale]);
  return children(getLocale, getLocaleCode, antLocale);
};
/* harmony default export */ var locale_provider_LocaleReceiver = (LocaleReceiver);
var useLocaleReceiver = function useLocaleReceiver(componentName, defaultLocale) {
  var antLocale = React.useContext(LocaleContext);
  var getLocale = React.useMemo(function () {
    var _a;
    var locale = defaultLocale || defaultLocaleData[componentName];
    var localeFromContext = (_a = antLocale === null || antLocale === void 0 ? void 0 : antLocale[componentName]) !== null && _a !== void 0 ? _a : {};
    return _extends(_extends({}, typeof locale === 'function' ? locale() : locale), localeFromContext || {});
  }, [componentName, defaultLocale, antLocale]);
  return [getLocale];
};

/***/ }),

/***/ 6649:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);

var LocaleContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(undefined);
/* harmony default export */ __webpack_exports__.Z = (LocaleContext);

/***/ }),

/***/ 7618:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ locale_default; }
});

;// CONCATENATED MODULE: ./node_modules/_rc-pagination@3.2.0@rc-pagination/es/locale/en_US.js
/* harmony default export */ var en_US = ({
  // Options.jsx
  items_per_page: '/ page',
  jump_to: 'Go to',
  jump_to_confirm: 'confirm',
  page: 'Page',
  // Pagination.jsx
  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'
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
;// CONCATENATED MODULE: ./node_modules/_rc-picker@2.7.2@rc-picker/es/locale/en_US.js
var locale = {
  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: true,
  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'
};
/* harmony default export */ var locale_en_US = (locale);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/time-picker/locale/en_US.js
var en_US_locale = {
  placeholder: 'Select time',
  rangePlaceholder: ['Start time', 'End time']
};
/* harmony default export */ var time_picker_locale_en_US = (en_US_locale);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/date-picker/locale/en_US.js



// Merge into a locale object
var locale_en_US_locale = {
  lang: (0,esm_extends/* default */.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'],
    rangeQuarterPlaceholder: ['Start quarter', 'End quarter'],
    rangeMonthPlaceholder: ['Start month', 'End month'],
    rangeWeekPlaceholder: ['Start week', 'End week']
  }, locale_en_US),
  timePickerLocale: (0,esm_extends/* default */.Z)({}, time_picker_locale_en_US)
};
// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
/* harmony default export */ var date_picker_locale_en_US = (locale_en_US_locale);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/calendar/locale/en_US.js

/* harmony default export */ var calendar_locale_en_US = (date_picker_locale_en_US);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/locale/default.js
/* eslint-disable no-template-curly-in-string */




var typeTemplate = '${label} is not a valid ${type}';
var localeValues = {
  locale: 'en',
  Pagination: en_US,
  DatePicker: date_picker_locale_en_US,
  TimePicker: time_picker_locale_en_US,
  Calendar: calendar_locale_en_US,
  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: typeTemplate,
        method: typeTemplate,
        array: typeTemplate,
        object: typeTemplate,
        number: typeTemplate,
        date: typeTemplate,
        "boolean": typeTemplate,
        integer: typeTemplate,
        "float": typeTemplate,
        regexp: typeTemplate,
        email: typeTemplate,
        url: typeTemplate,
        hex: typeTemplate
      },
      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'
  }
};
/* harmony default export */ var locale_default = (localeValues);

/***/ }),

/***/ 696:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Df: function() { return /* binding */ attachTypeApi; },
  ZP: function() { return /* binding */ message; },
  S$: function() { return /* binding */ getKeyThenIncreaseKey; },
  z$: function() { return /* binding */ typeList; }
});

// UNUSED EXPORTS: getInstance

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/CheckCircleFilled.js
// This icon file is generated automatically.
var CheckCircleFilled = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"
      }
    }]
  },
  "name": "check-circle",
  "theme": "filled"
};
/* harmony default export */ var asn_CheckCircleFilled = (CheckCircleFilled);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(2361);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CheckCircleFilled.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var CheckCircleFilled_CheckCircleFilled = function CheckCircleFilled(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_CheckCircleFilled
  }));
};
CheckCircleFilled_CheckCircleFilled.displayName = 'CheckCircleFilled';
/* harmony default export */ var icons_CheckCircleFilled = (/*#__PURE__*/_react_18_2_0_react.forwardRef(CheckCircleFilled_CheckCircleFilled));
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseCircleFilled.js + 1 modules
var CloseCircleFilled = __webpack_require__(2842);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/ExclamationCircleFilled.js
// This icon file is generated automatically.
var ExclamationCircleFilled = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
      }
    }]
  },
  "name": "exclamation-circle",
  "theme": "filled"
};
/* harmony default export */ var asn_ExclamationCircleFilled = (ExclamationCircleFilled);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/ExclamationCircleFilled.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var ExclamationCircleFilled_ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_ExclamationCircleFilled
  }));
};
ExclamationCircleFilled_ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
/* harmony default export */ var icons_ExclamationCircleFilled = (/*#__PURE__*/_react_18_2_0_react.forwardRef(ExclamationCircleFilled_ExclamationCircleFilled));
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.2.1@@ant-design/icons-svg/es/asn/InfoCircleFilled.js
// This icon file is generated automatically.
var InfoCircleFilled = {
  "icon": {
    "tag": "svg",
    "attrs": {
      "viewBox": "64 64 896 896",
      "focusable": "false"
    },
    "children": [{
      "tag": "path",
      "attrs": {
        "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"
      }
    }]
  },
  "name": "info-circle",
  "theme": "filled"
};
/* harmony default export */ var asn_InfoCircleFilled = (InfoCircleFilled);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/InfoCircleFilled.js

// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY



var InfoCircleFilled_InfoCircleFilled = function InfoCircleFilled(props, ref) {
  return /*#__PURE__*/_react_18_2_0_react.createElement(AntdIcon/* default */.Z, (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, props), {}, {
    ref: ref,
    icon: asn_InfoCircleFilled
  }));
};
InfoCircleFilled_InfoCircleFilled.displayName = 'InfoCircleFilled';
/* harmony default export */ var icons_InfoCircleFilled = (/*#__PURE__*/_react_18_2_0_react.forwardRef(InfoCircleFilled_InfoCircleFilled));
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
var LoadingOutlined = __webpack_require__(5730);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(7258);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-notification@4.6.1@rc-notification/es/index.js + 1 modules
var es = __webpack_require__(1023);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/index.js + 5 modules
var config_provider = __webpack_require__(7183);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_rc-notification@4.6.1@rc-notification/es/useNotification.js
var useNotification = __webpack_require__(5065);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/context.js
var context = __webpack_require__(6563);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/message/hooks/useMessage.js






function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
  var useMessage = function useMessage() {
    // We can only get content by render
    var getPrefixCls;
    var getPopupContainer;
    // We create a proxy to handle delay created instance
    var innerInstance = null;
    var proxy = {
      add: function add(noticeProps, holderCallback) {
        innerInstance === null || innerInstance === void 0 ? void 0 : innerInstance.component.add(noticeProps, holderCallback);
      }
    };
    var _useRCNotification = (0,useNotification/* default */.Z)(proxy),
      _useRCNotification2 = (0,slicedToArray/* default */.Z)(_useRCNotification, 2),
      hookNotify = _useRCNotification2[0],
      holder = _useRCNotification2[1];
    function notify(args) {
      var customizePrefixCls = args.prefixCls;
      var mergedPrefixCls = getPrefixCls('message', customizePrefixCls);
      var rootPrefixCls = getPrefixCls();
      var target = args.key || getKeyThenIncreaseKey();
      var closePromise = new Promise(function (resolve) {
        var callback = function callback() {
          if (typeof args.onClose === 'function') {
            args.onClose();
          }
          return resolve(true);
        };
        getRcNotificationInstance((0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, args), {
          prefixCls: mergedPrefixCls,
          rootPrefixCls: rootPrefixCls,
          getPopupContainer: getPopupContainer
        }), function (_ref) {
          var prefixCls = _ref.prefixCls,
            instance = _ref.instance;
          innerInstance = instance;
          hookNotify(getRCNoticeProps((0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, args), {
            key: target,
            onClose: callback
          }), prefixCls));
        });
      });
      var result = function result() {
        if (innerInstance) {
          innerInstance.removeNotice(target);
        }
      };
      result.then = function (filled, rejected) {
        return closePromise.then(filled, rejected);
      };
      result.promise = closePromise;
      return result;
    }
    // Fill functions
    var hookApiRef = _react_18_2_0_react.useRef({});
    hookApiRef.current.open = notify;
    typeList.forEach(function (type) {
      return attachTypeApi(hookApiRef.current, type);
    });
    return [hookApiRef.current, /*#__PURE__*/_react_18_2_0_react.createElement(context/* ConfigConsumer */.C, {
      key: "holder"
    }, function (context) {
      getPrefixCls = context.getPrefixCls;
      getPopupContainer = context.getPopupContainer;
      return holder;
    })];
  };
  return useMessage;
}
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/message/index.js












var messageInstance;
var defaultDuration = 3;
var defaultTop;
var key = 1;
var localPrefixCls = '';
var transitionName = 'move-up';
var hasTransitionName = false;
var getContainer;
var maxCount;
var rtl = false;
function getKeyThenIncreaseKey() {
  return key++;
}
function setMessageConfig(options) {
  if (options.top !== undefined) {
    defaultTop = options.top;
    messageInstance = null; // delete messageInstance for new defaultTop
  }

  if (options.duration !== undefined) {
    defaultDuration = options.duration;
  }
  if (options.prefixCls !== undefined) {
    localPrefixCls = options.prefixCls;
  }
  if (options.getContainer !== undefined) {
    getContainer = options.getContainer;
    messageInstance = null; // delete messageInstance for new getContainer
  }

  if (options.transitionName !== undefined) {
    transitionName = options.transitionName;
    messageInstance = null; // delete messageInstance for new transitionName
    hasTransitionName = true;
  }
  if (options.maxCount !== undefined) {
    maxCount = options.maxCount;
    messageInstance = null;
  }
  if (options.rtl !== undefined) {
    rtl = options.rtl;
  }
}
function getRCNotificationInstance(args, callback) {
  var customizePrefixCls = args.prefixCls,
    getContextPopupContainer = args.getPopupContainer;
  var _globalConfig = (0,config_provider/* globalConfig */.w6)(),
    getPrefixCls = _globalConfig.getPrefixCls,
    getRootPrefixCls = _globalConfig.getRootPrefixCls,
    getIconPrefixCls = _globalConfig.getIconPrefixCls;
  var prefixCls = getPrefixCls('message', customizePrefixCls || localPrefixCls);
  var rootPrefixCls = getRootPrefixCls(args.rootPrefixCls, prefixCls);
  var iconPrefixCls = getIconPrefixCls();
  if (messageInstance) {
    callback({
      prefixCls: prefixCls,
      rootPrefixCls: rootPrefixCls,
      iconPrefixCls: iconPrefixCls,
      instance: messageInstance
    });
    return;
  }
  var instanceConfig = {
    prefixCls: prefixCls,
    transitionName: hasTransitionName ? transitionName : "".concat(rootPrefixCls, "-").concat(transitionName),
    style: {
      top: defaultTop
    },
    getContainer: getContainer || getContextPopupContainer,
    maxCount: maxCount
  };
  es/* default */.Z.newInstance(instanceConfig, function (instance) {
    if (messageInstance) {
      callback({
        prefixCls: prefixCls,
        rootPrefixCls: rootPrefixCls,
        iconPrefixCls: iconPrefixCls,
        instance: messageInstance
      });
      return;
    }
    messageInstance = instance;
    if (false) {}
    callback({
      prefixCls: prefixCls,
      rootPrefixCls: rootPrefixCls,
      iconPrefixCls: iconPrefixCls,
      instance: instance
    });
  });
}
var typeToIcon = {
  info: icons_InfoCircleFilled,
  success: icons_CheckCircleFilled,
  error: CloseCircleFilled/* default */.Z,
  warning: icons_ExclamationCircleFilled,
  loading: LoadingOutlined/* default */.Z
};
var typeList = Object.keys(typeToIcon);
function getRCNoticeProps(args, prefixCls, iconPrefixCls) {
  var _classNames;
  var duration = args.duration !== undefined ? args.duration : defaultDuration;
  var IconComponent = typeToIcon[args.type];
  var messageClass = _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-custom-content"), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-").concat(args.type), args.type), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), rtl === true), _classNames));
  return {
    key: args.key,
    duration: duration,
    style: args.style || {},
    className: args.className,
    content: /*#__PURE__*/_react_18_2_0_react.createElement(config_provider/* default */.ZP, {
      iconPrefixCls: iconPrefixCls
    }, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: messageClass
    }, args.icon || IconComponent && /*#__PURE__*/_react_18_2_0_react.createElement(IconComponent, null), /*#__PURE__*/_react_18_2_0_react.createElement("span", null, args.content))),
    onClose: args.onClose,
    onClick: args.onClick
  };
}
function notice(args) {
  var target = args.key || getKeyThenIncreaseKey();
  var closePromise = new Promise(function (resolve) {
    var callback = function callback() {
      if (typeof args.onClose === 'function') {
        args.onClose();
      }
      return resolve(true);
    };
    getRCNotificationInstance(args, function (_ref) {
      var prefixCls = _ref.prefixCls,
        iconPrefixCls = _ref.iconPrefixCls,
        instance = _ref.instance;
      instance.notice(getRCNoticeProps((0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, args), {
        key: target,
        onClose: callback
      }), prefixCls, iconPrefixCls));
    });
  });
  var result = function result() {
    var _a;
    if (messageInstance) {
      messageInstance.removeNotice(target);
      (_a = args.onClose) === null || _a === void 0 ? void 0 : _a.call(args);
    }
  };
  result.then = function (filled, rejected) {
    return closePromise.then(filled, rejected);
  };
  result.promise = closePromise;
  return result;
}
function isArgsProps(content) {
  return Object.prototype.toString.call(content) === '[object Object]' && !!content.content;
}
var api = {
  open: notice,
  config: setMessageConfig,
  destroy: function destroy(messageKey) {
    if (messageInstance) {
      if (messageKey) {
        var _messageInstance = messageInstance,
          removeNotice = _messageInstance.removeNotice;
        removeNotice(messageKey);
      } else {
        var _messageInstance2 = messageInstance,
          destroy = _messageInstance2.destroy;
        destroy();
        messageInstance = null;
      }
    }
  }
};
function attachTypeApi(originalApi, type) {
  originalApi[type] = function (content, duration, onClose) {
    if (isArgsProps(content)) {
      return originalApi.open((0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, content), {
        type: type
      }));
    }
    if (typeof duration === 'function') {
      onClose = duration;
      duration = undefined;
    }
    return originalApi.open({
      content: content,
      duration: duration,
      type: type,
      onClose: onClose
    });
  };
}
typeList.forEach(function (type) {
  return attachTypeApi(api, type);
});
api.warn = api.warning;
api.useMessage = createUseMessage(getRCNotificationInstance, getRCNoticeProps);
/** @internal test Only function. Not work on production */
var getInstance = function getInstance() {
  return  false ? 0 : null;
};
/* harmony default export */ var message = (api);

/***/ }),

/***/ 3323:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ modal; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(372);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CheckCircleOutlined.js + 1 modules
var CheckCircleOutlined = __webpack_require__(2169);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseCircleOutlined.js + 1 modules
var CloseCircleOutlined = __webpack_require__(1566);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
var ExclamationCircleOutlined = __webpack_require__(1544);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/InfoCircleOutlined.js + 1 modules
var InfoCircleOutlined = __webpack_require__(6416);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/React/render.js
var React_render = __webpack_require__(471);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
var _react_18_2_0_react_namespaceObject = /*#__PURE__*/__webpack_require__.t(_react_18_2_0_react, 2);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/index.js + 5 modules
var config_provider = __webpack_require__(7183);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(7258);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useState.js
var useState = __webpack_require__(5458);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/button/index.js
var es_button = __webpack_require__(7788);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/button/button.js + 2 modules
var button_button = __webpack_require__(5539);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/ActionButton.js






function isThenable(thing) {
  return !!(thing && !!thing.then);
}
var ActionButton = function ActionButton(props) {
  var clickedRef = _react_18_2_0_react.useRef(false);
  var ref = _react_18_2_0_react.useRef(null);
  var _useState = (0,useState/* default */.Z)(false),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    loading = _useState2[0],
    setLoading = _useState2[1];
  var close = props.close;
  var onInternalClose = function onInternalClose() {
    close === null || close === void 0 ? void 0 : close.apply(void 0, arguments);
  };
  _react_18_2_0_react.useEffect(function () {
    var timeoutId = null;
    if (props.autoFocus) {
      timeoutId = setTimeout(function () {
        var _a;
        (_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
      });
    }
    return function () {
      if (timeoutId) {
        clearTimeout(timeoutId);
      }
    };
  }, []);
  var handlePromiseOnOk = function handlePromiseOnOk(returnValueOfOnOk) {
    if (!isThenable(returnValueOfOnOk)) {
      return;
    }
    setLoading(true);
    returnValueOfOnOk.then(function () {
      setLoading(false, true);
      onInternalClose.apply(void 0, arguments);
      clickedRef.current = false;
    }, function (e) {
      // Emit error when catch promise reject
      // eslint-disable-next-line no-console
      console.error(e);
      // See: https://github.com/ant-design/ant-design/issues/6183
      setLoading(false, true);
      clickedRef.current = false;
    });
  };
  var onClick = function onClick(e) {
    var actionFn = props.actionFn;
    if (clickedRef.current) {
      return;
    }
    clickedRef.current = true;
    if (!actionFn) {
      onInternalClose();
      return;
    }
    var returnValueOfOnOk;
    if (props.emitEvent) {
      returnValueOfOnOk = actionFn(e);
      if (props.quitOnNullishReturnValue && !isThenable(returnValueOfOnOk)) {
        clickedRef.current = false;
        onInternalClose(e);
        return;
      }
    } else if (actionFn.length) {
      returnValueOfOnOk = actionFn(close);
      // https://github.com/ant-design/ant-design/issues/23358
      clickedRef.current = false;
    } else {
      returnValueOfOnOk = actionFn();
      if (!returnValueOfOnOk) {
        onInternalClose();
        return;
      }
    }
    handlePromiseOnOk(returnValueOfOnOk);
  };
  var type = props.type,
    children = props.children,
    prefixCls = props.prefixCls,
    buttonProps = props.buttonProps;
  return /*#__PURE__*/_react_18_2_0_react.createElement(es_button/* default */.Z, (0,esm_extends/* default */.Z)({}, (0,button_button/* convertLegacyProps */.n)(type), {
    onClick: onClick,
    loading: loading,
    prefixCls: prefixCls
  }, buttonProps, {
    ref: ref
  }), children);
};
/* harmony default export */ var _util_ActionButton = (ActionButton);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/motion.js
var motion = __webpack_require__(1175);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/CloseOutlined.js + 1 modules
var CloseOutlined = __webpack_require__(7586);
// EXTERNAL MODULE: ./node_modules/_react-dom@18.2.0@react-dom/index.js
var _react_dom_18_2_0_react_dom = __webpack_require__(1162);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/canUseDom.js
var canUseDom = __webpack_require__(6665);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/warning.js
var warning = __webpack_require__(8575);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/ref.js
var es_ref = __webpack_require__(1212);
;// CONCATENATED MODULE: ./node_modules/_@rc-component_portal@1.1.1@@rc-component/portal/es/Context.js

var OrderContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
/* harmony default export */ var Context = (OrderContext);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useLayoutEffect.js
var useLayoutEffect = __webpack_require__(3616);
;// CONCATENATED MODULE: ./node_modules/_@rc-component_portal@1.1.1@@rc-component/portal/es/useDom.js






var EMPTY_LIST = [];

/**
 * Will add `div` to document. Nest call will keep order
 * @param render Render DOM in document
 */
function useDom(render, debug) {
  var _React$useState = _react_18_2_0_react.useState(function () {
      if (!(0,canUseDom/* default */.Z)()) {
        return null;
      }
      var defaultEle = document.createElement('div');
      if (false) {}
      return defaultEle;
    }),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 1),
    ele = _React$useState2[0];

  // ========================== Order ==========================
  var appendedRef = _react_18_2_0_react.useRef(false);
  var queueCreate = _react_18_2_0_react.useContext(Context);
  var _React$useState3 = _react_18_2_0_react.useState(EMPTY_LIST),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    queue = _React$useState4[0],
    setQueue = _React$useState4[1];
  var mergedQueueCreate = queueCreate || (appendedRef.current ? undefined : function (appendFn) {
    setQueue(function (origin) {
      var newQueue = [appendFn].concat((0,toConsumableArray/* default */.Z)(origin));
      return newQueue;
    });
  });

  // =========================== DOM ===========================
  function append() {
    if (!ele.parentElement) {
      document.body.appendChild(ele);
    }
    appendedRef.current = true;
  }
  function cleanup() {
    var _ele$parentElement;
    (_ele$parentElement = ele.parentElement) === null || _ele$parentElement === void 0 ? void 0 : _ele$parentElement.removeChild(ele);
    appendedRef.current = false;
  }
  (0,useLayoutEffect/* default */.Z)(function () {
    if (render) {
      if (queueCreate) {
        queueCreate(append);
      } else {
        append();
      }
    } else {
      cleanup();
    }
    return cleanup;
  }, [render]);
  (0,useLayoutEffect/* default */.Z)(function () {
    if (queue.length) {
      queue.forEach(function (appendFn) {
        return appendFn();
      });
      setQueue(EMPTY_LIST);
    }
  }, [queue]);
  return [ele, mergedQueueCreate];
}
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/dynamicCSS.js
var dynamicCSS = __webpack_require__(7344);
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/getScrollBarSize.js
/* eslint-disable no-param-reassign */

var cached;
function getScrollBarSize(fresh) {
  if (typeof document === 'undefined') {
    return 0;
  }
  if (fresh || cached === undefined) {
    var inner = document.createElement('div');
    inner.style.width = '100%';
    inner.style.height = '200px';
    var outer = document.createElement('div');
    var outerStyle = outer.style;
    outerStyle.position = 'absolute';
    outerStyle.top = '0';
    outerStyle.left = '0';
    outerStyle.pointerEvents = 'none';
    outerStyle.visibility = 'hidden';
    outerStyle.width = '200px';
    outerStyle.height = '150px';
    outerStyle.overflow = 'hidden';
    outer.appendChild(inner);
    document.body.appendChild(outer);
    var widthContained = inner.offsetWidth;
    outer.style.overflow = 'scroll';
    var widthScroll = inner.offsetWidth;
    if (widthContained === widthScroll) {
      widthScroll = outer.clientWidth;
    }
    document.body.removeChild(outer);
    cached = widthContained - widthScroll;
  }
  return cached;
}
function ensureSize(str) {
  var match = str.match(/^(.*)px$/);
  var value = Number(match === null || match === void 0 ? void 0 : match[1]);
  return Number.isNaN(value) ? getScrollBarSize() : value;
}
function getTargetScrollBarSize(target) {
  if (typeof document === 'undefined' || !target || !(target instanceof Element)) {
    return {
      width: 0,
      height: 0
    };
  }
  var _getComputedStyle = getComputedStyle(target, '::-webkit-scrollbar'),
    width = _getComputedStyle.width,
    height = _getComputedStyle.height;
  return {
    width: ensureSize(width),
    height: ensureSize(height)
  };
}
;// CONCATENATED MODULE: ./node_modules/_@rc-component_portal@1.1.1@@rc-component/portal/es/util.js
/**
 * Test usage export. Do not use in your production
 */
function isBodyOverflowing() {
  return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
}
;// CONCATENATED MODULE: ./node_modules/_@rc-component_portal@1.1.1@@rc-component/portal/es/useScrollLocker.js






var UNIQUE_ID = "rc-util-locker-".concat(Date.now());
var uuid = 0;
function useScrollLocker(lock) {
  var mergedLock = !!lock;
  var _React$useState = _react_18_2_0_react.useState(function () {
      uuid += 1;
      return "".concat(UNIQUE_ID, "_").concat(uuid);
    }),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 1),
    id = _React$useState2[0];
  (0,useLayoutEffect/* default */.Z)(function () {
    if (mergedLock) {
      var scrollbarSize = getScrollBarSize();
      var isOverflow = isBodyOverflowing();
      (0,dynamicCSS/* updateCSS */.hq)("\nhtml body {\n  overflow-y: hidden;\n  ".concat(isOverflow ? "width: calc(100% - ".concat(scrollbarSize, "px);") : '', "\n}"), id);
    } else {
      (0,dynamicCSS/* removeCSS */.jL)(id);
    }
    return function () {
      (0,dynamicCSS/* removeCSS */.jL)(id);
    };
  }, [mergedLock, id]);
}
;// CONCATENATED MODULE: ./node_modules/_@rc-component_portal@1.1.1@@rc-component/portal/es/mock.js
var inline = false;
function inlineMock(nextInline) {
  if (typeof nextInline === 'boolean') {
    inline = nextInline;
  }
  return inline;
}
;// CONCATENATED MODULE: ./node_modules/_@rc-component_portal@1.1.1@@rc-component/portal/es/Portal.js










var getPortalContainer = function getPortalContainer(getContainer) {
  if (getContainer === false) {
    return false;
  }
  if (!(0,canUseDom/* default */.Z)() || !getContainer) {
    return null;
  }
  if (typeof getContainer === 'string') {
    return document.querySelector(getContainer);
  }
  if (typeof getContainer === 'function') {
    return getContainer();
  }
  return getContainer;
};
var Portal = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var open = props.open,
    autoLock = props.autoLock,
    getContainer = props.getContainer,
    debug = props.debug,
    _props$autoDestroy = props.autoDestroy,
    autoDestroy = _props$autoDestroy === void 0 ? true : _props$autoDestroy,
    children = props.children;
  var _React$useState = _react_18_2_0_react.useState(open),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    shouldRender = _React$useState2[0],
    setShouldRender = _React$useState2[1];
  var mergedRender = shouldRender || open;

  // ========================= Warning =========================
  if (false) {}

  // ====================== Should Render ======================
  _react_18_2_0_react.useEffect(function () {
    if (autoDestroy || open) {
      setShouldRender(open);
    }
  }, [open, autoDestroy]);

  // ======================== Container ========================
  var _React$useState3 = _react_18_2_0_react.useState(function () {
      return getPortalContainer(getContainer);
    }),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    innerContainer = _React$useState4[0],
    setInnerContainer = _React$useState4[1];
  _react_18_2_0_react.useEffect(function () {
    var customizeContainer = getPortalContainer(getContainer);

    // Tell component that we check this in effect which is safe to be `null`
    setInnerContainer(customizeContainer !== null && customizeContainer !== void 0 ? customizeContainer : null);
  });
  var _useDom = useDom(mergedRender && !innerContainer, debug),
    _useDom2 = (0,slicedToArray/* default */.Z)(_useDom, 2),
    defaultContainer = _useDom2[0],
    queueCreate = _useDom2[1];
  var mergedContainer = innerContainer !== null && innerContainer !== void 0 ? innerContainer : defaultContainer;

  // ========================= Locker ==========================
  useScrollLocker(autoLock && open && (0,canUseDom/* default */.Z)() && (mergedContainer === defaultContainer || mergedContainer === document.body));

  // =========================== Ref ===========================
  var childRef = null;
  if (children && (0,es_ref/* supportRef */.Yr)(children) && ref) {
    var _ref = children;
    childRef = _ref.ref;
  }
  var mergedRef = (0,es_ref/* useComposeRef */.x1)(childRef, ref);

  // ========================= Render ==========================
  // Do not render when nothing need render
  // When innerContainer is `undefined`, it may not ready since user use ref in the same render
  if (!mergedRender || !(0,canUseDom/* default */.Z)() || innerContainer === undefined) {
    return null;
  }

  // Render inline
  var renderInline = mergedContainer === false || inlineMock();
  var reffedChildren = children;
  if (ref) {
    reffedChildren = /*#__PURE__*/_react_18_2_0_react.cloneElement(children, {
      ref: mergedRef
    });
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(Context.Provider, {
    value: queueCreate
  }, renderInline ? reffedChildren : /*#__PURE__*/(0,_react_dom_18_2_0_react_dom.createPortal)(reffedChildren, mergedContainer));
});
if (false) {}
/* harmony default export */ var es_Portal = (Portal);
;// CONCATENATED MODULE: ./node_modules/_@rc-component_portal@1.1.1@@rc-component/portal/es/index.js



/* harmony default export */ var es = (es_Portal);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(9202);
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useId.js



function getUseId() {
  // We need fully clone React function here to avoid webpack warning React 17 do not export `useId`
  var fullClone = (0,objectSpread2/* default */.Z)({}, _react_18_2_0_react_namespaceObject);
  return fullClone.useId;
}
var useId_uuid = 0;

/** @private Note only worked in develop env. Not work in production. */
function resetUuid() {
  if (false) {}
}
function useId(id) {
  // Inner id for accessibility usage. Only work in client side
  var _React$useState = _react_18_2_0_react.useState('ssr-id'),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    innerId = _React$useState2[0],
    setInnerId = _React$useState2[1];
  var useOriginId = getUseId();
  var reactNativeId = useOriginId === null || useOriginId === void 0 ? void 0 : useOriginId();
  _react_18_2_0_react.useEffect(function () {
    if (!useOriginId) {
      var nextId = useId_uuid;
      useId_uuid += 1;
      setInnerId("rc_unique_".concat(nextId));
    }
  }, []);

  // Developer passed id is single source of truth
  if (id) {
    return id;
  }

  // Test env always return mock id
  if (false) {}

  // Return react native id or inner id
  return reactNativeId || innerId;
}
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/contains.js
var contains = __webpack_require__(9424);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/pickAttrs.js
var pickAttrs = __webpack_require__(766);
// EXTERNAL MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/index.js + 12 modules
var _rc_motion_2_7_3_rc_motion_es = __webpack_require__(158);
;// CONCATENATED MODULE: ./node_modules/_rc-dialog@9.0.2@rc-dialog/es/Dialog/Mask.js





function Mask(props) {
  var prefixCls = props.prefixCls,
    style = props.style,
    visible = props.visible,
    maskProps = props.maskProps,
    motionName = props.motionName;
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_motion_2_7_3_rc_motion_es/* default */.ZP, {
    key: "mask",
    visible: visible,
    motionName: motionName,
    leavedClassName: "".concat(prefixCls, "-mask-hidden")
  }, function (_ref, ref) {
    var motionClassName = _ref.className,
      motionStyle = _ref.style;
    return /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
      ref: ref,
      style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, motionStyle), style),
      className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-mask"), motionClassName)
    }, maskProps));
  });
}
;// CONCATENATED MODULE: ./node_modules/_rc-dialog@9.0.2@rc-dialog/es/util.js
// =============================== Motion ===============================
function getMotionName(prefixCls, transitionName, animationName) {
  var motionName = transitionName;
  if (!motionName && animationName) {
    motionName = "".concat(prefixCls, "-").concat(animationName);
  }
  return motionName;
}
// =============================== Offset ===============================
function getScroll(w, top) {
  var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
  var method = "scroll".concat(top ? 'Top' : 'Left');
  if (typeof ret !== 'number') {
    var d = w.document;
    ret = d.documentElement[method];
    if (typeof ret !== 'number') {
      ret = d.body[method];
    }
  }
  return ret;
}
function offset(el) {
  var rect = el.getBoundingClientRect();
  var pos = {
    left: rect.left,
    top: rect.top
  };
  var doc = el.ownerDocument;
  var w = doc.defaultView || doc.parentWindow;
  pos.left += getScroll(w);
  pos.top += getScroll(w, true);
  return pos;
}
;// CONCATENATED MODULE: ./node_modules/_rc-dialog@9.0.2@rc-dialog/es/Dialog/Content/MemoChildren.js

/* harmony default export */ var MemoChildren = (/*#__PURE__*/_react_18_2_0_react.memo(function (_ref) {
  var children = _ref.children;
  return children;
}, function (_, _ref2) {
  var shouldUpdate = _ref2.shouldUpdate;
  return !shouldUpdate;
}));
;// CONCATENATED MODULE: ./node_modules/_rc-dialog@9.0.2@rc-dialog/es/Dialog/Content/Panel.js





var sentinelStyle = {
  width: 0,
  height: 0,
  overflow: 'hidden',
  outline: 'none'
};
var Panel = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var prefixCls = props.prefixCls,
    className = props.className,
    style = props.style,
    title = props.title,
    ariaId = props.ariaId,
    footer = props.footer,
    closable = props.closable,
    closeIcon = props.closeIcon,
    onClose = props.onClose,
    children = props.children,
    bodyStyle = props.bodyStyle,
    bodyProps = props.bodyProps,
    modalRender = props.modalRender,
    onMouseDown = props.onMouseDown,
    onMouseUp = props.onMouseUp,
    holderRef = props.holderRef,
    visible = props.visible,
    forceRender = props.forceRender,
    width = props.width,
    height = props.height;
  // ================================= Refs =================================
  var sentinelStartRef = (0,_react_18_2_0_react.useRef)();
  var sentinelEndRef = (0,_react_18_2_0_react.useRef)();
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      focus: function focus() {
        var _sentinelStartRef$cur;
        (_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 ? void 0 : _sentinelStartRef$cur.focus();
      },
      changeActive: function changeActive(next) {
        var _document = document,
          activeElement = _document.activeElement;
        if (next && activeElement === sentinelEndRef.current) {
          sentinelStartRef.current.focus();
        } else if (!next && activeElement === sentinelStartRef.current) {
          sentinelEndRef.current.focus();
        }
      }
    };
  });
  // ================================ Style =================================
  var contentStyle = {};
  if (width !== undefined) {
    contentStyle.width = width;
  }
  if (height !== undefined) {
    contentStyle.height = height;
  }
  // ================================ Render ================================
  var footerNode;
  if (footer) {
    footerNode = /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-footer")
    }, footer);
  }
  var headerNode;
  if (title) {
    headerNode = /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-header")
    }, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
      className: "".concat(prefixCls, "-title"),
      id: ariaId
    }, title));
  }
  var closer;
  if (closable) {
    closer = /*#__PURE__*/_react_18_2_0_react.createElement("button", {
      type: "button",
      onClick: onClose,
      "aria-label": "Close",
      className: "".concat(prefixCls, "-close")
    }, closeIcon || /*#__PURE__*/_react_18_2_0_react.createElement("span", {
      className: "".concat(prefixCls, "-close-x")
    }));
  }
  var content = /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(prefixCls, "-content")
  }, closer, headerNode, /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
    className: "".concat(prefixCls, "-body"),
    style: bodyStyle
  }, bodyProps), children), footerNode);
  return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    key: "dialog-element",
    role: "dialog",
    "aria-labelledby": title ? ariaId : null,
    "aria-modal": "true",
    ref: holderRef,
    style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, style), contentStyle),
    className: _classnames_2_3_2_classnames_default()(prefixCls, className),
    onMouseDown: onMouseDown,
    onMouseUp: onMouseUp
  }, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    tabIndex: 0,
    ref: sentinelStartRef,
    style: sentinelStyle,
    "aria-hidden": "true"
  }), /*#__PURE__*/_react_18_2_0_react.createElement(MemoChildren, {
    shouldUpdate: visible || forceRender
  }, modalRender ? modalRender(content) : content), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    tabIndex: 0,
    ref: sentinelEndRef,
    style: sentinelStyle,
    "aria-hidden": "true"
  }));
});
if (false) {}
/* harmony default export */ var Content_Panel = (Panel);
;// CONCATENATED MODULE: ./node_modules/_rc-dialog@9.0.2@rc-dialog/es/Dialog/Content/index.js









var Content = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
  var prefixCls = props.prefixCls,
    title = props.title,
    style = props.style,
    className = props.className,
    visible = props.visible,
    forceRender = props.forceRender,
    destroyOnClose = props.destroyOnClose,
    motionName = props.motionName,
    ariaId = props.ariaId,
    onVisibleChanged = props.onVisibleChanged,
    mousePosition = props.mousePosition;
  var dialogRef = (0,_react_18_2_0_react.useRef)();
  // ============================= Style ==============================
  var _React$useState = _react_18_2_0_react.useState(),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    transformOrigin = _React$useState2[0],
    setTransformOrigin = _React$useState2[1];
  var contentStyle = {};
  if (transformOrigin) {
    contentStyle.transformOrigin = transformOrigin;
  }
  function onPrepare() {
    var elementOffset = offset(dialogRef.current);
    setTransformOrigin(mousePosition ? "".concat(mousePosition.x - elementOffset.left, "px ").concat(mousePosition.y - elementOffset.top, "px") : '');
  }
  // ============================= Render =============================
  return /*#__PURE__*/_react_18_2_0_react.createElement(_rc_motion_2_7_3_rc_motion_es/* default */.ZP, {
    visible: visible,
    onVisibleChanged: onVisibleChanged,
    onAppearPrepare: onPrepare,
    onEnterPrepare: onPrepare,
    forceRender: forceRender,
    motionName: motionName,
    removeOnLeave: destroyOnClose,
    ref: dialogRef
  }, function (_ref, motionRef) {
    var motionClassName = _ref.className,
      motionStyle = _ref.style;
    return /*#__PURE__*/_react_18_2_0_react.createElement(Content_Panel, (0,esm_extends/* default */.Z)({}, props, {
      ref: ref,
      title: title,
      ariaId: ariaId,
      prefixCls: prefixCls,
      holderRef: motionRef,
      style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, motionStyle), style), contentStyle),
      className: _classnames_2_3_2_classnames_default()(className, motionClassName)
    }));
  });
});
Content.displayName = 'Content';
/* harmony default export */ var Dialog_Content = (Content);
;// CONCATENATED MODULE: ./node_modules/_rc-dialog@9.0.2@rc-dialog/es/Dialog/index.js













function Dialog(props) {
  var _props$prefixCls = props.prefixCls,
    prefixCls = _props$prefixCls === void 0 ? 'rc-dialog' : _props$prefixCls,
    zIndex = props.zIndex,
    _props$visible = props.visible,
    visible = _props$visible === void 0 ? false : _props$visible,
    _props$keyboard = props.keyboard,
    keyboard = _props$keyboard === void 0 ? true : _props$keyboard,
    _props$focusTriggerAf = props.focusTriggerAfterClose,
    focusTriggerAfterClose = _props$focusTriggerAf === void 0 ? true : _props$focusTriggerAf,
    wrapStyle = props.wrapStyle,
    wrapClassName = props.wrapClassName,
    wrapProps = props.wrapProps,
    onClose = props.onClose,
    afterClose = props.afterClose,
    transitionName = props.transitionName,
    animation = props.animation,
    _props$closable = props.closable,
    closable = _props$closable === void 0 ? true : _props$closable,
    _props$mask = props.mask,
    mask = _props$mask === void 0 ? true : _props$mask,
    maskTransitionName = props.maskTransitionName,
    maskAnimation = props.maskAnimation,
    _props$maskClosable = props.maskClosable,
    maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,
    maskStyle = props.maskStyle,
    maskProps = props.maskProps,
    rootClassName = props.rootClassName;
  var lastOutSideActiveElementRef = (0,_react_18_2_0_react.useRef)();
  var wrapperRef = (0,_react_18_2_0_react.useRef)();
  var contentRef = (0,_react_18_2_0_react.useRef)();
  var _React$useState = _react_18_2_0_react.useState(visible),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    animatedVisible = _React$useState2[0],
    setAnimatedVisible = _React$useState2[1];
  // ========================== Init ==========================
  var ariaId = useId();
  function saveLastOutSideActiveElementRef() {
    if (!(0,contains/* default */.Z)(wrapperRef.current, document.activeElement)) {
      lastOutSideActiveElementRef.current = document.activeElement;
    }
  }
  function focusDialogContent() {
    if (!(0,contains/* default */.Z)(wrapperRef.current, document.activeElement)) {
      var _contentRef$current;
      (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.focus();
    }
  }
  // ========================= Events =========================
  function onDialogVisibleChanged(newVisible) {
    // Try to focus
    if (newVisible) {
      focusDialogContent();
    } else {
      // Clean up scroll bar & focus back
      setAnimatedVisible(false);
      if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
        try {
          lastOutSideActiveElementRef.current.focus({
            preventScroll: true
          });
        } catch (e) {
          // Do nothing
        }
        lastOutSideActiveElementRef.current = null;
      }
      // Trigger afterClose only when change visible from true to false
      if (animatedVisible) {
        afterClose === null || afterClose === void 0 ? void 0 : afterClose();
      }
    }
  }
  function onInternalClose(e) {
    onClose === null || onClose === void 0 ? void 0 : onClose(e);
  }
  // >>> Content
  var contentClickRef = (0,_react_18_2_0_react.useRef)(false);
  var contentTimeoutRef = (0,_react_18_2_0_react.useRef)();
  // We need record content click incase content popup out of dialog
  var onContentMouseDown = function onContentMouseDown() {
    clearTimeout(contentTimeoutRef.current);
    contentClickRef.current = true;
  };
  var onContentMouseUp = function onContentMouseUp() {
    contentTimeoutRef.current = setTimeout(function () {
      contentClickRef.current = false;
    });
  };
  // >>> Wrapper
  // Close only when element not on dialog
  var onWrapperClick = null;
  if (maskClosable) {
    onWrapperClick = function onWrapperClick(e) {
      if (contentClickRef.current) {
        contentClickRef.current = false;
      } else if (wrapperRef.current === e.target) {
        onInternalClose(e);
      }
    };
  }
  function onWrapperKeyDown(e) {
    if (keyboard && e.keyCode === KeyCode/* default */.Z.ESC) {
      e.stopPropagation();
      onInternalClose(e);
      return;
    }
    // keep focus inside dialog
    if (visible) {
      if (e.keyCode === KeyCode/* default */.Z.TAB) {
        contentRef.current.changeActive(!e.shiftKey);
      }
    }
  }
  // ========================= Effect =========================
  (0,_react_18_2_0_react.useEffect)(function () {
    if (visible) {
      setAnimatedVisible(true);
      saveLastOutSideActiveElementRef();
    }
  }, [visible]);
  // Remove direct should also check the scroll bar update
  (0,_react_18_2_0_react.useEffect)(function () {
    return function () {
      clearTimeout(contentTimeoutRef.current);
    };
  }, []);
  // ========================= Render =========================
  return /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
    className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-root"), rootClassName)
  }, (0,pickAttrs/* default */.Z)(props, {
    data: true
  })), /*#__PURE__*/_react_18_2_0_react.createElement(Mask, {
    prefixCls: prefixCls,
    visible: mask && visible,
    motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
    style: (0,objectSpread2/* default */.Z)({
      zIndex: zIndex
    }, maskStyle),
    maskProps: maskProps
  }), /*#__PURE__*/_react_18_2_0_react.createElement("div", (0,esm_extends/* default */.Z)({
    tabIndex: -1,
    onKeyDown: onWrapperKeyDown,
    className: _classnames_2_3_2_classnames_default()("".concat(prefixCls, "-wrap"), wrapClassName),
    ref: wrapperRef,
    onClick: onWrapperClick,
    style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
      zIndex: zIndex
    }, wrapStyle), {}, {
      display: !animatedVisible ? 'none' : null
    })
  }, wrapProps), /*#__PURE__*/_react_18_2_0_react.createElement(Dialog_Content, (0,esm_extends/* default */.Z)({}, props, {
    onMouseDown: onContentMouseDown,
    onMouseUp: onContentMouseUp,
    ref: contentRef,
    closable: closable,
    ariaId: ariaId,
    prefixCls: prefixCls,
    visible: visible && animatedVisible,
    onClose: onInternalClose,
    onVisibleChanged: onDialogVisibleChanged,
    motionName: getMotionName(prefixCls, transitionName, animation)
  }))));
}
;// CONCATENATED MODULE: ./node_modules/_rc-dialog@9.0.2@rc-dialog/es/DialogWrap.js





// fix issue #10656
/*
 * getContainer remarks
 * Custom container should not be return, because in the Portal component, it will remove the
 * return container element here, if the custom container is the only child of it's component,
 * like issue #10656, It will has a conflict with removeChild method in react-dom.
 * So here should add a child (div element) to custom container.
 * */
var DialogWrap = function DialogWrap(props) {
  var visible = props.visible,
    getContainer = props.getContainer,
    forceRender = props.forceRender,
    _props$destroyOnClose = props.destroyOnClose,
    destroyOnClose = _props$destroyOnClose === void 0 ? false : _props$destroyOnClose,
    _afterClose = props.afterClose;
  var _React$useState = _react_18_2_0_react.useState(visible),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    animatedVisible = _React$useState2[0],
    setAnimatedVisible = _React$useState2[1];
  _react_18_2_0_react.useEffect(function () {
    if (visible) {
      setAnimatedVisible(true);
    }
  }, [visible]);
  // // 渲染在当前 dom 里；
  // if (getContainer === false) {
  //   return (
  //     <Dialog
  //       {...props}
  //       getOpenCount={() => 2} // 不对 body 做任何操作。。
  //     />
  //   );
  // }
  // Destroy on close will remove wrapped div
  if (!forceRender && destroyOnClose && !animatedVisible) {
    return null;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(es, {
    open: visible || forceRender || animatedVisible,
    autoDestroy: false,
    getContainer: getContainer,
    autoLock: visible || animatedVisible
  }, /*#__PURE__*/_react_18_2_0_react.createElement(Dialog, (0,esm_extends/* default */.Z)({}, props, {
    destroyOnClose: destroyOnClose,
    afterClose: function afterClose() {
      _afterClose === null || _afterClose === void 0 ? void 0 : _afterClose();
      setAnimatedVisible(false);
    }
  })));
};
DialogWrap.displayName = 'Dialog';
/* harmony default export */ var es_DialogWrap = (DialogWrap);
;// CONCATENATED MODULE: ./node_modules/_rc-dialog@9.0.2@rc-dialog/es/index.js



/* harmony default export */ var _rc_dialog_9_0_2_rc_dialog_es = (es_DialogWrap);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/context.js
var context = __webpack_require__(6563);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/form/context.js
var form_context = __webpack_require__(4095);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/locale-provider/LocaleReceiver.js + 1 modules
var LocaleReceiver = __webpack_require__(6971);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/space/Compact.js
var Compact = __webpack_require__(7587);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/styleChecker.js
var styleChecker = __webpack_require__(3010);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/locale.js
var locale = __webpack_require__(6959);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/Modal.js


var __rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};














var mousePosition;
// ref: https://github.com/ant-design/ant-design/issues/15795
var getClickPosition = function getClickPosition(e) {
  mousePosition = {
    x: e.pageX,
    y: e.pageY
  };
  // 100ms 内发生过点击事件，则从点击位置动画展示
  // 否则直接 zoom 展示
  // 这样可以兼容非点击方式展开
  setTimeout(function () {
    mousePosition = null;
  }, 100);
};
// 只有点击事件支持从鼠标位置动画展开
if ((0,styleChecker/* canUseDocElement */.jD)()) {
  document.documentElement.addEventListener('click', getClickPosition, true);
}
var Modal = function Modal(props) {
  var _classNames;
  var _a;
  var _React$useContext = _react_18_2_0_react.useContext(context/* ConfigContext */.E_),
    getContextPopupContainer = _React$useContext.getPopupContainer,
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  var handleCancel = function handleCancel(e) {
    var onCancel = props.onCancel;
    onCancel === null || onCancel === void 0 ? void 0 : onCancel(e);
  };
  var handleOk = function handleOk(e) {
    var onOk = props.onOk;
    onOk === null || onOk === void 0 ? void 0 : onOk(e);
  };
   false ? 0 : void 0;
  var customizePrefixCls = props.prefixCls,
    footer = props.footer,
    visible = props.visible,
    _props$open = props.open,
    open = _props$open === void 0 ? false : _props$open,
    wrapClassName = props.wrapClassName,
    centered = props.centered,
    getContainer = props.getContainer,
    closeIcon = props.closeIcon,
    _props$focusTriggerAf = props.focusTriggerAfterClose,
    focusTriggerAfterClose = _props$focusTriggerAf === void 0 ? true : _props$focusTriggerAf,
    _props$width = props.width,
    width = _props$width === void 0 ? 520 : _props$width,
    restProps = __rest(props, ["prefixCls", "footer", "visible", "open", "wrapClassName", "centered", "getContainer", "closeIcon", "focusTriggerAfterClose", "width"]);
  var prefixCls = getPrefixCls('modal', customizePrefixCls);
  var rootPrefixCls = getPrefixCls();
  var defaultFooter = /*#__PURE__*/_react_18_2_0_react.createElement(LocaleReceiver/* default */.Z, {
    componentName: "Modal",
    defaultLocale: (0,locale/* getConfirmLocale */.A)()
  }, function (contextLocale) {
    var okText = props.okText,
      _props$okType = props.okType,
      okType = _props$okType === void 0 ? 'primary' : _props$okType,
      cancelText = props.cancelText,
      _props$confirmLoading = props.confirmLoading,
      confirmLoading = _props$confirmLoading === void 0 ? false : _props$confirmLoading;
    return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, /*#__PURE__*/_react_18_2_0_react.createElement(es_button/* default */.Z, (0,esm_extends/* default */.Z)({
      onClick: handleCancel
    }, props.cancelButtonProps), cancelText || contextLocale.cancelText), /*#__PURE__*/_react_18_2_0_react.createElement(es_button/* default */.Z, (0,esm_extends/* default */.Z)({}, (0,button_button/* convertLegacyProps */.n)(okType), {
      loading: confirmLoading,
      onClick: handleOk
    }, props.okButtonProps), okText !== null && okText !== void 0 ? okText : contextLocale.okText));
  });
  var closeIconToRender = /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: "".concat(prefixCls, "-close-x")
  }, closeIcon || /*#__PURE__*/_react_18_2_0_react.createElement(CloseOutlined/* default */.Z, {
    className: "".concat(prefixCls, "-close-icon")
  }));
  var wrapClassNameExtended = _classnames_2_3_2_classnames_default()(wrapClassName, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-centered"), !!centered), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrap-rtl"), direction === 'rtl'), _classNames));
  return /*#__PURE__*/_react_18_2_0_react.createElement(Compact/* NoCompactStyle */.BR, null, /*#__PURE__*/_react_18_2_0_react.createElement(form_context/* NoFormStyle */.Ux, {
    status: true,
    override: true
  }, /*#__PURE__*/_react_18_2_0_react.createElement(_rc_dialog_9_0_2_rc_dialog_es, (0,esm_extends/* default */.Z)({
    width: width
  }, restProps, {
    getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
    prefixCls: prefixCls,
    wrapClassName: wrapClassNameExtended,
    footer: footer === undefined ? defaultFooter : footer,
    visible: open || visible,
    mousePosition: (_a = restProps.mousePosition) !== null && _a !== void 0 ? _a : mousePosition,
    onClose: handleCancel,
    closeIcon: closeIconToRender,
    focusTriggerAfterClose: focusTriggerAfterClose,
    transitionName: (0,motion/* getTransitionName */.mL)(rootPrefixCls, 'zoom', props.transitionName),
    maskTransitionName: (0,motion/* getTransitionName */.mL)(rootPrefixCls, 'fade', props.maskTransitionName)
  }))));
};
/* harmony default export */ var modal_Modal = (Modal);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/ConfirmDialog.js








var ConfirmDialog = function ConfirmDialog(props) {
  var icon = props.icon,
    onCancel = props.onCancel,
    onOk = props.onOk,
    close = props.close,
    zIndex = props.zIndex,
    afterClose = props.afterClose,
    visible = props.visible,
    open = props.open,
    keyboard = props.keyboard,
    centered = props.centered,
    getContainer = props.getContainer,
    maskStyle = props.maskStyle,
    okText = props.okText,
    okButtonProps = props.okButtonProps,
    cancelText = props.cancelText,
    cancelButtonProps = props.cancelButtonProps,
    direction = props.direction,
    prefixCls = props.prefixCls,
    wrapClassName = props.wrapClassName,
    rootPrefixCls = props.rootPrefixCls,
    iconPrefixCls = props.iconPrefixCls,
    bodyStyle = props.bodyStyle,
    _props$closable = props.closable,
    closable = _props$closable === void 0 ? false : _props$closable,
    closeIcon = props.closeIcon,
    modalRender = props.modalRender,
    focusTriggerAfterClose = props.focusTriggerAfterClose;
  if (false) {}
  // 支持传入{ icon: null }来隐藏`Modal.confirm`默认的Icon
  var okType = props.okType || 'primary';
  var contentPrefixCls = "".concat(prefixCls, "-confirm");
  // 默认为 true，保持向下兼容
  var okCancel = 'okCancel' in props ? props.okCancel : true;
  var width = props.width || 416;
  var style = props.style || {};
  var mask = props.mask === undefined ? true : props.mask;
  // 默认为 false，保持旧版默认行为
  var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
  var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
  var classString = _classnames_2_3_2_classnames_default()(contentPrefixCls, "".concat(contentPrefixCls, "-").concat(props.type), (0,defineProperty/* default */.Z)({}, "".concat(contentPrefixCls, "-rtl"), direction === 'rtl'), props.className);
  var cancelButton = okCancel && /*#__PURE__*/_react_18_2_0_react.createElement(_util_ActionButton, {
    actionFn: onCancel,
    close: close,
    autoFocus: autoFocusButton === 'cancel',
    buttonProps: cancelButtonProps,
    prefixCls: "".concat(rootPrefixCls, "-btn")
  }, cancelText);
  return /*#__PURE__*/_react_18_2_0_react.createElement(config_provider/* default */.ZP, {
    prefixCls: rootPrefixCls,
    iconPrefixCls: iconPrefixCls,
    direction: direction
  }, /*#__PURE__*/_react_18_2_0_react.createElement(modal_Modal, {
    prefixCls: prefixCls,
    className: classString,
    wrapClassName: _classnames_2_3_2_classnames_default()((0,defineProperty/* default */.Z)({}, "".concat(contentPrefixCls, "-centered"), !!props.centered), wrapClassName),
    onCancel: function onCancel() {
      return close === null || close === void 0 ? void 0 : close({
        triggerCancel: true
      });
    },
    open: open || visible,
    title: "",
    footer: "",
    transitionName: (0,motion/* getTransitionName */.mL)(rootPrefixCls, 'zoom', props.transitionName),
    maskTransitionName: (0,motion/* getTransitionName */.mL)(rootPrefixCls, 'fade', props.maskTransitionName),
    mask: mask,
    maskClosable: maskClosable,
    maskStyle: maskStyle,
    style: style,
    bodyStyle: bodyStyle,
    width: width,
    zIndex: zIndex,
    afterClose: afterClose,
    keyboard: keyboard,
    centered: centered,
    getContainer: getContainer,
    closable: closable,
    closeIcon: closeIcon,
    modalRender: modalRender,
    focusTriggerAfterClose: focusTriggerAfterClose
  }, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(contentPrefixCls, "-body-wrapper")
  }, /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(contentPrefixCls, "-body")
  }, icon, props.title === undefined ? null : /*#__PURE__*/_react_18_2_0_react.createElement("span", {
    className: "".concat(contentPrefixCls, "-title")
  }, props.title), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(contentPrefixCls, "-content")
  }, props.content)), /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(contentPrefixCls, "-btns")
  }, cancelButton, /*#__PURE__*/_react_18_2_0_react.createElement(_util_ActionButton, {
    type: okType,
    actionFn: onOk,
    close: close,
    autoFocus: autoFocusButton === 'ok',
    buttonProps: okButtonProps,
    prefixCls: "".concat(rootPrefixCls, "-btn")
  }, okText)))));
};
/* harmony default export */ var modal_ConfirmDialog = (ConfirmDialog);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/destroyFns.js
var destroyFns = [];
/* harmony default export */ var modal_destroyFns = (destroyFns);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/confirm.js


var confirm_rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};











var defaultRootPrefixCls = '';
function getRootPrefixCls() {
  return defaultRootPrefixCls;
}
function confirm_confirm(config) {
  var container = document.createDocumentFragment();
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
  var currentConfig = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, config), {
    close: close,
    open: true
  });
  var timeoutId;
  function destroy() {
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    var triggerCancel = args.some(function (param) {
      return param && param.triggerCancel;
    });
    if (config.onCancel && triggerCancel) {
      config.onCancel.apply(config, [function () {}].concat((0,toConsumableArray/* default */.Z)(args.slice(1))));
    }
    for (var i = 0; i < modal_destroyFns.length; i++) {
      var fn = modal_destroyFns[i];
      // eslint-disable-next-line @typescript-eslint/no-use-before-define
      if (fn === close) {
        modal_destroyFns.splice(i, 1);
        break;
      }
    }
    (0,React_render/* unmount */.v)(container);
  }
  function render(_a) {
    var okText = _a.okText,
      cancelText = _a.cancelText,
      customizePrefixCls = _a.prefixCls,
      props = confirm_rest(_a, ["okText", "cancelText", "prefixCls"]);
    clearTimeout(timeoutId);
    /**
     * https://github.com/ant-design/ant-design/issues/23623
     *
     * Sync render blocks React event. Let's make this async.
     */
    timeoutId = setTimeout(function () {
      var runtimeLocale = (0,locale/* getConfirmLocale */.A)();
      var _globalConfig = (0,config_provider/* globalConfig */.w6)(),
        getPrefixCls = _globalConfig.getPrefixCls,
        getIconPrefixCls = _globalConfig.getIconPrefixCls;
      // because Modal.config  set rootPrefixCls, which is different from other components
      var rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());
      var prefixCls = customizePrefixCls || "".concat(rootPrefixCls, "-modal");
      var iconPrefixCls = getIconPrefixCls();
      (0,React_render/* render */.s)( /*#__PURE__*/_react_18_2_0_react.createElement(modal_ConfirmDialog, (0,esm_extends/* default */.Z)({}, props, {
        prefixCls: prefixCls,
        rootPrefixCls: rootPrefixCls,
        iconPrefixCls: iconPrefixCls,
        okText: okText || (props.okCancel ? runtimeLocale.okText : runtimeLocale.justOkText),
        cancelText: cancelText || runtimeLocale.cancelText
      })), container);
    });
  }
  function close() {
    var _this = this;
    for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
      args[_key2] = arguments[_key2];
    }
    currentConfig = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, currentConfig), {
      open: false,
      afterClose: function afterClose() {
        if (typeof config.afterClose === 'function') {
          config.afterClose();
        }
        destroy.apply(_this, args);
      }
    });
    // Legacy support
    if (currentConfig.visible) {
      delete currentConfig.visible;
    }
    render(currentConfig);
  }
  function update(configUpdate) {
    if (typeof configUpdate === 'function') {
      currentConfig = configUpdate(currentConfig);
    } else {
      currentConfig = (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, currentConfig), configUpdate);
    }
    render(currentConfig);
  }
  render(currentConfig);
  modal_destroyFns.push(close);
  return {
    destroy: close,
    update: update
  };
}
function withWarn(props) {
  return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
    icon: /*#__PURE__*/_react_18_2_0_react.createElement(ExclamationCircleOutlined/* default */.Z, null),
    okCancel: false
  }, props), {
    type: 'warning'
  });
}
function withInfo(props) {
  return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
    icon: /*#__PURE__*/_react_18_2_0_react.createElement(InfoCircleOutlined/* default */.Z, null),
    okCancel: false
  }, props), {
    type: 'info'
  });
}
function withSuccess(props) {
  return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
    icon: /*#__PURE__*/_react_18_2_0_react.createElement(CheckCircleOutlined/* default */.Z, null),
    okCancel: false
  }, props), {
    type: 'success'
  });
}
function withError(props) {
  return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
    icon: /*#__PURE__*/_react_18_2_0_react.createElement(CloseCircleOutlined/* default */.Z, null),
    okCancel: false
  }, props), {
    type: 'error'
  });
}
function withConfirm(props) {
  return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({
    icon: /*#__PURE__*/_react_18_2_0_react.createElement(ExclamationCircleOutlined/* default */.Z, null),
    okCancel: true
  }, props), {
    type: 'confirm'
  });
}
function modalGlobalConfig(_ref) {
  var rootPrefixCls = _ref.rootPrefixCls;
   false ? 0 : void 0;
  defaultRootPrefixCls = rootPrefixCls;
}
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/hooks/usePatchElement.js



function usePatchElement() {
  var _React$useState = _react_18_2_0_react.useState([]),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    elements = _React$useState2[0],
    setElements = _React$useState2[1];
  var patchElement = _react_18_2_0_react.useCallback(function (element) {
    // append a new element to elements (and create a new ref)
    setElements(function (originElements) {
      return [].concat((0,toConsumableArray/* default */.Z)(originElements), [element]);
    });
    // return a function that removes the new element out of elements (and create a new ref)
    // it works a little like useEffect
    return function () {
      setElements(function (originElements) {
        return originElements.filter(function (ele) {
          return ele !== element;
        });
      });
    };
  }, []);
  return [elements, patchElement];
}
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/locale/default.js + 5 modules
var locale_default = __webpack_require__(7618);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/useModal/HookModal.js








var HookModal = function HookModal(_ref, ref) {
  var afterClose = _ref.afterClose,
    config = _ref.config;
  var _React$useState = _react_18_2_0_react.useState(true),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    open = _React$useState2[0],
    setOpen = _React$useState2[1];
  var _React$useState3 = _react_18_2_0_react.useState(config),
    _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
    innerConfig = _React$useState4[0],
    setInnerConfig = _React$useState4[1];
  var _React$useContext = _react_18_2_0_react.useContext(context/* ConfigContext */.E_),
    direction = _React$useContext.direction,
    getPrefixCls = _React$useContext.getPrefixCls;
  var prefixCls = getPrefixCls('modal');
  var rootPrefixCls = getPrefixCls();
  var close = function close() {
    setOpen(false);
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    var triggerCancel = args.some(function (param) {
      return param && param.triggerCancel;
    });
    if (innerConfig.onCancel && triggerCancel) {
      innerConfig.onCancel.apply(innerConfig, [function () {}].concat((0,toConsumableArray/* default */.Z)(args.slice(1))));
    }
  };
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      destroy: close,
      update: function update(newConfig) {
        setInnerConfig(function (originConfig) {
          return (0,esm_extends/* default */.Z)((0,esm_extends/* default */.Z)({}, originConfig), newConfig);
        });
      }
    };
  });
  return /*#__PURE__*/_react_18_2_0_react.createElement(LocaleReceiver/* default */.Z, {
    componentName: "Modal",
    defaultLocale: locale_default/* default */.Z.Modal
  }, function (contextLocale) {
    return /*#__PURE__*/_react_18_2_0_react.createElement(modal_ConfirmDialog, (0,esm_extends/* default */.Z)({
      prefixCls: prefixCls,
      rootPrefixCls: rootPrefixCls
    }, innerConfig, {
      close: close,
      open: open,
      afterClose: afterClose,
      okText: innerConfig.okText || (innerConfig.okCancel ? contextLocale.okText : contextLocale.justOkText),
      direction: direction,
      cancelText: innerConfig.cancelText || contextLocale.cancelText
    }));
  });
};
/* harmony default export */ var useModal_HookModal = (/*#__PURE__*/_react_18_2_0_react.forwardRef(HookModal));
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/useModal/index.js






var useModal_uuid = 0;
var ElementsHolder = /*#__PURE__*/_react_18_2_0_react.memo( /*#__PURE__*/_react_18_2_0_react.forwardRef(function (_props, ref) {
  var _usePatchElement = usePatchElement(),
    _usePatchElement2 = (0,slicedToArray/* default */.Z)(_usePatchElement, 2),
    elements = _usePatchElement2[0],
    patchElement = _usePatchElement2[1];
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return {
      patchElement: patchElement
    };
  }, []);
  // eslint-disable-next-line react/jsx-no-useless-fragment
  return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, null, elements);
}));
function useModal() {
  var holderRef = _react_18_2_0_react.useRef(null);
  // ========================== Effect ==========================
  var _React$useState = _react_18_2_0_react.useState([]),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    actionQueue = _React$useState2[0],
    setActionQueue = _React$useState2[1];
  _react_18_2_0_react.useEffect(function () {
    if (actionQueue.length) {
      var cloneQueue = (0,toConsumableArray/* default */.Z)(actionQueue);
      cloneQueue.forEach(function (action) {
        action();
      });
      setActionQueue([]);
    }
  }, [actionQueue]);
  // =========================== Hook ===========================
  var getConfirmFunc = _react_18_2_0_react.useCallback(function (withFunc) {
    return function hookConfirm(config) {
      var _a;
      useModal_uuid += 1;
      var modalRef = /*#__PURE__*/_react_18_2_0_react.createRef();
      var closeFunc;
      var modal = /*#__PURE__*/_react_18_2_0_react.createElement(useModal_HookModal, {
        key: "modal-".concat(useModal_uuid),
        config: withFunc(config),
        ref: modalRef,
        afterClose: function afterClose() {
          closeFunc === null || closeFunc === void 0 ? void 0 : closeFunc();
        }
      });
      closeFunc = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.patchElement(modal);
      return {
        destroy: function destroy() {
          function destroyAction() {
            var _a;
            (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.destroy();
          }
          if (modalRef.current) {
            destroyAction();
          } else {
            setActionQueue(function (prev) {
              return [].concat((0,toConsumableArray/* default */.Z)(prev), [destroyAction]);
            });
          }
        },
        update: function update(newConfig) {
          function updateAction() {
            var _a;
            (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.update(newConfig);
          }
          if (modalRef.current) {
            updateAction();
          } else {
            setActionQueue(function (prev) {
              return [].concat((0,toConsumableArray/* default */.Z)(prev), [updateAction]);
            });
          }
        }
      };
    };
  }, []);
  var fns = _react_18_2_0_react.useMemo(function () {
    return {
      info: getConfirmFunc(withInfo),
      success: getConfirmFunc(withSuccess),
      error: getConfirmFunc(withError),
      warning: getConfirmFunc(withWarn),
      confirm: getConfirmFunc(withConfirm)
    };
  }, []);
  // eslint-disable-next-line react/jsx-key
  return [fns, /*#__PURE__*/_react_18_2_0_react.createElement(ElementsHolder, {
    ref: holderRef
  })];
}
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/modal/index.js




function modalWarn(props) {
  return confirm_confirm(withWarn(props));
}
var es_modal_Modal = modal_Modal;
es_modal_Modal.useModal = useModal;
es_modal_Modal.info = function infoFn(props) {
  return confirm_confirm(withInfo(props));
};
es_modal_Modal.success = function successFn(props) {
  return confirm_confirm(withSuccess(props));
};
es_modal_Modal.error = function errorFn(props) {
  return confirm_confirm(withError(props));
};
es_modal_Modal.warning = modalWarn;
es_modal_Modal.warn = modalWarn;
es_modal_Modal.confirm = function confirmFn(props) {
  return confirm_confirm(withConfirm(props));
};
es_modal_Modal.destroyAll = function destroyAllFn() {
  while (modal_destroyFns.length) {
    var close = modal_destroyFns.pop();
    if (close) {
      close();
    }
  }
};
es_modal_Modal.config = modalGlobalConfig;
/* harmony default export */ var modal = (es_modal_Modal);

/***/ }),

/***/ 6959:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   A: function() { return /* binding */ getConfirmLocale; },
/* harmony export */   f: function() { return /* binding */ changeConfirmLocale; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4904);
/* harmony import */ var _locale_default__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7618);


var runtimeLocale = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, _locale_default__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z.Modal);
function changeConfirmLocale(newLocale) {
  if (newLocale) {
    runtimeLocale = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, runtimeLocale), newLocale);
  } else {
    runtimeLocale = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, _locale_default__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z.Modal);
  }
}
function getConfirmLocale() {
  return runtimeLocale;
}

/***/ }),

/***/ 7587:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   BR: function() { return /* binding */ NoCompactStyle; },
/* harmony export */   ri: function() { return /* binding */ useCompactItemContext; }
/* harmony export */ });
/* unused harmony export SpaceCompactItemContext */
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4904);
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(994);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7258);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5075);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9512);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6563);


var __rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};




var SpaceCompactItemContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createContext(null);
var useCompactItemContext = function useCompactItemContext(prefixCls, direction) {
  var compactItemContext = react__WEBPACK_IMPORTED_MODULE_2__.useContext(SpaceCompactItemContext);
  var compactItemClassnames = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(function () {
    var _classNames;
    if (!compactItemContext) return '';
    var compactDirection = compactItemContext.compactDirection,
      isFirstItem = compactItemContext.isFirstItem,
      isLastItem = compactItemContext.isLastItem;
    var separator = compactDirection === 'vertical' ? '-vertical-' : '-';
    return classnames__WEBPACK_IMPORTED_MODULE_0___default()((_classNames = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-compact").concat(separator, "item"), true), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-compact").concat(separator, "first-item"), isFirstItem), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-compact").concat(separator, "last-item"), isLastItem), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames, "".concat(prefixCls, "-compact").concat(separator, "item-rtl"), direction === 'rtl'), _classNames));
  }, [prefixCls, direction, compactItemContext]);
  return {
    compactSize: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactSize,
    compactDirection: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactDirection,
    compactItemClassnames: compactItemClassnames
  };
};
var NoCompactStyle = function NoCompactStyle(_ref) {
  var children = _ref.children;
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(SpaceCompactItemContext.Provider, {
    value: null
  }, children);
};
var CompactItem = function CompactItem(_a) {
  var children = _a.children,
    otherProps = __rest(_a, ["children"]);
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(SpaceCompactItemContext.Provider, {
    value: otherProps
  }, children);
};
var Compact = function Compact(props) {
  var _classNames2;
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_4__/* .ConfigContext */ .E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    directionConfig = _React$useContext.direction;
  var _props$size = props.size,
    size = _props$size === void 0 ? 'middle' : _props$size,
    direction = props.direction,
    block = props.block,
    customizePrefixCls = props.prefixCls,
    className = props.className,
    children = props.children,
    restProps = __rest(props, ["size", "direction", "block", "prefixCls", "className", "children"]);
  var prefixCls = getPrefixCls('space-compact', customizePrefixCls);
  var clx = classnames__WEBPACK_IMPORTED_MODULE_0___default()(prefixCls, (_classNames2 = {}, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames2, "".concat(prefixCls, "-rtl"), directionConfig === 'rtl'), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames2, "".concat(prefixCls, "-block"), block), (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_classNames2, "".concat(prefixCls, "-vertical"), direction === 'vertical'), _classNames2), className);
  var compactItemContext = react__WEBPACK_IMPORTED_MODULE_2__.useContext(SpaceCompactItemContext);
  var childNodes = (0,rc_util_es_Children_toArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(children);
  var nodes = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(function () {
    return childNodes.map(function (child, i) {
      var key = child && child.key || "".concat(prefixCls, "-item-").concat(i);
      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(CompactItem, {
        key: key,
        compactSize: size,
        compactDirection: direction,
        isFirstItem: i === 0 && (!compactItemContext || (compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.isFirstItem)),
        isLastItem: i === childNodes.length - 1 && (!compactItemContext || (compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.isLastItem))
      }, child);
    });
  }, [size, childNodes, compactItemContext]);
  // =========================== Render ===========================
  if (childNodes.length === 0) {
    return null;
  }
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)({
    className: clx
  }, restProps), nodes);
};
/* harmony default export */ __webpack_exports__.ZP = (Compact);

/***/ }),

/***/ 1610:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ es_switch; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@4.8.0@@ant-design/icons/es/icons/LoadingOutlined.js + 1 modules
var LoadingOutlined = __webpack_require__(5730);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(7258);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(9686);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useMergedState.js
var useMergedState = __webpack_require__(5117);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/KeyCode.js
var KeyCode = __webpack_require__(9202);
;// CONCATENATED MODULE: ./node_modules/_rc-switch@3.2.2@rc-switch/es/index.js







var Switch = _react_18_2_0_react.forwardRef(function (_ref, ref) {
  var _classNames;
  var _ref$prefixCls = _ref.prefixCls,
    prefixCls = _ref$prefixCls === void 0 ? 'rc-switch' : _ref$prefixCls,
    className = _ref.className,
    checked = _ref.checked,
    defaultChecked = _ref.defaultChecked,
    disabled = _ref.disabled,
    loadingIcon = _ref.loadingIcon,
    checkedChildren = _ref.checkedChildren,
    unCheckedChildren = _ref.unCheckedChildren,
    onClick = _ref.onClick,
    onChange = _ref.onChange,
    onKeyDown = _ref.onKeyDown,
    restProps = (0,objectWithoutProperties/* default */.Z)(_ref, ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"]);
  var _useMergedState = (0,useMergedState/* default */.Z)(false, {
      value: checked,
      defaultValue: defaultChecked
    }),
    _useMergedState2 = (0,slicedToArray/* default */.Z)(_useMergedState, 2),
    innerChecked = _useMergedState2[0],
    setInnerChecked = _useMergedState2[1];
  function triggerChange(newChecked, event) {
    var mergedChecked = innerChecked;
    if (!disabled) {
      mergedChecked = newChecked;
      setInnerChecked(mergedChecked);
      onChange === null || onChange === void 0 ? void 0 : onChange(mergedChecked, event);
    }
    return mergedChecked;
  }
  function onInternalKeyDown(e) {
    if (e.which === KeyCode/* default */.Z.LEFT) {
      triggerChange(false, e);
    } else if (e.which === KeyCode/* default */.Z.RIGHT) {
      triggerChange(true, e);
    }
    onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
  }
  function onInternalClick(e) {
    var ret = triggerChange(!innerChecked, e); // [Legacy] trigger onClick with value

    onClick === null || onClick === void 0 ? void 0 : onClick(ret, e);
  }
  var switchClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checked"), innerChecked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
  return _react_18_2_0_react.createElement("button", Object.assign({}, restProps, {
    type: "button",
    role: "switch",
    "aria-checked": innerChecked,
    disabled: disabled,
    className: switchClassName,
    ref: ref,
    onKeyDown: onInternalKeyDown,
    onClick: onInternalClick
  }), loadingIcon, _react_18_2_0_react.createElement("span", {
    className: "".concat(prefixCls, "-inner")
  }, innerChecked ? checkedChildren : unCheckedChildren));
});
Switch.displayName = 'Switch';
/* harmony default export */ var es = (Switch);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/context.js
var context = __webpack_require__(6563);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/DisabledContext.js
var DisabledContext = __webpack_require__(2146);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/config-provider/SizeContext.js
var SizeContext = __webpack_require__(2340);
// EXTERNAL MODULE: ./node_modules/_antd@4.24.10@antd/es/_util/wave.js + 1 modules
var wave = __webpack_require__(1873);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/es/switch/index.js


var __rest = undefined && undefined.__rest || function (s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  }
  return t;
};









var switch_Switch = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (_a, ref) {
  var _classNames;
  var customizePrefixCls = _a.prefixCls,
    customizeSize = _a.size,
    customDisabled = _a.disabled,
    loading = _a.loading,
    _a$className = _a.className,
    className = _a$className === void 0 ? '' : _a$className,
    props = __rest(_a, ["prefixCls", "size", "disabled", "loading", "className"]);
   false ? 0 : void 0;
  var _React$useContext = _react_18_2_0_react.useContext(context/* ConfigContext */.E_),
    getPrefixCls = _React$useContext.getPrefixCls,
    direction = _React$useContext.direction;
  var size = _react_18_2_0_react.useContext(SizeContext/* default */.Z);
  // ===================== Disabled =====================
  var disabled = _react_18_2_0_react.useContext(DisabledContext/* default */.Z);
  var mergedDisabled = (customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled) || loading;
  var prefixCls = getPrefixCls('switch', customizePrefixCls);
  var loadingIcon = /*#__PURE__*/_react_18_2_0_react.createElement("div", {
    className: "".concat(prefixCls, "-handle")
  }, loading && /*#__PURE__*/_react_18_2_0_react.createElement(LoadingOutlined/* default */.Z, {
    className: "".concat(prefixCls, "-loading-icon")
  }));
  var classes = _classnames_2_3_2_classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-small"), (customizeSize || size) === 'small'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-loading"), loading), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
  return /*#__PURE__*/_react_18_2_0_react.createElement(wave/* default */.Z, {
    insertExtraNode: true
  }, /*#__PURE__*/_react_18_2_0_react.createElement(es, (0,esm_extends/* default */.Z)({}, props, {
    prefixCls: prefixCls,
    className: classes,
    disabled: mergedDisabled,
    ref: ref,
    loadingIcon: loadingIcon
  })));
});
switch_Switch.__ANT_SWITCH = true;
if (false) {}
/* harmony default export */ var es_switch = (switch_Switch);

/***/ }),

/***/ 8577:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

module.exports = __webpack_require__(5632);

/***/ }),

/***/ 556:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
var settle = __webpack_require__(494);
var cookies = __webpack_require__(8861);
var buildURL = __webpack_require__(1971);
var buildFullPath = __webpack_require__(8251);
var parseHeaders = __webpack_require__(5283);
var isURLSameOrigin = __webpack_require__(7858);
var transitionalDefaults = __webpack_require__(617);
var AxiosError = __webpack_require__(4808);
var CanceledError = __webpack_require__(1259);
var parseProtocol = __webpack_require__(8499);
module.exports = function xhrAdapter(config) {
  return new Promise(function dispatchXhrRequest(resolve, reject) {
    var requestData = config.data;
    var requestHeaders = config.headers;
    var responseType = config.responseType;
    var onCanceled;
    function done() {
      if (config.cancelToken) {
        config.cancelToken.unsubscribe(onCanceled);
      }
      if (config.signal) {
        config.signal.removeEventListener('abort', onCanceled);
      }
    }
    if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) {
      delete requestHeaders['Content-Type']; // Let the browser set it
    }

    var request = new XMLHttpRequest();

    // HTTP basic authentication
    if (config.auth) {
      var username = config.auth.username || '';
      var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
    }
    var fullPath = buildFullPath(config.baseURL, config.url);
    request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);

    // Set the request timeout in MS
    request.timeout = config.timeout;
    function onloadend() {
      if (!request) {
        return;
      }
      // Prepare the response
      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
      var responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response;
      var response = {
        data: responseData,
        status: request.status,
        statusText: request.statusText,
        headers: responseHeaders,
        config: config,
        request: request
      };
      settle(function _resolve(value) {
        resolve(value);
        done();
      }, function _reject(err) {
        reject(err);
        done();
      }, response);

      // Clean up request
      request = null;
    }
    if ('onloadend' in request) {
      // Use onloadend if available
      request.onloadend = onloadend;
    } else {
      // Listen for ready state to emulate onloadend
      request.onreadystatechange = function handleLoad() {
        if (!request || request.readyState !== 4) {
          return;
        }

        // The request errored out and we didn't get a response, this will be
        // handled by onerror instead
        // With one exception: request that using file: protocol, most browsers
        // will return status as 0 even though it's a successful request
        if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
          return;
        }
        // readystate handler is calling before onerror or ontimeout handlers,
        // so we should call onloadend on the next 'tick'
        setTimeout(onloadend);
      };
    }

    // Handle browser request cancellation (as opposed to a manual cancellation)
    request.onabort = function handleAbort() {
      if (!request) {
        return;
      }
      reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));

      // Clean up request
      request = null;
    };

    // Handle low level network errors
    request.onerror = function handleError() {
      // Real errors are hidden from us by the browser
      // onerror should only fire if it's a network error
      reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request, request));

      // Clean up request
      request = null;
    };

    // Handle timeout
    request.ontimeout = function handleTimeout() {
      var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
      var transitional = config.transitional || transitionalDefaults;
      if (config.timeoutErrorMessage) {
        timeoutErrorMessage = config.timeoutErrorMessage;
      }
      reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));

      // Clean up request
      request = null;
    };

    // Add xsrf header
    // This is only done if running in a standard browser environment.
    // Specifically not if we're in a web worker, or react-native.
    if (utils.isStandardBrowserEnv()) {
      // Add xsrf header
      var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined;
      if (xsrfValue) {
        requestHeaders[config.xsrfHeaderName] = xsrfValue;
      }
    }

    // Add headers to the request
    if ('setRequestHeader' in request) {
      utils.forEach(requestHeaders, function setRequestHeader(val, key) {
        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
          // Remove Content-Type if data is undefined
          delete requestHeaders[key];
        } else {
          // Otherwise add header to the request
          request.setRequestHeader(key, val);
        }
      });
    }

    // Add withCredentials to request if needed
    if (!utils.isUndefined(config.withCredentials)) {
      request.withCredentials = !!config.withCredentials;
    }

    // Add responseType to request if needed
    if (responseType && responseType !== 'json') {
      request.responseType = config.responseType;
    }

    // Handle progress if needed
    if (typeof config.onDownloadProgress === 'function') {
      request.addEventListener('progress', config.onDownloadProgress);
    }

    // Not all browsers support upload events
    if (typeof config.onUploadProgress === 'function' && request.upload) {
      request.upload.addEventListener('progress', config.onUploadProgress);
    }
    if (config.cancelToken || config.signal) {
      // Handle cancellation
      // eslint-disable-next-line func-names
      onCanceled = function onCanceled(cancel) {
        if (!request) {
          return;
        }
        reject(!cancel || cancel && cancel.type ? new CanceledError() : cancel);
        request.abort();
        request = null;
      };
      config.cancelToken && config.cancelToken.subscribe(onCanceled);
      if (config.signal) {
        config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
      }
    }
    if (!requestData) {
      requestData = null;
    }
    var protocol = parseProtocol(fullPath);
    if (protocol && ['http', 'https', 'file'].indexOf(protocol) === -1) {
      reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
      return;
    }

    // Send the request
    request.send(requestData);
  });
};

/***/ }),

/***/ 5632:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
var bind = __webpack_require__(8197);
var Axios = __webpack_require__(6764);
var mergeConfig = __webpack_require__(1530);
var defaults = __webpack_require__(5015);

/**
 * Create an instance of Axios
 *
 * @param {Object} defaultConfig The default config for the instance
 * @return {Axios} A new instance of Axios
 */
function createInstance(defaultConfig) {
  var context = new Axios(defaultConfig);
  var instance = bind(Axios.prototype.request, context);

  // Copy axios.prototype to instance
  utils.extend(instance, Axios.prototype, context);

  // Copy context to instance
  utils.extend(instance, context);

  // Factory for creating new instances
  instance.create = function create(instanceConfig) {
    return createInstance(mergeConfig(defaultConfig, instanceConfig));
  };
  return instance;
}

// Create the default instance to be exported
var axios = createInstance(defaults);

// Expose Axios class to allow class inheritance
axios.Axios = Axios;

// Expose Cancel & CancelToken
axios.CanceledError = __webpack_require__(1259);
axios.CancelToken = __webpack_require__(1081);
axios.isCancel = __webpack_require__(7109);
axios.VERSION = (__webpack_require__(9137).version);
axios.toFormData = __webpack_require__(5257);

// Expose AxiosError class
axios.AxiosError = __webpack_require__(4808);

// alias for CanceledError for backward compatibility
axios.Cancel = axios.CanceledError;

// Expose all/spread
axios.all = function all(promises) {
  return Promise.all(promises);
};
axios.spread = __webpack_require__(1870);

// Expose isAxiosError
axios.isAxiosError = __webpack_require__(5754);
module.exports = axios;

// Allow use of default import syntax in TypeScript
module.exports["default"] = axios;

/***/ }),

/***/ 1081:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var CanceledError = __webpack_require__(1259);

/**
 * A `CancelToken` is an object that can be used to request cancellation of an operation.
 *
 * @class
 * @param {Function} executor The executor function.
 */
function CancelToken(executor) {
  if (typeof executor !== 'function') {
    throw new TypeError('executor must be a function.');
  }
  var resolvePromise;
  this.promise = new Promise(function promiseExecutor(resolve) {
    resolvePromise = resolve;
  });
  var token = this;

  // eslint-disable-next-line func-names
  this.promise.then(function (cancel) {
    if (!token._listeners) return;
    var i;
    var l = token._listeners.length;
    for (i = 0; i < l; i++) {
      token._listeners[i](cancel);
    }
    token._listeners = null;
  });

  // eslint-disable-next-line func-names
  this.promise.then = function (onfulfilled) {
    var _resolve;
    // eslint-disable-next-line func-names
    var promise = new Promise(function (resolve) {
      token.subscribe(resolve);
      _resolve = resolve;
    }).then(onfulfilled);
    promise.cancel = function reject() {
      token.unsubscribe(_resolve);
    };
    return promise;
  };
  executor(function cancel(message) {
    if (token.reason) {
      // Cancellation has already been requested
      return;
    }
    token.reason = new CanceledError(message);
    resolvePromise(token.reason);
  });
}

/**
 * Throws a `CanceledError` if cancellation has been requested.
 */
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  if (this.reason) {
    throw this.reason;
  }
};

/**
 * Subscribe to the cancel signal
 */

CancelToken.prototype.subscribe = function subscribe(listener) {
  if (this.reason) {
    listener(this.reason);
    return;
  }
  if (this._listeners) {
    this._listeners.push(listener);
  } else {
    this._listeners = [listener];
  }
};

/**
 * Unsubscribe from the cancel signal
 */

CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
  if (!this._listeners) {
    return;
  }
  var index = this._listeners.indexOf(listener);
  if (index !== -1) {
    this._listeners.splice(index, 1);
  }
};

/**
 * Returns an object that contains a new `CancelToken` and a function that, when called,
 * cancels the `CancelToken`.
 */
CancelToken.source = function source() {
  var cancel;
  var token = new CancelToken(function executor(c) {
    cancel = c;
  });
  return {
    token: token,
    cancel: cancel
  };
};
module.exports = CancelToken;

/***/ }),

/***/ 1259:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var AxiosError = __webpack_require__(4808);
var utils = __webpack_require__(5666);

/**
 * A `CanceledError` is an object that is thrown when an operation is canceled.
 *
 * @class
 * @param {string=} message The message.
 */
function CanceledError(message) {
  // eslint-disable-next-line no-eq-null,eqeqeq
  AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED);
  this.name = 'CanceledError';
}
utils.inherits(CanceledError, AxiosError, {
  __CANCEL__: true
});
module.exports = CanceledError;

/***/ }),

/***/ 7109:
/***/ (function(module) {

"use strict";


module.exports = function isCancel(value) {
  return !!(value && value.__CANCEL__);
};

/***/ }),

/***/ 6764:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
var buildURL = __webpack_require__(1971);
var InterceptorManager = __webpack_require__(1820);
var dispatchRequest = __webpack_require__(3506);
var mergeConfig = __webpack_require__(1530);
var buildFullPath = __webpack_require__(8251);
var validator = __webpack_require__(4544);
var validators = validator.validators;
/**
 * Create a new instance of Axios
 *
 * @param {Object} instanceConfig The default config for the instance
 */
function Axios(instanceConfig) {
  this.defaults = instanceConfig;
  this.interceptors = {
    request: new InterceptorManager(),
    response: new InterceptorManager()
  };
}

/**
 * Dispatch a request
 *
 * @param {Object} config The config specific for this request (merged with this.defaults)
 */
Axios.prototype.request = function request(configOrUrl, config) {
  /*eslint no-param-reassign:0*/
  // Allow for axios('example/url'[, config]) a la fetch API
  if (typeof configOrUrl === 'string') {
    config = config || {};
    config.url = configOrUrl;
  } else {
    config = configOrUrl || {};
  }
  config = mergeConfig(this.defaults, config);

  // Set config.method
  if (config.method) {
    config.method = config.method.toLowerCase();
  } else if (this.defaults.method) {
    config.method = this.defaults.method.toLowerCase();
  } else {
    config.method = 'get';
  }
  var transitional = config.transitional;
  if (transitional !== undefined) {
    validator.assertOptions(transitional, {
      silentJSONParsing: validators.transitional(validators.boolean),
      forcedJSONParsing: validators.transitional(validators.boolean),
      clarifyTimeoutError: validators.transitional(validators.boolean)
    }, false);
  }

  // filter out skipped interceptors
  var requestInterceptorChain = [];
  var synchronousRequestInterceptors = true;
  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
    if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
      return;
    }
    synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
    requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  });
  var responseInterceptorChain = [];
  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
    responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  });
  var promise;
  if (!synchronousRequestInterceptors) {
    var chain = [dispatchRequest, undefined];
    Array.prototype.unshift.apply(chain, requestInterceptorChain);
    chain = chain.concat(responseInterceptorChain);
    promise = Promise.resolve(config);
    while (chain.length) {
      promise = promise.then(chain.shift(), chain.shift());
    }
    return promise;
  }
  var newConfig = config;
  while (requestInterceptorChain.length) {
    var onFulfilled = requestInterceptorChain.shift();
    var onRejected = requestInterceptorChain.shift();
    try {
      newConfig = onFulfilled(newConfig);
    } catch (error) {
      onRejected(error);
      break;
    }
  }
  try {
    promise = dispatchRequest(newConfig);
  } catch (error) {
    return Promise.reject(error);
  }
  while (responseInterceptorChain.length) {
    promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
  }
  return promise;
};
Axios.prototype.getUri = function getUri(config) {
  config = mergeConfig(this.defaults, config);
  var fullPath = buildFullPath(config.baseURL, config.url);
  return buildURL(fullPath, config.params, config.paramsSerializer);
};

// Provide aliases for supported request methods
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
  /*eslint func-names:0*/
  Axios.prototype[method] = function (url, config) {
    return this.request(mergeConfig(config || {}, {
      method: method,
      url: url,
      data: (config || {}).data
    }));
  };
});
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  /*eslint func-names:0*/

  function generateHTTPMethod(isForm) {
    return function httpMethod(url, data, config) {
      return this.request(mergeConfig(config || {}, {
        method: method,
        headers: isForm ? {
          'Content-Type': 'multipart/form-data'
        } : {},
        url: url,
        data: data
      }));
    };
  }
  Axios.prototype[method] = generateHTTPMethod();
  Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
});
module.exports = Axios;

/***/ }),

/***/ 4808:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);

/**
 * Create an Error with the specified message, config, error code, request and response.
 *
 * @param {string} message The error message.
 * @param {string} [code] The error code (for example, 'ECONNABORTED').
 * @param {Object} [config] The config.
 * @param {Object} [request] The request.
 * @param {Object} [response] The response.
 * @returns {Error} The created error.
 */
function AxiosError(message, code, config, request, response) {
  Error.call(this);
  this.message = message;
  this.name = 'AxiosError';
  code && (this.code = code);
  config && (this.config = config);
  request && (this.request = request);
  response && (this.response = response);
}
utils.inherits(AxiosError, Error, {
  toJSON: function toJSON() {
    return {
      // Standard
      message: this.message,
      name: this.name,
      // Microsoft
      description: this.description,
      number: this.number,
      // Mozilla
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      // Axios
      config: this.config,
      code: this.code,
      status: this.response && this.response.status ? this.response.status : null
    };
  }
});
var prototype = AxiosError.prototype;
var descriptors = {};
['ERR_BAD_OPTION_VALUE', 'ERR_BAD_OPTION', 'ECONNABORTED', 'ETIMEDOUT', 'ERR_NETWORK', 'ERR_FR_TOO_MANY_REDIRECTS', 'ERR_DEPRECATED', 'ERR_BAD_RESPONSE', 'ERR_BAD_REQUEST', 'ERR_CANCELED'
// eslint-disable-next-line func-names
].forEach(function (code) {
  descriptors[code] = {
    value: code
  };
});
Object.defineProperties(AxiosError, descriptors);
Object.defineProperty(prototype, 'isAxiosError', {
  value: true
});

// eslint-disable-next-line func-names
AxiosError.from = function (error, code, config, request, response, customProps) {
  var axiosError = Object.create(prototype);
  utils.toFlatObject(error, axiosError, function filter(obj) {
    return obj !== Error.prototype;
  });
  AxiosError.call(axiosError, error.message, code, config, request, response);
  axiosError.name = error.name;
  customProps && Object.assign(axiosError, customProps);
  return axiosError;
};
module.exports = AxiosError;

/***/ }),

/***/ 1820:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
function InterceptorManager() {
  this.handlers = [];
}

/**
 * Add a new interceptor to the stack
 *
 * @param {Function} fulfilled The function to handle `then` for a `Promise`
 * @param {Function} rejected The function to handle `reject` for a `Promise`
 *
 * @return {Number} An ID used to remove interceptor later
 */
InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
  this.handlers.push({
    fulfilled: fulfilled,
    rejected: rejected,
    synchronous: options ? options.synchronous : false,
    runWhen: options ? options.runWhen : null
  });
  return this.handlers.length - 1;
};

/**
 * Remove an interceptor from the stack
 *
 * @param {Number} id The ID that was returned by `use`
 */
InterceptorManager.prototype.eject = function eject(id) {
  if (this.handlers[id]) {
    this.handlers[id] = null;
  }
};

/**
 * Iterate over all the registered interceptors
 *
 * This method is particularly useful for skipping over any
 * interceptors that may have become `null` calling `eject`.
 *
 * @param {Function} fn The function to call for each interceptor
 */
InterceptorManager.prototype.forEach = function forEach(fn) {
  utils.forEach(this.handlers, function forEachHandler(h) {
    if (h !== null) {
      fn(h);
    }
  });
};
module.exports = InterceptorManager;

/***/ }),

/***/ 8251:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var isAbsoluteURL = __webpack_require__(7001);
var combineURLs = __webpack_require__(4851);

/**
 * Creates a new URL by combining the baseURL with the requestedURL,
 * only when the requestedURL is not already an absolute URL.
 * If the requestURL is absolute, this function returns the requestedURL untouched.
 *
 * @param {string} baseURL The base URL
 * @param {string} requestedURL Absolute or relative URL to combine
 * @returns {string} The combined full path
 */
module.exports = function buildFullPath(baseURL, requestedURL) {
  if (baseURL && !isAbsoluteURL(requestedURL)) {
    return combineURLs(baseURL, requestedURL);
  }
  return requestedURL;
};

/***/ }),

/***/ 3506:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
var transformData = __webpack_require__(2886);
var isCancel = __webpack_require__(7109);
var defaults = __webpack_require__(5015);
var CanceledError = __webpack_require__(1259);

/**
 * Throws a `CanceledError` if cancellation has been requested.
 */
function throwIfCancellationRequested(config) {
  if (config.cancelToken) {
    config.cancelToken.throwIfRequested();
  }
  if (config.signal && config.signal.aborted) {
    throw new CanceledError();
  }
}

/**
 * Dispatch a request to the server using the configured adapter.
 *
 * @param {object} config The config that is to be used for the request
 * @returns {Promise} The Promise to be fulfilled
 */
module.exports = function dispatchRequest(config) {
  throwIfCancellationRequested(config);

  // Ensure headers exist
  config.headers = config.headers || {};

  // Transform request data
  config.data = transformData.call(config, config.data, config.headers, config.transformRequest);

  // Flatten headers
  config.headers = utils.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
  utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) {
    delete config.headers[method];
  });
  var adapter = config.adapter || defaults.adapter;
  return adapter(config).then(function onAdapterResolution(response) {
    throwIfCancellationRequested(config);

    // Transform response data
    response.data = transformData.call(config, response.data, response.headers, config.transformResponse);
    return response;
  }, function onAdapterRejection(reason) {
    if (!isCancel(reason)) {
      throwIfCancellationRequested(config);

      // Transform response data
      if (reason && reason.response) {
        reason.response.data = transformData.call(config, reason.response.data, reason.response.headers, config.transformResponse);
      }
    }
    return Promise.reject(reason);
  });
};

/***/ }),

/***/ 1530:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);

/**
 * Config-specific merge-function which creates a new config-object
 * by merging two configuration objects together.
 *
 * @param {Object} config1
 * @param {Object} config2
 * @returns {Object} New object resulting from merging config2 to config1
 */
module.exports = function mergeConfig(config1, config2) {
  // eslint-disable-next-line no-param-reassign
  config2 = config2 || {};
  var config = {};
  function getMergedValue(target, source) {
    if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
      return utils.merge(target, source);
    } else if (utils.isPlainObject(source)) {
      return utils.merge({}, source);
    } else if (utils.isArray(source)) {
      return source.slice();
    }
    return source;
  }

  // eslint-disable-next-line consistent-return
  function mergeDeepProperties(prop) {
    if (!utils.isUndefined(config2[prop])) {
      return getMergedValue(config1[prop], config2[prop]);
    } else if (!utils.isUndefined(config1[prop])) {
      return getMergedValue(undefined, config1[prop]);
    }
  }

  // eslint-disable-next-line consistent-return
  function valueFromConfig2(prop) {
    if (!utils.isUndefined(config2[prop])) {
      return getMergedValue(undefined, config2[prop]);
    }
  }

  // eslint-disable-next-line consistent-return
  function defaultToConfig2(prop) {
    if (!utils.isUndefined(config2[prop])) {
      return getMergedValue(undefined, config2[prop]);
    } else if (!utils.isUndefined(config1[prop])) {
      return getMergedValue(undefined, config1[prop]);
    }
  }

  // eslint-disable-next-line consistent-return
  function mergeDirectKeys(prop) {
    if (prop in config2) {
      return getMergedValue(config1[prop], config2[prop]);
    } else if (prop in config1) {
      return getMergedValue(undefined, config1[prop]);
    }
  }
  var mergeMap = {
    'url': valueFromConfig2,
    'method': valueFromConfig2,
    'data': valueFromConfig2,
    'baseURL': defaultToConfig2,
    'transformRequest': defaultToConfig2,
    'transformResponse': defaultToConfig2,
    'paramsSerializer': defaultToConfig2,
    'timeout': defaultToConfig2,
    'timeoutMessage': defaultToConfig2,
    'withCredentials': defaultToConfig2,
    'adapter': defaultToConfig2,
    'responseType': defaultToConfig2,
    'xsrfCookieName': defaultToConfig2,
    'xsrfHeaderName': defaultToConfig2,
    'onUploadProgress': defaultToConfig2,
    'onDownloadProgress': defaultToConfig2,
    'decompress': defaultToConfig2,
    'maxContentLength': defaultToConfig2,
    'maxBodyLength': defaultToConfig2,
    'beforeRedirect': defaultToConfig2,
    'transport': defaultToConfig2,
    'httpAgent': defaultToConfig2,
    'httpsAgent': defaultToConfig2,
    'cancelToken': defaultToConfig2,
    'socketPath': defaultToConfig2,
    'responseEncoding': defaultToConfig2,
    'validateStatus': mergeDirectKeys
  };
  utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
    var merge = mergeMap[prop] || mergeDeepProperties;
    var configValue = merge(prop);
    utils.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
  });
  return config;
};

/***/ }),

/***/ 494:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var AxiosError = __webpack_require__(4808);

/**
 * Resolve or reject a Promise based on response status.
 *
 * @param {Function} resolve A function that resolves the promise.
 * @param {Function} reject A function that rejects the promise.
 * @param {object} response The response.
 */
module.exports = function settle(resolve, reject, response) {
  var validateStatus = response.config.validateStatus;
  if (!response.status || !validateStatus || validateStatus(response.status)) {
    resolve(response);
  } else {
    reject(new AxiosError('Request failed with status code ' + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
  }
};

/***/ }),

/***/ 2886:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
var defaults = __webpack_require__(5015);

/**
 * Transform the data for a request or a response
 *
 * @param {Object|String} data The data to be transformed
 * @param {Array} headers The headers for the request or response
 * @param {Array|Function} fns A single function or Array of functions
 * @returns {*} The resulting transformed data
 */
module.exports = function transformData(data, headers, fns) {
  var context = this || defaults;
  /*eslint no-param-reassign:0*/
  utils.forEach(fns, function transform(fn) {
    data = fn.call(context, data, headers);
  });
  return data;
};

/***/ }),

/***/ 5015:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
var normalizeHeaderName = __webpack_require__(9546);
var AxiosError = __webpack_require__(4808);
var transitionalDefaults = __webpack_require__(617);
var toFormData = __webpack_require__(5257);
var DEFAULT_CONTENT_TYPE = {
  'Content-Type': 'application/x-www-form-urlencoded'
};
function setContentTypeIfUnset(headers, value) {
  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
    headers['Content-Type'] = value;
  }
}
function getDefaultAdapter() {
  var adapter;
  if (typeof XMLHttpRequest !== 'undefined') {
    // For browsers use XHR adapter
    adapter = __webpack_require__(556);
  } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
    // For node use HTTP adapter
    adapter = __webpack_require__(556);
  }
  return adapter;
}
function stringifySafely(rawValue, parser, encoder) {
  if (utils.isString(rawValue)) {
    try {
      (parser || JSON.parse)(rawValue);
      return utils.trim(rawValue);
    } catch (e) {
      if (e.name !== 'SyntaxError') {
        throw e;
      }
    }
  }
  return (encoder || JSON.stringify)(rawValue);
}
var defaults = {
  transitional: transitionalDefaults,
  adapter: getDefaultAdapter(),
  transformRequest: [function transformRequest(data, headers) {
    normalizeHeaderName(headers, 'Accept');
    normalizeHeaderName(headers, 'Content-Type');
    if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {
      return data;
    }
    if (utils.isArrayBufferView(data)) {
      return data.buffer;
    }
    if (utils.isURLSearchParams(data)) {
      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
      return data.toString();
    }
    var isObjectPayload = utils.isObject(data);
    var contentType = headers && headers['Content-Type'];
    var isFileList;
    if ((isFileList = utils.isFileList(data)) || isObjectPayload && contentType === 'multipart/form-data') {
      var _FormData = this.env && this.env.FormData;
      return toFormData(isFileList ? {
        'files[]': data
      } : data, _FormData && new _FormData());
    } else if (isObjectPayload || contentType === 'application/json') {
      setContentTypeIfUnset(headers, 'application/json');
      return stringifySafely(data);
    }
    return data;
  }],
  transformResponse: [function transformResponse(data) {
    var transitional = this.transitional || defaults.transitional;
    var silentJSONParsing = transitional && transitional.silentJSONParsing;
    var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
    var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
    if (strictJSONParsing || forcedJSONParsing && utils.isString(data) && data.length) {
      try {
        return JSON.parse(data);
      } catch (e) {
        if (strictJSONParsing) {
          if (e.name === 'SyntaxError') {
            throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
          }
          throw e;
        }
      }
    }
    return data;
  }],
  /**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
  timeout: 0,
  xsrfCookieName: 'XSRF-TOKEN',
  xsrfHeaderName: 'X-XSRF-TOKEN',
  maxContentLength: -1,
  maxBodyLength: -1,
  env: {
    FormData: __webpack_require__(2762)
  },
  validateStatus: function validateStatus(status) {
    return status >= 200 && status < 300;
  },
  headers: {
    common: {
      'Accept': 'application/json, text/plain, */*'
    }
  }
};
utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
  defaults.headers[method] = {};
});
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
});
module.exports = defaults;

/***/ }),

/***/ 617:
/***/ (function(module) {

"use strict";


module.exports = {
  silentJSONParsing: true,
  forcedJSONParsing: true,
  clarifyTimeoutError: false
};

/***/ }),

/***/ 9137:
/***/ (function(module) {

module.exports = {
  "version": "0.27.2"
};

/***/ }),

/***/ 8197:
/***/ (function(module) {

"use strict";


module.exports = function bind(fn, thisArg) {
  return function wrap() {
    var args = new Array(arguments.length);
    for (var i = 0; i < args.length; i++) {
      args[i] = arguments[i];
    }
    return fn.apply(thisArg, args);
  };
};

/***/ }),

/***/ 1971:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
function encode(val) {
  return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
}

/**
 * Build a URL by appending params to the end
 *
 * @param {string} url The base of the url (e.g., http://www.google.com)
 * @param {object} [params] The params to be appended
 * @returns {string} The formatted url
 */
module.exports = function buildURL(url, params, paramsSerializer) {
  /*eslint no-param-reassign:0*/
  if (!params) {
    return url;
  }
  var serializedParams;
  if (paramsSerializer) {
    serializedParams = paramsSerializer(params);
  } else if (utils.isURLSearchParams(params)) {
    serializedParams = params.toString();
  } else {
    var parts = [];
    utils.forEach(params, function serialize(val, key) {
      if (val === null || typeof val === 'undefined') {
        return;
      }
      if (utils.isArray(val)) {
        key = key + '[]';
      } else {
        val = [val];
      }
      utils.forEach(val, function parseValue(v) {
        if (utils.isDate(v)) {
          v = v.toISOString();
        } else if (utils.isObject(v)) {
          v = JSON.stringify(v);
        }
        parts.push(encode(key) + '=' + encode(v));
      });
    });
    serializedParams = parts.join('&');
  }
  if (serializedParams) {
    var hashmarkIndex = url.indexOf('#');
    if (hashmarkIndex !== -1) {
      url = url.slice(0, hashmarkIndex);
    }
    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  }
  return url;
};

/***/ }),

/***/ 4851:
/***/ (function(module) {

"use strict";


/**
 * Creates a new URL by combining the specified URLs
 *
 * @param {string} baseURL The base URL
 * @param {string} relativeURL The relative URL
 * @returns {string} The combined URL
 */
module.exports = function combineURLs(baseURL, relativeURL) {
  return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
};

/***/ }),

/***/ 8861:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
module.exports = utils.isStandardBrowserEnv() ?
// Standard browser envs support document.cookie
function standardBrowserEnv() {
  return {
    write: function write(name, value, expires, path, domain, secure) {
      var cookie = [];
      cookie.push(name + '=' + encodeURIComponent(value));
      if (utils.isNumber(expires)) {
        cookie.push('expires=' + new Date(expires).toGMTString());
      }
      if (utils.isString(path)) {
        cookie.push('path=' + path);
      }
      if (utils.isString(domain)) {
        cookie.push('domain=' + domain);
      }
      if (secure === true) {
        cookie.push('secure');
      }
      document.cookie = cookie.join('; ');
    },
    read: function read(name) {
      var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
      return match ? decodeURIComponent(match[3]) : null;
    },
    remove: function remove(name) {
      this.write(name, '', Date.now() - 86400000);
    }
  };
}() :
// Non standard browser env (web workers, react-native) lack needed support.
function nonStandardBrowserEnv() {
  return {
    write: function write() {},
    read: function read() {
      return null;
    },
    remove: function remove() {}
  };
}();

/***/ }),

/***/ 7001:
/***/ (function(module) {

"use strict";


/**
 * Determines whether the specified URL is absolute
 *
 * @param {string} url The URL to test
 * @returns {boolean} True if the specified URL is absolute, otherwise false
 */
module.exports = function isAbsoluteURL(url) {
  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  // by any combination of letters, digits, plus, period, or hyphen.
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
};

/***/ }),

/***/ 5754:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);

/**
 * Determines whether the payload is an error thrown by Axios
 *
 * @param {*} payload The value to test
 * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
 */
module.exports = function isAxiosError(payload) {
  return utils.isObject(payload) && payload.isAxiosError === true;
};

/***/ }),

/***/ 7858:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
module.exports = utils.isStandardBrowserEnv() ?
// Standard browser envs have full support of the APIs needed to test
// whether the request URL is of the same origin as current location.
function standardBrowserEnv() {
  var msie = /(msie|trident)/i.test(navigator.userAgent);
  var urlParsingNode = document.createElement('a');
  var originURL;

  /**
  * Parse a URL to discover it's components
  *
  * @param {String} url The URL to be parsed
  * @returns {Object}
  */
  function resolveURL(url) {
    var href = url;
    if (msie) {
      // IE needs attribute set twice to normalize properties
      urlParsingNode.setAttribute('href', href);
      href = urlParsingNode.href;
    }
    urlParsingNode.setAttribute('href', href);

    // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
    return {
      href: urlParsingNode.href,
      protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
      host: urlParsingNode.host,
      search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
      hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
      hostname: urlParsingNode.hostname,
      port: urlParsingNode.port,
      pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname
    };
  }
  originURL = resolveURL(window.location.href);

  /**
  * Determine if a URL shares the same origin as the current location
  *
  * @param {String} requestURL The URL to test
  * @returns {boolean} True if URL shares the same origin, otherwise false
  */
  return function isURLSameOrigin(requestURL) {
    var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
    return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
  };
}() :
// Non standard browser envs (web workers, react-native) lack needed support.
function nonStandardBrowserEnv() {
  return function isURLSameOrigin() {
    return true;
  };
}();

/***/ }),

/***/ 9546:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);
module.exports = function normalizeHeaderName(headers, normalizedName) {
  utils.forEach(headers, function processHeader(value, name) {
    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
      headers[normalizedName] = value;
      delete headers[name];
    }
  });
};

/***/ }),

/***/ 2762:
/***/ (function(module) {

// eslint-disable-next-line strict
module.exports = null;

/***/ }),

/***/ 5283:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);

// Headers whose duplicates are ignored by node
// c.f. https://nodejs.org/api/http.html#http_message_headers
var ignoreDuplicateOf = ['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'];

/**
 * Parse headers into an object
 *
 * ```
 * Date: Wed, 27 Aug 2014 08:58:49 GMT
 * Content-Type: application/json
 * Connection: keep-alive
 * Transfer-Encoding: chunked
 * ```
 *
 * @param {String} headers Headers needing to be parsed
 * @returns {Object} Headers parsed into an object
 */
module.exports = function parseHeaders(headers) {
  var parsed = {};
  var key;
  var val;
  var i;
  if (!headers) {
    return parsed;
  }
  utils.forEach(headers.split('\n'), function parser(line) {
    i = line.indexOf(':');
    key = utils.trim(line.substr(0, i)).toLowerCase();
    val = utils.trim(line.substr(i + 1));
    if (key) {
      if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
        return;
      }
      if (key === 'set-cookie') {
        parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
      } else {
        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
      }
    }
  });
  return parsed;
};

/***/ }),

/***/ 8499:
/***/ (function(module) {

"use strict";


module.exports = function parseProtocol(url) {
  var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
  return match && match[1] || '';
};

/***/ }),

/***/ 1870:
/***/ (function(module) {

"use strict";


/**
 * Syntactic sugar for invoking a function and expanding an array for arguments.
 *
 * Common use case would be to use `Function.prototype.apply`.
 *
 *  ```js
 *  function f(x, y, z) {}
 *  var args = [1, 2, 3];
 *  f.apply(null, args);
 *  ```
 *
 * With `spread` this example can be re-written.
 *
 *  ```js
 *  spread(function(x, y, z) {})([1, 2, 3]);
 *  ```
 *
 * @param {Function} callback
 * @returns {Function}
 */
module.exports = function spread(callback) {
  return function wrap(arr) {
    return callback.apply(null, arr);
  };
};

/***/ }),

/***/ 5257:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var utils = __webpack_require__(5666);

/**
 * Convert a data object to FormData
 * @param {Object} obj
 * @param {?Object} [formData]
 * @returns {Object}
 **/

function toFormData(obj, formData) {
  // eslint-disable-next-line no-param-reassign
  formData = formData || new FormData();
  var stack = [];
  function convertValue(value) {
    if (value === null) return '';
    if (utils.isDate(value)) {
      return value.toISOString();
    }
    if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
      return typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
    }
    return value;
  }
  function build(data, parentKey) {
    if (utils.isPlainObject(data) || utils.isArray(data)) {
      if (stack.indexOf(data) !== -1) {
        throw Error('Circular reference detected in ' + parentKey);
      }
      stack.push(data);
      utils.forEach(data, function each(value, key) {
        if (utils.isUndefined(value)) return;
        var fullKey = parentKey ? parentKey + '.' + key : key;
        var arr;
        if (value && !parentKey && typeof value === 'object') {
          if (utils.endsWith(key, '{}')) {
            // eslint-disable-next-line no-param-reassign
            value = JSON.stringify(value);
          } else if (utils.endsWith(key, '[]') && (arr = utils.toArray(value))) {
            // eslint-disable-next-line func-names
            arr.forEach(function (el) {
              !utils.isUndefined(el) && formData.append(fullKey, convertValue(el));
            });
            return;
          }
        }
        build(value, fullKey);
      });
      stack.pop();
    } else {
      formData.append(parentKey, convertValue(data));
    }
  }
  build(obj);
  return formData;
}
module.exports = toFormData;

/***/ }),

/***/ 4544:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var VERSION = (__webpack_require__(9137).version);
var AxiosError = __webpack_require__(4808);
var validators = {};

// eslint-disable-next-line func-names
['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) {
  validators[type] = function validator(thing) {
    return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
  };
});
var deprecatedWarnings = {};

/**
 * Transitional option validator
 * @param {function|boolean?} validator - set to false if the transitional option has been removed
 * @param {string?} version - deprecated version / removed since version
 * @param {string?} message - some message with additional info
 * @returns {function}
 */
validators.transitional = function transitional(validator, version, message) {
  function formatMessage(opt, desc) {
    return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
  }

  // eslint-disable-next-line func-names
  return function (value, opt, opts) {
    if (validator === false) {
      throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);
    }
    if (version && !deprecatedWarnings[opt]) {
      deprecatedWarnings[opt] = true;
      // eslint-disable-next-line no-console
      console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
    }
    return validator ? validator(value, opt, opts) : true;
  };
};

/**
 * Assert object's properties type
 * @param {object} options
 * @param {object} schema
 * @param {boolean?} allowUnknown
 */

function assertOptions(options, schema, allowUnknown) {
  if (typeof options !== 'object') {
    throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
  }
  var keys = Object.keys(options);
  var i = keys.length;
  while (i-- > 0) {
    var opt = keys[i];
    var validator = schema[opt];
    if (validator) {
      var value = options[opt];
      var result = value === undefined || validator(value, opt, options);
      if (result !== true) {
        throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
      }
      continue;
    }
    if (allowUnknown !== true) {
      throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
    }
  }
}
module.exports = {
  assertOptions: assertOptions,
  validators: validators
};

/***/ }),

/***/ 5666:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var bind = __webpack_require__(8197);

// utils is a library of generic helper functions non-specific to axios

var toString = Object.prototype.toString;

// eslint-disable-next-line func-names
var kindOf = function (cache) {
  // eslint-disable-next-line func-names
  return function (thing) {
    var str = toString.call(thing);
    return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
  };
}(Object.create(null));
function kindOfTest(type) {
  type = type.toLowerCase();
  return function isKindOf(thing) {
    return kindOf(thing) === type;
  };
}

/**
 * Determine if a value is an Array
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an Array, otherwise false
 */
function isArray(val) {
  return Array.isArray(val);
}

/**
 * Determine if a value is undefined
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if the value is undefined, otherwise false
 */
function isUndefined(val) {
  return typeof val === 'undefined';
}

/**
 * Determine if a value is a Buffer
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Buffer, otherwise false
 */
function isBuffer(val) {
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
}

/**
 * Determine if a value is an ArrayBuffer
 *
 * @function
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an ArrayBuffer, otherwise false
 */
var isArrayBuffer = kindOfTest('ArrayBuffer');

/**
 * Determine if a value is a view on an ArrayBuffer
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
 */
function isArrayBufferView(val) {
  var result;
  if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
    result = ArrayBuffer.isView(val);
  } else {
    result = val && val.buffer && isArrayBuffer(val.buffer);
  }
  return result;
}

/**
 * Determine if a value is a String
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a String, otherwise false
 */
function isString(val) {
  return typeof val === 'string';
}

/**
 * Determine if a value is a Number
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Number, otherwise false
 */
function isNumber(val) {
  return typeof val === 'number';
}

/**
 * Determine if a value is an Object
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is an Object, otherwise false
 */
function isObject(val) {
  return val !== null && typeof val === 'object';
}

/**
 * Determine if a value is a plain Object
 *
 * @param {Object} val The value to test
 * @return {boolean} True if value is a plain Object, otherwise false
 */
function isPlainObject(val) {
  if (kindOf(val) !== 'object') {
    return false;
  }
  var prototype = Object.getPrototypeOf(val);
  return prototype === null || prototype === Object.prototype;
}

/**
 * Determine if a value is a Date
 *
 * @function
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Date, otherwise false
 */
var isDate = kindOfTest('Date');

/**
 * Determine if a value is a File
 *
 * @function
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a File, otherwise false
 */
var isFile = kindOfTest('File');

/**
 * Determine if a value is a Blob
 *
 * @function
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Blob, otherwise false
 */
var isBlob = kindOfTest('Blob');

/**
 * Determine if a value is a FileList
 *
 * @function
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a File, otherwise false
 */
var isFileList = kindOfTest('FileList');

/**
 * Determine if a value is a Function
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Function, otherwise false
 */
function isFunction(val) {
  return toString.call(val) === '[object Function]';
}

/**
 * Determine if a value is a Stream
 *
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a Stream, otherwise false
 */
function isStream(val) {
  return isObject(val) && isFunction(val.pipe);
}

/**
 * Determine if a value is a FormData
 *
 * @param {Object} thing The value to test
 * @returns {boolean} True if value is an FormData, otherwise false
 */
function isFormData(thing) {
  var pattern = '[object FormData]';
  return thing && (typeof FormData === 'function' && thing instanceof FormData || toString.call(thing) === pattern || isFunction(thing.toString) && thing.toString() === pattern);
}

/**
 * Determine if a value is a URLSearchParams object
 * @function
 * @param {Object} val The value to test
 * @returns {boolean} True if value is a URLSearchParams object, otherwise false
 */
var isURLSearchParams = kindOfTest('URLSearchParams');

/**
 * Trim excess whitespace off the beginning and end of a string
 *
 * @param {String} str The String to trim
 * @returns {String} The String freed of excess whitespace
 */
function trim(str) {
  return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
}

/**
 * Determine if we're running in a standard browser environment
 *
 * This allows axios to run in a web worker, and react-native.
 * Both environments support XMLHttpRequest, but not fully standard globals.
 *
 * web workers:
 *  typeof window -> undefined
 *  typeof document -> undefined
 *
 * react-native:
 *  navigator.product -> 'ReactNative'
 * nativescript
 *  navigator.product -> 'NativeScript' or 'NS'
 */
function isStandardBrowserEnv() {
  if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {
    return false;
  }
  return typeof window !== 'undefined' && typeof document !== 'undefined';
}

/**
 * Iterate over an Array or an Object invoking a function for each item.
 *
 * If `obj` is an Array callback will be called passing
 * the value, index, and complete array for each item.
 *
 * If 'obj' is an Object callback will be called passing
 * the value, key, and complete object for each property.
 *
 * @param {Object|Array} obj The object to iterate
 * @param {Function} fn The callback to invoke for each item
 */
function forEach(obj, fn) {
  // Don't bother if no value provided
  if (obj === null || typeof obj === 'undefined') {
    return;
  }

  // Force an array if not already something iterable
  if (typeof obj !== 'object') {
    /*eslint no-param-reassign:0*/
    obj = [obj];
  }
  if (isArray(obj)) {
    // Iterate over array values
    for (var i = 0, l = obj.length; i < l; i++) {
      fn.call(null, obj[i], i, obj);
    }
  } else {
    // Iterate over object keys
    for (var key in obj) {
      if (Object.prototype.hasOwnProperty.call(obj, key)) {
        fn.call(null, obj[key], key, obj);
      }
    }
  }
}

/**
 * Accepts varargs expecting each argument to be an object, then
 * immutably merges the properties of each object and returns result.
 *
 * When multiple objects contain the same key the later object in
 * the arguments list will take precedence.
 *
 * Example:
 *
 * ```js
 * var result = merge({foo: 123}, {foo: 456});
 * console.log(result.foo); // outputs 456
 * ```
 *
 * @param {Object} obj1 Object to merge
 * @returns {Object} Result of all merge properties
 */
function merge( /* obj1, obj2, obj3, ... */
) {
  var result = {};
  function assignValue(val, key) {
    if (isPlainObject(result[key]) && isPlainObject(val)) {
      result[key] = merge(result[key], val);
    } else if (isPlainObject(val)) {
      result[key] = merge({}, val);
    } else if (isArray(val)) {
      result[key] = val.slice();
    } else {
      result[key] = val;
    }
  }
  for (var i = 0, l = arguments.length; i < l; i++) {
    forEach(arguments[i], assignValue);
  }
  return result;
}

/**
 * Extends object a by mutably adding to it the properties of object b.
 *
 * @param {Object} a The object to be extended
 * @param {Object} b The object to copy properties from
 * @param {Object} thisArg The object to bind function to
 * @return {Object} The resulting value of object a
 */
function extend(a, b, thisArg) {
  forEach(b, function assignValue(val, key) {
    if (thisArg && typeof val === 'function') {
      a[key] = bind(val, thisArg);
    } else {
      a[key] = val;
    }
  });
  return a;
}

/**
 * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
 *
 * @param {string} content with BOM
 * @return {string} content value without BOM
 */
function stripBOM(content) {
  if (content.charCodeAt(0) === 0xFEFF) {
    content = content.slice(1);
  }
  return content;
}

/**
 * Inherit the prototype methods from one constructor into another
 * @param {function} constructor
 * @param {function} superConstructor
 * @param {object} [props]
 * @param {object} [descriptors]
 */

function inherits(constructor, superConstructor, props, descriptors) {
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
  constructor.prototype.constructor = constructor;
  props && Object.assign(constructor.prototype, props);
}

/**
 * Resolve object with deep prototype chain to a flat object
 * @param {Object} sourceObj source object
 * @param {Object} [destObj]
 * @param {Function} [filter]
 * @returns {Object}
 */

function toFlatObject(sourceObj, destObj, filter) {
  var props;
  var i;
  var prop;
  var merged = {};
  destObj = destObj || {};
  do {
    props = Object.getOwnPropertyNames(sourceObj);
    i = props.length;
    while (i-- > 0) {
      prop = props[i];
      if (!merged[prop]) {
        destObj[prop] = sourceObj[prop];
        merged[prop] = true;
      }
    }
    sourceObj = Object.getPrototypeOf(sourceObj);
  } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
  return destObj;
}

/*
 * determines whether a string ends with the characters of a specified string
 * @param {String} str
 * @param {String} searchString
 * @param {Number} [position= 0]
 * @returns {boolean}
 */
function endsWith(str, searchString, position) {
  str = String(str);
  if (position === undefined || position > str.length) {
    position = str.length;
  }
  position -= searchString.length;
  var lastIndex = str.indexOf(searchString, position);
  return lastIndex !== -1 && lastIndex === position;
}

/**
 * Returns new array from array like object
 * @param {*} [thing]
 * @returns {Array}
 */
function toArray(thing) {
  if (!thing) return null;
  var i = thing.length;
  if (isUndefined(i)) return null;
  var arr = new Array(i);
  while (i-- > 0) {
    arr[i] = thing[i];
  }
  return arr;
}

// eslint-disable-next-line func-names
var isTypedArray = function (TypedArray) {
  // eslint-disable-next-line func-names
  return function (thing) {
    return TypedArray && thing instanceof TypedArray;
  };
}(typeof Uint8Array !== 'undefined' && Object.getPrototypeOf(Uint8Array));
module.exports = {
  isArray: isArray,
  isArrayBuffer: isArrayBuffer,
  isBuffer: isBuffer,
  isFormData: isFormData,
  isArrayBufferView: isArrayBufferView,
  isString: isString,
  isNumber: isNumber,
  isObject: isObject,
  isPlainObject: isPlainObject,
  isUndefined: isUndefined,
  isDate: isDate,
  isFile: isFile,
  isBlob: isBlob,
  isFunction: isFunction,
  isStream: isStream,
  isURLSearchParams: isURLSearchParams,
  isStandardBrowserEnv: isStandardBrowserEnv,
  forEach: forEach,
  merge: merge,
  extend: extend,
  trim: trim,
  stripBOM: stripBOM,
  inherits: inherits,
  toFlatObject: toFlatObject,
  kindOf: kindOf,
  kindOfTest: kindOfTest,
  endsWith: endsWith,
  toArray: toArray,
  isTypedArray: isTypedArray,
  isFileList: isFileList
};

/***/ }),

/***/ 7258:
/***/ (function(module, exports) {

var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/
/* global define */

(function () {
  'use strict';

  var hasOwn = {}.hasOwnProperty;
  var nativeCodeString = '[native code]';
  function classNames() {
    var classes = [];
    for (var i = 0; i < arguments.length; i++) {
      var arg = arguments[i];
      if (!arg) continue;
      var argType = typeof arg;
      if (argType === 'string' || argType === 'number') {
        classes.push(arg);
      } else if (Array.isArray(arg)) {
        if (arg.length) {
          var inner = classNames.apply(null, arg);
          if (inner) {
            classes.push(inner);
          }
        }
      } else if (argType === 'object') {
        if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
          classes.push(arg.toString());
          continue;
        }
        for (var key in arg) {
          if (hasOwn.call(arg, key) && arg[key]) {
            classes.push(key);
          }
        }
      }
    }
    return classes.join(' ');
  }
  if ( true && module.exports) {
    classNames.default = classNames;
    module.exports = classNames;
  } else if (true) {
    // register as 'classnames', consistent with npm package name
    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
      return classNames;
    }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
		__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  } else {}
})();

/***/ }),

/***/ 1569:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   clsx: function() { return /* binding */ clsx; }
/* harmony export */ });
function r(e) {
  var t,
    f,
    n = "";
  if ("string" == typeof e || "number" == typeof e) n += e;else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);else for (t in e) e[t] && (n && (n += " "), n += t);
  return n;
}
function clsx() {
  for (var e, t, f = 0, n = ""; f < arguments.length;) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
  return n;
}
/* harmony default export */ __webpack_exports__["default"] = (clsx);

/***/ }),

/***/ 5448:
/***/ (function(module) {

!function (t, e) {
   true ? module.exports = e() : 0;
}(this, function () {
  "use strict";

  var t = 1e3,
    e = 6e4,
    n = 36e5,
    r = "millisecond",
    i = "second",
    s = "minute",
    u = "hour",
    a = "day",
    o = "week",
    f = "month",
    h = "quarter",
    c = "year",
    d = "date",
    l = "Invalid Date",
    $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
    y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
    M = {
      name: "en",
      weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
      months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
      ordinal: function ordinal(t) {
        var e = ["th", "st", "nd", "rd"],
          n = t % 100;
        return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
      }
    },
    m = function m(t, e, n) {
      var r = String(t);
      return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
    },
    v = {
      s: m,
      z: function z(t) {
        var e = -t.utcOffset(),
          n = Math.abs(e),
          r = Math.floor(n / 60),
          i = n % 60;
        return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
      },
      m: function t(e, n) {
        if (e.date() < n.date()) return -t(n, e);
        var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
          i = e.clone().add(r, f),
          s = n - i < 0,
          u = e.clone().add(r + (s ? -1 : 1), f);
        return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
      },
      a: function a(t) {
        return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
      },
      p: function p(t) {
        return {
          M: f,
          y: c,
          w: o,
          d: a,
          D: d,
          h: u,
          m: s,
          s: i,
          ms: r,
          Q: h
        }[t] || String(t || "").toLowerCase().replace(/s$/, "");
      },
      u: function u(t) {
        return void 0 === t;
      }
    },
    g = "en",
    D = {};
  D[g] = M;
  var p = function p(t) {
      return t instanceof _;
    },
    S = function t(e, n, r) {
      var i;
      if (!e) return g;
      if ("string" == typeof e) {
        var s = e.toLowerCase();
        D[s] && (i = s), n && (D[s] = n, i = s);
        var u = e.split("-");
        if (!i && u.length > 1) return t(u[0]);
      } else {
        var a = e.name;
        D[a] = e, i = a;
      }
      return !r && i && (g = i), i || !r && g;
    },
    w = function w(t, e) {
      if (p(t)) return t.clone();
      var n = "object" == typeof e ? e : {};
      return n.date = t, n.args = arguments, new _(n);
    },
    O = v;
  O.l = S, O.i = p, O.w = function (t, e) {
    return w(t, {
      locale: e.$L,
      utc: e.$u,
      x: e.$x,
      $offset: e.$offset
    });
  };
  var _ = function () {
      function M(t) {
        this.$L = S(t.locale, null, !0), this.parse(t);
      }
      var m = M.prototype;
      return m.parse = function (t) {
        this.$d = function (t) {
          var e = t.date,
            n = t.utc;
          if (null === e) return new Date(NaN);
          if (O.u(e)) return new Date();
          if (e instanceof Date) return new Date(e);
          if ("string" == typeof e && !/Z$/i.test(e)) {
            var r = e.match($);
            if (r) {
              var i = r[2] - 1 || 0,
                s = (r[7] || "0").substring(0, 3);
              return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
            }
          }
          return new Date(e);
        }(t), this.$x = t.x || {}, this.init();
      }, m.init = function () {
        var t = this.$d;
        this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
      }, m.$utils = function () {
        return O;
      }, m.isValid = function () {
        return !(this.$d.toString() === l);
      }, m.isSame = function (t, e) {
        var n = w(t);
        return this.startOf(e) <= n && n <= this.endOf(e);
      }, m.isAfter = function (t, e) {
        return w(t) < this.startOf(e);
      }, m.isBefore = function (t, e) {
        return this.endOf(e) < w(t);
      }, m.$g = function (t, e, n) {
        return O.u(t) ? this[e] : this.set(n, t);
      }, m.unix = function () {
        return Math.floor(this.valueOf() / 1e3);
      }, m.valueOf = function () {
        return this.$d.getTime();
      }, m.startOf = function (t, e) {
        var n = this,
          r = !!O.u(e) || e,
          h = O.p(t),
          l = function l(t, e) {
            var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
            return r ? i : i.endOf(a);
          },
          $ = function $(t, e) {
            return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
          },
          y = this.$W,
          M = this.$M,
          m = this.$D,
          v = "set" + (this.$u ? "UTC" : "");
        switch (h) {
          case c:
            return r ? l(1, 0) : l(31, 11);
          case f:
            return r ? l(1, M) : l(0, M + 1);
          case o:
            var g = this.$locale().weekStart || 0,
              D = (y < g ? y + 7 : y) - g;
            return l(r ? m - D : m + (6 - D), M);
          case a:
          case d:
            return $(v + "Hours", 0);
          case u:
            return $(v + "Minutes", 1);
          case s:
            return $(v + "Seconds", 2);
          case i:
            return $(v + "Milliseconds", 3);
          default:
            return this.clone();
        }
      }, m.endOf = function (t) {
        return this.startOf(t, !1);
      }, m.$set = function (t, e) {
        var n,
          o = O.p(t),
          h = "set" + (this.$u ? "UTC" : ""),
          l = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],
          $ = o === a ? this.$D + (e - this.$W) : e;
        if (o === f || o === c) {
          var y = this.clone().set(d, 1);
          y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
        } else l && this.$d[l]($);
        return this.init(), this;
      }, m.set = function (t, e) {
        return this.clone().$set(t, e);
      }, m.get = function (t) {
        return this[O.p(t)]();
      }, m.add = function (r, h) {
        var d,
          l = this;
        r = Number(r);
        var $ = O.p(h),
          y = function y(t) {
            var e = w(l);
            return O.w(e.date(e.date() + Math.round(t * r)), l);
          };
        if ($ === f) return this.set(f, this.$M + r);
        if ($ === c) return this.set(c, this.$y + r);
        if ($ === a) return y(1);
        if ($ === o) return y(7);
        var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
          m = this.$d.getTime() + r * M;
        return O.w(m, this);
      }, m.subtract = function (t, e) {
        return this.add(-1 * t, e);
      }, m.format = function (t) {
        var e = this,
          n = this.$locale();
        if (!this.isValid()) return n.invalidDate || l;
        var r = t || "YYYY-MM-DDTHH:mm:ssZ",
          i = O.z(this),
          s = this.$H,
          u = this.$m,
          a = this.$M,
          o = n.weekdays,
          f = n.months,
          h = function h(t, n, i, s) {
            return t && (t[n] || t(e, r)) || i[n].slice(0, s);
          },
          c = function c(t) {
            return O.s(s % 12 || 12, t, "0");
          },
          d = n.meridiem || function (t, e, n) {
            var r = t < 12 ? "AM" : "PM";
            return n ? r.toLowerCase() : r;
          },
          $ = {
            YY: String(this.$y).slice(-2),
            YYYY: O.s(this.$y, 4, "0"),
            M: a + 1,
            MM: O.s(a + 1, 2, "0"),
            MMM: h(n.monthsShort, a, f, 3),
            MMMM: h(f, a),
            D: this.$D,
            DD: O.s(this.$D, 2, "0"),
            d: String(this.$W),
            dd: h(n.weekdaysMin, this.$W, o, 2),
            ddd: h(n.weekdaysShort, this.$W, o, 3),
            dddd: o[this.$W],
            H: String(s),
            HH: O.s(s, 2, "0"),
            h: c(1),
            hh: c(2),
            a: d(s, u, !0),
            A: d(s, u, !1),
            m: String(u),
            mm: O.s(u, 2, "0"),
            s: String(this.$s),
            ss: O.s(this.$s, 2, "0"),
            SSS: O.s(this.$ms, 3, "0"),
            Z: i
          };
        return r.replace(y, function (t, e) {
          return e || $[t] || i.replace(":", "");
        });
      }, m.utcOffset = function () {
        return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
      }, m.diff = function (r, d, l) {
        var $,
          y = O.p(d),
          M = w(r),
          m = (M.utcOffset() - this.utcOffset()) * e,
          v = this - M,
          g = O.m(this, M);
        return g = ($ = {}, $[c] = g / 12, $[f] = g, $[h] = g / 3, $[o] = (v - m) / 6048e5, $[a] = (v - m) / 864e5, $[u] = v / n, $[s] = v / e, $[i] = v / t, $)[y] || v, l ? g : O.a(g);
      }, m.daysInMonth = function () {
        return this.endOf(f).$D;
      }, m.$locale = function () {
        return D[this.$L];
      }, m.locale = function (t, e) {
        if (!t) return this.$L;
        var n = this.clone(),
          r = S(t, e, !0);
        return r && (n.$L = r), n;
      }, m.clone = function () {
        return O.w(this.$d, this);
      }, m.toDate = function () {
        return new Date(this.valueOf());
      }, m.toJSON = function () {
        return this.isValid() ? this.toISOString() : null;
      }, m.toISOString = function () {
        return this.$d.toISOString();
      }, m.toString = function () {
        return this.$d.toUTCString();
      }, M;
    }(),
    T = _.prototype;
  return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function (t) {
    T[t[1]] = function (e) {
      return this.$g(e, t[0], t[1]);
    };
  }), w.extend = function (t, e) {
    return t.$i || (t(e, _, w), t.$i = !0), w;
  }, w.locale = S, w.isDayjs = p, w.unix = function (t) {
    return w(1e3 * t);
  }, w.en = D[g], w.Ls = D, w.p = {}, w;
});

/***/ }),

/***/ 1376:
/***/ (function(module) {

!function (t, s) {
   true ? module.exports = s() : 0;
}(this, function () {
  "use strict";

  var t,
    s,
    n = 1e3,
    i = 6e4,
    e = 36e5,
    r = 864e5,
    o = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
    u = 31536e6,
    h = 2592e6,
    a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,
    d = {
      years: u,
      months: h,
      days: r,
      hours: e,
      minutes: i,
      seconds: n,
      milliseconds: 1,
      weeks: 6048e5
    },
    c = function c(t) {
      return t instanceof g;
    },
    f = function f(t, s, n) {
      return new g(t, n, s.$l);
    },
    l = function l(t) {
      return s.p(t) + "s";
    },
    m = function m(t) {
      return t < 0;
    },
    $ = function $(t) {
      return m(t) ? Math.ceil(t) : Math.floor(t);
    },
    y = function y(t) {
      return Math.abs(t);
    },
    v = function v(t, s) {
      return t ? m(t) ? {
        negative: !0,
        format: "" + y(t) + s
      } : {
        negative: !1,
        format: "" + t + s
      } : {
        negative: !1,
        format: ""
      };
    },
    g = function () {
      function m(t, s, n) {
        var i = this;
        if (this.$d = {}, this.$l = n, void 0 === t && (this.$ms = 0, this.parseFromMilliseconds()), s) return f(t * d[l(s)], this);
        if ("number" == typeof t) return this.$ms = t, this.parseFromMilliseconds(), this;
        if ("object" == typeof t) return Object.keys(t).forEach(function (s) {
          i.$d[l(s)] = t[s];
        }), this.calMilliseconds(), this;
        if ("string" == typeof t) {
          var e = t.match(a);
          if (e) {
            var r = e.slice(2).map(function (t) {
              return null != t ? Number(t) : 0;
            });
            return this.$d.years = r[0], this.$d.months = r[1], this.$d.weeks = r[2], this.$d.days = r[3], this.$d.hours = r[4], this.$d.minutes = r[5], this.$d.seconds = r[6], this.calMilliseconds(), this;
          }
        }
        return this;
      }
      var y = m.prototype;
      return y.calMilliseconds = function () {
        var t = this;
        this.$ms = Object.keys(this.$d).reduce(function (s, n) {
          return s + (t.$d[n] || 0) * d[n];
        }, 0);
      }, y.parseFromMilliseconds = function () {
        var t = this.$ms;
        this.$d.years = $(t / u), t %= u, this.$d.months = $(t / h), t %= h, this.$d.days = $(t / r), t %= r, this.$d.hours = $(t / e), t %= e, this.$d.minutes = $(t / i), t %= i, this.$d.seconds = $(t / n), t %= n, this.$d.milliseconds = t;
      }, y.toISOString = function () {
        var t = v(this.$d.years, "Y"),
          s = v(this.$d.months, "M"),
          n = +this.$d.days || 0;
        this.$d.weeks && (n += 7 * this.$d.weeks);
        var i = v(n, "D"),
          e = v(this.$d.hours, "H"),
          r = v(this.$d.minutes, "M"),
          o = this.$d.seconds || 0;
        this.$d.milliseconds && (o += this.$d.milliseconds / 1e3);
        var u = v(o, "S"),
          h = t.negative || s.negative || i.negative || e.negative || r.negative || u.negative,
          a = e.format || r.format || u.format ? "T" : "",
          d = (h ? "-" : "") + "P" + t.format + s.format + i.format + a + e.format + r.format + u.format;
        return "P" === d || "-P" === d ? "P0D" : d;
      }, y.toJSON = function () {
        return this.toISOString();
      }, y.format = function (t) {
        var n = t || "YYYY-MM-DDTHH:mm:ss",
          i = {
            Y: this.$d.years,
            YY: s.s(this.$d.years, 2, "0"),
            YYYY: s.s(this.$d.years, 4, "0"),
            M: this.$d.months,
            MM: s.s(this.$d.months, 2, "0"),
            D: this.$d.days,
            DD: s.s(this.$d.days, 2, "0"),
            H: this.$d.hours,
            HH: s.s(this.$d.hours, 2, "0"),
            m: this.$d.minutes,
            mm: s.s(this.$d.minutes, 2, "0"),
            s: this.$d.seconds,
            ss: s.s(this.$d.seconds, 2, "0"),
            SSS: s.s(this.$d.milliseconds, 3, "0")
          };
        return n.replace(o, function (t, s) {
          return s || String(i[t]);
        });
      }, y.as = function (t) {
        return this.$ms / d[l(t)];
      }, y.get = function (t) {
        var s = this.$ms,
          n = l(t);
        return "milliseconds" === n ? s %= 1e3 : s = "weeks" === n ? $(s / d[n]) : this.$d[n], 0 === s ? 0 : s;
      }, y.add = function (t, s, n) {
        var i;
        return i = s ? t * d[l(s)] : c(t) ? t.$ms : f(t, this).$ms, f(this.$ms + i * (n ? -1 : 1), this);
      }, y.subtract = function (t, s) {
        return this.add(t, s, !0);
      }, y.locale = function (t) {
        var s = this.clone();
        return s.$l = t, s;
      }, y.clone = function () {
        return f(this.$ms, this);
      }, y.humanize = function (s) {
        return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s);
      }, y.valueOf = function () {
        return this.asMilliseconds();
      }, y.milliseconds = function () {
        return this.get("milliseconds");
      }, y.asMilliseconds = function () {
        return this.as("milliseconds");
      }, y.seconds = function () {
        return this.get("seconds");
      }, y.asSeconds = function () {
        return this.as("seconds");
      }, y.minutes = function () {
        return this.get("minutes");
      }, y.asMinutes = function () {
        return this.as("minutes");
      }, y.hours = function () {
        return this.get("hours");
      }, y.asHours = function () {
        return this.as("hours");
      }, y.days = function () {
        return this.get("days");
      }, y.asDays = function () {
        return this.as("days");
      }, y.weeks = function () {
        return this.get("weeks");
      }, y.asWeeks = function () {
        return this.as("weeks");
      }, y.months = function () {
        return this.get("months");
      }, y.asMonths = function () {
        return this.as("months");
      }, y.years = function () {
        return this.get("years");
      }, y.asYears = function () {
        return this.as("years");
      }, m;
    }();
  return function (n, i, e) {
    t = e, s = e().$utils(), e.duration = function (t, s) {
      var n = e.locale();
      return f(t, {
        $l: n
      }, s);
    }, e.isDuration = c;
    var r = i.prototype.add,
      o = i.prototype.subtract;
    i.prototype.add = function (t, s) {
      return c(t) && (t = t.asMilliseconds()), r.bind(this)(t, s);
    }, i.prototype.subtract = function (t, s) {
      return c(t) && (t = t.asMilliseconds()), o.bind(this)(t, s);
    };
  };
});

/***/ }),

/***/ 7029:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var reactIs = __webpack_require__(4436);

/**
 * Copyright 2015, Yahoo! Inc.
 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */
var REACT_STATICS = {
  childContextTypes: true,
  contextType: true,
  contextTypes: true,
  defaultProps: true,
  displayName: true,
  getDefaultProps: true,
  getDerivedStateFromError: true,
  getDerivedStateFromProps: true,
  mixins: true,
  propTypes: true,
  type: true
};
var KNOWN_STATICS = {
  name: true,
  length: true,
  prototype: true,
  caller: true,
  callee: true,
  arguments: true,
  arity: true
};
var FORWARD_REF_STATICS = {
  '$$typeof': true,
  render: true,
  defaultProps: true,
  displayName: true,
  propTypes: true
};
var MEMO_STATICS = {
  '$$typeof': true,
  compare: true,
  defaultProps: true,
  displayName: true,
  propTypes: true,
  type: true
};
var TYPE_STATICS = {};
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
function getStatics(component) {
  // React v16.11 and below
  if (reactIs.isMemo(component)) {
    return MEMO_STATICS;
  } // React v16.12 and above

  return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
}
var defineProperty = Object.defineProperty;
var getOwnPropertyNames = Object.getOwnPropertyNames;
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var getPrototypeOf = Object.getPrototypeOf;
var objectPrototype = Object.prototype;
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
  if (typeof sourceComponent !== 'string') {
    // don't hoist over string (html) components
    if (objectPrototype) {
      var inheritedComponent = getPrototypeOf(sourceComponent);
      if (inheritedComponent && inheritedComponent !== objectPrototype) {
        hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
      }
    }
    var keys = getOwnPropertyNames(sourceComponent);
    if (getOwnPropertySymbols) {
      keys = keys.concat(getOwnPropertySymbols(sourceComponent));
    }
    var targetStatics = getStatics(targetComponent);
    var sourceStatics = getStatics(sourceComponent);
    for (var i = 0; i < keys.length; ++i) {
      var key = keys[i];
      if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
        var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
        try {
          // Avoid failures from read-only properties
          defineProperty(targetComponent, key, descriptor);
        } catch (e) {}
      }
    }
  }
  return targetComponent;
}
module.exports = hoistNonReactStatics;

/***/ }),

/***/ 2346:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


// A linked list to keep track of recently-used-ness
var _classCallCheck = (__webpack_require__(8388)["default"]);
var _createClass = (__webpack_require__(6553)["default"]);
var Yallist = __webpack_require__(6451);
var MAX = Symbol('max');
var LENGTH = Symbol('length');
var LENGTH_CALCULATOR = Symbol('lengthCalculator');
var ALLOW_STALE = Symbol('allowStale');
var MAX_AGE = Symbol('maxAge');
var DISPOSE = Symbol('dispose');
var NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet');
var LRU_LIST = Symbol('lruList');
var CACHE = Symbol('cache');
var UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet');
var naiveLength = function naiveLength() {
  return 1;
};

// lruList is a yallist where the head is the youngest
// item, and the tail is the oldest.  the list contains the Hit
// objects as the entries.
// Each Hit object has a reference to its Yallist.Node.  This
// never changes.
//
// cache is a Map (or PseudoMap) that matches the keys to
// the Yallist.Node object.
var LRUCache = /*#__PURE__*/function () {
  function LRUCache(options) {
    _classCallCheck(this, LRUCache);
    if (typeof options === 'number') options = {
      max: options
    };
    if (!options) options = {};
    if (options.max && (typeof options.max !== 'number' || options.max < 0)) throw new TypeError('max must be a non-negative number');
    // Kind of weird to have a default max of Infinity, but oh well.
    var max = this[MAX] = options.max || Infinity;
    var lc = options.length || naiveLength;
    this[LENGTH_CALCULATOR] = typeof lc !== 'function' ? naiveLength : lc;
    this[ALLOW_STALE] = options.stale || false;
    if (options.maxAge && typeof options.maxAge !== 'number') throw new TypeError('maxAge must be a number');
    this[MAX_AGE] = options.maxAge || 0;
    this[DISPOSE] = options.dispose;
    this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
    this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
    this.reset();
  }

  // resize the cache when the max changes.
  _createClass(LRUCache, [{
    key: "max",
    get: function get() {
      return this[MAX];
    },
    set: function set(mL) {
      if (typeof mL !== 'number' || mL < 0) throw new TypeError('max must be a non-negative number');
      this[MAX] = mL || Infinity;
      trim(this);
    }
  }, {
    key: "allowStale",
    get: function get() {
      return this[ALLOW_STALE];
    },
    set: function set(allowStale) {
      this[ALLOW_STALE] = !!allowStale;
    }
  }, {
    key: "maxAge",
    get: function get() {
      return this[MAX_AGE];
    }

    // resize the cache when the lengthCalculator changes.
    ,
    set: function set(mA) {
      if (typeof mA !== 'number') throw new TypeError('maxAge must be a non-negative number');
      this[MAX_AGE] = mA;
      trim(this);
    }
  }, {
    key: "lengthCalculator",
    get: function get() {
      return this[LENGTH_CALCULATOR];
    },
    set: function set(lC) {
      var _this = this;
      if (typeof lC !== 'function') lC = naiveLength;
      if (lC !== this[LENGTH_CALCULATOR]) {
        this[LENGTH_CALCULATOR] = lC;
        this[LENGTH] = 0;
        this[LRU_LIST].forEach(function (hit) {
          hit.length = _this[LENGTH_CALCULATOR](hit.value, hit.key);
          _this[LENGTH] += hit.length;
        });
      }
      trim(this);
    }
  }, {
    key: "length",
    get: function get() {
      return this[LENGTH];
    }
  }, {
    key: "itemCount",
    get: function get() {
      return this[LRU_LIST].length;
    }
  }, {
    key: "rforEach",
    value: function rforEach(fn, thisp) {
      thisp = thisp || this;
      for (var walker = this[LRU_LIST].tail; walker !== null;) {
        var prev = walker.prev;
        forEachStep(this, fn, walker, thisp);
        walker = prev;
      }
    }
  }, {
    key: "forEach",
    value: function forEach(fn, thisp) {
      thisp = thisp || this;
      for (var walker = this[LRU_LIST].head; walker !== null;) {
        var next = walker.next;
        forEachStep(this, fn, walker, thisp);
        walker = next;
      }
    }
  }, {
    key: "keys",
    value: function keys() {
      return this[LRU_LIST].toArray().map(function (k) {
        return k.key;
      });
    }
  }, {
    key: "values",
    value: function values() {
      return this[LRU_LIST].toArray().map(function (k) {
        return k.value;
      });
    }
  }, {
    key: "reset",
    value: function reset() {
      var _this2 = this;
      if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
        this[LRU_LIST].forEach(function (hit) {
          return _this2[DISPOSE](hit.key, hit.value);
        });
      }
      this[CACHE] = new Map(); // hash of items by key
      this[LRU_LIST] = new Yallist(); // list of items in order of use recency
      this[LENGTH] = 0; // length of items in the list
    }
  }, {
    key: "dump",
    value: function dump() {
      var _this3 = this;
      return this[LRU_LIST].map(function (hit) {
        return isStale(_this3, hit) ? false : {
          k: hit.key,
          v: hit.value,
          e: hit.now + (hit.maxAge || 0)
        };
      }).toArray().filter(function (h) {
        return h;
      });
    }
  }, {
    key: "dumpLru",
    value: function dumpLru() {
      return this[LRU_LIST];
    }
  }, {
    key: "set",
    value: function set(key, value, maxAge) {
      maxAge = maxAge || this[MAX_AGE];
      if (maxAge && typeof maxAge !== 'number') throw new TypeError('maxAge must be a number');
      var now = maxAge ? Date.now() : 0;
      var len = this[LENGTH_CALCULATOR](value, key);
      if (this[CACHE].has(key)) {
        if (len > this[MAX]) {
          _del(this, this[CACHE].get(key));
          return false;
        }
        var node = this[CACHE].get(key);
        var item = node.value;

        // dispose of the old one before overwriting
        // split out into 2 ifs for better coverage tracking
        if (this[DISPOSE]) {
          if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value);
        }
        item.now = now;
        item.maxAge = maxAge;
        item.value = value;
        this[LENGTH] += len - item.length;
        item.length = len;
        this.get(key);
        trim(this);
        return true;
      }
      var hit = new Entry(key, value, len, now, maxAge);

      // oversized objects fall out of cache automatically.
      if (hit.length > this[MAX]) {
        if (this[DISPOSE]) this[DISPOSE](key, value);
        return false;
      }
      this[LENGTH] += hit.length;
      this[LRU_LIST].unshift(hit);
      this[CACHE].set(key, this[LRU_LIST].head);
      trim(this);
      return true;
    }
  }, {
    key: "has",
    value: function has(key) {
      if (!this[CACHE].has(key)) return false;
      var hit = this[CACHE].get(key).value;
      return !isStale(this, hit);
    }
  }, {
    key: "get",
    value: function get(key) {
      return _get(this, key, true);
    }
  }, {
    key: "peek",
    value: function peek(key) {
      return _get(this, key, false);
    }
  }, {
    key: "pop",
    value: function pop() {
      var node = this[LRU_LIST].tail;
      if (!node) return null;
      _del(this, node);
      return node.value;
    }
  }, {
    key: "del",
    value: function del(key) {
      _del(this, this[CACHE].get(key));
    }
  }, {
    key: "load",
    value: function load(arr) {
      // reset the cache
      this.reset();
      var now = Date.now();
      // A previous serialized cache has the most recent items first
      for (var l = arr.length - 1; l >= 0; l--) {
        var hit = arr[l];
        var expiresAt = hit.e || 0;
        if (expiresAt === 0)
          // the item was created without expiration in a non aged cache
          this.set(hit.k, hit.v);else {
          var maxAge = expiresAt - now;
          // dont add already expired items
          if (maxAge > 0) {
            this.set(hit.k, hit.v, maxAge);
          }
        }
      }
    }
  }, {
    key: "prune",
    value: function prune() {
      var _this4 = this;
      this[CACHE].forEach(function (value, key) {
        return _get(_this4, key, false);
      });
    }
  }]);
  return LRUCache;
}();
var _get = function _get(self, key, doUse) {
  var node = self[CACHE].get(key);
  if (node) {
    var hit = node.value;
    if (isStale(self, hit)) {
      _del(self, node);
      if (!self[ALLOW_STALE]) return undefined;
    } else {
      if (doUse) {
        if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now();
        self[LRU_LIST].unshiftNode(node);
      }
    }
    return hit.value;
  }
};
var isStale = function isStale(self, hit) {
  if (!hit || !hit.maxAge && !self[MAX_AGE]) return false;
  var diff = Date.now() - hit.now;
  return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
};
var trim = function trim(self) {
  if (self[LENGTH] > self[MAX]) {
    for (var walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null;) {
      // We know that we're about to delete this one, and also
      // what the next least recently used key will be, so just
      // go ahead and set it now.
      var prev = walker.prev;
      _del(self, walker);
      walker = prev;
    }
  }
};
var _del = function _del(self, node) {
  if (node) {
    var hit = node.value;
    if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value);
    self[LENGTH] -= hit.length;
    self[CACHE].delete(hit.key);
    self[LRU_LIST].removeNode(node);
  }
};
var Entry = /*#__PURE__*/_createClass(function Entry(key, value, length, now, maxAge) {
  _classCallCheck(this, Entry);
  this.key = key;
  this.value = value;
  this.length = length;
  this.now = now;
  this.maxAge = maxAge || 0;
});
var forEachStep = function forEachStep(self, fn, node, thisp) {
  var hit = node.value;
  if (isStale(self, hit)) {
    _del(self, node);
    if (!self[ALLOW_STALE]) hit = undefined;
  }
  if (hit) fn.call(thisp, hit.value, hit.key, self);
};
module.exports = LRUCache;

/***/ }),

/***/ 779:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var ReactPropTypesSecret = __webpack_require__(7106);
function emptyFunction() {}
function emptyFunctionWithReset() {}
emptyFunctionWithReset.resetWarningCache = emptyFunction;
module.exports = function () {
  function shim(props, propName, componentName, location, propFullName, secret) {
    if (secret === ReactPropTypesSecret) {
      // It is still safe when called from React.
      return;
    }
    var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
    err.name = 'Invariant Violation';
    throw err;
  }
  ;
  shim.isRequired = shim;
  function getShim() {
    return shim;
  }
  ;
  // Important!
  // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
  var ReactPropTypes = {
    array: shim,
    bigint: shim,
    bool: shim,
    func: shim,
    number: shim,
    object: shim,
    string: shim,
    symbol: shim,
    any: shim,
    arrayOf: getShim,
    element: shim,
    elementType: shim,
    instanceOf: getShim,
    node: shim,
    objectOf: getShim,
    oneOf: getShim,
    oneOfType: getShim,
    shape: getShim,
    exact: getShim,
    checkPropTypes: emptyFunctionWithReset,
    resetWarningCache: emptyFunction
  };
  ReactPropTypes.PropTypes = ReactPropTypes;
  return ReactPropTypes;
};

/***/ }),

/***/ 1226:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

if (false) { var throwOnDirectAccess, ReactIs; } else {
  // By explicitly using `prop-types` you are opting into new production behavior.
  // http://fb.me/prop-types-in-prod
  module.exports = __webpack_require__(779)();
}

/***/ }),

/***/ 7106:
/***/ (function(module) {

"use strict";
/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
module.exports = ReactPropTypesSecret;

/***/ }),

/***/ 5016:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  zb: function() { return /* reexport */ FieldContext; },
  RV: function() { return /* reexport */ FormProvider; }
});

// UNUSED EXPORTS: Field, List, ListContext, default, useForm, useWatch

// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(9686);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(372);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(4816);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(5292);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/assertThisInitialized.js
var assertThisInitialized = __webpack_require__(2901);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(8863);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(8271);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Children/toArray.js
var toArray = __webpack_require__(5075);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/warning.js
var warning = __webpack_require__(8575);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/FieldContext.js


var HOOK_MARK = 'RC_FORM_INTERNAL_HOOKS';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
var warningFunc = function warningFunc() {
  (0,warning/* default */.ZP)(false, 'Can not find FormContext. Please make sure you wrap Field under Form.');
};
var Context = /*#__PURE__*/_react_18_2_0_react.createContext({
  getFieldValue: warningFunc,
  getFieldsValue: warningFunc,
  getFieldError: warningFunc,
  getFieldWarning: warningFunc,
  getFieldsError: warningFunc,
  isFieldsTouched: warningFunc,
  isFieldTouched: warningFunc,
  isFieldValidating: warningFunc,
  isFieldsValidating: warningFunc,
  resetFields: warningFunc,
  setFields: warningFunc,
  setFieldValue: warningFunc,
  setFieldsValue: warningFunc,
  validateFields: warningFunc,
  submit: warningFunc,
  getInternalHooks: function getInternalHooks() {
    warningFunc();
    return {
      dispatch: warningFunc,
      initEntityValue: warningFunc,
      registerField: warningFunc,
      useSubscribe: warningFunc,
      setInitialValues: warningFunc,
      destroyForm: warningFunc,
      setCallbacks: warningFunc,
      registerWatch: warningFunc,
      getFields: warningFunc,
      setValidateMessages: warningFunc,
      setPreserve: warningFunc,
      getInitialValue: warningFunc
    };
  }
});
/* harmony default export */ var FieldContext = (Context);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/utils/typeUtil.js
function typeUtil_toArray(value) {
  if (value === undefined || value === null) {
    return [];
  }
  return Array.isArray(value) ? value : [value];
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7921);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(2171);
;// CONCATENATED MODULE: ./node_modules/_async-validator@4.2.5@async-validator/dist-web/index.js
function _extends() {
  _extends = Object.assign ? Object.assign.bind() : function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];
      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }
    return target;
  };
  return _extends.apply(this, arguments);
}
function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  _setPrototypeOf(subClass, superClass);
}
function _getPrototypeOf(o) {
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
    return o.__proto__ || Object.getPrototypeOf(o);
  };
  return _getPrototypeOf(o);
}
function _setPrototypeOf(o, p) {
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
    o.__proto__ = p;
    return o;
  };
  return _setPrototypeOf(o, p);
}
function _isNativeReflectConstruct() {
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  if (Reflect.construct.sham) return false;
  if (typeof Proxy === "function") return true;
  try {
    Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
    return true;
  } catch (e) {
    return false;
  }
}
function _construct(Parent, args, Class) {
  if (_isNativeReflectConstruct()) {
    _construct = Reflect.construct.bind();
  } else {
    _construct = function _construct(Parent, args, Class) {
      var a = [null];
      a.push.apply(a, args);
      var Constructor = Function.bind.apply(Parent, a);
      var instance = new Constructor();
      if (Class) _setPrototypeOf(instance, Class.prototype);
      return instance;
    };
  }
  return _construct.apply(null, arguments);
}
function _isNativeFunction(fn) {
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
}
function _wrapNativeSuper(Class) {
  var _cache = typeof Map === "function" ? new Map() : undefined;
  _wrapNativeSuper = function _wrapNativeSuper(Class) {
    if (Class === null || !_isNativeFunction(Class)) return Class;
    if (typeof Class !== "function") {
      throw new TypeError("Super expression must either be null or a function");
    }
    if (typeof _cache !== "undefined") {
      if (_cache.has(Class)) return _cache.get(Class);
      _cache.set(Class, Wrapper);
    }
    function Wrapper() {
      return _construct(Class, arguments, _getPrototypeOf(this).constructor);
    }
    Wrapper.prototype = Object.create(Class.prototype, {
      constructor: {
        value: Wrapper,
        enumerable: false,
        writable: true,
        configurable: true
      }
    });
    return _setPrototypeOf(Wrapper, Class);
  };
  return _wrapNativeSuper(Class);
}

/* eslint no-console:0 */
var formatRegExp = /%[sdj%]/g;
var dist_web_warning = function warning() {}; // don't print warning message when in production env or node runtime

if (typeof process !== 'undefined' && ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}) && "production" !== 'production' && 0 && 0) {}
function convertFieldsError(errors) {
  if (!errors || !errors.length) return null;
  var fields = {};
  errors.forEach(function (error) {
    var field = error.field;
    fields[field] = fields[field] || [];
    fields[field].push(error);
  });
  return fields;
}
function format(template) {
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    args[_key - 1] = arguments[_key];
  }
  var i = 0;
  var len = args.length;
  if (typeof template === 'function') {
    return template.apply(null, args);
  }
  if (typeof template === 'string') {
    var str = template.replace(formatRegExp, function (x) {
      if (x === '%%') {
        return '%';
      }
      if (i >= len) {
        return x;
      }
      switch (x) {
        case '%s':
          return String(args[i++]);
        case '%d':
          return Number(args[i++]);
        case '%j':
          try {
            return JSON.stringify(args[i++]);
          } catch (_) {
            return '[Circular]';
          }
          break;
        default:
          return x;
      }
    });
    return str;
  }
  return template;
}
function isNativeStringType(type) {
  return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'date' || type === 'pattern';
}
function isEmptyValue(value, type) {
  if (value === undefined || value === null) {
    return true;
  }
  if (type === 'array' && Array.isArray(value) && !value.length) {
    return true;
  }
  if (isNativeStringType(type) && typeof value === 'string' && !value) {
    return true;
  }
  return false;
}
function asyncParallelArray(arr, func, callback) {
  var results = [];
  var total = 0;
  var arrLength = arr.length;
  function count(errors) {
    results.push.apply(results, errors || []);
    total++;
    if (total === arrLength) {
      callback(results);
    }
  }
  arr.forEach(function (a) {
    func(a, count);
  });
}
function asyncSerialArray(arr, func, callback) {
  var index = 0;
  var arrLength = arr.length;
  function next(errors) {
    if (errors && errors.length) {
      callback(errors);
      return;
    }
    var original = index;
    index = index + 1;
    if (original < arrLength) {
      func(arr[original], next);
    } else {
      callback([]);
    }
  }
  next([]);
}
function flattenObjArr(objArr) {
  var ret = [];
  Object.keys(objArr).forEach(function (k) {
    ret.push.apply(ret, objArr[k] || []);
  });
  return ret;
}
var AsyncValidationError = /*#__PURE__*/function (_Error) {
  _inheritsLoose(AsyncValidationError, _Error);
  function AsyncValidationError(errors, fields) {
    var _this;
    _this = _Error.call(this, 'Async Validation Error') || this;
    _this.errors = errors;
    _this.fields = fields;
    return _this;
  }
  return AsyncValidationError;
}( /*#__PURE__*/_wrapNativeSuper(Error));
function asyncMap(objArr, option, func, callback, source) {
  if (option.first) {
    var _pending = new Promise(function (resolve, reject) {
      var next = function next(errors) {
        callback(errors);
        return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve(source);
      };
      var flattenArr = flattenObjArr(objArr);
      asyncSerialArray(flattenArr, func, next);
    });
    _pending["catch"](function (e) {
      return e;
    });
    return _pending;
  }
  var firstFields = option.firstFields === true ? Object.keys(objArr) : option.firstFields || [];
  var objArrKeys = Object.keys(objArr);
  var objArrLength = objArrKeys.length;
  var total = 0;
  var results = [];
  var pending = new Promise(function (resolve, reject) {
    var next = function next(errors) {
      results.push.apply(results, errors);
      total++;
      if (total === objArrLength) {
        callback(results);
        return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve(source);
      }
    };
    if (!objArrKeys.length) {
      callback(results);
      resolve(source);
    }
    objArrKeys.forEach(function (key) {
      var arr = objArr[key];
      if (firstFields.indexOf(key) !== -1) {
        asyncSerialArray(arr, func, next);
      } else {
        asyncParallelArray(arr, func, next);
      }
    });
  });
  pending["catch"](function (e) {
    return e;
  });
  return pending;
}
function isErrorObj(obj) {
  return !!(obj && obj.message !== undefined);
}
function getValue(value, path) {
  var v = value;
  for (var i = 0; i < path.length; i++) {
    if (v == undefined) {
      return v;
    }
    v = v[path[i]];
  }
  return v;
}
function complementError(rule, source) {
  return function (oe) {
    var fieldValue;
    if (rule.fullFields) {
      fieldValue = getValue(source, rule.fullFields);
    } else {
      fieldValue = source[oe.field || rule.fullField];
    }
    if (isErrorObj(oe)) {
      oe.field = oe.field || rule.fullField;
      oe.fieldValue = fieldValue;
      return oe;
    }
    return {
      message: typeof oe === 'function' ? oe() : oe,
      fieldValue: fieldValue,
      field: oe.field || rule.fullField
    };
  };
}
function deepMerge(target, source) {
  if (source) {
    for (var s in source) {
      if (source.hasOwnProperty(s)) {
        var value = source[s];
        if (typeof value === 'object' && typeof target[s] === 'object') {
          target[s] = _extends({}, target[s], value);
        } else {
          target[s] = value;
        }
      }
    }
  }
  return target;
}
var required$1 = function required(rule, value, source, errors, options, type) {
  if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
    errors.push(format(options.messages.required, rule.fullField));
  }
};

/**
 *  Rule for validating whitespace.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

var whitespace = function whitespace(rule, value, source, errors, options) {
  if (/^\s+$/.test(value) || value === '') {
    errors.push(format(options.messages.whitespace, rule.fullField));
  }
};

// https://github.com/kevva/url-regex/blob/master/index.js
var urlReg;
var getUrlRegex = function getUrlRegex() {
  if (urlReg) {
    return urlReg;
  }
  var word = '[a-fA-F\\d:]';
  var b = function b(options) {
    return options && options.includeBoundaries ? "(?:(?<=\\s|^)(?=" + word + ")|(?<=" + word + ")(?=\\s|$))" : '';
  };
  var v4 = '(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}';
  var v6seg = '[a-fA-F\\d]{1,4}';
  var v6 = ("\n(?:\n(?:" + v6seg + ":){7}(?:" + v6seg + "|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\n(?:" + v6seg + ":){6}(?:" + v4 + "|:" + v6seg + "|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\n(?:" + v6seg + ":){5}(?::" + v4 + "|(?::" + v6seg + "){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\n(?:" + v6seg + ":){4}(?:(?::" + v6seg + "){0,1}:" + v4 + "|(?::" + v6seg + "){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\n(?:" + v6seg + ":){3}(?:(?::" + v6seg + "){0,2}:" + v4 + "|(?::" + v6seg + "){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\n(?:" + v6seg + ":){2}(?:(?::" + v6seg + "){0,3}:" + v4 + "|(?::" + v6seg + "){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\n(?:" + v6seg + ":){1}(?:(?::" + v6seg + "){0,4}:" + v4 + "|(?::" + v6seg + "){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::" + v6seg + "){0,5}:" + v4 + "|(?::" + v6seg + "){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1\n").replace(/\s*\/\/.*$/gm, '').replace(/\n/g, '').trim(); // Pre-compile only the exact regexes because adding a global flag make regexes stateful

  var v46Exact = new RegExp("(?:^" + v4 + "$)|(?:^" + v6 + "$)");
  var v4exact = new RegExp("^" + v4 + "$");
  var v6exact = new RegExp("^" + v6 + "$");
  var ip = function ip(options) {
    return options && options.exact ? v46Exact : new RegExp("(?:" + b(options) + v4 + b(options) + ")|(?:" + b(options) + v6 + b(options) + ")", 'g');
  };
  ip.v4 = function (options) {
    return options && options.exact ? v4exact : new RegExp("" + b(options) + v4 + b(options), 'g');
  };
  ip.v6 = function (options) {
    return options && options.exact ? v6exact : new RegExp("" + b(options) + v6 + b(options), 'g');
  };
  var protocol = "(?:(?:[a-z]+:)?//)";
  var auth = '(?:\\S+(?::\\S*)?@)?';
  var ipv4 = ip.v4().source;
  var ipv6 = ip.v6().source;
  var host = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)";
  var domain = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*";
  var tld = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";
  var port = '(?::\\d{2,5})?';
  var path = '(?:[/?#][^\\s"]*)?';
  var regex = "(?:" + protocol + "|www\\.)" + auth + "(?:localhost|" + ipv4 + "|" + ipv6 + "|" + host + domain + tld + ")" + port + path;
  urlReg = new RegExp("(?:^" + regex + "$)", 'i');
  return urlReg;
};

/* eslint max-len:0 */

var pattern$2 = {
  // http://emailregex.com/
  email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
  // url: new RegExp(
  //   '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$',
  //   'i',
  // ),
  hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
};
var types = {
  integer: function integer(value) {
    return types.number(value) && parseInt(value, 10) === value;
  },
  "float": function float(value) {
    return types.number(value) && !types.integer(value);
  },
  array: function array(value) {
    return Array.isArray(value);
  },
  regexp: function regexp(value) {
    if (value instanceof RegExp) {
      return true;
    }
    try {
      return !!new RegExp(value);
    } catch (e) {
      return false;
    }
  },
  date: function date(value) {
    return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function' && !isNaN(value.getTime());
  },
  number: function number(value) {
    if (isNaN(value)) {
      return false;
    }
    return typeof value === 'number';
  },
  object: function object(value) {
    return typeof value === 'object' && !types.array(value);
  },
  method: function method(value) {
    return typeof value === 'function';
  },
  email: function email(value) {
    return typeof value === 'string' && value.length <= 320 && !!value.match(pattern$2.email);
  },
  url: function url(value) {
    return typeof value === 'string' && value.length <= 2048 && !!value.match(getUrlRegex());
  },
  hex: function hex(value) {
    return typeof value === 'string' && !!value.match(pattern$2.hex);
  }
};
var type$1 = function type(rule, value, source, errors, options) {
  if (rule.required && value === undefined) {
    required$1(rule, value, source, errors, options);
    return;
  }
  var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  var ruleType = rule.type;
  if (custom.indexOf(ruleType) > -1) {
    if (!types[ruleType](value)) {
      errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
    } // straight typeof check
  } else if (ruleType && typeof value !== rule.type) {
    errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  }
};
var range = function range(rule, value, source, errors, options) {
  var len = typeof rule.len === 'number';
  var min = typeof rule.min === 'number';
  var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字（补充平面Supplementary Plane）

  var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  var val = value;
  var key = null;
  var num = typeof value === 'number';
  var str = typeof value === 'string';
  var arr = Array.isArray(value);
  if (num) {
    key = 'number';
  } else if (str) {
    key = 'string';
  } else if (arr) {
    key = 'array';
  } // if the value is not of a supported type for range validation
  // the validation rule rule should use the
  // type property to also test for a particular type

  if (!key) {
    return false;
  }
  if (arr) {
    val = value.length;
  }
  if (str) {
    // 处理码点大于U+010000的文字length属性不准确的bug，如"𠮷𠮷𠮷".lenght !== 3
    val = value.replace(spRegexp, '_').length;
  }
  if (len) {
    if (val !== rule.len) {
      errors.push(format(options.messages[key].len, rule.fullField, rule.len));
    }
  } else if (min && !max && val < rule.min) {
    errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  } else if (max && !min && val > rule.max) {
    errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  } else if (min && max && (val < rule.min || val > rule.max)) {
    errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  }
};
var ENUM$1 = 'enum';
var enumerable$1 = function enumerable(rule, value, source, errors, options) {
  rule[ENUM$1] = Array.isArray(rule[ENUM$1]) ? rule[ENUM$1] : [];
  if (rule[ENUM$1].indexOf(value) === -1) {
    errors.push(format(options.messages[ENUM$1], rule.fullField, rule[ENUM$1].join(', ')));
  }
};
var pattern$1 = function pattern(rule, value, source, errors, options) {
  if (rule.pattern) {
    if (rule.pattern instanceof RegExp) {
      // if a RegExp instance is passed, reset `lastIndex` in case its `global`
      // flag is accidentally set to `true`, which in a validation scenario
      // is not necessary and the result might be misleading
      rule.pattern.lastIndex = 0;
      if (!rule.pattern.test(value)) {
        errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
      }
    } else if (typeof rule.pattern === 'string') {
      var _pattern = new RegExp(rule.pattern);
      if (!_pattern.test(value)) {
        errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
      }
    }
  }
};
var rules = {
  required: required$1,
  whitespace: whitespace,
  type: type$1,
  range: range,
  "enum": enumerable$1,
  pattern: pattern$1
};
var string = function string(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value, 'string') && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options, 'string');
    if (!isEmptyValue(value, 'string')) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
      rules.pattern(rule, value, source, errors, options);
      if (rule.whitespace === true) {
        rules.whitespace(rule, value, source, errors, options);
      }
    }
  }
  callback(errors);
};
var method = function method(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var number = function number(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (value === '') {
      value = undefined;
    }
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var _boolean = function _boolean(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var regexp = function regexp(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (!isEmptyValue(value)) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var integer = function integer(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var floatFn = function floatFn(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var array = function array(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if ((value === undefined || value === null) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options, 'array');
    if (value !== undefined && value !== null) {
      rules.type(rule, value, source, errors, options);
      rules.range(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var object = function object(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var ENUM = 'enum';
var enumerable = function enumerable(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (value !== undefined) {
      rules[ENUM](rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var pattern = function pattern(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value, 'string') && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (!isEmptyValue(value, 'string')) {
      rules.pattern(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var date = function date(rule, value, callback, source, options) {
  // console.log('integer rule called %j', rule);
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value);

  if (validate) {
    if (isEmptyValue(value, 'date') && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
    if (!isEmptyValue(value, 'date')) {
      var dateObject;
      if (value instanceof Date) {
        dateObject = value;
      } else {
        dateObject = new Date(value);
      }
      rules.type(rule, dateObject, source, errors, options);
      if (dateObject) {
        rules.range(rule, dateObject.getTime(), source, errors, options);
      }
    }
  }
  callback(errors);
};
var required = function required(rule, value, callback, source, options) {
  var errors = [];
  var type = Array.isArray(value) ? 'array' : typeof value;
  rules.required(rule, value, source, errors, options, type);
  callback(errors);
};
var type = function type(rule, value, callback, source, options) {
  var ruleType = rule.type;
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value, ruleType) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options, ruleType);
    if (!isEmptyValue(value, ruleType)) {
      rules.type(rule, value, source, errors, options);
    }
  }
  callback(errors);
};
var any = function any(rule, value, callback, source, options) {
  var errors = [];
  var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  if (validate) {
    if (isEmptyValue(value) && !rule.required) {
      return callback();
    }
    rules.required(rule, value, source, errors, options);
  }
  callback(errors);
};
var validators = {
  string: string,
  method: method,
  number: number,
  "boolean": _boolean,
  regexp: regexp,
  integer: integer,
  "float": floatFn,
  array: array,
  object: object,
  "enum": enumerable,
  pattern: pattern,
  date: date,
  url: type,
  hex: type,
  email: type,
  required: required,
  any: any
};
function newMessages() {
  return {
    "default": 'Validation error on field %s',
    required: '%s is required',
    "enum": '%s must be one of %s',
    whitespace: '%s cannot be empty',
    date: {
      format: '%s date %s is invalid for format %s',
      parse: '%s date could not be parsed, %s is invalid ',
      invalid: '%s date %s is invalid'
    },
    types: {
      string: '%s is not a %s',
      method: '%s is not a %s (function)',
      array: '%s is not an %s',
      object: '%s is not an %s',
      number: '%s is not a %s',
      date: '%s is not a %s',
      "boolean": '%s is not a %s',
      integer: '%s is not an %s',
      "float": '%s is not a %s',
      regexp: '%s is not a valid %s',
      email: '%s is not a valid %s',
      url: '%s is not a valid %s',
      hex: '%s is not a valid %s'
    },
    string: {
      len: '%s must be exactly %s characters',
      min: '%s must be at least %s characters',
      max: '%s cannot be longer than %s characters',
      range: '%s must be between %s and %s characters'
    },
    number: {
      len: '%s must equal %s',
      min: '%s cannot be less than %s',
      max: '%s cannot be greater than %s',
      range: '%s must be between %s and %s'
    },
    array: {
      len: '%s must be exactly %s in length',
      min: '%s cannot be less than %s in length',
      max: '%s cannot be greater than %s in length',
      range: '%s must be between %s and %s in length'
    },
    pattern: {
      mismatch: '%s value %s does not match pattern %s'
    },
    clone: function clone() {
      var cloned = JSON.parse(JSON.stringify(this));
      cloned.clone = this.clone;
      return cloned;
    }
  };
}
var messages = newMessages();

/**
 *  Encapsulates a validation schema.
 *
 *  @param descriptor An object declaring validation rules
 *  for this schema.
 */

var Schema = /*#__PURE__*/function () {
  // ========================= Static =========================
  // ======================== Instance ========================
  function Schema(descriptor) {
    this.rules = null;
    this._messages = messages;
    this.define(descriptor);
  }
  var _proto = Schema.prototype;
  _proto.define = function define(rules) {
    var _this = this;
    if (!rules) {
      throw new Error('Cannot configure a schema with no rules');
    }
    if (typeof rules !== 'object' || Array.isArray(rules)) {
      throw new Error('Rules must be an object');
    }
    this.rules = {};
    Object.keys(rules).forEach(function (name) {
      var item = rules[name];
      _this.rules[name] = Array.isArray(item) ? item : [item];
    });
  };
  _proto.messages = function messages(_messages) {
    if (_messages) {
      this._messages = deepMerge(newMessages(), _messages);
    }
    return this._messages;
  };
  _proto.validate = function validate(source_, o, oc) {
    var _this2 = this;
    if (o === void 0) {
      o = {};
    }
    if (oc === void 0) {
      oc = function oc() {};
    }
    var source = source_;
    var options = o;
    var callback = oc;
    if (typeof options === 'function') {
      callback = options;
      options = {};
    }
    if (!this.rules || Object.keys(this.rules).length === 0) {
      if (callback) {
        callback(null, source);
      }
      return Promise.resolve(source);
    }
    function complete(results) {
      var errors = [];
      var fields = {};
      function add(e) {
        if (Array.isArray(e)) {
          var _errors;
          errors = (_errors = errors).concat.apply(_errors, e);
        } else {
          errors.push(e);
        }
      }
      for (var i = 0; i < results.length; i++) {
        add(results[i]);
      }
      if (!errors.length) {
        callback(null, source);
      } else {
        fields = convertFieldsError(errors);
        callback(errors, fields);
      }
    }
    if (options.messages) {
      var messages$1 = this.messages();
      if (messages$1 === messages) {
        messages$1 = newMessages();
      }
      deepMerge(messages$1, options.messages);
      options.messages = messages$1;
    } else {
      options.messages = this.messages();
    }
    var series = {};
    var keys = options.keys || Object.keys(this.rules);
    keys.forEach(function (z) {
      var arr = _this2.rules[z];
      var value = source[z];
      arr.forEach(function (r) {
        var rule = r;
        if (typeof rule.transform === 'function') {
          if (source === source_) {
            source = _extends({}, source);
          }
          value = source[z] = rule.transform(value);
        }
        if (typeof rule === 'function') {
          rule = {
            validator: rule
          };
        } else {
          rule = _extends({}, rule);
        } // Fill validator. Skip if nothing need to validate

        rule.validator = _this2.getValidationMethod(rule);
        if (!rule.validator) {
          return;
        }
        rule.field = z;
        rule.fullField = rule.fullField || z;
        rule.type = _this2.getType(rule);
        series[z] = series[z] || [];
        series[z].push({
          rule: rule,
          value: value,
          source: source,
          field: z
        });
      });
    });
    var errorFields = {};
    return asyncMap(series, options, function (data, doIt) {
      var rule = data.rule;
      var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField === 'object');
      deep = deep && (rule.required || !rule.required && data.value);
      rule.field = data.field;
      function addFullField(key, schema) {
        return _extends({}, schema, {
          fullField: rule.fullField + "." + key,
          fullFields: rule.fullFields ? [].concat(rule.fullFields, [key]) : [key]
        });
      }
      function cb(e) {
        if (e === void 0) {
          e = [];
        }
        var errorList = Array.isArray(e) ? e : [e];
        if (!options.suppressWarning && errorList.length) {
          Schema.warning('async-validator:', errorList);
        }
        if (errorList.length && rule.message !== undefined) {
          errorList = [].concat(rule.message);
        } // Fill error info

        var filledErrors = errorList.map(complementError(rule, source));
        if (options.first && filledErrors.length) {
          errorFields[rule.field] = 1;
          return doIt(filledErrors);
        }
        if (!deep) {
          doIt(filledErrors);
        } else {
          // if rule is required but the target object
          // does not exist fail at the rule level and don't
          // go deeper
          if (rule.required && !data.value) {
            if (rule.message !== undefined) {
              filledErrors = [].concat(rule.message).map(complementError(rule, source));
            } else if (options.error) {
              filledErrors = [options.error(rule, format(options.messages.required, rule.field))];
            }
            return doIt(filledErrors);
          }
          var fieldsSchema = {};
          if (rule.defaultField) {
            Object.keys(data.value).map(function (key) {
              fieldsSchema[key] = rule.defaultField;
            });
          }
          fieldsSchema = _extends({}, fieldsSchema, data.rule.fields);
          var paredFieldsSchema = {};
          Object.keys(fieldsSchema).forEach(function (field) {
            var fieldSchema = fieldsSchema[field];
            var fieldSchemaList = Array.isArray(fieldSchema) ? fieldSchema : [fieldSchema];
            paredFieldsSchema[field] = fieldSchemaList.map(addFullField.bind(null, field));
          });
          var schema = new Schema(paredFieldsSchema);
          schema.messages(options.messages);
          if (data.rule.options) {
            data.rule.options.messages = options.messages;
            data.rule.options.error = options.error;
          }
          schema.validate(data.value, data.rule.options || options, function (errs) {
            var finalErrors = [];
            if (filledErrors && filledErrors.length) {
              finalErrors.push.apply(finalErrors, filledErrors);
            }
            if (errs && errs.length) {
              finalErrors.push.apply(finalErrors, errs);
            }
            doIt(finalErrors.length ? finalErrors : null);
          });
        }
      }
      var res;
      if (rule.asyncValidator) {
        res = rule.asyncValidator(rule, data.value, cb, data.source, options);
      } else if (rule.validator) {
        try {
          res = rule.validator(rule, data.value, cb, data.source, options);
        } catch (error) {
          console.error == null ? void 0 : console.error(error); // rethrow to report error

          if (!options.suppressValidatorError) {
            setTimeout(function () {
              throw error;
            }, 0);
          }
          cb(error.message);
        }
        if (res === true) {
          cb();
        } else if (res === false) {
          cb(typeof rule.message === 'function' ? rule.message(rule.fullField || rule.field) : rule.message || (rule.fullField || rule.field) + " fails");
        } else if (res instanceof Array) {
          cb(res);
        } else if (res instanceof Error) {
          cb(res.message);
        }
      }
      if (res && res.then) {
        res.then(function () {
          return cb();
        }, function (e) {
          return cb(e);
        });
      }
    }, function (results) {
      complete(results);
    }, source);
  };
  _proto.getType = function getType(rule) {
    if (rule.type === undefined && rule.pattern instanceof RegExp) {
      rule.type = 'pattern';
    }
    if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
      throw new Error(format('Unknown rule type %s', rule.type));
    }
    return rule.type || 'string';
  };
  _proto.getValidationMethod = function getValidationMethod(rule) {
    if (typeof rule.validator === 'function') {
      return rule.validator;
    }
    var keys = Object.keys(rule);
    var messageIndex = keys.indexOf('message');
    if (messageIndex !== -1) {
      keys.splice(messageIndex, 1);
    }
    if (keys.length === 1 && keys[0] === 'required') {
      return validators.required;
    }
    return validators[this.getType(rule)] || undefined;
  };
  return Schema;
}();
Schema.register = function register(type, validator) {
  if (typeof validator !== 'function') {
    throw new Error('Cannot register a validator by type, validator is not a function');
  }
  validators[type] = validator;
};
Schema.warning = dist_web_warning;
Schema.messages = messages;
Schema.validators = validators;

;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/utils/messages.js
var typeTemplate = "'${name}' is not a valid ${type}";
var defaultValidateMessages = {
  default: "Validation error on field '${name}'",
  required: "'${name}' is required",
  enum: "'${name}' must be one of [${enum}]",
  whitespace: "'${name}' cannot be empty",
  date: {
    format: "'${name}' is invalid for format date",
    parse: "'${name}' could not be parsed as date",
    invalid: "'${name}' is invalid date"
  },
  types: {
    string: typeTemplate,
    method: typeTemplate,
    array: typeTemplate,
    object: typeTemplate,
    number: typeTemplate,
    date: typeTemplate,
    boolean: typeTemplate,
    integer: typeTemplate,
    float: typeTemplate,
    regexp: typeTemplate,
    email: typeTemplate,
    url: typeTemplate,
    hex: typeTemplate
  },
  string: {
    len: "'${name}' must be exactly ${len} characters",
    min: "'${name}' must be at least ${min} characters",
    max: "'${name}' cannot be longer than ${max} characters",
    range: "'${name}' must be between ${min} and ${max} characters"
  },
  number: {
    len: "'${name}' must equal ${len}",
    min: "'${name}' cannot be less than ${min}",
    max: "'${name}' cannot be greater than ${max}",
    range: "'${name}' must be between ${min} and ${max}"
  },
  array: {
    len: "'${name}' must be exactly ${len} in length",
    min: "'${name}' cannot be less than ${min} in length",
    max: "'${name}' cannot be greater than ${max} in length",
    range: "'${name}' must be between ${min} and ${max} in length"
  },
  pattern: {
    mismatch: "'${name}' does not match pattern ${pattern}"
  }
};
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(2782);
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/utils/get.js
function get_get(entity, path) {
  var current = entity;
  for (var i = 0; i < path.length; i += 1) {
    if (current === null || current === undefined) {
      return undefined;
    }
    current = current[path[i]];
  }
  return current;
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/toArray.js
var esm_toArray = __webpack_require__(6408);
;// CONCATENATED MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/utils/set.js





function internalSet(entity, paths, value, removeIfUndefined) {
  if (!paths.length) {
    return value;
  }
  var _paths = (0,esm_toArray/* default */.Z)(paths),
    path = _paths[0],
    restPath = _paths.slice(1);
  var clone;
  if (!entity && typeof path === 'number') {
    clone = [];
  } else if (Array.isArray(entity)) {
    clone = (0,toConsumableArray/* default */.Z)(entity);
  } else {
    clone = (0,objectSpread2/* default */.Z)({}, entity);
  }

  // Delete prop if `removeIfUndefined` and value is undefined
  if (removeIfUndefined && value === undefined && restPath.length === 1) {
    delete clone[path][restPath[0]];
  } else {
    clone[path] = internalSet(clone[path], restPath, value, removeIfUndefined);
  }
  return clone;
}
function set(entity, paths, value) {
  var removeIfUndefined = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  // Do nothing if `removeIfUndefined` and parent object not exist
  if (paths.length && removeIfUndefined && value === undefined && !get_get(entity, paths.slice(0, -1))) {
    return entity;
  }
  return internalSet(entity, paths, value, removeIfUndefined);
}
function isObject(obj) {
  return _typeof(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
}
function createEmpty(source) {
  return Array.isArray(source) ? [] : {};
}

/**
 * Merge objects which will create
 */
function merge() {
  for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {
    sources[_key] = arguments[_key];
  }
  var clone = createEmpty(sources[0]);
  sources.forEach(function (src) {
    var loopSet = new Set();
    function internalMerge(path) {
      var value = get(src, path);
      var isArr = Array.isArray(value);
      if (isArr || isObject(value)) {
        // Only add not loop obj
        if (!loopSet.has(value)) {
          loopSet.add(value);
          var originValue = get(clone, path);
          if (isArr) {
            // Array will always be override
            clone = set(clone, path, []);
          } else if (!originValue || _typeof(originValue) !== 'object') {
            // Init container if not exist
            clone = set(clone, path, createEmpty(value));
          }
          Object.keys(value).forEach(function (key) {
            internalMerge([].concat(_toConsumableArray(path), [key]));
          });
        }
      } else {
        clone = set(clone, path, value);
      }
    }
    internalMerge([]);
  });
  return clone;
}
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/utils/cloneDeep.js

function cloneDeep(val) {
  if (Array.isArray(val)) {
    return cloneArrayDeep(val);
  } else if ((0,esm_typeof/* default */.Z)(val) === 'object' && val !== null) {
    return cloneObjectDeep(val);
  }
  return val;
}
function cloneObjectDeep(val) {
  if (Object.getPrototypeOf(val) === Object.prototype) {
    var res = {};
    for (var key in val) {
      res[key] = cloneDeep(val[key]);
    }
    return res;
  }
  return val;
}
function cloneArrayDeep(val) {
  return val.map(function (item) {
    return cloneDeep(item);
  });
}
/* harmony default export */ var utils_cloneDeep = (cloneDeep);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/utils/valueUtil.js







/**
 * Convert name to internal supported format.
 * This function should keep since we still thinking if need support like `a.b.c` format.
 * 'a' => ['a']
 * 123 => [123]
 * ['a', 123] => ['a', 123]
 */
function getNamePath(path) {
  return typeUtil_toArray(path);
}
function valueUtil_getValue(store, namePath) {
  var value = get_get(store, namePath);
  return value;
}
function setValue(store, namePath, value) {
  var removeIfUndefined = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  var newStore = set(store, namePath, value, removeIfUndefined);
  return newStore;
}
function cloneByNamePathList(store, namePathList) {
  var newStore = {};
  namePathList.forEach(function (namePath) {
    var value = valueUtil_getValue(store, namePath);
    newStore = setValue(newStore, namePath, value);
  });
  return newStore;
}
function containsNamePath(namePathList, namePath) {
  return namePathList && namePathList.some(function (path) {
    return matchNamePath(path, namePath);
  });
}
function valueUtil_isObject(obj) {
  return (0,esm_typeof/* default */.Z)(obj) === 'object' && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
}
/**
 * Copy values into store and return a new values object
 * ({ a: 1, b: { c: 2 } }, { a: 4, b: { d: 5 } }) => { a: 4, b: { c: 2, d: 5 } }
 */
function internalSetValues(store, values) {
  var newStore = Array.isArray(store) ? (0,toConsumableArray/* default */.Z)(store) : (0,objectSpread2/* default */.Z)({}, store);
  if (!values) {
    return newStore;
  }
  Object.keys(values).forEach(function (key) {
    var prevValue = newStore[key];
    var value = values[key];
    // If both are object (but target is not array), we use recursion to set deep value
    var recursive = valueUtil_isObject(prevValue) && valueUtil_isObject(value);
    newStore[key] = recursive ? internalSetValues(prevValue, value || {}) : utils_cloneDeep(value); // Clone deep for arrays
  });

  return newStore;
}
function setValues(store) {
  for (var _len = arguments.length, restValues = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    restValues[_key - 1] = arguments[_key];
  }
  return restValues.reduce(function (current, newStore) {
    return internalSetValues(current, newStore);
  }, store);
}
function matchNamePath(namePath, changedNamePath) {
  if (!namePath || !changedNamePath || namePath.length !== changedNamePath.length) {
    return false;
  }
  return namePath.every(function (nameUnit, i) {
    return changedNamePath[i] === nameUnit;
  });
}
function isSimilar(source, target) {
  if (source === target) {
    return true;
  }
  if (!source && target || source && !target) {
    return false;
  }
  if (!source || !target || (0,esm_typeof/* default */.Z)(source) !== 'object' || (0,esm_typeof/* default */.Z)(target) !== 'object') {
    return false;
  }
  var sourceKeys = Object.keys(source);
  var targetKeys = Object.keys(target);
  var keys = new Set([].concat(sourceKeys, targetKeys));
  return (0,toConsumableArray/* default */.Z)(keys).every(function (key) {
    var sourceValue = source[key];
    var targetValue = target[key];
    if (typeof sourceValue === 'function' && typeof targetValue === 'function') {
      return true;
    }
    return sourceValue === targetValue;
  });
}
function defaultGetValueFromEvent(valuePropName) {
  var event = arguments.length <= 1 ? undefined : arguments[1];
  if (event && event.target && (0,esm_typeof/* default */.Z)(event.target) === 'object' && valuePropName in event.target) {
    return event.target[valuePropName];
  }
  return event;
}
/**
 * Moves an array item from one position in an array to another.
 *
 * Note: This is a pure function so a new array will be returned, instead
 * of altering the array argument.
 *
 * @param array         Array in which to move an item.         (required)
 * @param moveIndex     The index of the item to move.          (required)
 * @param toIndex       The index to move item at moveIndex to. (required)
 */
function valueUtil_move(array, moveIndex, toIndex) {
  var length = array.length;
  if (moveIndex < 0 || moveIndex >= length || toIndex < 0 || toIndex >= length) {
    return array;
  }
  var item = array[moveIndex];
  var diff = moveIndex - toIndex;
  if (diff > 0) {
    // move left
    return [].concat((0,toConsumableArray/* default */.Z)(array.slice(0, toIndex)), [item], (0,toConsumableArray/* default */.Z)(array.slice(toIndex, moveIndex)), (0,toConsumableArray/* default */.Z)(array.slice(moveIndex + 1, length)));
  }
  if (diff < 0) {
    // move right
    return [].concat((0,toConsumableArray/* default */.Z)(array.slice(0, moveIndex)), (0,toConsumableArray/* default */.Z)(array.slice(moveIndex + 1, toIndex + 1)), [item], (0,toConsumableArray/* default */.Z)(array.slice(toIndex + 1, length)));
  }
  return array;
}
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/utils/validateUtil.js










// Remove incorrect original ts define
var AsyncValidator = Schema;
/**
 * Replace with template.
 *   `I'm ${name}` + { name: 'bamboo' } = I'm bamboo
 */
function replaceMessage(template, kv) {
  return template.replace(/\$\{\w+\}/g, function (str) {
    var key = str.slice(2, -1);
    return kv[key];
  });
}
var CODE_LOGIC_ERROR = 'CODE_LOGIC_ERROR';
function validateRule(_x, _x2, _x3, _x4, _x5) {
  return _validateRule.apply(this, arguments);
}
/**
 * We use `async-validator` to validate the value.
 * But only check one value in a time to avoid namePath validate issue.
 */
function _validateRule() {
  _validateRule = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(name, value, rule, options, messageVariables) {
    var cloneRule, originValidator, subRuleField, validator, messages, result, subResults, kv, fillVariableResult;
    return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
      while (1) switch (_context2.prev = _context2.next) {
        case 0:
          cloneRule = (0,objectSpread2/* default */.Z)({}, rule); // Bug of `async-validator`
          // https://github.com/react-component/field-form/issues/316
          // https://github.com/react-component/field-form/issues/313
          delete cloneRule.ruleIndex;
          if (cloneRule.validator) {
            originValidator = cloneRule.validator;
            cloneRule.validator = function () {
              try {
                return originValidator.apply(void 0, arguments);
              } catch (error) {
                console.error(error);
                return Promise.reject(CODE_LOGIC_ERROR);
              }
            };
          }
          // We should special handle array validate
          subRuleField = null;
          if (cloneRule && cloneRule.type === 'array' && cloneRule.defaultField) {
            subRuleField = cloneRule.defaultField;
            delete cloneRule.defaultField;
          }
          validator = new AsyncValidator((0,defineProperty/* default */.Z)({}, name, [cloneRule]));
          messages = setValues({}, defaultValidateMessages, options.validateMessages);
          validator.messages(messages);
          result = [];
          _context2.prev = 9;
          _context2.next = 12;
          return Promise.resolve(validator.validate((0,defineProperty/* default */.Z)({}, name, value), (0,objectSpread2/* default */.Z)({}, options)));
        case 12:
          _context2.next = 17;
          break;
        case 14:
          _context2.prev = 14;
          _context2.t0 = _context2["catch"](9);
          if (_context2.t0.errors) {
            result = _context2.t0.errors.map(function (_ref4, index) {
              var message = _ref4.message;
              var mergedMessage = message === CODE_LOGIC_ERROR ? messages.default : message;
              return /*#__PURE__*/_react_18_2_0_react.isValidElement(mergedMessage) ? /*#__PURE__*/
              // Wrap ReactNode with `key`
              _react_18_2_0_react.cloneElement(mergedMessage, {
                key: "error_".concat(index)
              }) : mergedMessage;
            });
          }
        case 17:
          if (!(!result.length && subRuleField)) {
            _context2.next = 22;
            break;
          }
          _context2.next = 20;
          return Promise.all(value.map(function (subValue, i) {
            return validateRule("".concat(name, ".").concat(i), subValue, subRuleField, options, messageVariables);
          }));
        case 20:
          subResults = _context2.sent;
          return _context2.abrupt("return", subResults.reduce(function (prev, errors) {
            return [].concat((0,toConsumableArray/* default */.Z)(prev), (0,toConsumableArray/* default */.Z)(errors));
          }, []));
        case 22:
          // Replace message with variables
          kv = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, rule), {}, {
            name: name,
            enum: (rule.enum || []).join(', ')
          }, messageVariables);
          fillVariableResult = result.map(function (error) {
            if (typeof error === 'string') {
              return replaceMessage(error, kv);
            }
            return error;
          });
          return _context2.abrupt("return", fillVariableResult);
        case 25:
        case "end":
          return _context2.stop();
      }
    }, _callee2, null, [[9, 14]]);
  }));
  return _validateRule.apply(this, arguments);
}
function validateRules(namePath, value, rules, options, validateFirst, messageVariables) {
  var name = namePath.join('.');
  // Fill rule with context
  var filledRules = rules.map(function (currentRule, ruleIndex) {
    var originValidatorFunc = currentRule.validator;
    var cloneRule = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, currentRule), {}, {
      ruleIndex: ruleIndex
    });
    // Replace validator if needed
    if (originValidatorFunc) {
      cloneRule.validator = function (rule, val, callback) {
        var hasPromise = false;
        // Wrap callback only accept when promise not provided
        var wrappedCallback = function wrappedCallback() {
          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }
          // Wait a tick to make sure return type is a promise
          Promise.resolve().then(function () {
            (0,warning/* default */.ZP)(!hasPromise, 'Your validator function has already return a promise. `callback` will be ignored.');
            if (!hasPromise) {
              callback.apply(void 0, args);
            }
          });
        };
        // Get promise
        var promise = originValidatorFunc(rule, val, wrappedCallback);
        hasPromise = promise && typeof promise.then === 'function' && typeof promise.catch === 'function';
        /**
         * 1. Use promise as the first priority.
         * 2. If promise not exist, use callback with warning instead
         */
        (0,warning/* default */.ZP)(hasPromise, '`callback` is deprecated. Please return a promise instead.');
        if (hasPromise) {
          promise.then(function () {
            callback();
          }).catch(function (err) {
            callback(err || ' ');
          });
        }
      };
    }
    return cloneRule;
  }).sort(function (_ref, _ref2) {
    var w1 = _ref.warningOnly,
      i1 = _ref.ruleIndex;
    var w2 = _ref2.warningOnly,
      i2 = _ref2.ruleIndex;
    if (!!w1 === !!w2) {
      // Let keep origin order
      return i1 - i2;
    }
    if (w1) {
      return 1;
    }
    return -1;
  });
  // Do validate rules
  var summaryPromise;
  if (validateFirst === true) {
    // >>>>> Validate by serialization
    summaryPromise = new Promise( /*#__PURE__*/function () {
      var _ref3 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(resolve, reject) {
        var i, rule, errors;
        return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              i = 0;
            case 1:
              if (!(i < filledRules.length)) {
                _context.next = 12;
                break;
              }
              rule = filledRules[i];
              _context.next = 5;
              return validateRule(name, value, rule, options, messageVariables);
            case 5:
              errors = _context.sent;
              if (!errors.length) {
                _context.next = 9;
                break;
              }
              reject([{
                errors: errors,
                rule: rule
              }]);
              return _context.abrupt("return");
            case 9:
              i += 1;
              _context.next = 1;
              break;
            case 12:
              /* eslint-enable */
              resolve([]);
            case 13:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }));
      return function (_x6, _x7) {
        return _ref3.apply(this, arguments);
      };
    }());
  } else {
    // >>>>> Validate by parallel
    var rulePromises = filledRules.map(function (rule) {
      return validateRule(name, value, rule, options, messageVariables).then(function (errors) {
        return {
          errors: errors,
          rule: rule
        };
      });
    });
    summaryPromise = (validateFirst ? finishOnFirstFailed(rulePromises) : finishOnAllFailed(rulePromises)).then(function (errors) {
      // Always change to rejection for Field to catch
      return Promise.reject(errors);
    });
  }
  // Internal catch error to avoid console error log.
  summaryPromise.catch(function (e) {
    return e;
  });
  return summaryPromise;
}
function finishOnAllFailed(_x8) {
  return _finishOnAllFailed.apply(this, arguments);
}
function _finishOnAllFailed() {
  _finishOnAllFailed = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee3(rulePromises) {
    return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee3$(_context3) {
      while (1) switch (_context3.prev = _context3.next) {
        case 0:
          return _context3.abrupt("return", Promise.all(rulePromises).then(function (errorsList) {
            var _ref5;
            var errors = (_ref5 = []).concat.apply(_ref5, (0,toConsumableArray/* default */.Z)(errorsList));
            return errors;
          }));
        case 1:
        case "end":
          return _context3.stop();
      }
    }, _callee3);
  }));
  return _finishOnAllFailed.apply(this, arguments);
}
function finishOnFirstFailed(_x9) {
  return _finishOnFirstFailed.apply(this, arguments);
}
function _finishOnFirstFailed() {
  _finishOnFirstFailed = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(rulePromises) {
    var count;
    return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context4) {
      while (1) switch (_context4.prev = _context4.next) {
        case 0:
          count = 0;
          return _context4.abrupt("return", new Promise(function (resolve) {
            rulePromises.forEach(function (promise) {
              promise.then(function (ruleError) {
                if (ruleError.errors.length) {
                  resolve([ruleError]);
                }
                count += 1;
                if (count === rulePromises.length) {
                  resolve([]);
                }
              });
            });
          }));
        case 2:
        case "end":
          return _context4.stop();
      }
    }, _callee4);
  }));
  return _finishOnFirstFailed.apply(this, arguments);
}
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/Field.js










var _excluded = ["name"];







var EMPTY_ERRORS = [];
function requireUpdate(shouldUpdate, prev, next, prevValue, nextValue, info) {
  if (typeof shouldUpdate === 'function') {
    return shouldUpdate(prev, next, 'source' in info ? {
      source: info.source
    } : {});
  }
  return prevValue !== nextValue;
}
// We use Class instead of Hooks here since it will cost much code by using Hooks.
var Field = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(Field, _React$Component);
  var _super = (0,createSuper/* default */.Z)(Field);
  /**
   * Follow state should not management in State since it will async update by React.
   * This makes first render of form can not get correct state value.
   */

  /**
   * Mark when touched & validated. Currently only used for `dependencies`.
   * Note that we do not think field with `initialValue` is dirty
   * but this will be by `isFieldDirty` func.
   */

  // ============================== Subscriptions ==============================
  function Field(props) {
    var _this;
    (0,classCallCheck/* default */.Z)(this, Field);
    _this = _super.call(this, props);
    // Register on init
    _this.state = {
      resetCount: 0
    };
    _this.cancelRegisterFunc = null;
    _this.mounted = false;
    _this.touched = false;
    _this.dirty = false;
    _this.validatePromise = null;
    _this.prevValidating = void 0;
    _this.errors = EMPTY_ERRORS;
    _this.warnings = EMPTY_ERRORS;
    _this.cancelRegister = function () {
      var _this$props = _this.props,
        preserve = _this$props.preserve,
        isListField = _this$props.isListField,
        name = _this$props.name;
      if (_this.cancelRegisterFunc) {
        _this.cancelRegisterFunc(isListField, preserve, getNamePath(name));
      }
      _this.cancelRegisterFunc = null;
    };
    _this.getNamePath = function () {
      var _this$props2 = _this.props,
        name = _this$props2.name,
        fieldContext = _this$props2.fieldContext;
      var _fieldContext$prefixN = fieldContext.prefixName,
        prefixName = _fieldContext$prefixN === void 0 ? [] : _fieldContext$prefixN;
      return name !== undefined ? [].concat((0,toConsumableArray/* default */.Z)(prefixName), (0,toConsumableArray/* default */.Z)(name)) : [];
    };
    _this.getRules = function () {
      var _this$props3 = _this.props,
        _this$props3$rules = _this$props3.rules,
        rules = _this$props3$rules === void 0 ? [] : _this$props3$rules,
        fieldContext = _this$props3.fieldContext;
      return rules.map(function (rule) {
        if (typeof rule === 'function') {
          return rule(fieldContext);
        }
        return rule;
      });
    };
    _this.refresh = function () {
      if (!_this.mounted) return;
      /**
       * Clean up current node.
       */
      _this.setState(function (_ref) {
        var resetCount = _ref.resetCount;
        return {
          resetCount: resetCount + 1
        };
      });
    };
    _this.triggerMetaEvent = function (destroy) {
      var onMetaChange = _this.props.onMetaChange;
      onMetaChange === null || onMetaChange === void 0 ? void 0 : onMetaChange((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, _this.getMeta()), {}, {
        destroy: destroy
      }));
    };
    _this.onStoreChange = function (prevStore, namePathList, info) {
      var _this$props4 = _this.props,
        shouldUpdate = _this$props4.shouldUpdate,
        _this$props4$dependen = _this$props4.dependencies,
        dependencies = _this$props4$dependen === void 0 ? [] : _this$props4$dependen,
        onReset = _this$props4.onReset;
      var store = info.store;
      var namePath = _this.getNamePath();
      var prevValue = _this.getValue(prevStore);
      var curValue = _this.getValue(store);
      var namePathMatch = namePathList && containsNamePath(namePathList, namePath);
      // `setFieldsValue` is a quick access to update related status
      if (info.type === 'valueUpdate' && info.source === 'external' && prevValue !== curValue) {
        _this.touched = true;
        _this.dirty = true;
        _this.validatePromise = null;
        _this.errors = EMPTY_ERRORS;
        _this.warnings = EMPTY_ERRORS;
        _this.triggerMetaEvent();
      }
      switch (info.type) {
        case 'reset':
          if (!namePathList || namePathMatch) {
            // Clean up state
            _this.touched = false;
            _this.dirty = false;
            _this.validatePromise = null;
            _this.errors = EMPTY_ERRORS;
            _this.warnings = EMPTY_ERRORS;
            _this.triggerMetaEvent();
            onReset === null || onReset === void 0 ? void 0 : onReset();
            _this.refresh();
            return;
          }
          break;
        /**
         * In case field with `preserve = false` nest deps like:
         * - A = 1 => show B
         * - B = 1 => show C
         * - Reset A, need clean B, C
         */
        case 'remove':
          {
            if (shouldUpdate) {
              _this.reRender();
              return;
            }
            break;
          }
        case 'setField':
          {
            if (namePathMatch) {
              var data = info.data;
              if ('touched' in data) {
                _this.touched = data.touched;
              }
              if ('validating' in data && !('originRCField' in data)) {
                _this.validatePromise = data.validating ? Promise.resolve([]) : null;
              }
              if ('errors' in data) {
                _this.errors = data.errors || EMPTY_ERRORS;
              }
              if ('warnings' in data) {
                _this.warnings = data.warnings || EMPTY_ERRORS;
              }
              _this.dirty = true;
              _this.triggerMetaEvent();
              _this.reRender();
              return;
            }
            // Handle update by `setField` with `shouldUpdate`
            if (shouldUpdate && !namePath.length && requireUpdate(shouldUpdate, prevStore, store, prevValue, curValue, info)) {
              _this.reRender();
              return;
            }
            break;
          }
        case 'dependenciesUpdate':
          {
            /**
             * Trigger when marked `dependencies` updated. Related fields will all update
             */
            var dependencyList = dependencies.map(getNamePath);
            // No need for `namePathMath` check and `shouldUpdate` check, since `valueUpdate` will be
            // emitted earlier and they will work there
            // If set it may cause unnecessary twice rerendering
            if (dependencyList.some(function (dependency) {
              return containsNamePath(info.relatedFields, dependency);
            })) {
              _this.reRender();
              return;
            }
            break;
          }
        default:
          // 1. If `namePath` exists in `namePathList`, means it's related value and should update
          //      For example <List name="list"><Field name={['list', 0]}></List>
          //      If `namePathList` is [['list']] (List value update), Field should be updated
          //      If `namePathList` is [['list', 0]] (Field value update), List shouldn't be updated
          // 2.
          //   2.1 If `dependencies` is set, `name` is not set and `shouldUpdate` is not set,
          //       don't use `shouldUpdate`. `dependencies` is view as a shortcut if `shouldUpdate`
          //       is not provided
          //   2.2 If `shouldUpdate` provided, use customize logic to update the field
          //       else to check if value changed
          if (namePathMatch || (!dependencies.length || namePath.length || shouldUpdate) && requireUpdate(shouldUpdate, prevStore, store, prevValue, curValue, info)) {
            _this.reRender();
            return;
          }
          break;
      }
      if (shouldUpdate === true) {
        _this.reRender();
      }
    };
    _this.validateRules = function (options) {
      // We should fixed namePath & value to avoid developer change then by form function
      var namePath = _this.getNamePath();
      var currentValue = _this.getValue();
      // Force change to async to avoid rule OOD under renderProps field
      var rootPromise = Promise.resolve().then(function () {
        if (!_this.mounted) {
          return [];
        }
        var _this$props5 = _this.props,
          _this$props5$validate = _this$props5.validateFirst,
          validateFirst = _this$props5$validate === void 0 ? false : _this$props5$validate,
          messageVariables = _this$props5.messageVariables;
        var _ref2 = options || {},
          triggerName = _ref2.triggerName;
        var filteredRules = _this.getRules();
        if (triggerName) {
          filteredRules = filteredRules.filter(function (rule) {
            return rule;
          }).filter(function (rule) {
            var validateTrigger = rule.validateTrigger;
            if (!validateTrigger) {
              return true;
            }
            var triggerList = typeUtil_toArray(validateTrigger);
            return triggerList.includes(triggerName);
          });
        }
        var promise = validateRules(namePath, currentValue, filteredRules, options, validateFirst, messageVariables);
        promise.catch(function (e) {
          return e;
        }).then(function () {
          var ruleErrors = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : EMPTY_ERRORS;
          if (_this.validatePromise === rootPromise) {
            var _ruleErrors$forEach;
            _this.validatePromise = null;
            // Get errors & warnings
            var nextErrors = [];
            var nextWarnings = [];
            (_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function (_ref3) {
              var warningOnly = _ref3.rule.warningOnly,
                _ref3$errors = _ref3.errors,
                errors = _ref3$errors === void 0 ? EMPTY_ERRORS : _ref3$errors;
              if (warningOnly) {
                nextWarnings.push.apply(nextWarnings, (0,toConsumableArray/* default */.Z)(errors));
              } else {
                nextErrors.push.apply(nextErrors, (0,toConsumableArray/* default */.Z)(errors));
              }
            });
            _this.errors = nextErrors;
            _this.warnings = nextWarnings;
            _this.triggerMetaEvent();
            _this.reRender();
          }
        });
        return promise;
      });
      _this.validatePromise = rootPromise;
      _this.dirty = true;
      _this.errors = EMPTY_ERRORS;
      _this.warnings = EMPTY_ERRORS;
      _this.triggerMetaEvent();
      // Force trigger re-render since we need sync renderProps with new meta
      _this.reRender();
      return rootPromise;
    };
    _this.isFieldValidating = function () {
      return !!_this.validatePromise;
    };
    _this.isFieldTouched = function () {
      return _this.touched;
    };
    _this.isFieldDirty = function () {
      // Touched or validate or has initialValue
      if (_this.dirty || _this.props.initialValue !== undefined) {
        return true;
      }
      // Form set initialValue
      var fieldContext = _this.props.fieldContext;
      var _fieldContext$getInte = fieldContext.getInternalHooks(HOOK_MARK),
        getInitialValue = _fieldContext$getInte.getInitialValue;
      if (getInitialValue(_this.getNamePath()) !== undefined) {
        return true;
      }
      return false;
    };
    _this.getErrors = function () {
      return _this.errors;
    };
    _this.getWarnings = function () {
      return _this.warnings;
    };
    _this.isListField = function () {
      return _this.props.isListField;
    };
    _this.isList = function () {
      return _this.props.isList;
    };
    _this.isPreserve = function () {
      return _this.props.preserve;
    };
    _this.getMeta = function () {
      // Make error & validating in cache to save perf
      _this.prevValidating = _this.isFieldValidating();
      var meta = {
        touched: _this.isFieldTouched(),
        validating: _this.prevValidating,
        errors: _this.errors,
        warnings: _this.warnings,
        name: _this.getNamePath()
      };
      return meta;
    };
    _this.getOnlyChild = function (children) {
      // Support render props
      if (typeof children === 'function') {
        var meta = _this.getMeta();
        return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, _this.getOnlyChild(children(_this.getControlled(), meta, _this.props.fieldContext))), {}, {
          isFunction: true
        });
      }
      // Filed element only
      var childList = (0,toArray/* default */.Z)(children);
      if (childList.length !== 1 || ! /*#__PURE__*/_react_18_2_0_react.isValidElement(childList[0])) {
        return {
          child: childList,
          isFunction: false
        };
      }
      return {
        child: childList[0],
        isFunction: false
      };
    };
    _this.getValue = function (store) {
      var getFieldsValue = _this.props.fieldContext.getFieldsValue;
      var namePath = _this.getNamePath();
      return valueUtil_getValue(store || getFieldsValue(true), namePath);
    };
    _this.getControlled = function () {
      var childProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      var _this$props6 = _this.props,
        trigger = _this$props6.trigger,
        validateTrigger = _this$props6.validateTrigger,
        getValueFromEvent = _this$props6.getValueFromEvent,
        normalize = _this$props6.normalize,
        valuePropName = _this$props6.valuePropName,
        getValueProps = _this$props6.getValueProps,
        fieldContext = _this$props6.fieldContext;
      var mergedValidateTrigger = validateTrigger !== undefined ? validateTrigger : fieldContext.validateTrigger;
      var namePath = _this.getNamePath();
      var getInternalHooks = fieldContext.getInternalHooks,
        getFieldsValue = fieldContext.getFieldsValue;
      var _getInternalHooks = getInternalHooks(HOOK_MARK),
        dispatch = _getInternalHooks.dispatch;
      var value = _this.getValue();
      var mergedGetValueProps = getValueProps || function (val) {
        return (0,defineProperty/* default */.Z)({}, valuePropName, val);
      };
      // eslint-disable-next-line @typescript-eslint/no-explicit-any
      var originTriggerFunc = childProps[trigger];
      var control = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, childProps), mergedGetValueProps(value));
      // Add trigger
      control[trigger] = function () {
        // Mark as touched
        _this.touched = true;
        _this.dirty = true;
        _this.triggerMetaEvent();
        var newValue;
        for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }
        if (getValueFromEvent) {
          newValue = getValueFromEvent.apply(void 0, args);
        } else {
          newValue = defaultGetValueFromEvent.apply(void 0, [valuePropName].concat(args));
        }
        if (normalize) {
          newValue = normalize(newValue, value, getFieldsValue(true));
        }
        dispatch({
          type: 'updateValue',
          namePath: namePath,
          value: newValue
        });
        if (originTriggerFunc) {
          originTriggerFunc.apply(void 0, args);
        }
      };
      // Add validateTrigger
      var validateTriggerList = typeUtil_toArray(mergedValidateTrigger || []);
      validateTriggerList.forEach(function (triggerName) {
        // Wrap additional function of component, so that we can get latest value from store
        var originTrigger = control[triggerName];
        control[triggerName] = function () {
          if (originTrigger) {
            originTrigger.apply(void 0, arguments);
          }
          // Always use latest rules
          var rules = _this.props.rules;
          if (rules && rules.length) {
            // We dispatch validate to root,
            // since it will update related data with other field with same name
            dispatch({
              type: 'validateField',
              namePath: namePath,
              triggerName: triggerName
            });
          }
        };
      });
      return control;
    };
    if (props.fieldContext) {
      var getInternalHooks = props.fieldContext.getInternalHooks;
      var _getInternalHooks2 = getInternalHooks(HOOK_MARK),
        initEntityValue = _getInternalHooks2.initEntityValue;
      initEntityValue((0,assertThisInitialized/* default */.Z)(_this));
    }
    return _this;
  }
  (0,createClass/* default */.Z)(Field, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      var _this$props7 = this.props,
        shouldUpdate = _this$props7.shouldUpdate,
        fieldContext = _this$props7.fieldContext;
      this.mounted = true;
      // Register on init
      if (fieldContext) {
        var getInternalHooks = fieldContext.getInternalHooks;
        var _getInternalHooks3 = getInternalHooks(HOOK_MARK),
          registerField = _getInternalHooks3.registerField;
        this.cancelRegisterFunc = registerField(this);
      }
      // One more render for component in case fields not ready
      if (shouldUpdate === true) {
        this.reRender();
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.cancelRegister();
      this.triggerMetaEvent(true);
      this.mounted = false;
    }
  }, {
    key: "reRender",
    value: function reRender() {
      if (!this.mounted) return;
      this.forceUpdate();
    }
  }, {
    key: "render",
    value: function render() {
      var resetCount = this.state.resetCount;
      var children = this.props.children;
      var _this$getOnlyChild = this.getOnlyChild(children),
        child = _this$getOnlyChild.child,
        isFunction = _this$getOnlyChild.isFunction;
      // Not need to `cloneElement` since user can handle this in render function self
      var returnChildNode;
      if (isFunction) {
        returnChildNode = child;
      } else if ( /*#__PURE__*/_react_18_2_0_react.isValidElement(child)) {
        returnChildNode = /*#__PURE__*/_react_18_2_0_react.cloneElement(child, this.getControlled(child.props));
      } else {
        (0,warning/* default */.ZP)(!child, '`children` of Field is not validate ReactElement.');
        returnChildNode = child;
      }
      return /*#__PURE__*/_react_18_2_0_react.createElement(_react_18_2_0_react.Fragment, {
        key: resetCount
      }, returnChildNode);
    }
  }]);
  return Field;
}(_react_18_2_0_react.Component);
Field.contextType = FieldContext;
Field.defaultProps = {
  trigger: 'onChange',
  valuePropName: 'value'
};
function WrapperField(_ref5) {
  var name = _ref5.name,
    restProps = (0,objectWithoutProperties/* default */.Z)(_ref5, _excluded);
  var fieldContext = _react_18_2_0_react.useContext(FieldContext);
  var namePath = name !== undefined ? getNamePath(name) : undefined;
  var key = 'keep';
  if (!restProps.isListField) {
    key = "_".concat((namePath || []).join('_'));
  }
  // Warning if it's a directly list field.
  // We can still support multiple level field preserve.
  if (false) {}
  return /*#__PURE__*/_react_18_2_0_react.createElement(Field, (0,esm_extends/* default */.Z)({
    key: key,
    name: namePath
  }, restProps, {
    fieldContext: fieldContext
  }));
}
/* harmony default export */ var es_Field = (WrapperField);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/ListContext.js

var ListContext = /*#__PURE__*/_react_18_2_0_react.createContext(null);
/* harmony default export */ var es_ListContext = (ListContext);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/List.js








var List = function List(_ref) {
  var name = _ref.name,
    initialValue = _ref.initialValue,
    children = _ref.children,
    rules = _ref.rules,
    validateTrigger = _ref.validateTrigger;
  var context = _react_18_2_0_react.useContext(FieldContext);
  var keyRef = _react_18_2_0_react.useRef({
    keys: [],
    id: 0
  });
  var keyManager = keyRef.current;
  var prefixName = _react_18_2_0_react.useMemo(function () {
    var parentPrefixName = getNamePath(context.prefixName) || [];
    return [].concat((0,toConsumableArray/* default */.Z)(parentPrefixName), (0,toConsumableArray/* default */.Z)(getNamePath(name)));
  }, [context.prefixName, name]);
  var fieldContext = _react_18_2_0_react.useMemo(function () {
    return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, context), {}, {
      prefixName: prefixName
    });
  }, [context, prefixName]);
  // List context
  var listContext = _react_18_2_0_react.useMemo(function () {
    return {
      getKey: function getKey(namePath) {
        var len = prefixName.length;
        var pathName = namePath[len];
        return [keyManager.keys[pathName], namePath.slice(len + 1)];
      }
    };
  }, [prefixName]);
  // User should not pass `children` as other type.
  if (typeof children !== 'function') {
    (0,warning/* default */.ZP)(false, 'Form.List only accepts function as children.');
    return null;
  }
  var shouldUpdate = function shouldUpdate(prevValue, nextValue, _ref2) {
    var source = _ref2.source;
    if (source === 'internal') {
      return false;
    }
    return prevValue !== nextValue;
  };
  return /*#__PURE__*/_react_18_2_0_react.createElement(es_ListContext.Provider, {
    value: listContext
  }, /*#__PURE__*/_react_18_2_0_react.createElement(FieldContext.Provider, {
    value: fieldContext
  }, /*#__PURE__*/_react_18_2_0_react.createElement(es_Field, {
    name: [],
    shouldUpdate: shouldUpdate,
    rules: rules,
    validateTrigger: validateTrigger,
    initialValue: initialValue,
    isList: true
  }, function (_ref3, meta) {
    var _ref3$value = _ref3.value,
      value = _ref3$value === void 0 ? [] : _ref3$value,
      onChange = _ref3.onChange;
    var getFieldValue = context.getFieldValue;
    var getNewValue = function getNewValue() {
      var values = getFieldValue(prefixName || []);
      return values || [];
    };
    /**
     * Always get latest value in case user update fields by `form` api.
     */
    var operations = {
      add: function add(defaultValue, index) {
        // Mapping keys
        var newValue = getNewValue();
        if (index >= 0 && index <= newValue.length) {
          keyManager.keys = [].concat((0,toConsumableArray/* default */.Z)(keyManager.keys.slice(0, index)), [keyManager.id], (0,toConsumableArray/* default */.Z)(keyManager.keys.slice(index)));
          onChange([].concat((0,toConsumableArray/* default */.Z)(newValue.slice(0, index)), [defaultValue], (0,toConsumableArray/* default */.Z)(newValue.slice(index))));
        } else {
          if (false) {}
          keyManager.keys = [].concat((0,toConsumableArray/* default */.Z)(keyManager.keys), [keyManager.id]);
          onChange([].concat((0,toConsumableArray/* default */.Z)(newValue), [defaultValue]));
        }
        keyManager.id += 1;
      },
      remove: function remove(index) {
        var newValue = getNewValue();
        var indexSet = new Set(Array.isArray(index) ? index : [index]);
        if (indexSet.size <= 0) {
          return;
        }
        keyManager.keys = keyManager.keys.filter(function (_, keysIndex) {
          return !indexSet.has(keysIndex);
        });
        // Trigger store change
        onChange(newValue.filter(function (_, valueIndex) {
          return !indexSet.has(valueIndex);
        }));
      },
      move: function move(from, to) {
        if (from === to) {
          return;
        }
        var newValue = getNewValue();
        // Do not handle out of range
        if (from < 0 || from >= newValue.length || to < 0 || to >= newValue.length) {
          return;
        }
        keyManager.keys = valueUtil_move(keyManager.keys, from, to);
        // Trigger store change
        onChange(valueUtil_move(newValue, from, to));
      }
    };
    var listValue = value || [];
    if (!Array.isArray(listValue)) {
      listValue = [];
      if (false) {}
    }
    return children(listValue.map(function (__, index) {
      var key = keyManager.keys[index];
      if (key === undefined) {
        keyManager.keys[index] = keyManager.id;
        key = keyManager.keys[index];
        keyManager.id += 1;
      }
      return {
        name: index,
        key: key,
        isListField: true
      };
    }), operations, meta);
  })));
};
/* harmony default export */ var es_List = (List);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/utils/asyncUtil.js
function allPromiseFinish(promiseList) {
  var hasError = false;
  var count = promiseList.length;
  var results = [];
  if (!promiseList.length) {
    return Promise.resolve([]);
  }
  return new Promise(function (resolve, reject) {
    promiseList.forEach(function (promise, index) {
      promise.catch(function (e) {
        hasError = true;
        return e;
      }).then(function (result) {
        count -= 1;
        results[index] = result;
        if (count > 0) {
          return;
        }
        if (hasError) {
          reject(results);
        }
        resolve(results);
      });
    });
  });
}
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/utils/NameMap.js





var SPLIT = '__@field_split__';
/**
 * Convert name path into string to fast the fetch speed of Map.
 */
function normalize(namePath) {
  return namePath.map(function (cell) {
    return "".concat((0,esm_typeof/* default */.Z)(cell), ":").concat(cell);
  })
  // Magic split
  .join(SPLIT);
}
/**
 * NameMap like a `Map` but accepts `string[]` as key.
 */
var NameMap = /*#__PURE__*/function () {
  function NameMap() {
    (0,classCallCheck/* default */.Z)(this, NameMap);
    this.kvs = new Map();
  }
  (0,createClass/* default */.Z)(NameMap, [{
    key: "set",
    value: function set(key, value) {
      this.kvs.set(normalize(key), value);
    }
  }, {
    key: "get",
    value: function get(key) {
      return this.kvs.get(normalize(key));
    }
  }, {
    key: "update",
    value: function update(key, updater) {
      var origin = this.get(key);
      var next = updater(origin);
      if (!next) {
        this.delete(key);
      } else {
        this.set(key, next);
      }
    }
  }, {
    key: "delete",
    value: function _delete(key) {
      this.kvs.delete(normalize(key));
    }
    // Since we only use this in test, let simply realize this
  }, {
    key: "map",
    value: function map(callback) {
      return (0,toConsumableArray/* default */.Z)(this.kvs.entries()).map(function (_ref) {
        var _ref2 = (0,slicedToArray/* default */.Z)(_ref, 2),
          key = _ref2[0],
          value = _ref2[1];
        var cells = key.split(SPLIT);
        return callback({
          key: cells.map(function (cell) {
            var _cell$match = cell.match(/^([^:]*):(.*)$/),
              _cell$match2 = (0,slicedToArray/* default */.Z)(_cell$match, 3),
              type = _cell$match2[1],
              unit = _cell$match2[2];
            return type === 'number' ? Number(unit) : unit;
          }),
          value: value
        });
      });
    }
  }, {
    key: "toJSON",
    value: function toJSON() {
      var json = {};
      this.map(function (_ref3) {
        var key = _ref3.key,
          value = _ref3.value;
        json[key.join('.')] = value;
        return null;
      });
      return json;
    }
  }]);
  return NameMap;
}();
/* harmony default export */ var utils_NameMap = (NameMap);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/useForm.js






var useForm_excluded = ["name", "errors"];








var FormStore = /*#__PURE__*/(0,createClass/* default */.Z)(function FormStore(forceRootUpdate) {
  var _this = this;
  (0,classCallCheck/* default */.Z)(this, FormStore);
  this.formHooked = false;
  this.forceRootUpdate = void 0;
  this.subscribable = true;
  this.store = {};
  this.fieldEntities = [];
  this.initialValues = {};
  this.callbacks = {};
  this.validateMessages = null;
  this.preserve = null;
  this.lastValidatePromise = null;
  this.getForm = function () {
    return {
      getFieldValue: _this.getFieldValue,
      getFieldsValue: _this.getFieldsValue,
      getFieldError: _this.getFieldError,
      getFieldWarning: _this.getFieldWarning,
      getFieldsError: _this.getFieldsError,
      isFieldsTouched: _this.isFieldsTouched,
      isFieldTouched: _this.isFieldTouched,
      isFieldValidating: _this.isFieldValidating,
      isFieldsValidating: _this.isFieldsValidating,
      resetFields: _this.resetFields,
      setFields: _this.setFields,
      setFieldValue: _this.setFieldValue,
      setFieldsValue: _this.setFieldsValue,
      validateFields: _this.validateFields,
      submit: _this.submit,
      _init: true,
      getInternalHooks: _this.getInternalHooks
    };
  };
  this.getInternalHooks = function (key) {
    if (key === HOOK_MARK) {
      _this.formHooked = true;
      return {
        dispatch: _this.dispatch,
        initEntityValue: _this.initEntityValue,
        registerField: _this.registerField,
        useSubscribe: _this.useSubscribe,
        setInitialValues: _this.setInitialValues,
        destroyForm: _this.destroyForm,
        setCallbacks: _this.setCallbacks,
        setValidateMessages: _this.setValidateMessages,
        getFields: _this.getFields,
        setPreserve: _this.setPreserve,
        getInitialValue: _this.getInitialValue,
        registerWatch: _this.registerWatch
      };
    }
    (0,warning/* default */.ZP)(false, '`getInternalHooks` is internal usage. Should not call directly.');
    return null;
  };
  this.useSubscribe = function (subscribable) {
    _this.subscribable = subscribable;
  };
  this.prevWithoutPreserves = null;
  this.setInitialValues = function (initialValues, init) {
    _this.initialValues = initialValues || {};
    if (init) {
      var _this$prevWithoutPres;
      var nextStore = setValues({}, initialValues, _this.store);
      // We will take consider prev form unmount fields.
      // When the field is not `preserve`, we need fill this with initialValues instead of store.
      // eslint-disable-next-line array-callback-return
      (_this$prevWithoutPres = _this.prevWithoutPreserves) === null || _this$prevWithoutPres === void 0 ? void 0 : _this$prevWithoutPres.map(function (_ref) {
        var namePath = _ref.key;
        nextStore = setValue(nextStore, namePath, valueUtil_getValue(initialValues, namePath));
      });
      _this.prevWithoutPreserves = null;
      _this.updateStore(nextStore);
    }
  };
  this.destroyForm = function () {
    var prevWithoutPreserves = new utils_NameMap();
    _this.getFieldEntities(true).forEach(function (entity) {
      if (!_this.isMergedPreserve(entity.isPreserve())) {
        prevWithoutPreserves.set(entity.getNamePath(), true);
      }
    });
    _this.prevWithoutPreserves = prevWithoutPreserves;
  };
  this.getInitialValue = function (namePath) {
    var initValue = valueUtil_getValue(_this.initialValues, namePath);
    // Not cloneDeep when without `namePath`
    return namePath.length ? utils_cloneDeep(initValue) : initValue;
  };
  this.setCallbacks = function (callbacks) {
    _this.callbacks = callbacks;
  };
  this.setValidateMessages = function (validateMessages) {
    _this.validateMessages = validateMessages;
  };
  this.setPreserve = function (preserve) {
    _this.preserve = preserve;
  };
  this.watchList = [];
  this.registerWatch = function (callback) {
    _this.watchList.push(callback);
    return function () {
      _this.watchList = _this.watchList.filter(function (fn) {
        return fn !== callback;
      });
    };
  };
  this.notifyWatch = function () {
    var namePath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
    // No need to cost perf when nothing need to watch
    if (_this.watchList.length) {
      var values = _this.getFieldsValue();
      _this.watchList.forEach(function (callback) {
        callback(values, namePath);
      });
    }
  };
  this.timeoutId = null;
  this.warningUnhooked = function () {
    if (false) {}
  };
  this.updateStore = function (nextStore) {
    _this.store = nextStore;
  };
  this.getFieldEntities = function () {
    var pure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
    if (!pure) {
      return _this.fieldEntities;
    }
    return _this.fieldEntities.filter(function (field) {
      return field.getNamePath().length;
    });
  };
  this.getFieldsMap = function () {
    var pure = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
    var cache = new utils_NameMap();
    _this.getFieldEntities(pure).forEach(function (field) {
      var namePath = field.getNamePath();
      cache.set(namePath, field);
    });
    return cache;
  };
  this.getFieldEntitiesForNamePathList = function (nameList) {
    if (!nameList) {
      return _this.getFieldEntities(true);
    }
    var cache = _this.getFieldsMap(true);
    return nameList.map(function (name) {
      var namePath = getNamePath(name);
      return cache.get(namePath) || {
        INVALIDATE_NAME_PATH: getNamePath(name)
      };
    });
  };
  this.getFieldsValue = function (nameList, filterFunc) {
    _this.warningUnhooked();
    if (nameList === true && !filterFunc) {
      return _this.store;
    }
    var fieldEntities = _this.getFieldEntitiesForNamePathList(Array.isArray(nameList) ? nameList : null);
    var filteredNameList = [];
    fieldEntities.forEach(function (entity) {
      var _entity$isListField;
      var namePath = 'INVALIDATE_NAME_PATH' in entity ? entity.INVALIDATE_NAME_PATH : entity.getNamePath();
      // Ignore when it's a list item and not specific the namePath,
      // since parent field is already take in count
      if (!nameList && ((_entity$isListField = entity.isListField) === null || _entity$isListField === void 0 ? void 0 : _entity$isListField.call(entity))) {
        return;
      }
      if (!filterFunc) {
        filteredNameList.push(namePath);
      } else {
        var meta = 'getMeta' in entity ? entity.getMeta() : null;
        if (filterFunc(meta)) {
          filteredNameList.push(namePath);
        }
      }
    });
    return cloneByNamePathList(_this.store, filteredNameList.map(getNamePath));
  };
  this.getFieldValue = function (name) {
    _this.warningUnhooked();
    var namePath = getNamePath(name);
    return valueUtil_getValue(_this.store, namePath);
  };
  this.getFieldsError = function (nameList) {
    _this.warningUnhooked();
    var fieldEntities = _this.getFieldEntitiesForNamePathList(nameList);
    return fieldEntities.map(function (entity, index) {
      if (entity && !('INVALIDATE_NAME_PATH' in entity)) {
        return {
          name: entity.getNamePath(),
          errors: entity.getErrors(),
          warnings: entity.getWarnings()
        };
      }
      return {
        name: getNamePath(nameList[index]),
        errors: [],
        warnings: []
      };
    });
  };
  this.getFieldError = function (name) {
    _this.warningUnhooked();
    var namePath = getNamePath(name);
    var fieldError = _this.getFieldsError([namePath])[0];
    return fieldError.errors;
  };
  this.getFieldWarning = function (name) {
    _this.warningUnhooked();
    var namePath = getNamePath(name);
    var fieldError = _this.getFieldsError([namePath])[0];
    return fieldError.warnings;
  };
  this.isFieldsTouched = function () {
    _this.warningUnhooked();
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    var arg0 = args[0],
      arg1 = args[1];
    var namePathList;
    var isAllFieldsTouched = false;
    if (args.length === 0) {
      namePathList = null;
    } else if (args.length === 1) {
      if (Array.isArray(arg0)) {
        namePathList = arg0.map(getNamePath);
        isAllFieldsTouched = false;
      } else {
        namePathList = null;
        isAllFieldsTouched = arg0;
      }
    } else {
      namePathList = arg0.map(getNamePath);
      isAllFieldsTouched = arg1;
    }
    var fieldEntities = _this.getFieldEntities(true);
    var isFieldTouched = function isFieldTouched(field) {
      return field.isFieldTouched();
    };
    // ===== Will get fully compare when not config namePathList =====
    if (!namePathList) {
      return isAllFieldsTouched ? fieldEntities.every(isFieldTouched) : fieldEntities.some(isFieldTouched);
    }
    // Generate a nest tree for validate
    var map = new utils_NameMap();
    namePathList.forEach(function (shortNamePath) {
      map.set(shortNamePath, []);
    });
    fieldEntities.forEach(function (field) {
      var fieldNamePath = field.getNamePath();
      // Find matched entity and put into list
      namePathList.forEach(function (shortNamePath) {
        if (shortNamePath.every(function (nameUnit, i) {
          return fieldNamePath[i] === nameUnit;
        })) {
          map.update(shortNamePath, function (list) {
            return [].concat((0,toConsumableArray/* default */.Z)(list), [field]);
          });
        }
      });
    });
    // Check if NameMap value is touched
    var isNamePathListTouched = function isNamePathListTouched(entities) {
      return entities.some(isFieldTouched);
    };
    var namePathListEntities = map.map(function (_ref2) {
      var value = _ref2.value;
      return value;
    });
    return isAllFieldsTouched ? namePathListEntities.every(isNamePathListTouched) : namePathListEntities.some(isNamePathListTouched);
  };
  this.isFieldTouched = function (name) {
    _this.warningUnhooked();
    return _this.isFieldsTouched([name]);
  };
  this.isFieldsValidating = function (nameList) {
    _this.warningUnhooked();
    var fieldEntities = _this.getFieldEntities();
    if (!nameList) {
      return fieldEntities.some(function (testField) {
        return testField.isFieldValidating();
      });
    }
    var namePathList = nameList.map(getNamePath);
    return fieldEntities.some(function (testField) {
      var fieldNamePath = testField.getNamePath();
      return containsNamePath(namePathList, fieldNamePath) && testField.isFieldValidating();
    });
  };
  this.isFieldValidating = function (name) {
    _this.warningUnhooked();
    return _this.isFieldsValidating([name]);
  };
  this.resetWithFieldInitialValue = function () {
    var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    // Create cache
    var cache = new utils_NameMap();
    var fieldEntities = _this.getFieldEntities(true);
    fieldEntities.forEach(function (field) {
      var initialValue = field.props.initialValue;
      var namePath = field.getNamePath();
      // Record only if has `initialValue`
      if (initialValue !== undefined) {
        var records = cache.get(namePath) || new Set();
        records.add({
          entity: field,
          value: initialValue
        });
        cache.set(namePath, records);
      }
    });
    // Reset
    var resetWithFields = function resetWithFields(entities) {
      entities.forEach(function (field) {
        var initialValue = field.props.initialValue;
        if (initialValue !== undefined) {
          var namePath = field.getNamePath();
          var formInitialValue = _this.getInitialValue(namePath);
          if (formInitialValue !== undefined) {
            // Warning if conflict with form initialValues and do not modify value
            (0,warning/* default */.ZP)(false, "Form already set 'initialValues' with path '".concat(namePath.join('.'), "'. Field can not overwrite it."));
          } else {
            var records = cache.get(namePath);
            if (records && records.size > 1) {
              // Warning if multiple field set `initialValue`and do not modify value
              (0,warning/* default */.ZP)(false, "Multiple Field with path '".concat(namePath.join('.'), "' set 'initialValue'. Can not decide which one to pick."));
            } else if (records) {
              var originValue = _this.getFieldValue(namePath);
              // Set `initialValue`
              if (!info.skipExist || originValue === undefined) {
                _this.updateStore(setValue(_this.store, namePath, (0,toConsumableArray/* default */.Z)(records)[0].value));
              }
            }
          }
        }
      });
    };
    var requiredFieldEntities;
    if (info.entities) {
      requiredFieldEntities = info.entities;
    } else if (info.namePathList) {
      requiredFieldEntities = [];
      info.namePathList.forEach(function (namePath) {
        var records = cache.get(namePath);
        if (records) {
          var _requiredFieldEntitie;
          (_requiredFieldEntitie = requiredFieldEntities).push.apply(_requiredFieldEntitie, (0,toConsumableArray/* default */.Z)((0,toConsumableArray/* default */.Z)(records).map(function (r) {
            return r.entity;
          })));
        }
      });
    } else {
      requiredFieldEntities = fieldEntities;
    }
    resetWithFields(requiredFieldEntities);
  };
  this.resetFields = function (nameList) {
    _this.warningUnhooked();
    var prevStore = _this.store;
    if (!nameList) {
      _this.updateStore(setValues({}, _this.initialValues));
      _this.resetWithFieldInitialValue();
      _this.notifyObservers(prevStore, null, {
        type: 'reset'
      });
      _this.notifyWatch();
      return;
    }
    // Reset by `nameList`
    var namePathList = nameList.map(getNamePath);
    namePathList.forEach(function (namePath) {
      var initialValue = _this.getInitialValue(namePath);
      _this.updateStore(setValue(_this.store, namePath, initialValue));
    });
    _this.resetWithFieldInitialValue({
      namePathList: namePathList
    });
    _this.notifyObservers(prevStore, namePathList, {
      type: 'reset'
    });
    _this.notifyWatch(namePathList);
  };
  this.setFields = function (fields) {
    _this.warningUnhooked();
    var prevStore = _this.store;
    var namePathList = [];
    fields.forEach(function (fieldData) {
      var name = fieldData.name,
        errors = fieldData.errors,
        data = (0,objectWithoutProperties/* default */.Z)(fieldData, useForm_excluded);
      var namePath = getNamePath(name);
      namePathList.push(namePath);
      // Value
      if ('value' in data) {
        _this.updateStore(setValue(_this.store, namePath, data.value));
      }
      _this.notifyObservers(prevStore, [namePath], {
        type: 'setField',
        data: fieldData
      });
    });
    _this.notifyWatch(namePathList);
  };
  this.getFields = function () {
    var entities = _this.getFieldEntities(true);
    var fields = entities.map(function (field) {
      var namePath = field.getNamePath();
      var meta = field.getMeta();
      var fieldData = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, meta), {}, {
        name: namePath,
        value: _this.getFieldValue(namePath)
      });
      Object.defineProperty(fieldData, 'originRCField', {
        value: true
      });
      return fieldData;
    });
    return fields;
  };
  this.initEntityValue = function (entity) {
    var initialValue = entity.props.initialValue;
    if (initialValue !== undefined) {
      var namePath = entity.getNamePath();
      var prevValue = valueUtil_getValue(_this.store, namePath);
      if (prevValue === undefined) {
        _this.updateStore(setValue(_this.store, namePath, initialValue));
      }
    }
  };
  this.isMergedPreserve = function (fieldPreserve) {
    var mergedPreserve = fieldPreserve !== undefined ? fieldPreserve : _this.preserve;
    return mergedPreserve !== null && mergedPreserve !== void 0 ? mergedPreserve : true;
  };
  this.registerField = function (entity) {
    _this.fieldEntities.push(entity);
    var namePath = entity.getNamePath();
    _this.notifyWatch([namePath]);
    // Set initial values
    if (entity.props.initialValue !== undefined) {
      var prevStore = _this.store;
      _this.resetWithFieldInitialValue({
        entities: [entity],
        skipExist: true
      });
      _this.notifyObservers(prevStore, [entity.getNamePath()], {
        type: 'valueUpdate',
        source: 'internal'
      });
    }
    // un-register field callback
    return function (isListField, preserve) {
      var subNamePath = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
      _this.fieldEntities = _this.fieldEntities.filter(function (item) {
        return item !== entity;
      });
      // Clean up store value if not preserve
      if (!_this.isMergedPreserve(preserve) && (!isListField || subNamePath.length > 1)) {
        var defaultValue = isListField ? undefined : _this.getInitialValue(namePath);
        if (namePath.length && _this.getFieldValue(namePath) !== defaultValue && _this.fieldEntities.every(function (field) {
          return (
            // Only reset when no namePath exist
            !matchNamePath(field.getNamePath(), namePath)
          );
        })) {
          var _prevStore = _this.store;
          _this.updateStore(setValue(_prevStore, namePath, defaultValue, true));
          // Notify that field is unmount
          _this.notifyObservers(_prevStore, [namePath], {
            type: 'remove'
          });
          // Dependencies update
          _this.triggerDependenciesUpdate(_prevStore, namePath);
        }
      }
      _this.notifyWatch([namePath]);
    };
  };
  this.dispatch = function (action) {
    switch (action.type) {
      case 'updateValue':
        {
          var namePath = action.namePath,
            value = action.value;
          _this.updateValue(namePath, value);
          break;
        }
      case 'validateField':
        {
          var _namePath = action.namePath,
            triggerName = action.triggerName;
          _this.validateFields([_namePath], {
            triggerName: triggerName
          });
          break;
        }
      default:
      // Currently we don't have other action. Do nothing.
    }
  };

  this.notifyObservers = function (prevStore, namePathList, info) {
    if (_this.subscribable) {
      var mergedInfo = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, info), {}, {
        store: _this.getFieldsValue(true)
      });
      _this.getFieldEntities().forEach(function (_ref3) {
        var onStoreChange = _ref3.onStoreChange;
        onStoreChange(prevStore, namePathList, mergedInfo);
      });
    } else {
      _this.forceRootUpdate();
    }
  };
  this.triggerDependenciesUpdate = function (prevStore, namePath) {
    var childrenFields = _this.getDependencyChildrenFields(namePath);
    if (childrenFields.length) {
      _this.validateFields(childrenFields);
    }
    _this.notifyObservers(prevStore, childrenFields, {
      type: 'dependenciesUpdate',
      relatedFields: [namePath].concat((0,toConsumableArray/* default */.Z)(childrenFields))
    });
    return childrenFields;
  };
  this.updateValue = function (name, value) {
    var namePath = getNamePath(name);
    var prevStore = _this.store;
    _this.updateStore(setValue(_this.store, namePath, value));
    _this.notifyObservers(prevStore, [namePath], {
      type: 'valueUpdate',
      source: 'internal'
    });
    _this.notifyWatch([namePath]);
    // Dependencies update
    var childrenFields = _this.triggerDependenciesUpdate(prevStore, namePath);
    // trigger callback function
    var onValuesChange = _this.callbacks.onValuesChange;
    if (onValuesChange) {
      var changedValues = cloneByNamePathList(_this.store, [namePath]);
      onValuesChange(changedValues, _this.getFieldsValue());
    }
    _this.triggerOnFieldsChange([namePath].concat((0,toConsumableArray/* default */.Z)(childrenFields)));
  };
  this.setFieldsValue = function (store) {
    _this.warningUnhooked();
    var prevStore = _this.store;
    if (store) {
      var nextStore = setValues(_this.store, store);
      _this.updateStore(nextStore);
    }
    _this.notifyObservers(prevStore, null, {
      type: 'valueUpdate',
      source: 'external'
    });
    _this.notifyWatch();
  };
  this.setFieldValue = function (name, value) {
    _this.setFields([{
      name: name,
      value: value
    }]);
  };
  this.getDependencyChildrenFields = function (rootNamePath) {
    var children = new Set();
    var childrenFields = [];
    var dependencies2fields = new utils_NameMap();
    /**
     * Generate maps
     * Can use cache to save perf if user report performance issue with this
     */
    _this.getFieldEntities().forEach(function (field) {
      var dependencies = field.props.dependencies;
      (dependencies || []).forEach(function (dependency) {
        var dependencyNamePath = getNamePath(dependency);
        dependencies2fields.update(dependencyNamePath, function () {
          var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Set();
          fields.add(field);
          return fields;
        });
      });
    });
    var fillChildren = function fillChildren(namePath) {
      var fields = dependencies2fields.get(namePath) || new Set();
      fields.forEach(function (field) {
        if (!children.has(field)) {
          children.add(field);
          var fieldNamePath = field.getNamePath();
          if (field.isFieldDirty() && fieldNamePath.length) {
            childrenFields.push(fieldNamePath);
            fillChildren(fieldNamePath);
          }
        }
      });
    };
    fillChildren(rootNamePath);
    return childrenFields;
  };
  this.triggerOnFieldsChange = function (namePathList, filedErrors) {
    var onFieldsChange = _this.callbacks.onFieldsChange;
    if (onFieldsChange) {
      var fields = _this.getFields();
      /**
       * Fill errors since `fields` may be replaced by controlled fields
       */
      if (filedErrors) {
        var cache = new utils_NameMap();
        filedErrors.forEach(function (_ref4) {
          var name = _ref4.name,
            errors = _ref4.errors;
          cache.set(name, errors);
        });
        fields.forEach(function (field) {
          // eslint-disable-next-line no-param-reassign
          field.errors = cache.get(field.name) || field.errors;
        });
      }
      var changedFields = fields.filter(function (_ref5) {
        var fieldName = _ref5.name;
        return containsNamePath(namePathList, fieldName);
      });
      onFieldsChange(changedFields, fields);
    }
  };
  this.validateFields = function (nameList, options) {
    _this.warningUnhooked();
    var provideNameList = !!nameList;
    var namePathList = provideNameList ? nameList.map(getNamePath) : [];
    // Collect result in promise list
    var promiseList = [];
    _this.getFieldEntities(true).forEach(function (field) {
      // Add field if not provide `nameList`
      if (!provideNameList) {
        namePathList.push(field.getNamePath());
      }
      /**
       * Recursive validate if configured.
       * TODO: perf improvement @zombieJ
       */
      if ((options === null || options === void 0 ? void 0 : options.recursive) && provideNameList) {
        var namePath = field.getNamePath();
        if (
        // nameList[i] === undefined 说明是以 nameList 开头的
        // ['name'] -> ['name','list']
        namePath.every(function (nameUnit, i) {
          return nameList[i] === nameUnit || nameList[i] === undefined;
        })) {
          namePathList.push(namePath);
        }
      }
      // Skip if without rule
      if (!field.props.rules || !field.props.rules.length) {
        return;
      }
      var fieldNamePath = field.getNamePath();
      // Add field validate rule in to promise list
      if (!provideNameList || containsNamePath(namePathList, fieldNamePath)) {
        var promise = field.validateRules((0,objectSpread2/* default */.Z)({
          validateMessages: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, defaultValidateMessages), _this.validateMessages)
        }, options));
        // Wrap promise with field
        promiseList.push(promise.then(function () {
          return {
            name: fieldNamePath,
            errors: [],
            warnings: []
          };
        }).catch(function (ruleErrors) {
          var _ruleErrors$forEach;
          var mergedErrors = [];
          var mergedWarnings = [];
          (_ruleErrors$forEach = ruleErrors.forEach) === null || _ruleErrors$forEach === void 0 ? void 0 : _ruleErrors$forEach.call(ruleErrors, function (_ref6) {
            var warningOnly = _ref6.rule.warningOnly,
              errors = _ref6.errors;
            if (warningOnly) {
              mergedWarnings.push.apply(mergedWarnings, (0,toConsumableArray/* default */.Z)(errors));
            } else {
              mergedErrors.push.apply(mergedErrors, (0,toConsumableArray/* default */.Z)(errors));
            }
          });
          if (mergedErrors.length) {
            return Promise.reject({
              name: fieldNamePath,
              errors: mergedErrors,
              warnings: mergedWarnings
            });
          }
          return {
            name: fieldNamePath,
            errors: mergedErrors,
            warnings: mergedWarnings
          };
        }));
      }
    });
    var summaryPromise = allPromiseFinish(promiseList);
    _this.lastValidatePromise = summaryPromise;
    // Notify fields with rule that validate has finished and need update
    summaryPromise.catch(function (results) {
      return results;
    }).then(function (results) {
      var resultNamePathList = results.map(function (_ref7) {
        var name = _ref7.name;
        return name;
      });
      _this.notifyObservers(_this.store, resultNamePathList, {
        type: 'validateFinish'
      });
      _this.triggerOnFieldsChange(resultNamePathList, results);
    });
    var returnPromise = summaryPromise.then(function () {
      if (_this.lastValidatePromise === summaryPromise) {
        return Promise.resolve(_this.getFieldsValue(namePathList));
      }
      return Promise.reject([]);
    }).catch(function (results) {
      var errorList = results.filter(function (result) {
        return result && result.errors.length;
      });
      return Promise.reject({
        values: _this.getFieldsValue(namePathList),
        errorFields: errorList,
        outOfDate: _this.lastValidatePromise !== summaryPromise
      });
    });
    // Do not throw in console
    returnPromise.catch(function (e) {
      return e;
    });
    return returnPromise;
  };
  this.submit = function () {
    _this.warningUnhooked();
    _this.validateFields().then(function (values) {
      var onFinish = _this.callbacks.onFinish;
      if (onFinish) {
        try {
          onFinish(values);
        } catch (err) {
          // Should print error if user `onFinish` callback failed
          console.error(err);
        }
      }
    }).catch(function (e) {
      var onFinishFailed = _this.callbacks.onFinishFailed;
      if (onFinishFailed) {
        onFinishFailed(e);
      }
    });
  };
  this.forceRootUpdate = forceRootUpdate;
});
function useForm(form) {
  var formRef = _react_18_2_0_react.useRef();
  var _React$useState = _react_18_2_0_react.useState({}),
    _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
    forceUpdate = _React$useState2[1];
  if (!formRef.current) {
    if (form) {
      formRef.current = form;
    } else {
      // Create a new FormStore if not provided
      var forceReRender = function forceReRender() {
        forceUpdate({});
      };
      var formStore = new FormStore(forceReRender);
      formRef.current = formStore.getForm();
    }
  }
  return [formRef.current];
}
/* harmony default export */ var es_useForm = (useForm);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/FormContext.js



var FormContext = /*#__PURE__*/_react_18_2_0_react.createContext({
  triggerFormChange: function triggerFormChange() {},
  triggerFormFinish: function triggerFormFinish() {},
  registerForm: function registerForm() {},
  unregisterForm: function unregisterForm() {}
});
var FormProvider = function FormProvider(_ref) {
  var validateMessages = _ref.validateMessages,
    onFormChange = _ref.onFormChange,
    onFormFinish = _ref.onFormFinish,
    children = _ref.children;
  var formContext = _react_18_2_0_react.useContext(FormContext);
  var formsRef = _react_18_2_0_react.useRef({});
  return /*#__PURE__*/_react_18_2_0_react.createElement(FormContext.Provider, {
    value: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, formContext), {}, {
      validateMessages: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, formContext.validateMessages), validateMessages),
      // =========================================================
      // =                  Global Form Control                  =
      // =========================================================
      triggerFormChange: function triggerFormChange(name, changedFields) {
        if (onFormChange) {
          onFormChange(name, {
            changedFields: changedFields,
            forms: formsRef.current
          });
        }
        formContext.triggerFormChange(name, changedFields);
      },
      triggerFormFinish: function triggerFormFinish(name, values) {
        if (onFormFinish) {
          onFormFinish(name, {
            values: values,
            forms: formsRef.current
          });
        }
        formContext.triggerFormFinish(name, values);
      },
      registerForm: function registerForm(name, form) {
        if (name) {
          formsRef.current = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, formsRef.current), {}, (0,defineProperty/* default */.Z)({}, name, form));
        }
        formContext.registerForm(name, form);
      },
      unregisterForm: function unregisterForm(name) {
        var newForms = (0,objectSpread2/* default */.Z)({}, formsRef.current);
        delete newForms[name];
        formsRef.current = newForms;
        formContext.unregisterForm(name);
      }
    })
  }, children);
};

/* harmony default export */ var es_FormContext = (FormContext);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/Form.js




var Form_excluded = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];





var Form = function Form(_ref, ref) {
  var name = _ref.name,
    initialValues = _ref.initialValues,
    fields = _ref.fields,
    form = _ref.form,
    preserve = _ref.preserve,
    children = _ref.children,
    _ref$component = _ref.component,
    Component = _ref$component === void 0 ? 'form' : _ref$component,
    validateMessages = _ref.validateMessages,
    _ref$validateTrigger = _ref.validateTrigger,
    validateTrigger = _ref$validateTrigger === void 0 ? 'onChange' : _ref$validateTrigger,
    onValuesChange = _ref.onValuesChange,
    _onFieldsChange = _ref.onFieldsChange,
    _onFinish = _ref.onFinish,
    onFinishFailed = _ref.onFinishFailed,
    restProps = (0,objectWithoutProperties/* default */.Z)(_ref, Form_excluded);
  var formContext = _react_18_2_0_react.useContext(es_FormContext);
  // We customize handle event since Context will makes all the consumer re-render:
  // https://reactjs.org/docs/context.html#contextprovider
  var _useForm = es_useForm(form),
    _useForm2 = (0,slicedToArray/* default */.Z)(_useForm, 1),
    formInstance = _useForm2[0];
  var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK),
    useSubscribe = _formInstance$getInte.useSubscribe,
    setInitialValues = _formInstance$getInte.setInitialValues,
    setCallbacks = _formInstance$getInte.setCallbacks,
    setValidateMessages = _formInstance$getInte.setValidateMessages,
    setPreserve = _formInstance$getInte.setPreserve,
    destroyForm = _formInstance$getInte.destroyForm;
  // Pass ref with form instance
  _react_18_2_0_react.useImperativeHandle(ref, function () {
    return formInstance;
  });
  // Register form into Context
  _react_18_2_0_react.useEffect(function () {
    formContext.registerForm(name, formInstance);
    return function () {
      formContext.unregisterForm(name);
    };
  }, [formContext, formInstance, name]);
  // Pass props to store
  setValidateMessages((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, formContext.validateMessages), validateMessages));
  setCallbacks({
    onValuesChange: onValuesChange,
    onFieldsChange: function onFieldsChange(changedFields) {
      formContext.triggerFormChange(name, changedFields);
      if (_onFieldsChange) {
        for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
          rest[_key - 1] = arguments[_key];
        }
        _onFieldsChange.apply(void 0, [changedFields].concat(rest));
      }
    },
    onFinish: function onFinish(values) {
      formContext.triggerFormFinish(name, values);
      if (_onFinish) {
        _onFinish(values);
      }
    },
    onFinishFailed: onFinishFailed
  });
  setPreserve(preserve);
  // Set initial value, init store value when first mount
  var mountRef = _react_18_2_0_react.useRef(null);
  setInitialValues(initialValues, !mountRef.current);
  if (!mountRef.current) {
    mountRef.current = true;
  }
  _react_18_2_0_react.useEffect(function () {
    return destroyForm;
  },
  // eslint-disable-next-line react-hooks/exhaustive-deps
  []);
  // Prepare children by `children` type
  var childrenNode;
  var childrenRenderProps = typeof children === 'function';
  if (childrenRenderProps) {
    var values = formInstance.getFieldsValue(true);
    childrenNode = children(values, formInstance);
  } else {
    childrenNode = children;
  }
  // Not use subscribe when using render props
  useSubscribe(!childrenRenderProps);
  // Listen if fields provided. We use ref to save prev data here to avoid additional render
  var prevFieldsRef = _react_18_2_0_react.useRef();
  _react_18_2_0_react.useEffect(function () {
    if (!isSimilar(prevFieldsRef.current || [], fields || [])) {
      formInstance.setFields(fields || []);
    }
    prevFieldsRef.current = fields;
  }, [fields, formInstance]);
  var formContextValue = _react_18_2_0_react.useMemo(function () {
    return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, formInstance), {}, {
      validateTrigger: validateTrigger
    });
  }, [formInstance, validateTrigger]);
  var wrapperNode = /*#__PURE__*/_react_18_2_0_react.createElement(FieldContext.Provider, {
    value: formContextValue
  }, childrenNode);
  if (Component === false) {
    return wrapperNode;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(Component, (0,esm_extends/* default */.Z)({}, restProps, {
    onSubmit: function onSubmit(event) {
      event.preventDefault();
      event.stopPropagation();
      formInstance.submit();
    },
    onReset: function onReset(event) {
      var _restProps$onReset;
      event.preventDefault();
      formInstance.resetFields();
      (_restProps$onReset = restProps.onReset) === null || _restProps$onReset === void 0 ? void 0 : _restProps$onReset.call(restProps, event);
    }
  }), wrapperNode);
};
/* harmony default export */ var es_Form = (Form);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/useWatch.js






function stringify(value) {
  try {
    return JSON.stringify(value);
  } catch (err) {
    return Math.random();
  }
}
var useWatchWarning =  false ? 0 : function () {};
function useWatch() {
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
    args[_key] = arguments[_key];
  }
  var _args$ = args[0],
    dependencies = _args$ === void 0 ? [] : _args$,
    form = args[1];
  var _useState = (0,_react_18_2_0_react.useState)(),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    value = _useState2[0],
    setValue = _useState2[1];
  var valueStr = (0,_react_18_2_0_react.useMemo)(function () {
    return stringify(value);
  }, [value]);
  var valueStrRef = (0,_react_18_2_0_react.useRef)(valueStr);
  valueStrRef.current = valueStr;
  var fieldContext = (0,_react_18_2_0_react.useContext)(FieldContext);
  var formInstance = form || fieldContext;
  var isValidForm = formInstance && formInstance._init;
  // Warning if not exist form instance
  if (false) {}
  var namePath = getNamePath(dependencies);
  var namePathRef = (0,_react_18_2_0_react.useRef)(namePath);
  namePathRef.current = namePath;
  useWatchWarning(namePath);
  (0,_react_18_2_0_react.useEffect)(function () {
    // Skip if not exist form instance
    if (!isValidForm) {
      return;
    }
    var getFieldsValue = formInstance.getFieldsValue,
      getInternalHooks = formInstance.getInternalHooks;
    var _getInternalHooks = getInternalHooks(HOOK_MARK),
      registerWatch = _getInternalHooks.registerWatch;
    var cancelRegister = registerWatch(function (store) {
      var newValue = valueUtil_getValue(store, namePathRef.current);
      var nextValueStr = stringify(newValue);
      // Compare stringify in case it's nest object
      if (valueStrRef.current !== nextValueStr) {
        valueStrRef.current = nextValueStr;
        setValue(newValue);
      }
    });
    // TODO: We can improve this perf in future
    var initialValue = valueUtil_getValue(getFieldsValue(), namePathRef.current);
    setValue(initialValue);
    return cancelRegister;
  },
  // We do not need re-register since namePath content is the same
  // eslint-disable-next-line react-hooks/exhaustive-deps
  [isValidForm]);
  return value;
}
/* harmony default export */ var es_useWatch = (useWatch);
;// CONCATENATED MODULE: ./node_modules/_rc-field-form@1.27.4@rc-field-form/es/index.js









var InternalForm = /*#__PURE__*/_react_18_2_0_react.forwardRef(es_Form);
var RefForm = InternalForm;
RefForm.FormProvider = FormProvider;
RefForm.Field = es_Field;
RefForm.List = es_List;
RefForm.useForm = es_useForm;
RefForm.useWatch = es_useWatch;

/* harmony default export */ var es = ((/* unused pure expression or super */ null && (RefForm)));

/***/ }),

/***/ 158:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  V4: function() { return /* reexport */ CSSMotionList; },
  ZP: function() { return /* binding */ es; }
});

// UNUSED EXPORTS: Provider

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(2782);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(7258);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/findDOMNode.js
var findDOMNode = __webpack_require__(331);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/ref.js
var es_ref = __webpack_require__(1212);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/context.js

var _excluded = (/* unused pure expression or super */ null && (["children"]));

var Context = /*#__PURE__*/_react_18_2_0_react.createContext({});
function MotionProvider(_ref) {
  var children = _ref.children,
    props = _objectWithoutProperties(_ref, _excluded);
  return /*#__PURE__*/React.createElement(Context.Provider, {
    value: props
  }, children);
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(4816);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(5292);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(8863);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(8271);
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/DomWrapper.js





var DomWrapper = /*#__PURE__*/function (_React$Component) {
  (0,inherits/* default */.Z)(DomWrapper, _React$Component);
  var _super = (0,createSuper/* default */.Z)(DomWrapper);
  function DomWrapper() {
    (0,classCallCheck/* default */.Z)(this, DomWrapper);
    return _super.apply(this, arguments);
  }
  (0,createClass/* default */.Z)(DomWrapper, [{
    key: "render",
    value: function render() {
      return this.props.children;
    }
  }]);
  return DomWrapper;
}(_react_18_2_0_react.Component);
/* harmony default export */ var es_DomWrapper = (DomWrapper);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/hooks/useState.js
var useState = __webpack_require__(5458);
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/interface.js
var STATUS_NONE = 'none';
var STATUS_APPEAR = 'appear';
var STATUS_ENTER = 'enter';
var STATUS_LEAVE = 'leave';
var STEP_NONE = 'none';
var STEP_PREPARE = 'prepare';
var STEP_START = 'start';
var STEP_ACTIVE = 'active';
var STEP_ACTIVATED = 'end';
/**
 * Used for disabled motion case.
 * Prepare stage will still work but start & active will be skipped.
 */
var STEP_PREPARED = 'prepared';
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/Dom/canUseDom.js
var canUseDom = __webpack_require__(6665);
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/util/motion.js


// ================= Transition =================
// Event wrapper. Copy from react source code
function makePrefixMap(styleProp, eventName) {
  var prefixes = {};
  prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  prefixes["Webkit".concat(styleProp)] = "webkit".concat(eventName);
  prefixes["Moz".concat(styleProp)] = "moz".concat(eventName);
  prefixes["ms".concat(styleProp)] = "MS".concat(eventName);
  prefixes["O".concat(styleProp)] = "o".concat(eventName.toLowerCase());
  return prefixes;
}
function getVendorPrefixes(domSupport, win) {
  var prefixes = {
    animationend: makePrefixMap('Animation', 'AnimationEnd'),
    transitionend: makePrefixMap('Transition', 'TransitionEnd')
  };
  if (domSupport) {
    if (!('AnimationEvent' in win)) {
      delete prefixes.animationend.animation;
    }
    if (!('TransitionEvent' in win)) {
      delete prefixes.transitionend.transition;
    }
  }
  return prefixes;
}
var vendorPrefixes = getVendorPrefixes((0,canUseDom/* default */.Z)(), typeof window !== 'undefined' ? window : {});
var style = {};
if ((0,canUseDom/* default */.Z)()) {
  var _document$createEleme = document.createElement('div');
  style = _document$createEleme.style;
}
var prefixedEventNames = {};
function getVendorPrefixedEventName(eventName) {
  if (prefixedEventNames[eventName]) {
    return prefixedEventNames[eventName];
  }
  var prefixMap = vendorPrefixes[eventName];
  if (prefixMap) {
    var stylePropList = Object.keys(prefixMap);
    var len = stylePropList.length;
    for (var i = 0; i < len; i += 1) {
      var styleProp = stylePropList[i];
      if (Object.prototype.hasOwnProperty.call(prefixMap, styleProp) && styleProp in style) {
        prefixedEventNames[eventName] = prefixMap[styleProp];
        return prefixedEventNames[eventName];
      }
    }
  }
  return '';
}
var internalAnimationEndName = getVendorPrefixedEventName('animationend');
var internalTransitionEndName = getVendorPrefixedEventName('transitionend');
var supportTransition = !!(internalAnimationEndName && internalTransitionEndName);
var animationEndName = internalAnimationEndName || 'animationend';
var transitionEndName = internalTransitionEndName || 'transitionend';
function getTransitionName(transitionName, transitionType) {
  if (!transitionName) return null;
  if ((0,esm_typeof/* default */.Z)(transitionName) === 'object') {
    var type = transitionType.replace(/-\w/g, function (match) {
      return match[1].toUpperCase();
    });
    return transitionName[type];
  }
  return "".concat(transitionName, "-").concat(transitionType);
}
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/hooks/useDomMotionEvents.js



/* harmony default export */ var useDomMotionEvents = (function (callback) {
  var cacheElementRef = (0,_react_18_2_0_react.useRef)();

  // Cache callback
  var callbackRef = (0,_react_18_2_0_react.useRef)(callback);
  callbackRef.current = callback;

  // Internal motion event handler
  var onInternalMotionEnd = _react_18_2_0_react.useCallback(function (event) {
    callbackRef.current(event);
  }, []);

  // Remove events
  function removeMotionEvents(element) {
    if (element) {
      element.removeEventListener(transitionEndName, onInternalMotionEnd);
      element.removeEventListener(animationEndName, onInternalMotionEnd);
    }
  }

  // Patch events
  function patchMotionEvents(element) {
    if (cacheElementRef.current && cacheElementRef.current !== element) {
      removeMotionEvents(cacheElementRef.current);
    }
    if (element && element !== cacheElementRef.current) {
      element.addEventListener(transitionEndName, onInternalMotionEnd);
      element.addEventListener(animationEndName, onInternalMotionEnd);

      // Save as cache in case dom removed trigger by `motionDeadline`
      cacheElementRef.current = element;
    }
  }

  // Clean up when removed
  _react_18_2_0_react.useEffect(function () {
    return function () {
      removeMotionEvents(cacheElementRef.current);
    };
  }, []);
  return [patchMotionEvents, removeMotionEvents];
});
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/hooks/useIsomorphicLayoutEffect.js



// It's safe to use `useLayoutEffect` but the warning is annoying
var useIsomorphicLayoutEffect = (0,canUseDom/* default */.Z)() ? _react_18_2_0_react.useLayoutEffect : _react_18_2_0_react.useEffect;
/* harmony default export */ var hooks_useIsomorphicLayoutEffect = (useIsomorphicLayoutEffect);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/raf.js
var raf = __webpack_require__(9906);
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/hooks/useNextFrame.js


/* harmony default export */ var useNextFrame = (function () {
  var nextFrameRef = _react_18_2_0_react.useRef(null);
  function cancelNextFrame() {
    raf/* default */.Z.cancel(nextFrameRef.current);
  }
  function nextFrame(callback) {
    var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
    cancelNextFrame();
    var nextFrameId = (0,raf/* default */.Z)(function () {
      if (delay <= 1) {
        callback({
          isCanceled: function isCanceled() {
            return nextFrameId !== nextFrameRef.current;
          }
        });
      } else {
        nextFrame(callback, delay - 1);
      }
    });
    nextFrameRef.current = nextFrameId;
  }
  _react_18_2_0_react.useEffect(function () {
    return function () {
      cancelNextFrame();
    };
  }, []);
  return [nextFrame, cancelNextFrame];
});
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/hooks/useStepQueue.js






var FULL_STEP_QUEUE = [STEP_PREPARE, STEP_START, STEP_ACTIVE, STEP_ACTIVATED];
var SIMPLE_STEP_QUEUE = [STEP_PREPARE, STEP_PREPARED];

/** Skip current step */
var SkipStep = false;
/** Current step should be update in */
var DoStep = true;
function isActive(step) {
  return step === STEP_ACTIVE || step === STEP_ACTIVATED;
}
/* harmony default export */ var useStepQueue = (function (status, prepareOnly, callback) {
  var _useState = (0,useState/* default */.Z)(STEP_NONE),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    step = _useState2[0],
    setStep = _useState2[1];
  var _useNextFrame = useNextFrame(),
    _useNextFrame2 = (0,slicedToArray/* default */.Z)(_useNextFrame, 2),
    nextFrame = _useNextFrame2[0],
    cancelNextFrame = _useNextFrame2[1];
  function startQueue() {
    setStep(STEP_PREPARE, true);
  }
  var STEP_QUEUE = prepareOnly ? SIMPLE_STEP_QUEUE : FULL_STEP_QUEUE;
  hooks_useIsomorphicLayoutEffect(function () {
    if (step !== STEP_NONE && step !== STEP_ACTIVATED) {
      var index = STEP_QUEUE.indexOf(step);
      var nextStep = STEP_QUEUE[index + 1];
      var result = callback(step);
      if (result === SkipStep) {
        // Skip when no needed
        setStep(nextStep, true);
      } else if (nextStep) {
        // Do as frame for step update
        nextFrame(function (info) {
          function doNext() {
            // Skip since current queue is ood
            if (info.isCanceled()) return;
            setStep(nextStep, true);
          }
          if (result === true) {
            doNext();
          } else {
            // Only promise should be async
            Promise.resolve(result).then(doNext);
          }
        });
      }
    }
  }, [status, step]);
  _react_18_2_0_react.useEffect(function () {
    return function () {
      cancelNextFrame();
    };
  }, []);
  return [startQueue, step];
});
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/hooks/useStatus.js










function useStatus(supportMotion, visible, getElement, _ref) {
  var _ref$motionEnter = _ref.motionEnter,
    motionEnter = _ref$motionEnter === void 0 ? true : _ref$motionEnter,
    _ref$motionAppear = _ref.motionAppear,
    motionAppear = _ref$motionAppear === void 0 ? true : _ref$motionAppear,
    _ref$motionLeave = _ref.motionLeave,
    motionLeave = _ref$motionLeave === void 0 ? true : _ref$motionLeave,
    motionDeadline = _ref.motionDeadline,
    motionLeaveImmediately = _ref.motionLeaveImmediately,
    onAppearPrepare = _ref.onAppearPrepare,
    onEnterPrepare = _ref.onEnterPrepare,
    onLeavePrepare = _ref.onLeavePrepare,
    onAppearStart = _ref.onAppearStart,
    onEnterStart = _ref.onEnterStart,
    onLeaveStart = _ref.onLeaveStart,
    onAppearActive = _ref.onAppearActive,
    onEnterActive = _ref.onEnterActive,
    onLeaveActive = _ref.onLeaveActive,
    onAppearEnd = _ref.onAppearEnd,
    onEnterEnd = _ref.onEnterEnd,
    onLeaveEnd = _ref.onLeaveEnd,
    onVisibleChanged = _ref.onVisibleChanged;
  // Used for outer render usage to avoid `visible: false & status: none` to render nothing
  var _useState = (0,useState/* default */.Z)(),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    asyncVisible = _useState2[0],
    setAsyncVisible = _useState2[1];
  var _useState3 = (0,useState/* default */.Z)(STATUS_NONE),
    _useState4 = (0,slicedToArray/* default */.Z)(_useState3, 2),
    status = _useState4[0],
    setStatus = _useState4[1];
  var _useState5 = (0,useState/* default */.Z)(null),
    _useState6 = (0,slicedToArray/* default */.Z)(_useState5, 2),
    style = _useState6[0],
    setStyle = _useState6[1];
  var mountedRef = (0,_react_18_2_0_react.useRef)(false);
  var deadlineRef = (0,_react_18_2_0_react.useRef)(null);

  // =========================== Dom Node ===========================
  function getDomElement() {
    return getElement();
  }

  // ========================== Motion End ==========================
  var activeRef = (0,_react_18_2_0_react.useRef)(false);

  /**
   * Clean up status & style
   */
  function updateMotionEndStatus() {
    setStatus(STATUS_NONE, true);
    setStyle(null, true);
  }
  function onInternalMotionEnd(event) {
    var element = getDomElement();
    if (event && !event.deadline && event.target !== element) {
      // event exists
      // not initiated by deadline
      // transitionEnd not fired by inner elements
      return;
    }
    var currentActive = activeRef.current;
    var canEnd;
    if (status === STATUS_APPEAR && currentActive) {
      canEnd = onAppearEnd === null || onAppearEnd === void 0 ? void 0 : onAppearEnd(element, event);
    } else if (status === STATUS_ENTER && currentActive) {
      canEnd = onEnterEnd === null || onEnterEnd === void 0 ? void 0 : onEnterEnd(element, event);
    } else if (status === STATUS_LEAVE && currentActive) {
      canEnd = onLeaveEnd === null || onLeaveEnd === void 0 ? void 0 : onLeaveEnd(element, event);
    }

    // Only update status when `canEnd` and not destroyed
    if (status !== STATUS_NONE && currentActive && canEnd !== false) {
      updateMotionEndStatus();
    }
  }
  var _useDomMotionEvents = useDomMotionEvents(onInternalMotionEnd),
    _useDomMotionEvents2 = (0,slicedToArray/* default */.Z)(_useDomMotionEvents, 1),
    patchMotionEvents = _useDomMotionEvents2[0];

  // ============================= Step =============================
  var getEventHandlers = function getEventHandlers(targetStatus) {
    var _ref2, _ref3, _ref4;
    switch (targetStatus) {
      case STATUS_APPEAR:
        return _ref2 = {}, (0,defineProperty/* default */.Z)(_ref2, STEP_PREPARE, onAppearPrepare), (0,defineProperty/* default */.Z)(_ref2, STEP_START, onAppearStart), (0,defineProperty/* default */.Z)(_ref2, STEP_ACTIVE, onAppearActive), _ref2;
      case STATUS_ENTER:
        return _ref3 = {}, (0,defineProperty/* default */.Z)(_ref3, STEP_PREPARE, onEnterPrepare), (0,defineProperty/* default */.Z)(_ref3, STEP_START, onEnterStart), (0,defineProperty/* default */.Z)(_ref3, STEP_ACTIVE, onEnterActive), _ref3;
      case STATUS_LEAVE:
        return _ref4 = {}, (0,defineProperty/* default */.Z)(_ref4, STEP_PREPARE, onLeavePrepare), (0,defineProperty/* default */.Z)(_ref4, STEP_START, onLeaveStart), (0,defineProperty/* default */.Z)(_ref4, STEP_ACTIVE, onLeaveActive), _ref4;
      default:
        return {};
    }
  };
  var eventHandlers = _react_18_2_0_react.useMemo(function () {
    return getEventHandlers(status);
  }, [status]);
  var _useStepQueue = useStepQueue(status, !supportMotion, function (newStep) {
      // Only prepare step can be skip
      if (newStep === STEP_PREPARE) {
        var onPrepare = eventHandlers[STEP_PREPARE];
        if (!onPrepare) {
          return SkipStep;
        }
        return onPrepare(getDomElement());
      }

      // Rest step is sync update
      if (step in eventHandlers) {
        var _eventHandlers$step;
        setStyle(((_eventHandlers$step = eventHandlers[step]) === null || _eventHandlers$step === void 0 ? void 0 : _eventHandlers$step.call(eventHandlers, getDomElement(), null)) || null);
      }
      if (step === STEP_ACTIVE) {
        // Patch events when motion needed
        patchMotionEvents(getDomElement());
        if (motionDeadline > 0) {
          clearTimeout(deadlineRef.current);
          deadlineRef.current = setTimeout(function () {
            onInternalMotionEnd({
              deadline: true
            });
          }, motionDeadline);
        }
      }
      if (step === STEP_PREPARED) {
        updateMotionEndStatus();
      }
      return DoStep;
    }),
    _useStepQueue2 = (0,slicedToArray/* default */.Z)(_useStepQueue, 2),
    startStep = _useStepQueue2[0],
    step = _useStepQueue2[1];
  var active = isActive(step);
  activeRef.current = active;

  // ============================ Status ============================
  // Update with new status
  hooks_useIsomorphicLayoutEffect(function () {
    setAsyncVisible(visible);
    var isMounted = mountedRef.current;
    mountedRef.current = true;

    // if (!supportMotion) {
    //   return;
    // }

    var nextStatus;

    // Appear
    if (!isMounted && visible && motionAppear) {
      nextStatus = STATUS_APPEAR;
    }

    // Enter
    if (isMounted && visible && motionEnter) {
      nextStatus = STATUS_ENTER;
    }

    // Leave
    if (isMounted && !visible && motionLeave || !isMounted && motionLeaveImmediately && !visible && motionLeave) {
      nextStatus = STATUS_LEAVE;
    }
    var nextEventHandlers = getEventHandlers(nextStatus);

    // Update to next status
    if (nextStatus && (supportMotion || nextEventHandlers[STEP_PREPARE])) {
      setStatus(nextStatus);
      startStep();
    } else {
      // Set back in case no motion but prev status has prepare step
      setStatus(STATUS_NONE);
    }
  }, [visible]);

  // ============================ Effect ============================
  // Reset when motion changed
  (0,_react_18_2_0_react.useEffect)(function () {
    if (
    // Cancel appear
    status === STATUS_APPEAR && !motionAppear ||
    // Cancel enter
    status === STATUS_ENTER && !motionEnter ||
    // Cancel leave
    status === STATUS_LEAVE && !motionLeave) {
      setStatus(STATUS_NONE);
    }
  }, [motionAppear, motionEnter, motionLeave]);
  (0,_react_18_2_0_react.useEffect)(function () {
    return function () {
      mountedRef.current = false;
      clearTimeout(deadlineRef.current);
    };
  }, []);

  // Trigger `onVisibleChanged`
  var firstMountChangeRef = _react_18_2_0_react.useRef(false);
  (0,_react_18_2_0_react.useEffect)(function () {
    // [visible & motion not end] => [!visible & motion end] still need trigger onVisibleChanged
    if (asyncVisible) {
      firstMountChangeRef.current = true;
    }
    if (asyncVisible !== undefined && status === STATUS_NONE) {
      // Skip first render is invisible since it's nothing changed
      if (firstMountChangeRef.current || asyncVisible) {
        onVisibleChanged === null || onVisibleChanged === void 0 ? void 0 : onVisibleChanged(asyncVisible);
      }
      firstMountChangeRef.current = true;
    }
  }, [asyncVisible, status]);

  // ============================ Styles ============================
  var mergedStyle = style;
  if (eventHandlers[STEP_PREPARE] && step === STEP_START) {
    mergedStyle = (0,objectSpread2/* default */.Z)({
      transition: 'none'
    }, mergedStyle);
  }
  return [status, step, mergedStyle, asyncVisible !== null && asyncVisible !== void 0 ? asyncVisible : visible];
}
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/CSSMotion.js




/* eslint-disable react/default-props-match-prop-types, react/no-multi-comp, react/prop-types */











/**
 * `transitionSupport` is used for none transition test case.
 * Default we use browser transition event support check.
 */
function genCSSMotion(config) {
  var transitionSupport = config;
  if ((0,esm_typeof/* default */.Z)(config) === 'object') {
    transitionSupport = config.transitionSupport;
  }
  function isSupportTransition(props, contextMotion) {
    return !!(props.motionName && transitionSupport && contextMotion !== false);
  }
  var CSSMotion = /*#__PURE__*/_react_18_2_0_react.forwardRef(function (props, ref) {
    var _props$visible = props.visible,
      visible = _props$visible === void 0 ? true : _props$visible,
      _props$removeOnLeave = props.removeOnLeave,
      removeOnLeave = _props$removeOnLeave === void 0 ? true : _props$removeOnLeave,
      forceRender = props.forceRender,
      children = props.children,
      motionName = props.motionName,
      leavedClassName = props.leavedClassName,
      eventProps = props.eventProps;
    var _React$useContext = _react_18_2_0_react.useContext(Context),
      contextMotion = _React$useContext.motion;
    var supportMotion = isSupportTransition(props, contextMotion);

    // Ref to the react node, it may be a HTMLElement
    var nodeRef = (0,_react_18_2_0_react.useRef)();
    // Ref to the dom wrapper in case ref can not pass to HTMLElement
    var wrapperNodeRef = (0,_react_18_2_0_react.useRef)();
    function getDomElement() {
      try {
        // Here we're avoiding call for findDOMNode since it's deprecated
        // in strict mode. We're calling it only when node ref is not
        // an instance of DOM HTMLElement. Otherwise use
        // findDOMNode as a final resort
        return nodeRef.current instanceof HTMLElement ? nodeRef.current : (0,findDOMNode/* default */.Z)(wrapperNodeRef.current);
      } catch (e) {
        // Only happen when `motionDeadline` trigger but element removed.
        return null;
      }
    }
    var _useStatus = useStatus(supportMotion, visible, getDomElement, props),
      _useStatus2 = (0,slicedToArray/* default */.Z)(_useStatus, 4),
      status = _useStatus2[0],
      statusStep = _useStatus2[1],
      statusStyle = _useStatus2[2],
      mergedVisible = _useStatus2[3];

    // Record whether content has rendered
    // Will return null for un-rendered even when `removeOnLeave={false}`
    var renderedRef = _react_18_2_0_react.useRef(mergedVisible);
    if (mergedVisible) {
      renderedRef.current = true;
    }

    // ====================== Refs ======================
    var setNodeRef = _react_18_2_0_react.useCallback(function (node) {
      nodeRef.current = node;
      (0,es_ref/* fillRef */.mH)(ref, node);
    }, [ref]);

    // ===================== Render =====================
    var motionChildren;
    var mergedProps = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, eventProps), {}, {
      visible: visible
    });
    if (!children) {
      // No children
      motionChildren = null;
    } else if (status === STATUS_NONE) {
      // Stable children
      if (mergedVisible) {
        motionChildren = children((0,objectSpread2/* default */.Z)({}, mergedProps), setNodeRef);
      } else if (!removeOnLeave && renderedRef.current && leavedClassName) {
        motionChildren = children((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, mergedProps), {}, {
          className: leavedClassName
        }), setNodeRef);
      } else if (forceRender || !removeOnLeave && !leavedClassName) {
        motionChildren = children((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, mergedProps), {}, {
          style: {
            display: 'none'
          }
        }), setNodeRef);
      } else {
        motionChildren = null;
      }
    } else {
      var _classNames;
      // In motion
      var statusSuffix;
      if (statusStep === STEP_PREPARE) {
        statusSuffix = 'prepare';
      } else if (isActive(statusStep)) {
        statusSuffix = 'active';
      } else if (statusStep === STEP_START) {
        statusSuffix = 'start';
      }
      var motionCls = getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix));
      motionChildren = children((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, mergedProps), {}, {
        className: _classnames_2_3_2_classnames_default()(getTransitionName(motionName, status), (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, motionCls, motionCls && statusSuffix), (0,defineProperty/* default */.Z)(_classNames, motionName, typeof motionName === 'string'), _classNames)),
        style: statusStyle
      }), setNodeRef);
    }

    // Auto inject ref if child node not have `ref` props
    if ( /*#__PURE__*/_react_18_2_0_react.isValidElement(motionChildren) && (0,es_ref/* supportRef */.Yr)(motionChildren)) {
      var _ref = motionChildren,
        originNodeRef = _ref.ref;
      if (!originNodeRef) {
        motionChildren = /*#__PURE__*/_react_18_2_0_react.cloneElement(motionChildren, {
          ref: setNodeRef
        });
      }
    }
    return /*#__PURE__*/_react_18_2_0_react.createElement(es_DomWrapper, {
      ref: wrapperNodeRef
    }, motionChildren);
  });
  CSSMotion.displayName = 'CSSMotion';
  return CSSMotion;
}
/* harmony default export */ var es_CSSMotion = (genCSSMotion(supportTransition));
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(9686);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/assertThisInitialized.js
var assertThisInitialized = __webpack_require__(2901);
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/util/diff.js


var STATUS_ADD = 'add';
var STATUS_KEEP = 'keep';
var STATUS_REMOVE = 'remove';
var STATUS_REMOVED = 'removed';
function wrapKeyToObject(key) {
  var keyObj;
  if (key && (0,esm_typeof/* default */.Z)(key) === 'object' && 'key' in key) {
    keyObj = key;
  } else {
    keyObj = {
      key: key
    };
  }
  return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, keyObj), {}, {
    key: String(keyObj.key)
  });
}
function parseKeys() {
  var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  return keys.map(wrapKeyToObject);
}
function diffKeys() {
  var prevKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  var currentKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  var list = [];
  var currentIndex = 0;
  var currentLen = currentKeys.length;
  var prevKeyObjects = parseKeys(prevKeys);
  var currentKeyObjects = parseKeys(currentKeys);

  // Check prev keys to insert or keep
  prevKeyObjects.forEach(function (keyObj) {
    var hit = false;
    for (var i = currentIndex; i < currentLen; i += 1) {
      var currentKeyObj = currentKeyObjects[i];
      if (currentKeyObj.key === keyObj.key) {
        // New added keys should add before current key
        if (currentIndex < i) {
          list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function (obj) {
            return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, obj), {}, {
              status: STATUS_ADD
            });
          }));
          currentIndex = i;
        }
        list.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, currentKeyObj), {}, {
          status: STATUS_KEEP
        }));
        currentIndex += 1;
        hit = true;
        break;
      }
    }

    // If not hit, it means key is removed
    if (!hit) {
      list.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, keyObj), {}, {
        status: STATUS_REMOVE
      }));
    }
  });

  // Add rest to the list
  if (currentIndex < currentLen) {
    list = list.concat(currentKeyObjects.slice(currentIndex).map(function (obj) {
      return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, obj), {}, {
        status: STATUS_ADD
      });
    }));
  }

  /**
   * Merge same key when it remove and add again:
   *    [1 - add, 2 - keep, 1 - remove] -> [1 - keep, 2 - keep]
   */
  var keys = {};
  list.forEach(function (_ref) {
    var key = _ref.key;
    keys[key] = (keys[key] || 0) + 1;
  });
  var duplicatedKeys = Object.keys(keys).filter(function (key) {
    return keys[key] > 1;
  });
  duplicatedKeys.forEach(function (matchKey) {
    // Remove `STATUS_REMOVE` node.
    list = list.filter(function (_ref2) {
      var key = _ref2.key,
        status = _ref2.status;
      return key !== matchKey || status !== STATUS_REMOVE;
    });

    // Update `STATUS_ADD` to `STATUS_KEEP`
    list.forEach(function (node) {
      if (node.key === matchKey) {
        // eslint-disable-next-line no-param-reassign
        node.status = STATUS_KEEP;
      }
    });
  });
  return list;
}
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/CSSMotionList.js









var CSSMotionList_excluded = ["component", "children", "onVisibleChanged", "onAllRemoved"],
  _excluded2 = ["status"];
/* eslint react/prop-types: 0 */




var MOTION_PROP_NAMES = ['eventProps', 'visible', 'children', 'motionName', 'motionAppear', 'motionEnter', 'motionLeave', 'motionLeaveImmediately', 'motionDeadline', 'removeOnLeave', 'leavedClassName', 'onAppearStart', 'onAppearActive', 'onAppearEnd', 'onEnterStart', 'onEnterActive', 'onEnterEnd', 'onLeaveStart', 'onLeaveActive', 'onLeaveEnd'];
/**
 * Generate a CSSMotionList component with config
 * @param transitionSupport No need since CSSMotionList no longer depends on transition support
 * @param CSSMotion CSSMotion component
 */
function genCSSMotionList(transitionSupport) {
  var CSSMotion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : es_CSSMotion;
  var CSSMotionList = /*#__PURE__*/function (_React$Component) {
    (0,inherits/* default */.Z)(CSSMotionList, _React$Component);
    var _super = (0,createSuper/* default */.Z)(CSSMotionList);
    function CSSMotionList() {
      var _this;
      (0,classCallCheck/* default */.Z)(this, CSSMotionList);
      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
        args[_key] = arguments[_key];
      }
      _this = _super.call.apply(_super, [this].concat(args));
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "state", {
        keyEntities: []
      });
      (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "removeKey", function (removeKey) {
        var keyEntities = _this.state.keyEntities;
        var nextKeyEntities = keyEntities.map(function (entity) {
          if (entity.key !== removeKey) return entity;
          return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, entity), {}, {
            status: STATUS_REMOVED
          });
        });
        _this.setState({
          keyEntities: nextKeyEntities
        });
        return nextKeyEntities.filter(function (_ref) {
          var status = _ref.status;
          return status !== STATUS_REMOVED;
        }).length;
      });
      return _this;
    }
    (0,createClass/* default */.Z)(CSSMotionList, [{
      key: "render",
      value: function render() {
        var _this2 = this;
        var keyEntities = this.state.keyEntities;
        var _this$props = this.props,
          component = _this$props.component,
          children = _this$props.children,
          _onVisibleChanged = _this$props.onVisibleChanged,
          onAllRemoved = _this$props.onAllRemoved,
          restProps = (0,objectWithoutProperties/* default */.Z)(_this$props, CSSMotionList_excluded);
        var Component = component || _react_18_2_0_react.Fragment;
        var motionProps = {};
        MOTION_PROP_NAMES.forEach(function (prop) {
          motionProps[prop] = restProps[prop];
          delete restProps[prop];
        });
        delete restProps.keys;
        return /*#__PURE__*/_react_18_2_0_react.createElement(Component, restProps, keyEntities.map(function (_ref2) {
          var status = _ref2.status,
            eventProps = (0,objectWithoutProperties/* default */.Z)(_ref2, _excluded2);
          var visible = status === STATUS_ADD || status === STATUS_KEEP;
          return /*#__PURE__*/_react_18_2_0_react.createElement(CSSMotion, (0,esm_extends/* default */.Z)({}, motionProps, {
            key: eventProps.key,
            visible: visible,
            eventProps: eventProps,
            onVisibleChanged: function onVisibleChanged(changedVisible) {
              _onVisibleChanged === null || _onVisibleChanged === void 0 ? void 0 : _onVisibleChanged(changedVisible, {
                key: eventProps.key
              });
              if (!changedVisible) {
                var restKeysCount = _this2.removeKey(eventProps.key);
                if (restKeysCount === 0 && onAllRemoved) {
                  onAllRemoved();
                }
              }
            }
          }), children);
        }));
      }
    }], [{
      key: "getDerivedStateFromProps",
      value: function getDerivedStateFromProps(_ref3, _ref4) {
        var keys = _ref3.keys;
        var keyEntities = _ref4.keyEntities;
        var parsedKeyObjects = parseKeys(keys);
        var mixedKeyEntities = diffKeys(keyEntities, parsedKeyObjects);
        return {
          keyEntities: mixedKeyEntities.filter(function (entity) {
            var prevEntity = keyEntities.find(function (_ref5) {
              var key = _ref5.key;
              return entity.key === key;
            });

            // Remove if already mark as removed
            if (prevEntity && prevEntity.status === STATUS_REMOVED && entity.status === STATUS_REMOVE) {
              return false;
            }
            return true;
          })
        };
      }

      // ZombieJ: Return the count of rest keys. It's safe to refactor if need more info.
    }]);

    return CSSMotionList;
  }(_react_18_2_0_react.Component);
  (0,defineProperty/* default */.Z)(CSSMotionList, "defaultProps", {
    component: 'div'
  });
  return CSSMotionList;
}
/* harmony default export */ var CSSMotionList = (genCSSMotionList(supportTransition));
;// CONCATENATED MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/index.js




/* harmony default export */ var es = (es_CSSMotion);

/***/ }),

/***/ 3234:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ Notice; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4904);
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(994);
/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4816);
/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5292);
/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8863);
/* harmony import */ var _babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8271);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1162);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7258);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);










var Notice = /*#__PURE__*/function (_Component) {
  (0,_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(Notice, _Component);
  var _super = (0,_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(Notice);
  function Notice() {
    var _this;
    (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, Notice);
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _super.call.apply(_super, [this].concat(args));
    _this.closeTimer = null;
    _this.close = function (e) {
      if (e) {
        e.stopPropagation();
      }
      _this.clearCloseTimer();
      var _this$props = _this.props,
        onClose = _this$props.onClose,
        noticeKey = _this$props.noticeKey;
      if (onClose) {
        onClose(noticeKey);
      }
    };
    _this.startCloseTimer = function () {
      if (_this.props.duration) {
        _this.closeTimer = window.setTimeout(function () {
          _this.close();
        }, _this.props.duration * 1000);
      }
    };
    _this.clearCloseTimer = function () {
      if (_this.closeTimer) {
        clearTimeout(_this.closeTimer);
        _this.closeTimer = null;
      }
    };
    return _this;
  }
  (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(Notice, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.startCloseTimer();
    }
  }, {
    key: "componentDidUpdate",
    value: function componentDidUpdate(prevProps) {
      if (this.props.duration !== prevProps.duration || this.props.updateMark !== prevProps.updateMark ||
      // Visible again need reset timer
      this.props.visible !== prevProps.visible && this.props.visible) {
        this.restartCloseTimer();
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.clearCloseTimer();
    }
  }, {
    key: "restartCloseTimer",
    value: function restartCloseTimer() {
      this.clearCloseTimer();
      this.startCloseTimer();
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;
      var _this$props2 = this.props,
        prefixCls = _this$props2.prefixCls,
        className = _this$props2.className,
        closable = _this$props2.closable,
        closeIcon = _this$props2.closeIcon,
        style = _this$props2.style,
        onClick = _this$props2.onClick,
        children = _this$props2.children,
        holder = _this$props2.holder;
      var componentClass = "".concat(prefixCls, "-notice");
      var dataOrAriaAttributeProps = Object.keys(this.props).reduce(function (acc, key) {
        if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') {
          acc[key] = _this2.props[key];
        }
        return acc;
      }, {});
      var node = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({
        className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(componentClass, className, (0,_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({}, "".concat(componentClass, "-closable"), closable)),
        style: style,
        onMouseEnter: this.clearCloseTimer,
        onMouseLeave: this.startCloseTimer,
        onClick: onClick
      }, dataOrAriaAttributeProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", {
        className: "".concat(componentClass, "-content")
      }, children), closable ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", {
        tabIndex: 0,
        onClick: this.close,
        className: "".concat(componentClass, "-close")
      }, closeIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", {
        className: "".concat(componentClass, "-close-x")
      })) : null);
      if (holder) {
        return /*#__PURE__*/react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal(node, holder);
      }
      return node;
    }
  }]);
  return Notice;
}(react__WEBPACK_IMPORTED_MODULE_0__.Component);
Notice.defaultProps = {
  onClose: function onClose() {},
  duration: 1.5
};


/***/ }),

/***/ 1023:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _rc_notification_4_6_1_rc_notification_es; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(9686);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4904);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(4816);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(5292);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(8863);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(8271);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_rc-util@5.33.0@rc-util/es/React/render.js
var render = __webpack_require__(471);
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
var _classnames_2_3_2_classnames = __webpack_require__(7258);
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
// EXTERNAL MODULE: ./node_modules/_rc-motion@2.7.3@rc-motion/es/index.js + 12 modules
var es = __webpack_require__(158);
// EXTERNAL MODULE: ./node_modules/_rc-notification@4.6.1@rc-notification/es/Notice.js
var Notice = __webpack_require__(3234);
// EXTERNAL MODULE: ./node_modules/_rc-notification@4.6.1@rc-notification/es/useNotification.js
var es_useNotification = __webpack_require__(5065);
;// CONCATENATED MODULE: ./node_modules/_rc-notification@4.6.1@rc-notification/es/Notification.js







var _excluded = ["getContainer"];







var seed = 0;
var now = Date.now();
function getUuid() {
  var id = seed;
  seed += 1;
  return "rcNotification_".concat(now, "_").concat(id);
}
var Notification = /*#__PURE__*/function (_Component) {
  (0,inherits/* default */.Z)(Notification, _Component);
  var _super = (0,createSuper/* default */.Z)(Notification);
  function Notification() {
    var _this;
    (0,classCallCheck/* default */.Z)(this, Notification);
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _super.call.apply(_super, [this].concat(args));
    _this.state = {
      notices: []
    };
    _this.hookRefs = new Map();
    _this.add = function (originNotice, holderCallback) {
      var _originNotice$key;
      var key = (_originNotice$key = originNotice.key) !== null && _originNotice$key !== void 0 ? _originNotice$key : getUuid();
      var notice = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, originNotice), {}, {
        key: key
      });
      var maxCount = _this.props.maxCount;
      _this.setState(function (previousState) {
        var notices = previousState.notices;
        var noticeIndex = notices.map(function (v) {
          return v.notice.key;
        }).indexOf(key);
        var updatedNotices = notices.concat();
        if (noticeIndex !== -1) {
          updatedNotices.splice(noticeIndex, 1, {
            notice: notice,
            holderCallback: holderCallback
          });
        } else {
          if (maxCount && notices.length >= maxCount) {
            // XXX, use key of first item to update new added (let React to move exsiting
            // instead of remove and mount). Same key was used before for both a) external
            // manual control and b) internal react 'key' prop , which is not that good.
            // eslint-disable-next-line no-param-reassign
            // zombieJ: Not know why use `updateKey`. This makes Notice infinite loop in jest.
            // Change to `updateMark` for compare instead.
            // https://github.com/react-component/notification/commit/32299e6be396f94040bfa82517eea940db947ece
            notice.key = updatedNotices[0].notice.key;
            notice.updateMark = getUuid();
            // zombieJ: That's why. User may close by key directly.
            // We need record this but not re-render to avoid upper issue
            // https://github.com/react-component/notification/issues/129
            notice.userPassKey = key;
            updatedNotices.shift();
          }
          updatedNotices.push({
            notice: notice,
            holderCallback: holderCallback
          });
        }
        return {
          notices: updatedNotices
        };
      });
    };
    _this.remove = function (removeKey) {
      _this.setState(function (_ref) {
        var notices = _ref.notices;
        return {
          notices: notices.filter(function (_ref2) {
            var _ref2$notice = _ref2.notice,
              key = _ref2$notice.key,
              userPassKey = _ref2$notice.userPassKey;
            var mergedKey = userPassKey !== null && userPassKey !== void 0 ? userPassKey : key;
            return mergedKey !== removeKey;
          })
        };
      });
    };
    _this.noticePropsMap = {};
    return _this;
  }
  (0,createClass/* default */.Z)(Notification, [{
    key: "getTransitionName",
    value: function getTransitionName() {
      var _this$props = this.props,
        prefixCls = _this$props.prefixCls,
        animation = _this$props.animation;
      var transitionName = this.props.transitionName;
      if (!transitionName && animation) {
        transitionName = "".concat(prefixCls, "-").concat(animation);
      }
      return transitionName;
    }
  }, {
    key: "render",
    value: function render() {
      var _this2 = this;
      var notices = this.state.notices;
      var _this$props2 = this.props,
        prefixCls = _this$props2.prefixCls,
        className = _this$props2.className,
        closeIcon = _this$props2.closeIcon,
        style = _this$props2.style;
      var noticeKeys = [];
      notices.forEach(function (_ref3, index) {
        var notice = _ref3.notice,
          holderCallback = _ref3.holderCallback;
        var updateMark = index === notices.length - 1 ? notice.updateMark : undefined;
        var key = notice.key,
          userPassKey = notice.userPassKey;
        var noticeProps = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({
          prefixCls: prefixCls,
          closeIcon: closeIcon
        }, notice), notice.props), {}, {
          key: key,
          noticeKey: userPassKey || key,
          updateMark: updateMark,
          onClose: function onClose(noticeKey) {
            var _notice$onClose;
            _this2.remove(noticeKey);
            (_notice$onClose = notice.onClose) === null || _notice$onClose === void 0 ? void 0 : _notice$onClose.call(notice);
          },
          onClick: notice.onClick,
          children: notice.content
        });
        // Give to motion
        noticeKeys.push(key);
        _this2.noticePropsMap[key] = {
          props: noticeProps,
          holderCallback: holderCallback
        };
      });
      return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
        className: _classnames_2_3_2_classnames_default()(prefixCls, className),
        style: style
      }, /*#__PURE__*/_react_18_2_0_react.createElement(es/* CSSMotionList */.V4, {
        keys: noticeKeys,
        motionName: this.getTransitionName(),
        onVisibleChanged: function onVisibleChanged(changedVisible, _ref4) {
          var key = _ref4.key;
          if (!changedVisible) {
            delete _this2.noticePropsMap[key];
          }
        }
      }, function (_ref5) {
        var key = _ref5.key,
          motionClassName = _ref5.className,
          motionStyle = _ref5.style,
          visible = _ref5.visible;
        var _this2$noticePropsMap = _this2.noticePropsMap[key],
          noticeProps = _this2$noticePropsMap.props,
          holderCallback = _this2$noticePropsMap.holderCallback;
        if (holderCallback) {
          return /*#__PURE__*/_react_18_2_0_react.createElement("div", {
            key: key,
            className: _classnames_2_3_2_classnames_default()(motionClassName, "".concat(prefixCls, "-hook-holder")),
            style: (0,objectSpread2/* default */.Z)({}, motionStyle),
            ref: function ref(div) {
              if (typeof key === 'undefined') {
                return;
              }
              if (div) {
                _this2.hookRefs.set(key, div);
                holderCallback(div, noticeProps);
              } else {
                _this2.hookRefs.delete(key);
              }
            }
          });
        }
        return /*#__PURE__*/_react_18_2_0_react.createElement(Notice/* default */.Z, (0,esm_extends/* default */.Z)({}, noticeProps, {
          className: _classnames_2_3_2_classnames_default()(motionClassName, noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.className),
          style: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, motionStyle), noticeProps === null || noticeProps === void 0 ? void 0 : noticeProps.style),
          visible: visible
        }));
      }));
    }
  }]);
  return Notification;
}(_react_18_2_0_react.Component);
Notification.newInstance = void 0;
Notification.defaultProps = {
  prefixCls: 'rc-notification',
  animation: 'fade',
  style: {
    top: 65,
    left: '50%'
  }
};
Notification.newInstance = function newNotificationInstance(properties, callback) {
  var _ref6 = properties || {},
    getContainer = _ref6.getContainer,
    props = (0,objectWithoutProperties/* default */.Z)(_ref6, _excluded);
  var div = document.createElement('div');
  if (getContainer) {
    var root = getContainer();
    root.appendChild(div);
  } else {
    document.body.appendChild(div);
  }
  var called = false;
  function ref(notification) {
    if (called) {
      return;
    }
    called = true;
    callback({
      notice: function notice(noticeProps) {
        notification.add(noticeProps);
      },
      removeNotice: function removeNotice(key) {
        notification.remove(key);
      },
      component: notification,
      destroy: function destroy() {
        (0,render/* unmount */.v)(div);
        if (div.parentNode) {
          div.parentNode.removeChild(div);
        }
      },
      // Hooks
      useNotification: function useNotification() {
        return (0,es_useNotification/* default */.Z)(notification);
      }
    });
  }
  // Only used for test case usage
  if (false) {}
  (0,render/* render */.s)( /*#__PURE__*/_react_18_2_0_react.createElement(Notification, (0,esm_extends/* default */.Z)({}, props, {
    ref: ref
  })), div);
};
/* harmony default export */ var es_Notification = (Notification);
;// CONCATENATED MODULE: ./node_modules/_rc-notification@4.6.1@rc-notification/es/index.js

/* harmony default export */ var _rc_notification_4_6_1_rc_notification_es = (es_Notification);

/***/ }),

/***/ 5065:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ useNotification; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(372);
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4904);
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8935);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);
/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3234);





function useNotification(notificationInstance) {
  var createdRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef({});
  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState([]),
    _React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_React$useState, 2),
    elements = _React$useState2[0],
    setElements = _React$useState2[1];
  function notify(noticeProps) {
    var firstMount = true;
    notificationInstance.add(noticeProps, function (div, props) {
      var key = props.key;
      if (div && (!createdRef.current[key] || firstMount)) {
        var noticeEle = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Notice__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({}, props, {
          holder: div
        }));
        createdRef.current[key] = noticeEle;
        setElements(function (originElements) {
          var index = originElements.findIndex(function (ele) {
            return ele.key === props.key;
          });
          if (index === -1) {
            return [].concat((0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(originElements), [noticeEle]);
          }
          var cloneList = (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(originElements);
          cloneList[index] = noticeEle;
          return cloneList;
        });
      }
      firstMount = false;
    });
  }
  return [notify, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, elements)];
}

/***/ }),

/***/ 5075:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ toArray; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4436);


function toArray(children) {
  var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var ret = [];
  react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, function (child) {
    if ((child === undefined || child === null) && !option.keepEmpty) {
      return;
    }
    if (Array.isArray(child)) {
      ret = ret.concat(toArray(child));
    } else if ((0,react_is__WEBPACK_IMPORTED_MODULE_1__.isFragment)(child) && child.props) {
      ret = ret.concat(toArray(child.props.children, option));
    } else {
      ret.push(child);
    }
  });
  return ret;
}

/***/ }),

/***/ 6665:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ canUseDom; }
/* harmony export */ });
function canUseDom() {
  return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
}

/***/ }),

/***/ 9424:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ contains; }
/* harmony export */ });
function contains(root, n) {
  if (!root) {
    return false;
  }

  // Use native if support
  if (root.contains) {
    return root.contains(n);
  }

  // `document.contains` not support with IE11
  var node = n;
  while (node) {
    if (node === root) {
      return true;
    }
    node = node.parentNode;
  }
  return false;
}

/***/ }),

/***/ 7344:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   hq: function() { return /* binding */ updateCSS; },
/* harmony export */   jL: function() { return /* binding */ removeCSS; }
/* harmony export */ });
/* unused harmony exports injectCSS, clearContainerCache */
/* harmony import */ var _canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6665);
/* harmony import */ var _contains__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9424);


var APPEND_ORDER = 'data-rc-order';
var MARK_KEY = "rc-util-key";
var containerCache = new Map();
function getMark() {
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
    mark = _ref.mark;
  if (mark) {
    return mark.startsWith('data-') ? mark : "data-".concat(mark);
  }
  return MARK_KEY;
}
function getContainer(option) {
  if (option.attachTo) {
    return option.attachTo;
  }
  var head = document.querySelector('head');
  return head || document.body;
}
function getOrder(prepend) {
  if (prepend === 'queue') {
    return 'prependQueue';
  }
  return prepend ? 'prepend' : 'append';
}

/**
 * Find style which inject by rc-util
 */
function findStyles(container) {
  return Array.from((containerCache.get(container) || container).children).filter(function (node) {
    return node.tagName === 'STYLE';
  });
}
function injectCSS(css) {
  var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  if (!(0,_canUseDom__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)()) {
    return null;
  }
  var csp = option.csp,
    prepend = option.prepend;
  var styleNode = document.createElement('style');
  styleNode.setAttribute(APPEND_ORDER, getOrder(prepend));
  if (csp !== null && csp !== void 0 && csp.nonce) {
    styleNode.nonce = csp === null || csp === void 0 ? void 0 : csp.nonce;
  }
  styleNode.innerHTML = css;
  var container = getContainer(option);
  var firstChild = container.firstChild;
  if (prepend) {
    // If is queue `prepend`, it will prepend first style and then append rest style
    if (prepend === 'queue') {
      var existStyle = findStyles(container).filter(function (node) {
        return ['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER));
      });
      if (existStyle.length) {
        container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
        return styleNode;
      }
    }

    // Use `insertBefore` as `prepend`
    container.insertBefore(styleNode, firstChild);
  } else {
    container.appendChild(styleNode);
  }
  return styleNode;
}
function findExistNode(key) {
  var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var container = getContainer(option);
  return findStyles(container).find(function (node) {
    return node.getAttribute(getMark(option)) === key;
  });
}
function removeCSS(key) {
  var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var existNode = findExistNode(key, option);
  if (existNode) {
    var container = getContainer(option);
    container.removeChild(existNode);
  }
}

/**
 * qiankun will inject `appendChild` to insert into other
 */
function syncRealContainer(container, option) {
  var cachedRealContainer = containerCache.get(container);

  // Find real container when not cached or cached container removed
  if (!cachedRealContainer || !(0,_contains__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(document, cachedRealContainer)) {
    var placeholderStyle = injectCSS('', option);
    var parentNode = placeholderStyle.parentNode;
    containerCache.set(container, parentNode);
    container.removeChild(placeholderStyle);
  }
}

/**
 * manually clear container cache to avoid global cache in unit testes
 */
function clearContainerCache() {
  containerCache.clear();
}
function updateCSS(css, key) {
  var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  var container = getContainer(option);

  // Sync real parent
  syncRealContainer(container, option);
  var existNode = findExistNode(key, option);
  if (existNode) {
    var _option$csp, _option$csp2;
    if ((_option$csp = option.csp) !== null && _option$csp !== void 0 && _option$csp.nonce && existNode.nonce !== ((_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce)) {
      var _option$csp3;
      existNode.nonce = (_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce;
    }
    if (existNode.innerHTML !== css) {
      existNode.innerHTML = css;
    }
    return existNode;
  }
  var newNode = injectCSS(css, option);
  newNode.setAttribute(getMark(option), key);
  return newNode;
}

/***/ }),

/***/ 331:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ findDOMNode; }
/* harmony export */ });
/* unused harmony export isDOM */
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1162);


function isDOM(node) {
  // https://developer.mozilla.org/en-US/docs/Web/API/Element
  // Since XULElement is also subclass of Element, we only need HTMLElement and SVGElement
  return node instanceof HTMLElement || node instanceof SVGElement;
}

/**
 * Return if a node is a DOM node. Else will return by `findDOMNode`
 */
function findDOMNode(node) {
  if (isDOM(node)) {
    return node;
  }
  if (node instanceof react__WEBPACK_IMPORTED_MODULE_0__.Component) {
    return react_dom__WEBPACK_IMPORTED_MODULE_1__.findDOMNode(node);
  }
  return null;
}

/***/ }),

/***/ 9202:
/***/ (function(__unused_webpack_module, __webpack_exports__) {

"use strict";
/**
 * @ignore
 * some key-codes definition and utils from closure-library
 * @author yiminghe@gmail.com
 */

var KeyCode = {
  /**
   * MAC_ENTER
   */
  MAC_ENTER: 3,
  /**
   * BACKSPACE
   */
  BACKSPACE: 8,
  /**
   * TAB
   */
  TAB: 9,
  /**
   * NUMLOCK on FF/Safari Mac
   */
  NUM_CENTER: 12,
  // NUMLOCK on FF/Safari Mac
  /**
   * ENTER
   */
  ENTER: 13,
  /**
   * SHIFT
   */
  SHIFT: 16,
  /**
   * CTRL
   */
  CTRL: 17,
  /**
   * ALT
   */
  ALT: 18,
  /**
   * PAUSE
   */
  PAUSE: 19,
  /**
   * CAPS_LOCK
   */
  CAPS_LOCK: 20,
  /**
   * ESC
   */
  ESC: 27,
  /**
   * SPACE
   */
  SPACE: 32,
  /**
   * PAGE_UP
   */
  PAGE_UP: 33,
  // also NUM_NORTH_EAST
  /**
   * PAGE_DOWN
   */
  PAGE_DOWN: 34,
  // also NUM_SOUTH_EAST
  /**
   * END
   */
  END: 35,
  // also NUM_SOUTH_WEST
  /**
   * HOME
   */
  HOME: 36,
  // also NUM_NORTH_WEST
  /**
   * LEFT
   */
  LEFT: 37,
  // also NUM_WEST
  /**
   * UP
   */
  UP: 38,
  // also NUM_NORTH
  /**
   * RIGHT
   */
  RIGHT: 39,
  // also NUM_EAST
  /**
   * DOWN
   */
  DOWN: 40,
  // also NUM_SOUTH
  /**
   * PRINT_SCREEN
   */
  PRINT_SCREEN: 44,
  /**
   * INSERT
   */
  INSERT: 45,
  // also NUM_INSERT
  /**
   * DELETE
   */
  DELETE: 46,
  // also NUM_DELETE
  /**
   * ZERO
   */
  ZERO: 48,
  /**
   * ONE
   */
  ONE: 49,
  /**
   * TWO
   */
  TWO: 50,
  /**
   * THREE
   */
  THREE: 51,
  /**
   * FOUR
   */
  FOUR: 52,
  /**
   * FIVE
   */
  FIVE: 53,
  /**
   * SIX
   */
  SIX: 54,
  /**
   * SEVEN
   */
  SEVEN: 55,
  /**
   * EIGHT
   */
  EIGHT: 56,
  /**
   * NINE
   */
  NINE: 57,
  /**
   * QUESTION_MARK
   */
  QUESTION_MARK: 63,
  // needs localization
  /**
   * A
   */
  A: 65,
  /**
   * B
   */
  B: 66,
  /**
   * C
   */
  C: 67,
  /**
   * D
   */
  D: 68,
  /**
   * E
   */
  E: 69,
  /**
   * F
   */
  F: 70,
  /**
   * G
   */
  G: 71,
  /**
   * H
   */
  H: 72,
  /**
   * I
   */
  I: 73,
  /**
   * J
   */
  J: 74,
  /**
   * K
   */
  K: 75,
  /**
   * L
   */
  L: 76,
  /**
   * M
   */
  M: 77,
  /**
   * N
   */
  N: 78,
  /**
   * O
   */
  O: 79,
  /**
   * P
   */
  P: 80,
  /**
   * Q
   */
  Q: 81,
  /**
   * R
   */
  R: 82,
  /**
   * S
   */
  S: 83,
  /**
   * T
   */
  T: 84,
  /**
   * U
   */
  U: 85,
  /**
   * V
   */
  V: 86,
  /**
   * W
   */
  W: 87,
  /**
   * X
   */
  X: 88,
  /**
   * Y
   */
  Y: 89,
  /**
   * Z
   */
  Z: 90,
  /**
   * META
   */
  META: 91,
  // WIN_KEY_LEFT
  /**
   * WIN_KEY_RIGHT
   */
  WIN_KEY_RIGHT: 92,
  /**
   * CONTEXT_MENU
   */
  CONTEXT_MENU: 93,
  /**
   * NUM_ZERO
   */
  NUM_ZERO: 96,
  /**
   * NUM_ONE
   */
  NUM_ONE: 97,
  /**
   * NUM_TWO
   */
  NUM_TWO: 98,
  /**
   * NUM_THREE
   */
  NUM_THREE: 99,
  /**
   * NUM_FOUR
   */
  NUM_FOUR: 100,
  /**
   * NUM_FIVE
   */
  NUM_FIVE: 101,
  /**
   * NUM_SIX
   */
  NUM_SIX: 102,
  /**
   * NUM_SEVEN
   */
  NUM_SEVEN: 103,
  /**
   * NUM_EIGHT
   */
  NUM_EIGHT: 104,
  /**
   * NUM_NINE
   */
  NUM_NINE: 105,
  /**
   * NUM_MULTIPLY
   */
  NUM_MULTIPLY: 106,
  /**
   * NUM_PLUS
   */
  NUM_PLUS: 107,
  /**
   * NUM_MINUS
   */
  NUM_MINUS: 109,
  /**
   * NUM_PERIOD
   */
  NUM_PERIOD: 110,
  /**
   * NUM_DIVISION
   */
  NUM_DIVISION: 111,
  /**
   * F1
   */
  F1: 112,
  /**
   * F2
   */
  F2: 113,
  /**
   * F3
   */
  F3: 114,
  /**
   * F4
   */
  F4: 115,
  /**
   * F5
   */
  F5: 116,
  /**
   * F6
   */
  F6: 117,
  /**
   * F7
   */
  F7: 118,
  /**
   * F8
   */
  F8: 119,
  /**
   * F9
   */
  F9: 120,
  /**
   * F10
   */
  F10: 121,
  /**
   * F11
   */
  F11: 122,
  /**
   * F12
   */
  F12: 123,
  /**
   * NUMLOCK
   */
  NUMLOCK: 144,
  /**
   * SEMICOLON
   */
  SEMICOLON: 186,
  // needs localization
  /**
   * DASH
   */
  DASH: 189,
  // needs localization
  /**
   * EQUALS
   */
  EQUALS: 187,
  // needs localization
  /**
   * COMMA
   */
  COMMA: 188,
  // needs localization
  /**
   * PERIOD
   */
  PERIOD: 190,
  // needs localization
  /**
   * SLASH
   */
  SLASH: 191,
  // needs localization
  /**
   * APOSTROPHE
   */
  APOSTROPHE: 192,
  // needs localization
  /**
   * SINGLE_QUOTE
   */
  SINGLE_QUOTE: 222,
  // needs localization
  /**
   * OPEN_SQUARE_BRACKET
   */
  OPEN_SQUARE_BRACKET: 219,
  // needs localization
  /**
   * BACKSLASH
   */
  BACKSLASH: 220,
  // needs localization
  /**
   * CLOSE_SQUARE_BRACKET
   */
  CLOSE_SQUARE_BRACKET: 221,
  // needs localization
  /**
   * WIN_KEY
   */
  WIN_KEY: 224,
  /**
   * MAC_FF_META
   */
  MAC_FF_META: 224,
  // Firefox (Gecko) fires this for the meta key instead of 91
  /**
   * WIN_IME
   */
  WIN_IME: 229,
  // ======================== Function ========================
  /**
   * whether text and modified key is entered at the same time.
   */
  isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {
    var keyCode = e.keyCode;
    if (e.altKey && !e.ctrlKey || e.metaKey ||
    // Function keys don't generate text
    keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
      return false;
    }

    // The following keys are quite harmless, even in combination with
    // CTRL, ALT or SHIFT.
    switch (keyCode) {
      case KeyCode.ALT:
      case KeyCode.CAPS_LOCK:
      case KeyCode.CONTEXT_MENU:
      case KeyCode.CTRL:
      case KeyCode.DOWN:
      case KeyCode.END:
      case KeyCode.ESC:
      case KeyCode.HOME:
      case KeyCode.INSERT:
      case KeyCode.LEFT:
      case KeyCode.MAC_FF_META:
      case KeyCode.META:
      case KeyCode.NUMLOCK:
      case KeyCode.NUM_CENTER:
      case KeyCode.PAGE_DOWN:
      case KeyCode.PAGE_UP:
      case KeyCode.PAUSE:
      case KeyCode.PRINT_SCREEN:
      case KeyCode.RIGHT:
      case KeyCode.SHIFT:
      case KeyCode.UP:
      case KeyCode.WIN_KEY:
      case KeyCode.WIN_KEY_RIGHT:
        return false;
      default:
        return true;
    }
  },
  /**
   * whether character is entered.
   */
  isCharacterKey: function isCharacterKey(keyCode) {
    if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
      return true;
    }
    if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
      return true;
    }
    if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
      return true;
    }

    // Safari sends zero key code for non-latin characters.
    if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
      return true;
    }
    switch (keyCode) {
      case KeyCode.SPACE:
      case KeyCode.QUESTION_MARK:
      case KeyCode.NUM_PLUS:
      case KeyCode.NUM_MINUS:
      case KeyCode.NUM_PERIOD:
      case KeyCode.NUM_DIVISION:
      case KeyCode.SEMICOLON:
      case KeyCode.DASH:
      case KeyCode.EQUALS:
      case KeyCode.COMMA:
      case KeyCode.PERIOD:
      case KeyCode.SLASH:
      case KeyCode.APOSTROPHE:
      case KeyCode.SINGLE_QUOTE:
      case KeyCode.OPEN_SQUARE_BRACKET:
      case KeyCode.BACKSLASH:
      case KeyCode.CLOSE_SQUARE_BRACKET:
        return true;
      default:
        return false;
    }
  }
};
/* harmony default export */ __webpack_exports__.Z = (KeyCode);

/***/ }),

/***/ 471:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
var react_dom__WEBPACK_IMPORTED_MODULE_0___namespace_cache;
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   s: function() { return /* binding */ render; },
/* harmony export */   v: function() { return /* binding */ unmount; }
/* harmony export */ });
/* unused harmony exports _r, _u */
/* harmony import */ var _babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7921);
/* harmony import */ var _babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2171);
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2782);
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2648);
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1162);





// Let compiler not to search module usage
var fullClone = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({}, /*#__PURE__*/ (react_dom__WEBPACK_IMPORTED_MODULE_0___namespace_cache || (react_dom__WEBPACK_IMPORTED_MODULE_0___namespace_cache = __webpack_require__.t(react_dom__WEBPACK_IMPORTED_MODULE_0__, 2))));
var version = fullClone.version,
  reactRender = fullClone.render,
  unmountComponentAtNode = fullClone.unmountComponentAtNode;
var createRoot;
try {
  var mainVersion = Number((version || '').split('.')[0]);
  if (mainVersion >= 18) {
    createRoot = fullClone.createRoot;
  }
} catch (e) {
  // Do nothing;
}
function toggleWarning(skip) {
  var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && (0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === 'object') {
    __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
  }
}
var MARK = '__rc_react_root__';

// ========================== Render ==========================

function modernRender(node, container) {
  toggleWarning(true);
  var root = container[MARK] || createRoot(container);
  toggleWarning(false);
  root.render(node);
  container[MARK] = root;
}
function legacyRender(node, container) {
  reactRender(node, container);
}

/** @private Test usage. Not work in prod */
function _r(node, container) {
  if (false) {}
}
function render(node, container) {
  if (createRoot) {
    modernRender(node, container);
    return;
  }
  legacyRender(node, container);
}

// ========================= Unmount ==========================
function modernUnmount(_x) {
  return _modernUnmount.apply(this, arguments);
}
function _modernUnmount() {
  _modernUnmount = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)().mark(function _callee(container) {
    return (0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          return _context.abrupt("return", Promise.resolve().then(function () {
            var _container$MARK;
            (_container$MARK = container[MARK]) === null || _container$MARK === void 0 ? void 0 : _container$MARK.unmount();
            delete container[MARK];
          }));
        case 1:
        case "end":
          return _context.stop();
      }
    }, _callee);
  }));
  return _modernUnmount.apply(this, arguments);
}
function legacyUnmount(container) {
  unmountComponentAtNode(container);
}

/** @private Test usage. Not work in prod */
function _u(container) {
  if (false) {}
}
function unmount(_x2) {
  return _unmount.apply(this, arguments);
}
function _unmount() {
  _unmount = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)().mark(function _callee2(container) {
    return (0,_babel_runtime_helpers_esm_regeneratorRuntime__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
      while (1) switch (_context2.prev = _context2.next) {
        case 0:
          if (!(createRoot !== undefined)) {
            _context2.next = 2;
            break;
          }
          return _context2.abrupt("return", modernUnmount(container));
        case 2:
          legacyUnmount(container);
        case 3:
        case "end":
          return _context2.stop();
      }
    }, _callee2);
  }));
  return _unmount.apply(this, arguments);
}

/***/ }),

/***/ 5055:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ useEvent; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);

function useEvent(callback) {
  var fnRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef();
  fnRef.current = callback;
  var memoFn = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function () {
    var _fnRef$current;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
  }, []);
  return memoFn;
}

/***/ }),

/***/ 3616:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   o: function() { return /* binding */ useLayoutUpdateEffect; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);
/* harmony import */ var _Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6665);



/**
 * Wrap `React.useLayoutEffect` which will not throw warning message in test env
 */
var useInternalLayoutEffect =  true && (0,_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)() ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect;
var useLayoutEffect = function useLayoutEffect(callback, deps) {
  var firstMountRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(true);
  useInternalLayoutEffect(function () {
    return callback(firstMountRef.current);
  }, deps);

  // We tell react that first mount has passed
  useInternalLayoutEffect(function () {
    firstMountRef.current = false;
    return function () {
      firstMountRef.current = true;
    };
  }, []);
};
var useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
  useLayoutEffect(function (firstMount) {
    if (!firstMount) {
      return callback();
    }
  }, deps);
};
/* harmony default export */ __webpack_exports__.Z = (useLayoutEffect);

/***/ }),

/***/ 5404:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ useMemo; }
/* harmony export */ });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);

function useMemo(getValue, condition, shouldUpdate) {
  var cacheRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef({});
  if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
    cacheRef.current.value = getValue();
    cacheRef.current.condition = condition;
  }
  return cacheRef.current.value;
}

/***/ }),

/***/ 5117:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ useMergedState; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8935);
/* harmony import */ var _useEvent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5055);
/* harmony import */ var _useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3616);
/* harmony import */ var _useState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5458);




/** We only think `undefined` is empty */
function hasValue(value) {
  return value !== undefined;
}

/**
 * Similar to `useState` but will use props value if provided.
 * Note that internal use rc-util `useState` hook.
 */
function useMergedState(defaultStateValue, option) {
  var _ref = option || {},
    defaultValue = _ref.defaultValue,
    value = _ref.value,
    onChange = _ref.onChange,
    postState = _ref.postState;

  // ======================= Init =======================
  var _useState = (0,_useState__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(function () {
      if (hasValue(value)) {
        return value;
      } else if (hasValue(defaultValue)) {
        return typeof defaultValue === 'function' ? defaultValue() : defaultValue;
      } else {
        return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
      }
    }),
    _useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_useState, 2),
    innerValue = _useState2[0],
    setInnerValue = _useState2[1];
  var mergedValue = value !== undefined ? value : innerValue;
  var postMergedValue = postState ? postState(mergedValue) : mergedValue;

  // ====================== Change ======================
  var onChangeFn = (0,_useEvent__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(onChange);
  var _useState3 = (0,_useState__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)([mergedValue]),
    _useState4 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_useState3, 2),
    prevValue = _useState4[0],
    setPrevValue = _useState4[1];
  (0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutUpdateEffect */ .o)(function () {
    var prev = prevValue[0];
    if (innerValue !== prev) {
      onChangeFn(innerValue, prev);
    }
  }, [prevValue]);

  // Sync value back to `undefined` when it from control to un-control
  (0,_useLayoutEffect__WEBPACK_IMPORTED_MODULE_1__/* .useLayoutUpdateEffect */ .o)(function () {
    if (!hasValue(value)) {
      setInnerValue(value);
    }
  }, [value]);

  // ====================== Update ======================
  var triggerChange = (0,_useEvent__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(function (updater, ignoreDestroy) {
    setInnerValue(updater, ignoreDestroy);
    setPrevValue([mergedValue], ignoreDestroy);
  });
  return [postMergedValue, triggerChange];
}

/***/ }),

/***/ 5458:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ useSafeState; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8935);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9512);


/**
 * Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
 * We do not make this auto is to avoid real memory leak.
 * Developer should confirm it's safe to ignore themselves.
 */
function useSafeState(defaultValue) {
  var destroyRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false);
  var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__.useState(defaultValue),
    _React$useState2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_React$useState, 2),
    value = _React$useState2[0],
    setValue = _React$useState2[1];
  react__WEBPACK_IMPORTED_MODULE_0__.useEffect(function () {
    destroyRef.current = false;
    return function () {
      destroyRef.current = true;
    };
  }, []);
  function safeSetState(updater, ignoreDestroy) {
    if (ignoreDestroy && destroyRef.current) {
      return;
    }
    setValue(updater);
  }
  return [value, safeSetState];
}

/***/ }),

/***/ 9287:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ omit; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2648);

function omit(obj, fields) {
  var clone = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, obj);
  if (Array.isArray(fields)) {
    fields.forEach(function (key) {
      delete clone[key];
    });
  }
  return clone;
}

/***/ }),

/***/ 766:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ pickAttrs; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2648);

var attributes = "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";
var eventsName = "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";
var propList = "".concat(attributes, " ").concat(eventsName).split(/[\s\n]+/);

/* eslint-enable max-len */
var ariaPrefix = 'aria-';
var dataPrefix = 'data-';
function match(key, prefix) {
  return key.indexOf(prefix) === 0;
}
/**
 * Picker props from exist props with filter
 * @param props Passed props
 * @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
 */
function pickAttrs(props) {
  var ariaOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  var mergedConfig;
  if (ariaOnly === false) {
    mergedConfig = {
      aria: true,
      data: true,
      attr: true
    };
  } else if (ariaOnly === true) {
    mergedConfig = {
      aria: true
    };
  } else {
    mergedConfig = (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({}, ariaOnly);
  }
  var attrs = {};
  Object.keys(props).forEach(function (key) {
    if (
    // Aria
    mergedConfig.aria && (key === 'role' || match(key, ariaPrefix)) ||
    // Data
    mergedConfig.data && match(key, dataPrefix) ||
    // Attr
    mergedConfig.attr && propList.includes(key)) {
      attrs[key] = props[key];
    }
  });
  return attrs;
}

/***/ }),

/***/ 9906:
/***/ (function(__unused_webpack_module, __webpack_exports__) {

"use strict";
var raf = function raf(callback) {
  return +setTimeout(callback, 16);
};
var caf = function caf(num) {
  return clearTimeout(num);
};
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
  raf = function raf(callback) {
    return window.requestAnimationFrame(callback);
  };
  caf = function caf(handle) {
    return window.cancelAnimationFrame(handle);
  };
}
var rafUUID = 0;
var rafIds = new Map();
function cleanup(id) {
  rafIds.delete(id);
}
var wrapperRaf = function wrapperRaf(callback) {
  var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
  rafUUID += 1;
  var id = rafUUID;
  function callRef(leftTimes) {
    if (leftTimes === 0) {
      // Clean up
      cleanup(id);

      // Trigger
      callback();
    } else {
      // Next raf
      var realId = raf(function () {
        callRef(leftTimes - 1);
      });

      // Bind real raf id
      rafIds.set(id, realId);
    }
  }
  callRef(times);
  return id;
};
wrapperRaf.cancel = function (id) {
  var realId = rafIds.get(id);
  cleanup(realId);
  return caf(realId);
};
/* harmony default export */ __webpack_exports__.Z = (wrapperRaf);

/***/ }),

/***/ 1212:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Yr: function() { return /* binding */ supportRef; },
/* harmony export */   mH: function() { return /* binding */ fillRef; },
/* harmony export */   sQ: function() { return /* binding */ composeRef; },
/* harmony export */   x1: function() { return /* binding */ useComposeRef; }
/* harmony export */ });
/* harmony import */ var _babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2782);
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4436);
/* harmony import */ var _hooks_useMemo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5404);

/* eslint-disable no-param-reassign */



function fillRef(ref, node) {
  if (typeof ref === 'function') {
    ref(node);
  } else if ((0,_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(ref) === 'object' && ref && 'current' in ref) {
    ref.current = node;
  }
}

/**
 * Merge refs into one ref function to support ref passing.
 */
function composeRef() {
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
    refs[_key] = arguments[_key];
  }
  var refList = refs.filter(function (ref) {
    return ref;
  });
  if (refList.length <= 1) {
    return refList[0];
  }
  return function (node) {
    refs.forEach(function (ref) {
      fillRef(ref, node);
    });
  };
}
function useComposeRef() {
  for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
    refs[_key2] = arguments[_key2];
  }
  return (0,_hooks_useMemo__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(function () {
    return composeRef.apply(void 0, refs);
  }, refs, function (prev, next) {
    return prev.length === next.length && prev.every(function (ref, i) {
      return ref === next[i];
    });
  });
}
function supportRef(nodeOrComponent) {
  var _type$prototype, _nodeOrComponent$prot;
  var type = (0,react_is__WEBPACK_IMPORTED_MODULE_0__.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;

  // Function component node
  if (typeof type === 'function' && !((_type$prototype = type.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render)) {
    return false;
  }

  // Class component
  if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render)) {
    return false;
  }
  return true;
}
/* eslint-enable */

/***/ }),

/***/ 8575:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Kp: function() { return /* binding */ warning; }
/* harmony export */ });
/* unused harmony exports preMessage, note, resetWarned, call, warningOnce, noteOnce */
/* eslint-disable no-console */
var warned = {};
var preWarningFns = [];

/**
 * Pre warning enable you to parse content before console.error.
 * Modify to null will prevent warning.
 */
var preMessage = function preMessage(fn) {
  preWarningFns.push(fn);
};
function warning(valid, message) {
  // Support uglify
  if (false) { var finalMessage; }
}
function note(valid, message) {
  // Support uglify
  if (false) { var finalMessage; }
}
function resetWarned() {
  warned = {};
}
function call(method, valid, message) {
  if (!valid && !warned[message]) {
    method(false, message);
    warned[message] = true;
  }
}
function warningOnce(valid, message) {
  call(warning, valid, message);
}
function noteOnce(valid, message) {
  call(note, valid, message);
}
warningOnce.preMessage = preMessage;
warningOnce.resetWarned = resetWarned;
warningOnce.noteOnce = noteOnce;
/* harmony default export */ __webpack_exports__.ZP = (warningOnce);
/* eslint-enable */

/***/ }),

/***/ 5478:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
/*
 Modernizr 3.0.0pre (Custom Build) | MIT
*/


var aa = __webpack_require__(9512),
  ca = __webpack_require__(4086);
function p(a) {
  for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
  return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
var da = new Set(),
  ea = {};
function fa(a, b) {
  ha(a, b);
  ha(a + "Capture", b);
}
function ha(a, b) {
  ea[a] = b;
  for (a = 0; a < b.length; a++) da.add(b[a]);
}
var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement),
  ja = Object.prototype.hasOwnProperty,
  ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,
  la = {},
  ma = {};
function oa(a) {
  if (ja.call(ma, a)) return !0;
  if (ja.call(la, a)) return !1;
  if (ka.test(a)) return ma[a] = !0;
  la[a] = !0;
  return !1;
}
function pa(a, b, c, d) {
  if (null !== c && 0 === c.type) return !1;
  switch (typeof b) {
    case "function":
    case "symbol":
      return !0;
    case "boolean":
      if (d) return !1;
      if (null !== c) return !c.acceptsBooleans;
      a = a.toLowerCase().slice(0, 5);
      return "data-" !== a && "aria-" !== a;
    default:
      return !1;
  }
}
function qa(a, b, c, d) {
  if (null === b || "undefined" === typeof b || pa(a, b, c, d)) return !0;
  if (d) return !1;
  if (null !== c) switch (c.type) {
    case 3:
      return !b;
    case 4:
      return !1 === b;
    case 5:
      return isNaN(b);
    case 6:
      return isNaN(b) || 1 > b;
  }
  return !1;
}
function v(a, b, c, d, e, f, g) {
  this.acceptsBooleans = 2 === b || 3 === b || 4 === b;
  this.attributeName = d;
  this.attributeNamespace = e;
  this.mustUseProperty = c;
  this.propertyName = a;
  this.type = b;
  this.sanitizeURL = f;
  this.removeEmptyString = g;
}
var z = {};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function (a) {
  z[a] = new v(a, 0, !1, a, null, !1, !1);
});
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function (a) {
  var b = a[0];
  z[b] = new v(b, 1, !1, a[1], null, !1, !1);
});
["contentEditable", "draggable", "spellCheck", "value"].forEach(function (a) {
  z[a] = new v(a, 2, !1, a.toLowerCase(), null, !1, !1);
});
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (a) {
  z[a] = new v(a, 2, !1, a, null, !1, !1);
});
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function (a) {
  z[a] = new v(a, 3, !1, a.toLowerCase(), null, !1, !1);
});
["checked", "multiple", "muted", "selected"].forEach(function (a) {
  z[a] = new v(a, 3, !0, a, null, !1, !1);
});
["capture", "download"].forEach(function (a) {
  z[a] = new v(a, 4, !1, a, null, !1, !1);
});
["cols", "rows", "size", "span"].forEach(function (a) {
  z[a] = new v(a, 6, !1, a, null, !1, !1);
});
["rowSpan", "start"].forEach(function (a) {
  z[a] = new v(a, 5, !1, a.toLowerCase(), null, !1, !1);
});
var ra = /[\-:]([a-z])/g;
function sa(a) {
  return a[1].toUpperCase();
}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function (a) {
  var b = a.replace(ra, sa);
  z[b] = new v(b, 1, !1, a, null, !1, !1);
});
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (a) {
  var b = a.replace(ra, sa);
  z[b] = new v(b, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1);
});
["xml:base", "xml:lang", "xml:space"].forEach(function (a) {
  var b = a.replace(ra, sa);
  z[b] = new v(b, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1);
});
["tabIndex", "crossOrigin"].forEach(function (a) {
  z[a] = new v(a, 1, !1, a.toLowerCase(), null, !1, !1);
});
z.xlinkHref = new v("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1);
["src", "href", "action", "formAction"].forEach(function (a) {
  z[a] = new v(a, 1, !1, a.toLowerCase(), null, !0, !0);
});
function ta(a, b, c, d) {
  var e = z.hasOwnProperty(b) ? z[b] : null;
  if (null !== e ? 0 !== e.type : d || !(2 < b.length) || "o" !== b[0] && "O" !== b[0] || "n" !== b[1] && "N" !== b[1]) qa(b, c, e, d) && (c = null), d || null === e ? oa(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 === e.type ? !1 : "" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && !0 === c ? "" : "" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c)));
}
var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
  va = Symbol.for("react.element"),
  wa = Symbol.for("react.portal"),
  ya = Symbol.for("react.fragment"),
  za = Symbol.for("react.strict_mode"),
  Aa = Symbol.for("react.profiler"),
  Ba = Symbol.for("react.provider"),
  Ca = Symbol.for("react.context"),
  Da = Symbol.for("react.forward_ref"),
  Ea = Symbol.for("react.suspense"),
  Fa = Symbol.for("react.suspense_list"),
  Ga = Symbol.for("react.memo"),
  Ha = Symbol.for("react.lazy");
Symbol.for("react.scope");
Symbol.for("react.debug_trace_mode");
var Ia = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden");
Symbol.for("react.cache");
Symbol.for("react.tracing_marker");
var Ja = Symbol.iterator;
function Ka(a) {
  if (null === a || "object" !== typeof a) return null;
  a = Ja && a[Ja] || a["@@iterator"];
  return "function" === typeof a ? a : null;
}
var A = Object.assign,
  La;
function Ma(a) {
  if (void 0 === La) try {
    throw Error();
  } catch (c) {
    var b = c.stack.trim().match(/\n( *(at )?)/);
    La = b && b[1] || "";
  }
  return "\n" + La + a;
}
var Na = !1;
function Oa(a, b) {
  if (!a || Na) return "";
  Na = !0;
  var c = Error.prepareStackTrace;
  Error.prepareStackTrace = void 0;
  try {
    if (b) {
      if (b = function b() {
        throw Error();
      }, Object.defineProperty(b.prototype, "props", {
        set: function set() {
          throw Error();
        }
      }), "object" === typeof Reflect && Reflect.construct) {
        try {
          Reflect.construct(b, []);
        } catch (l) {
          var d = l;
        }
        Reflect.construct(a, [], b);
      } else {
        try {
          b.call();
        } catch (l) {
          d = l;
        }
        a.call(b.prototype);
      }
    } else {
      try {
        throw Error();
      } catch (l) {
        d = l;
      }
      a();
    }
  } catch (l) {
    if (l && d && "string" === typeof l.stack) {
      for (var e = l.stack.split("\n"), f = d.stack.split("\n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h];) h--;
      for (; 1 <= g && 0 <= h; g--, h--) if (e[g] !== f[h]) {
        if (1 !== g || 1 !== h) {
          do if (g--, h--, 0 > h || e[g] !== f[h]) {
            var k = "\n" + e[g].replace(" at new ", " at ");
            a.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a.displayName));
            return k;
          } while (1 <= g && 0 <= h);
        }
        break;
      }
    }
  } finally {
    Na = !1, Error.prepareStackTrace = c;
  }
  return (a = a ? a.displayName || a.name : "") ? Ma(a) : "";
}
function Pa(a) {
  switch (a.tag) {
    case 5:
      return Ma(a.type);
    case 16:
      return Ma("Lazy");
    case 13:
      return Ma("Suspense");
    case 19:
      return Ma("SuspenseList");
    case 0:
    case 2:
    case 15:
      return a = Oa(a.type, !1), a;
    case 11:
      return a = Oa(a.type.render, !1), a;
    case 1:
      return a = Oa(a.type, !0), a;
    default:
      return "";
  }
}
function Qa(a) {
  if (null == a) return null;
  if ("function" === typeof a) return a.displayName || a.name || null;
  if ("string" === typeof a) return a;
  switch (a) {
    case ya:
      return "Fragment";
    case wa:
      return "Portal";
    case Aa:
      return "Profiler";
    case za:
      return "StrictMode";
    case Ea:
      return "Suspense";
    case Fa:
      return "SuspenseList";
  }
  if ("object" === typeof a) switch (a.$$typeof) {
    case Ca:
      return (a.displayName || "Context") + ".Consumer";
    case Ba:
      return (a._context.displayName || "Context") + ".Provider";
    case Da:
      var b = a.render;
      a = a.displayName;
      a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
      return a;
    case Ga:
      return b = a.displayName || null, null !== b ? b : Qa(a.type) || "Memo";
    case Ha:
      b = a._payload;
      a = a._init;
      try {
        return Qa(a(b));
      } catch (c) {}
  }
  return null;
}
function Ra(a) {
  var b = a.type;
  switch (a.tag) {
    case 24:
      return "Cache";
    case 9:
      return (b.displayName || "Context") + ".Consumer";
    case 10:
      return (b._context.displayName || "Context") + ".Provider";
    case 18:
      return "DehydratedFragment";
    case 11:
      return a = b.render, a = a.displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
    case 7:
      return "Fragment";
    case 5:
      return b;
    case 4:
      return "Portal";
    case 3:
      return "Root";
    case 6:
      return "Text";
    case 16:
      return Qa(b);
    case 8:
      return b === za ? "StrictMode" : "Mode";
    case 22:
      return "Offscreen";
    case 12:
      return "Profiler";
    case 21:
      return "Scope";
    case 13:
      return "Suspense";
    case 19:
      return "SuspenseList";
    case 25:
      return "TracingMarker";
    case 1:
    case 0:
    case 17:
    case 2:
    case 14:
    case 15:
      if ("function" === typeof b) return b.displayName || b.name || null;
      if ("string" === typeof b) return b;
  }
  return null;
}
function Sa(a) {
  switch (typeof a) {
    case "boolean":
    case "number":
    case "string":
    case "undefined":
      return a;
    case "object":
      return a;
    default:
      return "";
  }
}
function Ta(a) {
  var b = a.type;
  return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b);
}
function Ua(a) {
  var b = Ta(a) ? "checked" : "value",
    c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b),
    d = "" + a[b];
  if (!a.hasOwnProperty(b) && "undefined" !== typeof c && "function" === typeof c.get && "function" === typeof c.set) {
    var e = c.get,
      f = c.set;
    Object.defineProperty(a, b, {
      configurable: !0,
      get: function get() {
        return e.call(this);
      },
      set: function set(a) {
        d = "" + a;
        f.call(this, a);
      }
    });
    Object.defineProperty(a, b, {
      enumerable: c.enumerable
    });
    return {
      getValue: function getValue() {
        return d;
      },
      setValue: function setValue(a) {
        d = "" + a;
      },
      stopTracking: function stopTracking() {
        a._valueTracker = null;
        delete a[b];
      }
    };
  }
}
function Va(a) {
  a._valueTracker || (a._valueTracker = Ua(a));
}
function Wa(a) {
  if (!a) return !1;
  var b = a._valueTracker;
  if (!b) return !0;
  var c = b.getValue();
  var d = "";
  a && (d = Ta(a) ? a.checked ? "true" : "false" : a.value);
  a = d;
  return a !== c ? (b.setValue(a), !0) : !1;
}
function Xa(a) {
  a = a || ("undefined" !== typeof document ? document : void 0);
  if ("undefined" === typeof a) return null;
  try {
    return a.activeElement || a.body;
  } catch (b) {
    return a.body;
  }
}
function Ya(a, b) {
  var c = b.checked;
  return A({}, b, {
    defaultChecked: void 0,
    defaultValue: void 0,
    value: void 0,
    checked: null != c ? c : a._wrapperState.initialChecked
  });
}
function Za(a, b) {
  var c = null == b.defaultValue ? "" : b.defaultValue,
    d = null != b.checked ? b.checked : b.defaultChecked;
  c = Sa(null != b.value ? b.value : c);
  a._wrapperState = {
    initialChecked: d,
    initialValue: c,
    controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value
  };
}
function ab(a, b) {
  b = b.checked;
  null != b && ta(a, "checked", b, !1);
}
function bb(a, b) {
  ab(a, b);
  var c = Sa(b.value),
    d = b.type;
  if (null != c) {
    if ("number" === d) {
      if (0 === c && "" === a.value || a.value != c) a.value = "" + c;
    } else a.value !== "" + c && (a.value = "" + c);
  } else if ("submit" === d || "reset" === d) {
    a.removeAttribute("value");
    return;
  }
  b.hasOwnProperty("value") ? cb(a, b.type, c) : b.hasOwnProperty("defaultValue") && cb(a, b.type, Sa(b.defaultValue));
  null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked);
}
function db(a, b, c) {
  if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) {
    var d = b.type;
    if (!("submit" !== d && "reset" !== d || void 0 !== b.value && null !== b.value)) return;
    b = "" + a._wrapperState.initialValue;
    c || b === a.value || (a.value = b);
    a.defaultValue = b;
  }
  c = a.name;
  "" !== c && (a.name = "");
  a.defaultChecked = !!a._wrapperState.initialChecked;
  "" !== c && (a.name = c);
}
function cb(a, b, c) {
  if ("number" !== b || Xa(a.ownerDocument) !== a) null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c);
}
var eb = Array.isArray;
function fb(a, b, c, d) {
  a = a.options;
  if (b) {
    b = {};
    for (var e = 0; e < c.length; e++) b["$" + c[e]] = !0;
    for (c = 0; c < a.length; c++) e = b.hasOwnProperty("$" + a[c].value), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = !0);
  } else {
    c = "" + Sa(c);
    b = null;
    for (e = 0; e < a.length; e++) {
      if (a[e].value === c) {
        a[e].selected = !0;
        d && (a[e].defaultSelected = !0);
        return;
      }
      null !== b || a[e].disabled || (b = a[e]);
    }
    null !== b && (b.selected = !0);
  }
}
function gb(a, b) {
  if (null != b.dangerouslySetInnerHTML) throw Error(p(91));
  return A({}, b, {
    value: void 0,
    defaultValue: void 0,
    children: "" + a._wrapperState.initialValue
  });
}
function hb(a, b) {
  var c = b.value;
  if (null == c) {
    c = b.children;
    b = b.defaultValue;
    if (null != c) {
      if (null != b) throw Error(p(92));
      if (eb(c)) {
        if (1 < c.length) throw Error(p(93));
        c = c[0];
      }
      b = c;
    }
    null == b && (b = "");
    c = b;
  }
  a._wrapperState = {
    initialValue: Sa(c)
  };
}
function ib(a, b) {
  var c = Sa(b.value),
    d = Sa(b.defaultValue);
  null != c && (c = "" + c, c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c));
  null != d && (a.defaultValue = "" + d);
}
function jb(a) {
  var b = a.textContent;
  b === a._wrapperState.initialValue && "" !== b && null !== b && (a.value = b);
}
function kb(a) {
  switch (a) {
    case "svg":
      return "http://www.w3.org/2000/svg";
    case "math":
      return "http://www.w3.org/1998/Math/MathML";
    default:
      return "http://www.w3.org/1999/xhtml";
  }
}
function lb(a, b) {
  return null == a || "http://www.w3.org/1999/xhtml" === a ? kb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a;
}
var mb,
  nb = function (a) {
    return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function (b, c, d, e) {
      MSApp.execUnsafeLocalFunction(function () {
        return a(b, c, d, e);
      });
    } : a;
  }(function (a, b) {
    if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b;else {
      mb = mb || document.createElement("div");
      mb.innerHTML = "<svg>" + b.valueOf().toString() + "</svg>";
      for (b = mb.firstChild; a.firstChild;) a.removeChild(a.firstChild);
      for (; b.firstChild;) a.appendChild(b.firstChild);
    }
  });
function ob(a, b) {
  if (b) {
    var c = a.firstChild;
    if (c && c === a.lastChild && 3 === c.nodeType) {
      c.nodeValue = b;
      return;
    }
  }
  a.textContent = b;
}
var pb = {
    animationIterationCount: !0,
    aspectRatio: !0,
    borderImageOutset: !0,
    borderImageSlice: !0,
    borderImageWidth: !0,
    boxFlex: !0,
    boxFlexGroup: !0,
    boxOrdinalGroup: !0,
    columnCount: !0,
    columns: !0,
    flex: !0,
    flexGrow: !0,
    flexPositive: !0,
    flexShrink: !0,
    flexNegative: !0,
    flexOrder: !0,
    gridArea: !0,
    gridRow: !0,
    gridRowEnd: !0,
    gridRowSpan: !0,
    gridRowStart: !0,
    gridColumn: !0,
    gridColumnEnd: !0,
    gridColumnSpan: !0,
    gridColumnStart: !0,
    fontWeight: !0,
    lineClamp: !0,
    lineHeight: !0,
    opacity: !0,
    order: !0,
    orphans: !0,
    tabSize: !0,
    widows: !0,
    zIndex: !0,
    zoom: !0,
    fillOpacity: !0,
    floodOpacity: !0,
    stopOpacity: !0,
    strokeDasharray: !0,
    strokeDashoffset: !0,
    strokeMiterlimit: !0,
    strokeOpacity: !0,
    strokeWidth: !0
  },
  qb = ["Webkit", "ms", "Moz", "O"];
Object.keys(pb).forEach(function (a) {
  qb.forEach(function (b) {
    b = b + a.charAt(0).toUpperCase() + a.substring(1);
    pb[b] = pb[a];
  });
});
function rb(a, b, c) {
  return null == b || "boolean" === typeof b || "" === b ? "" : c || "number" !== typeof b || 0 === b || pb.hasOwnProperty(a) && pb[a] ? ("" + b).trim() : b + "px";
}
function sb(a, b) {
  a = a.style;
  for (var c in b) if (b.hasOwnProperty(c)) {
    var d = 0 === c.indexOf("--"),
      e = rb(c, b[c], d);
    "float" === c && (c = "cssFloat");
    d ? a.setProperty(c, e) : a[c] = e;
  }
}
var tb = A({
  menuitem: !0
}, {
  area: !0,
  base: !0,
  br: !0,
  col: !0,
  embed: !0,
  hr: !0,
  img: !0,
  input: !0,
  keygen: !0,
  link: !0,
  meta: !0,
  param: !0,
  source: !0,
  track: !0,
  wbr: !0
});
function ub(a, b) {
  if (b) {
    if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p(137, a));
    if (null != b.dangerouslySetInnerHTML) {
      if (null != b.children) throw Error(p(60));
      if ("object" !== typeof b.dangerouslySetInnerHTML || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61));
    }
    if (null != b.style && "object" !== typeof b.style) throw Error(p(62));
  }
}
function vb(a, b) {
  if (-1 === a.indexOf("-")) return "string" === typeof b.is;
  switch (a) {
    case "annotation-xml":
    case "color-profile":
    case "font-face":
    case "font-face-src":
    case "font-face-uri":
    case "font-face-format":
    case "font-face-name":
    case "missing-glyph":
      return !1;
    default:
      return !0;
  }
}
var wb = null;
function xb(a) {
  a = a.target || a.srcElement || window;
  a.correspondingUseElement && (a = a.correspondingUseElement);
  return 3 === a.nodeType ? a.parentNode : a;
}
var yb = null,
  zb = null,
  Ab = null;
function Bb(a) {
  if (a = Cb(a)) {
    if ("function" !== typeof yb) throw Error(p(280));
    var b = a.stateNode;
    b && (b = Db(b), yb(a.stateNode, a.type, b));
  }
}
function Eb(a) {
  zb ? Ab ? Ab.push(a) : Ab = [a] : zb = a;
}
function Fb() {
  if (zb) {
    var a = zb,
      b = Ab;
    Ab = zb = null;
    Bb(a);
    if (b) for (a = 0; a < b.length; a++) Bb(b[a]);
  }
}
function Gb(a, b) {
  return a(b);
}
function Hb() {}
var Ib = !1;
function Jb(a, b, c) {
  if (Ib) return a(b, c);
  Ib = !0;
  try {
    return Gb(a, b, c);
  } finally {
    if (Ib = !1, null !== zb || null !== Ab) Hb(), Fb();
  }
}
function Kb(a, b) {
  var c = a.stateNode;
  if (null === c) return null;
  var d = Db(c);
  if (null === d) return null;
  c = d[b];
  a: switch (b) {
    case "onClick":
    case "onClickCapture":
    case "onDoubleClick":
    case "onDoubleClickCapture":
    case "onMouseDown":
    case "onMouseDownCapture":
    case "onMouseMove":
    case "onMouseMoveCapture":
    case "onMouseUp":
    case "onMouseUpCapture":
    case "onMouseEnter":
      (d = !d.disabled) || (a = a.type, d = !("button" === a || "input" === a || "select" === a || "textarea" === a));
      a = !d;
      break a;
    default:
      a = !1;
  }
  if (a) return null;
  if (c && "function" !== typeof c) throw Error(p(231, b, typeof c));
  return c;
}
var Lb = !1;
if (ia) try {
  var Mb = {};
  Object.defineProperty(Mb, "passive", {
    get: function get() {
      Lb = !0;
    }
  });
  window.addEventListener("test", Mb, Mb);
  window.removeEventListener("test", Mb, Mb);
} catch (a) {
  Lb = !1;
}
function Nb(a, b, c, d, e, f, g, h, k) {
  var l = Array.prototype.slice.call(arguments, 3);
  try {
    b.apply(c, l);
  } catch (m) {
    this.onError(m);
  }
}
var Ob = !1,
  Pb = null,
  Qb = !1,
  Rb = null,
  Sb = {
    onError: function onError(a) {
      Ob = !0;
      Pb = a;
    }
  };
function Tb(a, b, c, d, e, f, g, h, k) {
  Ob = !1;
  Pb = null;
  Nb.apply(Sb, arguments);
}
function Ub(a, b, c, d, e, f, g, h, k) {
  Tb.apply(this, arguments);
  if (Ob) {
    if (Ob) {
      var l = Pb;
      Ob = !1;
      Pb = null;
    } else throw Error(p(198));
    Qb || (Qb = !0, Rb = l);
  }
}
function Vb(a) {
  var b = a,
    c = a;
  if (a.alternate) for (; b.return;) b = b.return;else {
    a = b;
    do b = a, 0 !== (b.flags & 4098) && (c = b.return), a = b.return; while (a);
  }
  return 3 === b.tag ? c : null;
}
function Wb(a) {
  if (13 === a.tag) {
    var b = a.memoizedState;
    null === b && (a = a.alternate, null !== a && (b = a.memoizedState));
    if (null !== b) return b.dehydrated;
  }
  return null;
}
function Xb(a) {
  if (Vb(a) !== a) throw Error(p(188));
}
function Yb(a) {
  var b = a.alternate;
  if (!b) {
    b = Vb(a);
    if (null === b) throw Error(p(188));
    return b !== a ? null : a;
  }
  for (var c = a, d = b;;) {
    var e = c.return;
    if (null === e) break;
    var f = e.alternate;
    if (null === f) {
      d = e.return;
      if (null !== d) {
        c = d;
        continue;
      }
      break;
    }
    if (e.child === f.child) {
      for (f = e.child; f;) {
        if (f === c) return Xb(e), a;
        if (f === d) return Xb(e), b;
        f = f.sibling;
      }
      throw Error(p(188));
    }
    if (c.return !== d.return) c = e, d = f;else {
      for (var g = !1, h = e.child; h;) {
        if (h === c) {
          g = !0;
          c = e;
          d = f;
          break;
        }
        if (h === d) {
          g = !0;
          d = e;
          c = f;
          break;
        }
        h = h.sibling;
      }
      if (!g) {
        for (h = f.child; h;) {
          if (h === c) {
            g = !0;
            c = f;
            d = e;
            break;
          }
          if (h === d) {
            g = !0;
            d = f;
            c = e;
            break;
          }
          h = h.sibling;
        }
        if (!g) throw Error(p(189));
      }
    }
    if (c.alternate !== d) throw Error(p(190));
  }
  if (3 !== c.tag) throw Error(p(188));
  return c.stateNode.current === c ? a : b;
}
function Zb(a) {
  a = Yb(a);
  return null !== a ? $b(a) : null;
}
function $b(a) {
  if (5 === a.tag || 6 === a.tag) return a;
  for (a = a.child; null !== a;) {
    var b = $b(a);
    if (null !== b) return b;
    a = a.sibling;
  }
  return null;
}
var ac = ca.unstable_scheduleCallback,
  bc = ca.unstable_cancelCallback,
  cc = ca.unstable_shouldYield,
  dc = ca.unstable_requestPaint,
  B = ca.unstable_now,
  ec = ca.unstable_getCurrentPriorityLevel,
  fc = ca.unstable_ImmediatePriority,
  gc = ca.unstable_UserBlockingPriority,
  hc = ca.unstable_NormalPriority,
  ic = ca.unstable_LowPriority,
  jc = ca.unstable_IdlePriority,
  kc = null,
  lc = null;
function mc(a) {
  if (lc && "function" === typeof lc.onCommitFiberRoot) try {
    lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128));
  } catch (b) {}
}
var oc = Math.clz32 ? Math.clz32 : nc,
  pc = Math.log,
  qc = Math.LN2;
function nc(a) {
  a >>>= 0;
  return 0 === a ? 32 : 31 - (pc(a) / qc | 0) | 0;
}
var rc = 64,
  sc = 4194304;
function tc(a) {
  switch (a & -a) {
    case 1:
      return 1;
    case 2:
      return 2;
    case 4:
      return 4;
    case 8:
      return 8;
    case 16:
      return 16;
    case 32:
      return 32;
    case 64:
    case 128:
    case 256:
    case 512:
    case 1024:
    case 2048:
    case 4096:
    case 8192:
    case 16384:
    case 32768:
    case 65536:
    case 131072:
    case 262144:
    case 524288:
    case 1048576:
    case 2097152:
      return a & 4194240;
    case 4194304:
    case 8388608:
    case 16777216:
    case 33554432:
    case 67108864:
      return a & 130023424;
    case 134217728:
      return 134217728;
    case 268435456:
      return 268435456;
    case 536870912:
      return 536870912;
    case 1073741824:
      return 1073741824;
    default:
      return a;
  }
}
function uc(a, b) {
  var c = a.pendingLanes;
  if (0 === c) return 0;
  var d = 0,
    e = a.suspendedLanes,
    f = a.pingedLanes,
    g = c & 268435455;
  if (0 !== g) {
    var h = g & ~e;
    0 !== h ? d = tc(h) : (f &= g, 0 !== f && (d = tc(f)));
  } else g = c & ~e, 0 !== g ? d = tc(g) : 0 !== f && (d = tc(f));
  if (0 === d) return 0;
  if (0 !== b && b !== d && 0 === (b & e) && (e = d & -d, f = b & -b, e >= f || 16 === e && 0 !== (f & 4194240))) return b;
  0 !== (d & 4) && (d |= c & 16);
  b = a.entangledLanes;
  if (0 !== b) for (a = a.entanglements, b &= d; 0 < b;) c = 31 - oc(b), e = 1 << c, d |= a[c], b &= ~e;
  return d;
}
function vc(a, b) {
  switch (a) {
    case 1:
    case 2:
    case 4:
      return b + 250;
    case 8:
    case 16:
    case 32:
    case 64:
    case 128:
    case 256:
    case 512:
    case 1024:
    case 2048:
    case 4096:
    case 8192:
    case 16384:
    case 32768:
    case 65536:
    case 131072:
    case 262144:
    case 524288:
    case 1048576:
    case 2097152:
      return b + 5E3;
    case 4194304:
    case 8388608:
    case 16777216:
    case 33554432:
    case 67108864:
      return -1;
    case 134217728:
    case 268435456:
    case 536870912:
    case 1073741824:
      return -1;
    default:
      return -1;
  }
}
function wc(a, b) {
  for (var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f;) {
    var g = 31 - oc(f),
      h = 1 << g,
      k = e[g];
    if (-1 === k) {
      if (0 === (h & c) || 0 !== (h & d)) e[g] = vc(h, b);
    } else k <= b && (a.expiredLanes |= h);
    f &= ~h;
  }
}
function xc(a) {
  a = a.pendingLanes & -1073741825;
  return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0;
}
function yc() {
  var a = rc;
  rc <<= 1;
  0 === (rc & 4194240) && (rc = 64);
  return a;
}
function zc(a) {
  for (var b = [], c = 0; 31 > c; c++) b.push(a);
  return b;
}
function Ac(a, b, c) {
  a.pendingLanes |= b;
  536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0);
  a = a.eventTimes;
  b = 31 - oc(b);
  a[b] = c;
}
function Bc(a, b) {
  var c = a.pendingLanes & ~b;
  a.pendingLanes = b;
  a.suspendedLanes = 0;
  a.pingedLanes = 0;
  a.expiredLanes &= b;
  a.mutableReadLanes &= b;
  a.entangledLanes &= b;
  b = a.entanglements;
  var d = a.eventTimes;
  for (a = a.expirationTimes; 0 < c;) {
    var e = 31 - oc(c),
      f = 1 << e;
    b[e] = 0;
    d[e] = -1;
    a[e] = -1;
    c &= ~f;
  }
}
function Cc(a, b) {
  var c = a.entangledLanes |= b;
  for (a = a.entanglements; c;) {
    var d = 31 - oc(c),
      e = 1 << d;
    e & b | a[d] & b && (a[d] |= b);
    c &= ~e;
  }
}
var C = 0;
function Dc(a) {
  a &= -a;
  return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1;
}
var Ec,
  Fc,
  Gc,
  Hc,
  Ic,
  Jc = !1,
  Kc = [],
  Lc = null,
  Mc = null,
  Nc = null,
  Oc = new Map(),
  Pc = new Map(),
  Qc = [],
  Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
function Sc(a, b) {
  switch (a) {
    case "focusin":
    case "focusout":
      Lc = null;
      break;
    case "dragenter":
    case "dragleave":
      Mc = null;
      break;
    case "mouseover":
    case "mouseout":
      Nc = null;
      break;
    case "pointerover":
    case "pointerout":
      Oc.delete(b.pointerId);
      break;
    case "gotpointercapture":
    case "lostpointercapture":
      Pc.delete(b.pointerId);
  }
}
function Tc(a, b, c, d, e, f) {
  if (null === a || a.nativeEvent !== f) return a = {
    blockedOn: b,
    domEventName: c,
    eventSystemFlags: d,
    nativeEvent: f,
    targetContainers: [e]
  }, null !== b && (b = Cb(b), null !== b && Fc(b)), a;
  a.eventSystemFlags |= d;
  b = a.targetContainers;
  null !== e && -1 === b.indexOf(e) && b.push(e);
  return a;
}
function Uc(a, b, c, d, e) {
  switch (b) {
    case "focusin":
      return Lc = Tc(Lc, a, b, c, d, e), !0;
    case "dragenter":
      return Mc = Tc(Mc, a, b, c, d, e), !0;
    case "mouseover":
      return Nc = Tc(Nc, a, b, c, d, e), !0;
    case "pointerover":
      var f = e.pointerId;
      Oc.set(f, Tc(Oc.get(f) || null, a, b, c, d, e));
      return !0;
    case "gotpointercapture":
      return f = e.pointerId, Pc.set(f, Tc(Pc.get(f) || null, a, b, c, d, e)), !0;
  }
  return !1;
}
function Vc(a) {
  var b = Wc(a.target);
  if (null !== b) {
    var c = Vb(b);
    if (null !== c) if (b = c.tag, 13 === b) {
      if (b = Wb(c), null !== b) {
        a.blockedOn = b;
        Ic(a.priority, function () {
          Gc(c);
        });
        return;
      }
    } else if (3 === b && c.stateNode.current.memoizedState.isDehydrated) {
      a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null;
      return;
    }
  }
  a.blockedOn = null;
}
function Xc(a) {
  if (null !== a.blockedOn) return !1;
  for (var b = a.targetContainers; 0 < b.length;) {
    var c = Yc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent);
    if (null === c) {
      c = a.nativeEvent;
      var d = new c.constructor(c.type, c);
      wb = d;
      c.target.dispatchEvent(d);
      wb = null;
    } else return b = Cb(c), null !== b && Fc(b), a.blockedOn = c, !1;
    b.shift();
  }
  return !0;
}
function Zc(a, b, c) {
  Xc(a) && c.delete(b);
}
function $c() {
  Jc = !1;
  null !== Lc && Xc(Lc) && (Lc = null);
  null !== Mc && Xc(Mc) && (Mc = null);
  null !== Nc && Xc(Nc) && (Nc = null);
  Oc.forEach(Zc);
  Pc.forEach(Zc);
}
function ad(a, b) {
  a.blockedOn === b && (a.blockedOn = null, Jc || (Jc = !0, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c)));
}
function bd(a) {
  function b(b) {
    return ad(b, a);
  }
  if (0 < Kc.length) {
    ad(Kc[0], a);
    for (var c = 1; c < Kc.length; c++) {
      var d = Kc[c];
      d.blockedOn === a && (d.blockedOn = null);
    }
  }
  null !== Lc && ad(Lc, a);
  null !== Mc && ad(Mc, a);
  null !== Nc && ad(Nc, a);
  Oc.forEach(b);
  Pc.forEach(b);
  for (c = 0; c < Qc.length; c++) d = Qc[c], d.blockedOn === a && (d.blockedOn = null);
  for (; 0 < Qc.length && (c = Qc[0], null === c.blockedOn);) Vc(c), null === c.blockedOn && Qc.shift();
}
var cd = ua.ReactCurrentBatchConfig,
  dd = !0;
function ed(a, b, c, d) {
  var e = C,
    f = cd.transition;
  cd.transition = null;
  try {
    C = 1, fd(a, b, c, d);
  } finally {
    C = e, cd.transition = f;
  }
}
function gd(a, b, c, d) {
  var e = C,
    f = cd.transition;
  cd.transition = null;
  try {
    C = 4, fd(a, b, c, d);
  } finally {
    C = e, cd.transition = f;
  }
}
function fd(a, b, c, d) {
  if (dd) {
    var e = Yc(a, b, c, d);
    if (null === e) hd(a, b, d, id, c), Sc(a, d);else if (Uc(e, a, b, c, d)) d.stopPropagation();else if (Sc(a, d), b & 4 && -1 < Rc.indexOf(a)) {
      for (; null !== e;) {
        var f = Cb(e);
        null !== f && Ec(f);
        f = Yc(a, b, c, d);
        null === f && hd(a, b, d, id, c);
        if (f === e) break;
        e = f;
      }
      null !== e && d.stopPropagation();
    } else hd(a, b, d, null, c);
  }
}
var id = null;
function Yc(a, b, c, d) {
  id = null;
  a = xb(d);
  a = Wc(a);
  if (null !== a) if (b = Vb(a), null === b) a = null;else if (c = b.tag, 13 === c) {
    a = Wb(b);
    if (null !== a) return a;
    a = null;
  } else if (3 === c) {
    if (b.stateNode.current.memoizedState.isDehydrated) return 3 === b.tag ? b.stateNode.containerInfo : null;
    a = null;
  } else b !== a && (a = null);
  id = a;
  return null;
}
function jd(a) {
  switch (a) {
    case "cancel":
    case "click":
    case "close":
    case "contextmenu":
    case "copy":
    case "cut":
    case "auxclick":
    case "dblclick":
    case "dragend":
    case "dragstart":
    case "drop":
    case "focusin":
    case "focusout":
    case "input":
    case "invalid":
    case "keydown":
    case "keypress":
    case "keyup":
    case "mousedown":
    case "mouseup":
    case "paste":
    case "pause":
    case "play":
    case "pointercancel":
    case "pointerdown":
    case "pointerup":
    case "ratechange":
    case "reset":
    case "resize":
    case "seeked":
    case "submit":
    case "touchcancel":
    case "touchend":
    case "touchstart":
    case "volumechange":
    case "change":
    case "selectionchange":
    case "textInput":
    case "compositionstart":
    case "compositionend":
    case "compositionupdate":
    case "beforeblur":
    case "afterblur":
    case "beforeinput":
    case "blur":
    case "fullscreenchange":
    case "focus":
    case "hashchange":
    case "popstate":
    case "select":
    case "selectstart":
      return 1;
    case "drag":
    case "dragenter":
    case "dragexit":
    case "dragleave":
    case "dragover":
    case "mousemove":
    case "mouseout":
    case "mouseover":
    case "pointermove":
    case "pointerout":
    case "pointerover":
    case "scroll":
    case "toggle":
    case "touchmove":
    case "wheel":
    case "mouseenter":
    case "mouseleave":
    case "pointerenter":
    case "pointerleave":
      return 4;
    case "message":
      switch (ec()) {
        case fc:
          return 1;
        case gc:
          return 4;
        case hc:
        case ic:
          return 16;
        case jc:
          return 536870912;
        default:
          return 16;
      }
    default:
      return 16;
  }
}
var kd = null,
  ld = null,
  md = null;
function nd() {
  if (md) return md;
  var a,
    b = ld,
    c = b.length,
    d,
    e = "value" in kd ? kd.value : kd.textContent,
    f = e.length;
  for (a = 0; a < c && b[a] === e[a]; a++);
  var g = c - a;
  for (d = 1; d <= g && b[c - d] === e[f - d]; d++);
  return md = e.slice(a, 1 < d ? 1 - d : void 0);
}
function od(a) {
  var b = a.keyCode;
  "charCode" in a ? (a = a.charCode, 0 === a && 13 === b && (a = 13)) : a = b;
  10 === a && (a = 13);
  return 32 <= a || 13 === a ? a : 0;
}
function pd() {
  return !0;
}
function qd() {
  return !1;
}
function rd(a) {
  function b(b, d, e, f, g) {
    this._reactName = b;
    this._targetInst = e;
    this.type = d;
    this.nativeEvent = f;
    this.target = g;
    this.currentTarget = null;
    for (var c in a) a.hasOwnProperty(c) && (b = a[c], this[c] = b ? b(f) : f[c]);
    this.isDefaultPrevented = (null != f.defaultPrevented ? f.defaultPrevented : !1 === f.returnValue) ? pd : qd;
    this.isPropagationStopped = qd;
    return this;
  }
  A(b.prototype, {
    preventDefault: function preventDefault() {
      this.defaultPrevented = !0;
      var a = this.nativeEvent;
      a && (a.preventDefault ? a.preventDefault() : "unknown" !== typeof a.returnValue && (a.returnValue = !1), this.isDefaultPrevented = pd);
    },
    stopPropagation: function stopPropagation() {
      var a = this.nativeEvent;
      a && (a.stopPropagation ? a.stopPropagation() : "unknown" !== typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = pd);
    },
    persist: function persist() {},
    isPersistent: pd
  });
  return b;
}
var sd = {
    eventPhase: 0,
    bubbles: 0,
    cancelable: 0,
    timeStamp: function timeStamp(a) {
      return a.timeStamp || Date.now();
    },
    defaultPrevented: 0,
    isTrusted: 0
  },
  td = rd(sd),
  ud = A({}, sd, {
    view: 0,
    detail: 0
  }),
  vd = rd(ud),
  wd,
  xd,
  yd,
  Ad = A({}, ud, {
    screenX: 0,
    screenY: 0,
    clientX: 0,
    clientY: 0,
    pageX: 0,
    pageY: 0,
    ctrlKey: 0,
    shiftKey: 0,
    altKey: 0,
    metaKey: 0,
    getModifierState: zd,
    button: 0,
    buttons: 0,
    relatedTarget: function relatedTarget(a) {
      return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget;
    },
    movementX: function movementX(a) {
      if ("movementX" in a) return a.movementX;
      a !== yd && (yd && "mousemove" === a.type ? (wd = a.screenX - yd.screenX, xd = a.screenY - yd.screenY) : xd = wd = 0, yd = a);
      return wd;
    },
    movementY: function movementY(a) {
      return "movementY" in a ? a.movementY : xd;
    }
  }),
  Bd = rd(Ad),
  Cd = A({}, Ad, {
    dataTransfer: 0
  }),
  Dd = rd(Cd),
  Ed = A({}, ud, {
    relatedTarget: 0
  }),
  Fd = rd(Ed),
  Gd = A({}, sd, {
    animationName: 0,
    elapsedTime: 0,
    pseudoElement: 0
  }),
  Hd = rd(Gd),
  Id = A({}, sd, {
    clipboardData: function clipboardData(a) {
      return "clipboardData" in a ? a.clipboardData : window.clipboardData;
    }
  }),
  Jd = rd(Id),
  Kd = A({}, sd, {
    data: 0
  }),
  Ld = rd(Kd),
  Md = {
    Esc: "Escape",
    Spacebar: " ",
    Left: "ArrowLeft",
    Up: "ArrowUp",
    Right: "ArrowRight",
    Down: "ArrowDown",
    Del: "Delete",
    Win: "OS",
    Menu: "ContextMenu",
    Apps: "ContextMenu",
    Scroll: "ScrollLock",
    MozPrintableKey: "Unidentified"
  },
  Nd = {
    8: "Backspace",
    9: "Tab",
    12: "Clear",
    13: "Enter",
    16: "Shift",
    17: "Control",
    18: "Alt",
    19: "Pause",
    20: "CapsLock",
    27: "Escape",
    32: " ",
    33: "PageUp",
    34: "PageDown",
    35: "End",
    36: "Home",
    37: "ArrowLeft",
    38: "ArrowUp",
    39: "ArrowRight",
    40: "ArrowDown",
    45: "Insert",
    46: "Delete",
    112: "F1",
    113: "F2",
    114: "F3",
    115: "F4",
    116: "F5",
    117: "F6",
    118: "F7",
    119: "F8",
    120: "F9",
    121: "F10",
    122: "F11",
    123: "F12",
    144: "NumLock",
    145: "ScrollLock",
    224: "Meta"
  },
  Od = {
    Alt: "altKey",
    Control: "ctrlKey",
    Meta: "metaKey",
    Shift: "shiftKey"
  };
function Pd(a) {
  var b = this.nativeEvent;
  return b.getModifierState ? b.getModifierState(a) : (a = Od[a]) ? !!b[a] : !1;
}
function zd() {
  return Pd;
}
var Qd = A({}, ud, {
    key: function key(a) {
      if (a.key) {
        var b = Md[a.key] || a.key;
        if ("Unidentified" !== b) return b;
      }
      return "keypress" === a.type ? (a = od(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? Nd[a.keyCode] || "Unidentified" : "";
    },
    code: 0,
    location: 0,
    ctrlKey: 0,
    shiftKey: 0,
    altKey: 0,
    metaKey: 0,
    repeat: 0,
    locale: 0,
    getModifierState: zd,
    charCode: function charCode(a) {
      return "keypress" === a.type ? od(a) : 0;
    },
    keyCode: function keyCode(a) {
      return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
    },
    which: function which(a) {
      return "keypress" === a.type ? od(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0;
    }
  }),
  Rd = rd(Qd),
  Sd = A({}, Ad, {
    pointerId: 0,
    width: 0,
    height: 0,
    pressure: 0,
    tangentialPressure: 0,
    tiltX: 0,
    tiltY: 0,
    twist: 0,
    pointerType: 0,
    isPrimary: 0
  }),
  Td = rd(Sd),
  Ud = A({}, ud, {
    touches: 0,
    targetTouches: 0,
    changedTouches: 0,
    altKey: 0,
    metaKey: 0,
    ctrlKey: 0,
    shiftKey: 0,
    getModifierState: zd
  }),
  Vd = rd(Ud),
  Wd = A({}, sd, {
    propertyName: 0,
    elapsedTime: 0,
    pseudoElement: 0
  }),
  Xd = rd(Wd),
  Yd = A({}, Ad, {
    deltaX: function deltaX(a) {
      return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0;
    },
    deltaY: function deltaY(a) {
      return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0;
    },
    deltaZ: 0,
    deltaMode: 0
  }),
  Zd = rd(Yd),
  $d = [9, 13, 27, 32],
  ae = ia && "CompositionEvent" in window,
  be = null;
ia && "documentMode" in document && (be = document.documentMode);
var ce = ia && "TextEvent" in window && !be,
  de = ia && (!ae || be && 8 < be && 11 >= be),
  ee = String.fromCharCode(32),
  fe = !1;
function ge(a, b) {
  switch (a) {
    case "keyup":
      return -1 !== $d.indexOf(b.keyCode);
    case "keydown":
      return 229 !== b.keyCode;
    case "keypress":
    case "mousedown":
    case "focusout":
      return !0;
    default:
      return !1;
  }
}
function he(a) {
  a = a.detail;
  return "object" === typeof a && "data" in a ? a.data : null;
}
var ie = !1;
function je(a, b) {
  switch (a) {
    case "compositionend":
      return he(b);
    case "keypress":
      if (32 !== b.which) return null;
      fe = !0;
      return ee;
    case "textInput":
      return a = b.data, a === ee && fe ? null : a;
    default:
      return null;
  }
}
function ke(a, b) {
  if (ie) return "compositionend" === a || !ae && ge(a, b) ? (a = nd(), md = ld = kd = null, ie = !1, a) : null;
  switch (a) {
    case "paste":
      return null;
    case "keypress":
      if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) {
        if (b.char && 1 < b.char.length) return b.char;
        if (b.which) return String.fromCharCode(b.which);
      }
      return null;
    case "compositionend":
      return de && "ko" !== b.locale ? null : b.data;
    default:
      return null;
  }
}
var le = {
  color: !0,
  date: !0,
  datetime: !0,
  "datetime-local": !0,
  email: !0,
  month: !0,
  number: !0,
  password: !0,
  range: !0,
  search: !0,
  tel: !0,
  text: !0,
  time: !0,
  url: !0,
  week: !0
};
function me(a) {
  var b = a && a.nodeName && a.nodeName.toLowerCase();
  return "input" === b ? !!le[a.type] : "textarea" === b ? !0 : !1;
}
function ne(a, b, c, d) {
  Eb(d);
  b = oe(b, "onChange");
  0 < b.length && (c = new td("onChange", "change", null, c, d), a.push({
    event: c,
    listeners: b
  }));
}
var pe = null,
  qe = null;
function re(a) {
  se(a, 0);
}
function te(a) {
  var b = ue(a);
  if (Wa(b)) return a;
}
function ve(a, b) {
  if ("change" === a) return b;
}
var we = !1;
if (ia) {
  var xe;
  if (ia) {
    var ye = ("oninput" in document);
    if (!ye) {
      var ze = document.createElement("div");
      ze.setAttribute("oninput", "return;");
      ye = "function" === typeof ze.oninput;
    }
    xe = ye;
  } else xe = !1;
  we = xe && (!document.documentMode || 9 < document.documentMode);
}
function Ae() {
  pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null);
}
function Be(a) {
  if ("value" === a.propertyName && te(qe)) {
    var b = [];
    ne(b, qe, a, xb(a));
    Jb(re, b);
  }
}
function Ce(a, b, c) {
  "focusin" === a ? (Ae(), pe = b, qe = c, pe.attachEvent("onpropertychange", Be)) : "focusout" === a && Ae();
}
function De(a) {
  if ("selectionchange" === a || "keyup" === a || "keydown" === a) return te(qe);
}
function Ee(a, b) {
  if ("click" === a) return te(b);
}
function Fe(a, b) {
  if ("input" === a || "change" === a) return te(b);
}
function Ge(a, b) {
  return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
}
var He = "function" === typeof Object.is ? Object.is : Ge;
function Ie(a, b) {
  if (He(a, b)) return !0;
  if ("object" !== typeof a || null === a || "object" !== typeof b || null === b) return !1;
  var c = Object.keys(a),
    d = Object.keys(b);
  if (c.length !== d.length) return !1;
  for (d = 0; d < c.length; d++) {
    var e = c[d];
    if (!ja.call(b, e) || !He(a[e], b[e])) return !1;
  }
  return !0;
}
function Je(a) {
  for (; a && a.firstChild;) a = a.firstChild;
  return a;
}
function Ke(a, b) {
  var c = Je(a);
  a = 0;
  for (var d; c;) {
    if (3 === c.nodeType) {
      d = a + c.textContent.length;
      if (a <= b && d >= b) return {
        node: c,
        offset: b - a
      };
      a = d;
    }
    a: {
      for (; c;) {
        if (c.nextSibling) {
          c = c.nextSibling;
          break a;
        }
        c = c.parentNode;
      }
      c = void 0;
    }
    c = Je(c);
  }
}
function Le(a, b) {
  return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? Le(a, b.parentNode) : "contains" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1;
}
function Me() {
  for (var a = window, b = Xa(); b instanceof a.HTMLIFrameElement;) {
    try {
      var c = "string" === typeof b.contentWindow.location.href;
    } catch (d) {
      c = !1;
    }
    if (c) a = b.contentWindow;else break;
    b = Xa(a.document);
  }
  return b;
}
function Ne(a) {
  var b = a && a.nodeName && a.nodeName.toLowerCase();
  return b && ("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b || "true" === a.contentEditable);
}
function Oe(a) {
  var b = Me(),
    c = a.focusedElem,
    d = a.selectionRange;
  if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) {
    if (null !== d && Ne(c)) if (b = d.start, a = d.end, void 0 === a && (a = b), "selectionStart" in c) c.selectionStart = b, c.selectionEnd = Math.min(a, c.value.length);else if (a = (b = c.ownerDocument || document) && b.defaultView || window, a.getSelection) {
      a = a.getSelection();
      var e = c.textContent.length,
        f = Math.min(d.start, e);
      d = void 0 === d.end ? f : Math.min(d.end, e);
      !a.extend && f > d && (e = d, d = f, f = e);
      e = Ke(c, f);
      var g = Ke(c, d);
      e && g && (1 !== a.rangeCount || a.anchorNode !== e.node || a.anchorOffset !== e.offset || a.focusNode !== g.node || a.focusOffset !== g.offset) && (b = b.createRange(), b.setStart(e.node, e.offset), a.removeAllRanges(), f > d ? (a.addRange(b), a.extend(g.node, g.offset)) : (b.setEnd(g.node, g.offset), a.addRange(b)));
    }
    b = [];
    for (a = c; a = a.parentNode;) 1 === a.nodeType && b.push({
      element: a,
      left: a.scrollLeft,
      top: a.scrollTop
    });
    "function" === typeof c.focus && c.focus();
    for (c = 0; c < b.length; c++) a = b[c], a.element.scrollLeft = a.left, a.element.scrollTop = a.top;
  }
}
var Pe = ia && "documentMode" in document && 11 >= document.documentMode,
  Qe = null,
  Re = null,
  Se = null,
  Te = !1;
function Ue(a, b, c) {
  var d = c.window === c ? c.document : 9 === c.nodeType ? c : c.ownerDocument;
  Te || null == Qe || Qe !== Xa(d) || (d = Qe, "selectionStart" in d && Ne(d) ? d = {
    start: d.selectionStart,
    end: d.selectionEnd
  } : (d = (d.ownerDocument && d.ownerDocument.defaultView || window).getSelection(), d = {
    anchorNode: d.anchorNode,
    anchorOffset: d.anchorOffset,
    focusNode: d.focusNode,
    focusOffset: d.focusOffset
  }), Se && Ie(Se, d) || (Se = d, d = oe(Re, "onSelect"), 0 < d.length && (b = new td("onSelect", "select", null, b, c), a.push({
    event: b,
    listeners: d
  }), b.target = Qe)));
}
function Ve(a, b) {
  var c = {};
  c[a.toLowerCase()] = b.toLowerCase();
  c["Webkit" + a] = "webkit" + b;
  c["Moz" + a] = "moz" + b;
  return c;
}
var We = {
    animationend: Ve("Animation", "AnimationEnd"),
    animationiteration: Ve("Animation", "AnimationIteration"),
    animationstart: Ve("Animation", "AnimationStart"),
    transitionend: Ve("Transition", "TransitionEnd")
  },
  Xe = {},
  Ye = {};
ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition);
function Ze(a) {
  if (Xe[a]) return Xe[a];
  if (!We[a]) return a;
  var b = We[a],
    c;
  for (c in b) if (b.hasOwnProperty(c) && c in Ye) return Xe[a] = b[c];
  return a;
}
var $e = Ze("animationend"),
  af = Ze("animationiteration"),
  bf = Ze("animationstart"),
  cf = Ze("transitionend"),
  df = new Map(),
  ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
function ff(a, b) {
  df.set(a, b);
  fa(b, [a]);
}
for (var gf = 0; gf < ef.length; gf++) {
  var hf = ef[gf],
    jf = hf.toLowerCase(),
    kf = hf[0].toUpperCase() + hf.slice(1);
  ff(jf, "on" + kf);
}
ff($e, "onAnimationEnd");
ff(af, "onAnimationIteration");
ff(bf, "onAnimationStart");
ff("dblclick", "onDoubleClick");
ff("focusin", "onFocus");
ff("focusout", "onBlur");
ff(cf, "onTransitionEnd");
ha("onMouseEnter", ["mouseout", "mouseover"]);
ha("onMouseLeave", ["mouseout", "mouseover"]);
ha("onPointerEnter", ["pointerout", "pointerover"]);
ha("onPointerLeave", ["pointerout", "pointerover"]);
fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" "));
fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));
fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]);
fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" "));
fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" "));
fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),
  mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));
function nf(a, b, c) {
  var d = a.type || "unknown-event";
  a.currentTarget = c;
  Ub(d, b, void 0, a);
  a.currentTarget = null;
}
function se(a, b) {
  b = 0 !== (b & 4);
  for (var c = 0; c < a.length; c++) {
    var d = a[c],
      e = d.event;
    d = d.listeners;
    a: {
      var f = void 0;
      if (b) for (var g = d.length - 1; 0 <= g; g--) {
        var h = d[g],
          k = h.instance,
          l = h.currentTarget;
        h = h.listener;
        if (k !== f && e.isPropagationStopped()) break a;
        nf(e, h, l);
        f = k;
      } else for (g = 0; g < d.length; g++) {
        h = d[g];
        k = h.instance;
        l = h.currentTarget;
        h = h.listener;
        if (k !== f && e.isPropagationStopped()) break a;
        nf(e, h, l);
        f = k;
      }
    }
  }
  if (Qb) throw a = Rb, Qb = !1, Rb = null, a;
}
function D(a, b) {
  var c = b[of];
  void 0 === c && (c = b[of] = new Set());
  var d = a + "__bubble";
  c.has(d) || (pf(b, a, 2, !1), c.add(d));
}
function qf(a, b, c) {
  var d = 0;
  b && (d |= 4);
  pf(c, a, d, b);
}
var rf = "_reactListening" + Math.random().toString(36).slice(2);
function sf(a) {
  if (!a[rf]) {
    a[rf] = !0;
    da.forEach(function (b) {
      "selectionchange" !== b && (mf.has(b) || qf(b, !1, a), qf(b, !0, a));
    });
    var b = 9 === a.nodeType ? a : a.ownerDocument;
    null === b || b[rf] || (b[rf] = !0, qf("selectionchange", !1, b));
  }
}
function pf(a, b, c, d) {
  switch (jd(b)) {
    case 1:
      var e = ed;
      break;
    case 4:
      e = gd;
      break;
    default:
      e = fd;
  }
  c = e.bind(null, b, c, a);
  e = void 0;
  !Lb || "touchstart" !== b && "touchmove" !== b && "wheel" !== b || (e = !0);
  d ? void 0 !== e ? a.addEventListener(b, c, {
    capture: !0,
    passive: e
  }) : a.addEventListener(b, c, !0) : void 0 !== e ? a.addEventListener(b, c, {
    passive: e
  }) : a.addEventListener(b, c, !1);
}
function hd(a, b, c, d, e) {
  var f = d;
  if (0 === (b & 1) && 0 === (b & 2) && null !== d) a: for (;;) {
    if (null === d) return;
    var g = d.tag;
    if (3 === g || 4 === g) {
      var h = d.stateNode.containerInfo;
      if (h === e || 8 === h.nodeType && h.parentNode === e) break;
      if (4 === g) for (g = d.return; null !== g;) {
        var k = g.tag;
        if (3 === k || 4 === k) if (k = g.stateNode.containerInfo, k === e || 8 === k.nodeType && k.parentNode === e) return;
        g = g.return;
      }
      for (; null !== h;) {
        g = Wc(h);
        if (null === g) return;
        k = g.tag;
        if (5 === k || 6 === k) {
          d = f = g;
          continue a;
        }
        h = h.parentNode;
      }
    }
    d = d.return;
  }
  Jb(function () {
    var d = f,
      e = xb(c),
      g = [];
    a: {
      var h = df.get(a);
      if (void 0 !== h) {
        var k = td,
          n = a;
        switch (a) {
          case "keypress":
            if (0 === od(c)) break a;
          case "keydown":
          case "keyup":
            k = Rd;
            break;
          case "focusin":
            n = "focus";
            k = Fd;
            break;
          case "focusout":
            n = "blur";
            k = Fd;
            break;
          case "beforeblur":
          case "afterblur":
            k = Fd;
            break;
          case "click":
            if (2 === c.button) break a;
          case "auxclick":
          case "dblclick":
          case "mousedown":
          case "mousemove":
          case "mouseup":
          case "mouseout":
          case "mouseover":
          case "contextmenu":
            k = Bd;
            break;
          case "drag":
          case "dragend":
          case "dragenter":
          case "dragexit":
          case "dragleave":
          case "dragover":
          case "dragstart":
          case "drop":
            k = Dd;
            break;
          case "touchcancel":
          case "touchend":
          case "touchmove":
          case "touchstart":
            k = Vd;
            break;
          case $e:
          case af:
          case bf:
            k = Hd;
            break;
          case cf:
            k = Xd;
            break;
          case "scroll":
            k = vd;
            break;
          case "wheel":
            k = Zd;
            break;
          case "copy":
          case "cut":
          case "paste":
            k = Jd;
            break;
          case "gotpointercapture":
          case "lostpointercapture":
          case "pointercancel":
          case "pointerdown":
          case "pointermove":
          case "pointerout":
          case "pointerover":
          case "pointerup":
            k = Td;
        }
        var t = 0 !== (b & 4),
          J = !t && "scroll" === a,
          x = t ? null !== h ? h + "Capture" : null : h;
        t = [];
        for (var w = d, u; null !== w;) {
          u = w;
          var F = u.stateNode;
          5 === u.tag && null !== F && (u = F, null !== x && (F = Kb(w, x), null != F && t.push(tf(w, F, u))));
          if (J) break;
          w = w.return;
        }
        0 < t.length && (h = new k(h, n, null, c, e), g.push({
          event: h,
          listeners: t
        }));
      }
    }
    if (0 === (b & 7)) {
      a: {
        h = "mouseover" === a || "pointerover" === a;
        k = "mouseout" === a || "pointerout" === a;
        if (h && c !== wb && (n = c.relatedTarget || c.fromElement) && (Wc(n) || n[uf])) break a;
        if (k || h) {
          h = e.window === e ? e : (h = e.ownerDocument) ? h.defaultView || h.parentWindow : window;
          if (k) {
            if (n = c.relatedTarget || c.toElement, k = d, n = n ? Wc(n) : null, null !== n && (J = Vb(n), n !== J || 5 !== n.tag && 6 !== n.tag)) n = null;
          } else k = null, n = d;
          if (k !== n) {
            t = Bd;
            F = "onMouseLeave";
            x = "onMouseEnter";
            w = "mouse";
            if ("pointerout" === a || "pointerover" === a) t = Td, F = "onPointerLeave", x = "onPointerEnter", w = "pointer";
            J = null == k ? h : ue(k);
            u = null == n ? h : ue(n);
            h = new t(F, w + "leave", k, c, e);
            h.target = J;
            h.relatedTarget = u;
            F = null;
            Wc(e) === d && (t = new t(x, w + "enter", n, c, e), t.target = u, t.relatedTarget = J, F = t);
            J = F;
            if (k && n) b: {
              t = k;
              x = n;
              w = 0;
              for (u = t; u; u = vf(u)) w++;
              u = 0;
              for (F = x; F; F = vf(F)) u++;
              for (; 0 < w - u;) t = vf(t), w--;
              for (; 0 < u - w;) x = vf(x), u--;
              for (; w--;) {
                if (t === x || null !== x && t === x.alternate) break b;
                t = vf(t);
                x = vf(x);
              }
              t = null;
            } else t = null;
            null !== k && wf(g, h, k, t, !1);
            null !== n && null !== J && wf(g, J, n, t, !0);
          }
        }
      }
      a: {
        h = d ? ue(d) : window;
        k = h.nodeName && h.nodeName.toLowerCase();
        if ("select" === k || "input" === k && "file" === h.type) var na = ve;else if (me(h)) {
          if (we) na = Fe;else {
            na = De;
            var xa = Ce;
          }
        } else (k = h.nodeName) && "input" === k.toLowerCase() && ("checkbox" === h.type || "radio" === h.type) && (na = Ee);
        if (na && (na = na(a, d))) {
          ne(g, na, c, e);
          break a;
        }
        xa && xa(a, h, d);
        "focusout" === a && (xa = h._wrapperState) && xa.controlled && "number" === h.type && cb(h, "number", h.value);
      }
      xa = d ? ue(d) : window;
      switch (a) {
        case "focusin":
          if (me(xa) || "true" === xa.contentEditable) Qe = xa, Re = d, Se = null;
          break;
        case "focusout":
          Se = Re = Qe = null;
          break;
        case "mousedown":
          Te = !0;
          break;
        case "contextmenu":
        case "mouseup":
        case "dragend":
          Te = !1;
          Ue(g, c, e);
          break;
        case "selectionchange":
          if (Pe) break;
        case "keydown":
        case "keyup":
          Ue(g, c, e);
      }
      var $a;
      if (ae) b: {
        switch (a) {
          case "compositionstart":
            var ba = "onCompositionStart";
            break b;
          case "compositionend":
            ba = "onCompositionEnd";
            break b;
          case "compositionupdate":
            ba = "onCompositionUpdate";
            break b;
        }
        ba = void 0;
      } else ie ? ge(a, c) && (ba = "onCompositionEnd") : "keydown" === a && 229 === c.keyCode && (ba = "onCompositionStart");
      ba && (de && "ko" !== c.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e, ld = "value" in kd ? kd.value : kd.textContent, ie = !0)), xa = oe(d, ba), 0 < xa.length && (ba = new Ld(ba, a, null, c, e), g.push({
        event: ba,
        listeners: xa
      }), $a ? ba.data = $a : ($a = he(c), null !== $a && (ba.data = $a))));
      if ($a = ce ? je(a, c) : ke(a, c)) d = oe(d, "onBeforeInput"), 0 < d.length && (e = new Ld("onBeforeInput", "beforeinput", null, c, e), g.push({
        event: e,
        listeners: d
      }), e.data = $a);
    }
    se(g, b);
  });
}
function tf(a, b, c) {
  return {
    instance: a,
    listener: b,
    currentTarget: c
  };
}
function oe(a, b) {
  for (var c = b + "Capture", d = []; null !== a;) {
    var e = a,
      f = e.stateNode;
    5 === e.tag && null !== f && (e = f, f = Kb(a, c), null != f && d.unshift(tf(a, f, e)), f = Kb(a, b), null != f && d.push(tf(a, f, e)));
    a = a.return;
  }
  return d;
}
function vf(a) {
  if (null === a) return null;
  do a = a.return; while (a && 5 !== a.tag);
  return a ? a : null;
}
function wf(a, b, c, d, e) {
  for (var f = b._reactName, g = []; null !== c && c !== d;) {
    var h = c,
      k = h.alternate,
      l = h.stateNode;
    if (null !== k && k === d) break;
    5 === h.tag && null !== l && (h = l, e ? (k = Kb(c, f), null != k && g.unshift(tf(c, k, h))) : e || (k = Kb(c, f), null != k && g.push(tf(c, k, h))));
    c = c.return;
  }
  0 !== g.length && a.push({
    event: b,
    listeners: g
  });
}
var xf = /\r\n?/g,
  yf = /\u0000|\uFFFD/g;
function zf(a) {
  return ("string" === typeof a ? a : "" + a).replace(xf, "\n").replace(yf, "");
}
function Af(a, b, c) {
  b = zf(b);
  if (zf(a) !== b && c) throw Error(p(425));
}
function Bf() {}
var Cf = null,
  Df = null;
function Ef(a, b) {
  return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;
}
var Ff = "function" === typeof setTimeout ? setTimeout : void 0,
  Gf = "function" === typeof clearTimeout ? clearTimeout : void 0,
  Hf = "function" === typeof Promise ? Promise : void 0,
  Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Hf ? function (a) {
    return Hf.resolve(null).then(a).catch(If);
  } : Ff;
function If(a) {
  setTimeout(function () {
    throw a;
  });
}
function Kf(a, b) {
  var c = b,
    d = 0;
  do {
    var e = c.nextSibling;
    a.removeChild(c);
    if (e && 8 === e.nodeType) if (c = e.data, "/$" === c) {
      if (0 === d) {
        a.removeChild(e);
        bd(b);
        return;
      }
      d--;
    } else "$" !== c && "$?" !== c && "$!" !== c || d++;
    c = e;
  } while (c);
  bd(b);
}
function Lf(a) {
  for (; null != a; a = a.nextSibling) {
    var b = a.nodeType;
    if (1 === b || 3 === b) break;
    if (8 === b) {
      b = a.data;
      if ("$" === b || "$!" === b || "$?" === b) break;
      if ("/$" === b) return null;
    }
  }
  return a;
}
function Mf(a) {
  a = a.previousSibling;
  for (var b = 0; a;) {
    if (8 === a.nodeType) {
      var c = a.data;
      if ("$" === c || "$!" === c || "$?" === c) {
        if (0 === b) return a;
        b--;
      } else "/$" === c && b++;
    }
    a = a.previousSibling;
  }
  return null;
}
var Nf = Math.random().toString(36).slice(2),
  Of = "__reactFiber$" + Nf,
  Pf = "__reactProps$" + Nf,
  uf = "__reactContainer$" + Nf,
  of = "__reactEvents$" + Nf,
  Qf = "__reactListeners$" + Nf,
  Rf = "__reactHandles$" + Nf;
function Wc(a) {
  var b = a[Of];
  if (b) return b;
  for (var c = a.parentNode; c;) {
    if (b = c[uf] || c[Of]) {
      c = b.alternate;
      if (null !== b.child || null !== c && null !== c.child) for (a = Mf(a); null !== a;) {
        if (c = a[Of]) return c;
        a = Mf(a);
      }
      return b;
    }
    a = c;
    c = a.parentNode;
  }
  return null;
}
function Cb(a) {
  a = a[Of] || a[uf];
  return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a;
}
function ue(a) {
  if (5 === a.tag || 6 === a.tag) return a.stateNode;
  throw Error(p(33));
}
function Db(a) {
  return a[Pf] || null;
}
var Sf = [],
  Tf = -1;
function Uf(a) {
  return {
    current: a
  };
}
function E(a) {
  0 > Tf || (a.current = Sf[Tf], Sf[Tf] = null, Tf--);
}
function G(a, b) {
  Tf++;
  Sf[Tf] = a.current;
  a.current = b;
}
var Vf = {},
  H = Uf(Vf),
  Wf = Uf(!1),
  Xf = Vf;
function Yf(a, b) {
  var c = a.type.contextTypes;
  if (!c) return Vf;
  var d = a.stateNode;
  if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext;
  var e = {},
    f;
  for (f in c) e[f] = b[f];
  d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e);
  return e;
}
function Zf(a) {
  a = a.childContextTypes;
  return null !== a && void 0 !== a;
}
function $f() {
  E(Wf);
  E(H);
}
function ag(a, b, c) {
  if (H.current !== Vf) throw Error(p(168));
  G(H, b);
  G(Wf, c);
}
function bg(a, b, c) {
  var d = a.stateNode;
  b = b.childContextTypes;
  if ("function" !== typeof d.getChildContext) return c;
  d = d.getChildContext();
  for (var e in d) if (!(e in b)) throw Error(p(108, Ra(a) || "Unknown", e));
  return A({}, c, d);
}
function cg(a) {
  a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Vf;
  Xf = H.current;
  G(H, a);
  G(Wf, Wf.current);
  return !0;
}
function dg(a, b, c) {
  var d = a.stateNode;
  if (!d) throw Error(p(169));
  c ? (a = bg(a, b, Xf), d.__reactInternalMemoizedMergedChildContext = a, E(Wf), E(H), G(H, a)) : E(Wf);
  G(Wf, c);
}
var eg = null,
  fg = !1,
  gg = !1;
function hg(a) {
  null === eg ? eg = [a] : eg.push(a);
}
function ig(a) {
  fg = !0;
  hg(a);
}
function jg() {
  if (!gg && null !== eg) {
    gg = !0;
    var a = 0,
      b = C;
    try {
      var c = eg;
      for (C = 1; a < c.length; a++) {
        var d = c[a];
        do d = d(!0); while (null !== d);
      }
      eg = null;
      fg = !1;
    } catch (e) {
      throw null !== eg && (eg = eg.slice(a + 1)), ac(fc, jg), e;
    } finally {
      C = b, gg = !1;
    }
  }
  return null;
}
var kg = [],
  lg = 0,
  mg = null,
  ng = 0,
  og = [],
  pg = 0,
  qg = null,
  rg = 1,
  sg = "";
function tg(a, b) {
  kg[lg++] = ng;
  kg[lg++] = mg;
  mg = a;
  ng = b;
}
function ug(a, b, c) {
  og[pg++] = rg;
  og[pg++] = sg;
  og[pg++] = qg;
  qg = a;
  var d = rg;
  a = sg;
  var e = 32 - oc(d) - 1;
  d &= ~(1 << e);
  c += 1;
  var f = 32 - oc(b) + e;
  if (30 < f) {
    var g = e - e % 5;
    f = (d & (1 << g) - 1).toString(32);
    d >>= g;
    e -= g;
    rg = 1 << 32 - oc(b) + e | c << e | d;
    sg = f + a;
  } else rg = 1 << f | c << e | d, sg = a;
}
function vg(a) {
  null !== a.return && (tg(a, 1), ug(a, 1, 0));
}
function wg(a) {
  for (; a === mg;) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null;
  for (; a === qg;) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null;
}
var xg = null,
  yg = null,
  I = !1,
  zg = null;
function Ag(a, b) {
  var c = Bg(5, null, null, 0);
  c.elementType = "DELETED";
  c.stateNode = b;
  c.return = a;
  b = a.deletions;
  null === b ? (a.deletions = [c], a.flags |= 16) : b.push(c);
}
function Cg(a, b) {
  switch (a.tag) {
    case 5:
      var c = a.type;
      b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b;
      return null !== b ? (a.stateNode = b, xg = a, yg = Lf(b.firstChild), !0) : !1;
    case 6:
      return b = "" === a.pendingProps || 3 !== b.nodeType ? null : b, null !== b ? (a.stateNode = b, xg = a, yg = null, !0) : !1;
    case 13:
      return b = 8 !== b.nodeType ? null : b, null !== b ? (c = null !== qg ? {
        id: rg,
        overflow: sg
      } : null, a.memoizedState = {
        dehydrated: b,
        treeContext: c,
        retryLane: 1073741824
      }, c = Bg(18, null, null, 0), c.stateNode = b, c.return = a, a.child = c, xg = a, yg = null, !0) : !1;
    default:
      return !1;
  }
}
function Dg(a) {
  return 0 !== (a.mode & 1) && 0 === (a.flags & 128);
}
function Eg(a) {
  if (I) {
    var b = yg;
    if (b) {
      var c = b;
      if (!Cg(a, b)) {
        if (Dg(a)) throw Error(p(418));
        b = Lf(c.nextSibling);
        var d = xg;
        b && Cg(a, b) ? Ag(d, c) : (a.flags = a.flags & -4097 | 2, I = !1, xg = a);
      }
    } else {
      if (Dg(a)) throw Error(p(418));
      a.flags = a.flags & -4097 | 2;
      I = !1;
      xg = a;
    }
  }
}
function Fg(a) {
  for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;) a = a.return;
  xg = a;
}
function Gg(a) {
  if (a !== xg) return !1;
  if (!I) return Fg(a), I = !0, !1;
  var b;
  (b = 3 !== a.tag) && !(b = 5 !== a.tag) && (b = a.type, b = "head" !== b && "body" !== b && !Ef(a.type, a.memoizedProps));
  if (b && (b = yg)) {
    if (Dg(a)) throw Hg(), Error(p(418));
    for (; b;) Ag(a, b), b = Lf(b.nextSibling);
  }
  Fg(a);
  if (13 === a.tag) {
    a = a.memoizedState;
    a = null !== a ? a.dehydrated : null;
    if (!a) throw Error(p(317));
    a: {
      a = a.nextSibling;
      for (b = 0; a;) {
        if (8 === a.nodeType) {
          var c = a.data;
          if ("/$" === c) {
            if (0 === b) {
              yg = Lf(a.nextSibling);
              break a;
            }
            b--;
          } else "$" !== c && "$!" !== c && "$?" !== c || b++;
        }
        a = a.nextSibling;
      }
      yg = null;
    }
  } else yg = xg ? Lf(a.stateNode.nextSibling) : null;
  return !0;
}
function Hg() {
  for (var a = yg; a;) a = Lf(a.nextSibling);
}
function Ig() {
  yg = xg = null;
  I = !1;
}
function Jg(a) {
  null === zg ? zg = [a] : zg.push(a);
}
var Kg = ua.ReactCurrentBatchConfig;
function Lg(a, b) {
  if (a && a.defaultProps) {
    b = A({}, b);
    a = a.defaultProps;
    for (var c in a) void 0 === b[c] && (b[c] = a[c]);
    return b;
  }
  return b;
}
var Mg = Uf(null),
  Ng = null,
  Og = null,
  Pg = null;
function Qg() {
  Pg = Og = Ng = null;
}
function Rg(a) {
  var b = Mg.current;
  E(Mg);
  a._currentValue = b;
}
function Sg(a, b, c) {
  for (; null !== a;) {
    var d = a.alternate;
    (a.childLanes & b) !== b ? (a.childLanes |= b, null !== d && (d.childLanes |= b)) : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b);
    if (a === c) break;
    a = a.return;
  }
}
function Tg(a, b) {
  Ng = a;
  Pg = Og = null;
  a = a.dependencies;
  null !== a && null !== a.firstContext && (0 !== (a.lanes & b) && (Ug = !0), a.firstContext = null);
}
function Vg(a) {
  var b = a._currentValue;
  if (Pg !== a) if (a = {
    context: a,
    memoizedValue: b,
    next: null
  }, null === Og) {
    if (null === Ng) throw Error(p(308));
    Og = a;
    Ng.dependencies = {
      lanes: 0,
      firstContext: a
    };
  } else Og = Og.next = a;
  return b;
}
var Wg = null;
function Xg(a) {
  null === Wg ? Wg = [a] : Wg.push(a);
}
function Yg(a, b, c, d) {
  var e = b.interleaved;
  null === e ? (c.next = c, Xg(b)) : (c.next = e.next, e.next = c);
  b.interleaved = c;
  return Zg(a, d);
}
function Zg(a, b) {
  a.lanes |= b;
  var c = a.alternate;
  null !== c && (c.lanes |= b);
  c = a;
  for (a = a.return; null !== a;) a.childLanes |= b, c = a.alternate, null !== c && (c.childLanes |= b), c = a, a = a.return;
  return 3 === c.tag ? c.stateNode : null;
}
var $g = !1;
function ah(a) {
  a.updateQueue = {
    baseState: a.memoizedState,
    firstBaseUpdate: null,
    lastBaseUpdate: null,
    shared: {
      pending: null,
      interleaved: null,
      lanes: 0
    },
    effects: null
  };
}
function bh(a, b) {
  a = a.updateQueue;
  b.updateQueue === a && (b.updateQueue = {
    baseState: a.baseState,
    firstBaseUpdate: a.firstBaseUpdate,
    lastBaseUpdate: a.lastBaseUpdate,
    shared: a.shared,
    effects: a.effects
  });
}
function ch(a, b) {
  return {
    eventTime: a,
    lane: b,
    tag: 0,
    payload: null,
    callback: null,
    next: null
  };
}
function dh(a, b, c) {
  var d = a.updateQueue;
  if (null === d) return null;
  d = d.shared;
  if (0 !== (K & 2)) {
    var e = d.pending;
    null === e ? b.next = b : (b.next = e.next, e.next = b);
    d.pending = b;
    return Zg(a, c);
  }
  e = d.interleaved;
  null === e ? (b.next = b, Xg(d)) : (b.next = e.next, e.next = b);
  d.interleaved = b;
  return Zg(a, c);
}
function eh(a, b, c) {
  b = b.updateQueue;
  if (null !== b && (b = b.shared, 0 !== (c & 4194240))) {
    var d = b.lanes;
    d &= a.pendingLanes;
    c |= d;
    b.lanes = c;
    Cc(a, c);
  }
}
function fh(a, b) {
  var c = a.updateQueue,
    d = a.alternate;
  if (null !== d && (d = d.updateQueue, c === d)) {
    var e = null,
      f = null;
    c = c.firstBaseUpdate;
    if (null !== c) {
      do {
        var g = {
          eventTime: c.eventTime,
          lane: c.lane,
          tag: c.tag,
          payload: c.payload,
          callback: c.callback,
          next: null
        };
        null === f ? e = f = g : f = f.next = g;
        c = c.next;
      } while (null !== c);
      null === f ? e = f = b : f = f.next = b;
    } else e = f = b;
    c = {
      baseState: d.baseState,
      firstBaseUpdate: e,
      lastBaseUpdate: f,
      shared: d.shared,
      effects: d.effects
    };
    a.updateQueue = c;
    return;
  }
  a = c.lastBaseUpdate;
  null === a ? c.firstBaseUpdate = b : a.next = b;
  c.lastBaseUpdate = b;
}
function gh(a, b, c, d) {
  var e = a.updateQueue;
  $g = !1;
  var f = e.firstBaseUpdate,
    g = e.lastBaseUpdate,
    h = e.shared.pending;
  if (null !== h) {
    e.shared.pending = null;
    var k = h,
      l = k.next;
    k.next = null;
    null === g ? f = l : g.next = l;
    g = k;
    var m = a.alternate;
    null !== m && (m = m.updateQueue, h = m.lastBaseUpdate, h !== g && (null === h ? m.firstBaseUpdate = l : h.next = l, m.lastBaseUpdate = k));
  }
  if (null !== f) {
    var q = e.baseState;
    g = 0;
    m = l = k = null;
    h = f;
    do {
      var r = h.lane,
        y = h.eventTime;
      if ((d & r) === r) {
        null !== m && (m = m.next = {
          eventTime: y,
          lane: 0,
          tag: h.tag,
          payload: h.payload,
          callback: h.callback,
          next: null
        });
        a: {
          var n = a,
            t = h;
          r = b;
          y = c;
          switch (t.tag) {
            case 1:
              n = t.payload;
              if ("function" === typeof n) {
                q = n.call(y, q, r);
                break a;
              }
              q = n;
              break a;
            case 3:
              n.flags = n.flags & -65537 | 128;
            case 0:
              n = t.payload;
              r = "function" === typeof n ? n.call(y, q, r) : n;
              if (null === r || void 0 === r) break a;
              q = A({}, q, r);
              break a;
            case 2:
              $g = !0;
          }
        }
        null !== h.callback && 0 !== h.lane && (a.flags |= 64, r = e.effects, null === r ? e.effects = [h] : r.push(h));
      } else y = {
        eventTime: y,
        lane: r,
        tag: h.tag,
        payload: h.payload,
        callback: h.callback,
        next: null
      }, null === m ? (l = m = y, k = q) : m = m.next = y, g |= r;
      h = h.next;
      if (null === h) if (h = e.shared.pending, null === h) break;else r = h, h = r.next, r.next = null, e.lastBaseUpdate = r, e.shared.pending = null;
    } while (1);
    null === m && (k = q);
    e.baseState = k;
    e.firstBaseUpdate = l;
    e.lastBaseUpdate = m;
    b = e.shared.interleaved;
    if (null !== b) {
      e = b;
      do g |= e.lane, e = e.next; while (e !== b);
    } else null === f && (e.shared.lanes = 0);
    hh |= g;
    a.lanes = g;
    a.memoizedState = q;
  }
}
function ih(a, b, c) {
  a = b.effects;
  b.effects = null;
  if (null !== a) for (b = 0; b < a.length; b++) {
    var d = a[b],
      e = d.callback;
    if (null !== e) {
      d.callback = null;
      d = c;
      if ("function" !== typeof e) throw Error(p(191, e));
      e.call(d);
    }
  }
}
var jh = new aa.Component().refs;
function kh(a, b, c, d) {
  b = a.memoizedState;
  c = c(d, b);
  c = null === c || void 0 === c ? b : A({}, b, c);
  a.memoizedState = c;
  0 === a.lanes && (a.updateQueue.baseState = c);
}
var nh = {
  isMounted: function isMounted(a) {
    return (a = a._reactInternals) ? Vb(a) === a : !1;
  },
  enqueueSetState: function enqueueSetState(a, b, c) {
    a = a._reactInternals;
    var d = L(),
      e = lh(a),
      f = ch(d, e);
    f.payload = b;
    void 0 !== c && null !== c && (f.callback = c);
    b = dh(a, f, e);
    null !== b && (mh(b, a, e, d), eh(b, a, e));
  },
  enqueueReplaceState: function enqueueReplaceState(a, b, c) {
    a = a._reactInternals;
    var d = L(),
      e = lh(a),
      f = ch(d, e);
    f.tag = 1;
    f.payload = b;
    void 0 !== c && null !== c && (f.callback = c);
    b = dh(a, f, e);
    null !== b && (mh(b, a, e, d), eh(b, a, e));
  },
  enqueueForceUpdate: function enqueueForceUpdate(a, b) {
    a = a._reactInternals;
    var c = L(),
      d = lh(a),
      e = ch(c, d);
    e.tag = 2;
    void 0 !== b && null !== b && (e.callback = b);
    b = dh(a, e, d);
    null !== b && (mh(b, a, d, c), eh(b, a, d));
  }
};
function oh(a, b, c, d, e, f, g) {
  a = a.stateNode;
  return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !Ie(c, d) || !Ie(e, f) : !0;
}
function ph(a, b, c) {
  var d = !1,
    e = Vf;
  var f = b.contextType;
  "object" === typeof f && null !== f ? f = Vg(f) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf);
  b = new b(c, f);
  a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;
  b.updater = nh;
  a.stateNode = b;
  b._reactInternals = a;
  d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f);
  return b;
}
function qh(a, b, c, d) {
  a = b.state;
  "function" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d);
  "function" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d);
  b.state !== a && nh.enqueueReplaceState(b, b.state, null);
}
function rh(a, b, c, d) {
  var e = a.stateNode;
  e.props = c;
  e.state = a.memoizedState;
  e.refs = jh;
  ah(a);
  var f = b.contextType;
  "object" === typeof f && null !== f ? e.context = Vg(f) : (f = Zf(b) ? Xf : H.current, e.context = Yf(a, f));
  e.state = a.memoizedState;
  f = b.getDerivedStateFromProps;
  "function" === typeof f && (kh(a, b, f, c), e.state = a.memoizedState);
  "function" === typeof b.getDerivedStateFromProps || "function" === typeof e.getSnapshotBeforeUpdate || "function" !== typeof e.UNSAFE_componentWillMount && "function" !== typeof e.componentWillMount || (b = e.state, "function" === typeof e.componentWillMount && e.componentWillMount(), "function" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && nh.enqueueReplaceState(e, e.state, null), gh(a, c, e, d), e.state = a.memoizedState);
  "function" === typeof e.componentDidMount && (a.flags |= 4194308);
}
function sh(a, b, c) {
  a = c.ref;
  if (null !== a && "function" !== typeof a && "object" !== typeof a) {
    if (c._owner) {
      c = c._owner;
      if (c) {
        if (1 !== c.tag) throw Error(p(309));
        var d = c.stateNode;
      }
      if (!d) throw Error(p(147, a));
      var e = d,
        f = "" + a;
      if (null !== b && null !== b.ref && "function" === typeof b.ref && b.ref._stringRef === f) return b.ref;
      b = function b(a) {
        var b = e.refs;
        b === jh && (b = e.refs = {});
        null === a ? delete b[f] : b[f] = a;
      };
      b._stringRef = f;
      return b;
    }
    if ("string" !== typeof a) throw Error(p(284));
    if (!c._owner) throw Error(p(290, a));
  }
  return a;
}
function th(a, b) {
  a = Object.prototype.toString.call(b);
  throw Error(p(31, "[object Object]" === a ? "object with keys {" + Object.keys(b).join(", ") + "}" : a));
}
function uh(a) {
  var b = a._init;
  return b(a._payload);
}
function vh(a) {
  function b(b, c) {
    if (a) {
      var d = b.deletions;
      null === d ? (b.deletions = [c], b.flags |= 16) : d.push(c);
    }
  }
  function c(c, d) {
    if (!a) return null;
    for (; null !== d;) b(c, d), d = d.sibling;
    return null;
  }
  function d(a, b) {
    for (a = new Map(); null !== b;) null !== b.key ? a.set(b.key, b) : a.set(b.index, b), b = b.sibling;
    return a;
  }
  function e(a, b) {
    a = wh(a, b);
    a.index = 0;
    a.sibling = null;
    return a;
  }
  function f(b, c, d) {
    b.index = d;
    if (!a) return b.flags |= 1048576, c;
    d = b.alternate;
    if (null !== d) return d = d.index, d < c ? (b.flags |= 2, c) : d;
    b.flags |= 2;
    return c;
  }
  function g(b) {
    a && null === b.alternate && (b.flags |= 2);
    return b;
  }
  function h(a, b, c, d) {
    if (null === b || 6 !== b.tag) return b = xh(c, a.mode, d), b.return = a, b;
    b = e(b, c);
    b.return = a;
    return b;
  }
  function k(a, b, c, d) {
    var f = c.type;
    if (f === ya) return m(a, b, c.props.children, d, c.key);
    if (null !== b && (b.elementType === f || "object" === typeof f && null !== f && f.$$typeof === Ha && uh(f) === b.type)) return d = e(b, c.props), d.ref = sh(a, b, c), d.return = a, d;
    d = yh(c.type, c.key, c.props, null, a.mode, d);
    d.ref = sh(a, b, c);
    d.return = a;
    return d;
  }
  function l(a, b, c, d) {
    if (null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation) return b = zh(c, a.mode, d), b.return = a, b;
    b = e(b, c.children || []);
    b.return = a;
    return b;
  }
  function m(a, b, c, d, f) {
    if (null === b || 7 !== b.tag) return b = Ah(c, a.mode, d, f), b.return = a, b;
    b = e(b, c);
    b.return = a;
    return b;
  }
  function q(a, b, c) {
    if ("string" === typeof b && "" !== b || "number" === typeof b) return b = xh("" + b, a.mode, c), b.return = a, b;
    if ("object" === typeof b && null !== b) {
      switch (b.$$typeof) {
        case va:
          return c = yh(b.type, b.key, b.props, null, a.mode, c), c.ref = sh(a, null, b), c.return = a, c;
        case wa:
          return b = zh(b, a.mode, c), b.return = a, b;
        case Ha:
          var d = b._init;
          return q(a, d(b._payload), c);
      }
      if (eb(b) || Ka(b)) return b = Ah(b, a.mode, c, null), b.return = a, b;
      th(a, b);
    }
    return null;
  }
  function r(a, b, c, d) {
    var e = null !== b ? b.key : null;
    if ("string" === typeof c && "" !== c || "number" === typeof c) return null !== e ? null : h(a, b, "" + c, d);
    if ("object" === typeof c && null !== c) {
      switch (c.$$typeof) {
        case va:
          return c.key === e ? k(a, b, c, d) : null;
        case wa:
          return c.key === e ? l(a, b, c, d) : null;
        case Ha:
          return e = c._init, r(a, b, e(c._payload), d);
      }
      if (eb(c) || Ka(c)) return null !== e ? null : m(a, b, c, d, null);
      th(a, c);
    }
    return null;
  }
  function y(a, b, c, d, e) {
    if ("string" === typeof d && "" !== d || "number" === typeof d) return a = a.get(c) || null, h(b, a, "" + d, e);
    if ("object" === typeof d && null !== d) {
      switch (d.$$typeof) {
        case va:
          return a = a.get(null === d.key ? c : d.key) || null, k(b, a, d, e);
        case wa:
          return a = a.get(null === d.key ? c : d.key) || null, l(b, a, d, e);
        case Ha:
          var f = d._init;
          return y(a, b, c, f(d._payload), e);
      }
      if (eb(d) || Ka(d)) return a = a.get(c) || null, m(b, a, d, e, null);
      th(b, d);
    }
    return null;
  }
  function n(e, g, h, k) {
    for (var l = null, m = null, u = g, w = g = 0, x = null; null !== u && w < h.length; w++) {
      u.index > w ? (x = u, u = null) : x = u.sibling;
      var n = r(e, u, h[w], k);
      if (null === n) {
        null === u && (u = x);
        break;
      }
      a && u && null === n.alternate && b(e, u);
      g = f(n, g, w);
      null === m ? l = n : m.sibling = n;
      m = n;
      u = x;
    }
    if (w === h.length) return c(e, u), I && tg(e, w), l;
    if (null === u) {
      for (; w < h.length; w++) u = q(e, h[w], k), null !== u && (g = f(u, g, w), null === m ? l = u : m.sibling = u, m = u);
      I && tg(e, w);
      return l;
    }
    for (u = d(e, u); w < h.length; w++) x = y(u, e, w, h[w], k), null !== x && (a && null !== x.alternate && u.delete(null === x.key ? w : x.key), g = f(x, g, w), null === m ? l = x : m.sibling = x, m = x);
    a && u.forEach(function (a) {
      return b(e, a);
    });
    I && tg(e, w);
    return l;
  }
  function t(e, g, h, k) {
    var l = Ka(h);
    if ("function" !== typeof l) throw Error(p(150));
    h = l.call(h);
    if (null == h) throw Error(p(151));
    for (var u = l = null, m = g, w = g = 0, x = null, n = h.next(); null !== m && !n.done; w++, n = h.next()) {
      m.index > w ? (x = m, m = null) : x = m.sibling;
      var t = r(e, m, n.value, k);
      if (null === t) {
        null === m && (m = x);
        break;
      }
      a && m && null === t.alternate && b(e, m);
      g = f(t, g, w);
      null === u ? l = t : u.sibling = t;
      u = t;
      m = x;
    }
    if (n.done) return c(e, m), I && tg(e, w), l;
    if (null === m) {
      for (; !n.done; w++, n = h.next()) n = q(e, n.value, k), null !== n && (g = f(n, g, w), null === u ? l = n : u.sibling = n, u = n);
      I && tg(e, w);
      return l;
    }
    for (m = d(e, m); !n.done; w++, n = h.next()) n = y(m, e, w, n.value, k), null !== n && (a && null !== n.alternate && m.delete(null === n.key ? w : n.key), g = f(n, g, w), null === u ? l = n : u.sibling = n, u = n);
    a && m.forEach(function (a) {
      return b(e, a);
    });
    I && tg(e, w);
    return l;
  }
  function J(a, d, f, h) {
    "object" === typeof f && null !== f && f.type === ya && null === f.key && (f = f.props.children);
    if ("object" === typeof f && null !== f) {
      switch (f.$$typeof) {
        case va:
          a: {
            for (var k = f.key, l = d; null !== l;) {
              if (l.key === k) {
                k = f.type;
                if (k === ya) {
                  if (7 === l.tag) {
                    c(a, l.sibling);
                    d = e(l, f.props.children);
                    d.return = a;
                    a = d;
                    break a;
                  }
                } else if (l.elementType === k || "object" === typeof k && null !== k && k.$$typeof === Ha && uh(k) === l.type) {
                  c(a, l.sibling);
                  d = e(l, f.props);
                  d.ref = sh(a, l, f);
                  d.return = a;
                  a = d;
                  break a;
                }
                c(a, l);
                break;
              } else b(a, l);
              l = l.sibling;
            }
            f.type === ya ? (d = Ah(f.props.children, a.mode, h, f.key), d.return = a, a = d) : (h = yh(f.type, f.key, f.props, null, a.mode, h), h.ref = sh(a, d, f), h.return = a, a = h);
          }
          return g(a);
        case wa:
          a: {
            for (l = f.key; null !== d;) {
              if (d.key === l) {
                if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) {
                  c(a, d.sibling);
                  d = e(d, f.children || []);
                  d.return = a;
                  a = d;
                  break a;
                } else {
                  c(a, d);
                  break;
                }
              } else b(a, d);
              d = d.sibling;
            }
            d = zh(f, a.mode, h);
            d.return = a;
            a = d;
          }
          return g(a);
        case Ha:
          return l = f._init, J(a, d, l(f._payload), h);
      }
      if (eb(f)) return n(a, d, f, h);
      if (Ka(f)) return t(a, d, f, h);
      th(a, f);
    }
    return "string" === typeof f && "" !== f || "number" === typeof f ? (f = "" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), d = e(d, f), d.return = a, a = d) : (c(a, d), d = xh(f, a.mode, h), d.return = a, a = d), g(a)) : c(a, d);
  }
  return J;
}
var Bh = vh(!0),
  Ch = vh(!1),
  Dh = {},
  Eh = Uf(Dh),
  Fh = Uf(Dh),
  Gh = Uf(Dh);
function Hh(a) {
  if (a === Dh) throw Error(p(174));
  return a;
}
function Ih(a, b) {
  G(Gh, b);
  G(Fh, a);
  G(Eh, Dh);
  a = b.nodeType;
  switch (a) {
    case 9:
    case 11:
      b = (b = b.documentElement) ? b.namespaceURI : lb(null, "");
      break;
    default:
      a = 8 === a ? b.parentNode : b, b = a.namespaceURI || null, a = a.tagName, b = lb(b, a);
  }
  E(Eh);
  G(Eh, b);
}
function Jh() {
  E(Eh);
  E(Fh);
  E(Gh);
}
function Kh(a) {
  Hh(Gh.current);
  var b = Hh(Eh.current);
  var c = lb(b, a.type);
  b !== c && (G(Fh, a), G(Eh, c));
}
function Lh(a) {
  Fh.current === a && (E(Eh), E(Fh));
}
var M = Uf(0);
function Mh(a) {
  for (var b = a; null !== b;) {
    if (13 === b.tag) {
      var c = b.memoizedState;
      if (null !== c && (c = c.dehydrated, null === c || "$?" === c.data || "$!" === c.data)) return b;
    } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) {
      if (0 !== (b.flags & 128)) return b;
    } else if (null !== b.child) {
      b.child.return = b;
      b = b.child;
      continue;
    }
    if (b === a) break;
    for (; null === b.sibling;) {
      if (null === b.return || b.return === a) return null;
      b = b.return;
    }
    b.sibling.return = b.return;
    b = b.sibling;
  }
  return null;
}
var Nh = [];
function Oh() {
  for (var a = 0; a < Nh.length; a++) Nh[a]._workInProgressVersionPrimary = null;
  Nh.length = 0;
}
var Ph = ua.ReactCurrentDispatcher,
  Qh = ua.ReactCurrentBatchConfig,
  Rh = 0,
  N = null,
  O = null,
  P = null,
  Sh = !1,
  Th = !1,
  Uh = 0,
  Vh = 0;
function Q() {
  throw Error(p(321));
}
function Wh(a, b) {
  if (null === b) return !1;
  for (var c = 0; c < b.length && c < a.length; c++) if (!He(a[c], b[c])) return !1;
  return !0;
}
function Xh(a, b, c, d, e, f) {
  Rh = f;
  N = b;
  b.memoizedState = null;
  b.updateQueue = null;
  b.lanes = 0;
  Ph.current = null === a || null === a.memoizedState ? Yh : Zh;
  a = c(d, e);
  if (Th) {
    f = 0;
    do {
      Th = !1;
      Uh = 0;
      if (25 <= f) throw Error(p(301));
      f += 1;
      P = O = null;
      b.updateQueue = null;
      Ph.current = $h;
      a = c(d, e);
    } while (Th);
  }
  Ph.current = ai;
  b = null !== O && null !== O.next;
  Rh = 0;
  P = O = N = null;
  Sh = !1;
  if (b) throw Error(p(300));
  return a;
}
function bi() {
  var a = 0 !== Uh;
  Uh = 0;
  return a;
}
function ci() {
  var a = {
    memoizedState: null,
    baseState: null,
    baseQueue: null,
    queue: null,
    next: null
  };
  null === P ? N.memoizedState = P = a : P = P.next = a;
  return P;
}
function di() {
  if (null === O) {
    var a = N.alternate;
    a = null !== a ? a.memoizedState : null;
  } else a = O.next;
  var b = null === P ? N.memoizedState : P.next;
  if (null !== b) P = b, O = a;else {
    if (null === a) throw Error(p(310));
    O = a;
    a = {
      memoizedState: O.memoizedState,
      baseState: O.baseState,
      baseQueue: O.baseQueue,
      queue: O.queue,
      next: null
    };
    null === P ? N.memoizedState = P = a : P = P.next = a;
  }
  return P;
}
function ei(a, b) {
  return "function" === typeof b ? b(a) : b;
}
function fi(a) {
  var b = di(),
    c = b.queue;
  if (null === c) throw Error(p(311));
  c.lastRenderedReducer = a;
  var d = O,
    e = d.baseQueue,
    f = c.pending;
  if (null !== f) {
    if (null !== e) {
      var g = e.next;
      e.next = f.next;
      f.next = g;
    }
    d.baseQueue = e = f;
    c.pending = null;
  }
  if (null !== e) {
    f = e.next;
    d = d.baseState;
    var h = g = null,
      k = null,
      l = f;
    do {
      var m = l.lane;
      if ((Rh & m) === m) null !== k && (k = k.next = {
        lane: 0,
        action: l.action,
        hasEagerState: l.hasEagerState,
        eagerState: l.eagerState,
        next: null
      }), d = l.hasEagerState ? l.eagerState : a(d, l.action);else {
        var q = {
          lane: m,
          action: l.action,
          hasEagerState: l.hasEagerState,
          eagerState: l.eagerState,
          next: null
        };
        null === k ? (h = k = q, g = d) : k = k.next = q;
        N.lanes |= m;
        hh |= m;
      }
      l = l.next;
    } while (null !== l && l !== f);
    null === k ? g = d : k.next = h;
    He(d, b.memoizedState) || (Ug = !0);
    b.memoizedState = d;
    b.baseState = g;
    b.baseQueue = k;
    c.lastRenderedState = d;
  }
  a = c.interleaved;
  if (null !== a) {
    e = a;
    do f = e.lane, N.lanes |= f, hh |= f, e = e.next; while (e !== a);
  } else null === e && (c.lanes = 0);
  return [b.memoizedState, c.dispatch];
}
function gi(a) {
  var b = di(),
    c = b.queue;
  if (null === c) throw Error(p(311));
  c.lastRenderedReducer = a;
  var d = c.dispatch,
    e = c.pending,
    f = b.memoizedState;
  if (null !== e) {
    c.pending = null;
    var g = e = e.next;
    do f = a(f, g.action), g = g.next; while (g !== e);
    He(f, b.memoizedState) || (Ug = !0);
    b.memoizedState = f;
    null === b.baseQueue && (b.baseState = f);
    c.lastRenderedState = f;
  }
  return [f, d];
}
function hi() {}
function ii(a, b) {
  var c = N,
    d = di(),
    e = b(),
    f = !He(d.memoizedState, e);
  f && (d.memoizedState = e, Ug = !0);
  d = d.queue;
  ji(ki.bind(null, c, d, a), [a]);
  if (d.getSnapshot !== b || f || null !== P && P.memoizedState.tag & 1) {
    c.flags |= 2048;
    li(9, mi.bind(null, c, d, e, b), void 0, null);
    if (null === R) throw Error(p(349));
    0 !== (Rh & 30) || ni(c, b, e);
  }
  return e;
}
function ni(a, b, c) {
  a.flags |= 16384;
  a = {
    getSnapshot: b,
    value: c
  };
  b = N.updateQueue;
  null === b ? (b = {
    lastEffect: null,
    stores: null
  }, N.updateQueue = b, b.stores = [a]) : (c = b.stores, null === c ? b.stores = [a] : c.push(a));
}
function mi(a, b, c, d) {
  b.value = c;
  b.getSnapshot = d;
  oi(b) && pi(a);
}
function ki(a, b, c) {
  return c(function () {
    oi(b) && pi(a);
  });
}
function oi(a) {
  var b = a.getSnapshot;
  a = a.value;
  try {
    var c = b();
    return !He(a, c);
  } catch (d) {
    return !0;
  }
}
function pi(a) {
  var b = Zg(a, 1);
  null !== b && mh(b, a, 1, -1);
}
function qi(a) {
  var b = ci();
  "function" === typeof a && (a = a());
  b.memoizedState = b.baseState = a;
  a = {
    pending: null,
    interleaved: null,
    lanes: 0,
    dispatch: null,
    lastRenderedReducer: ei,
    lastRenderedState: a
  };
  b.queue = a;
  a = a.dispatch = ri.bind(null, N, a);
  return [b.memoizedState, a];
}
function li(a, b, c, d) {
  a = {
    tag: a,
    create: b,
    destroy: c,
    deps: d,
    next: null
  };
  b = N.updateQueue;
  null === b ? (b = {
    lastEffect: null,
    stores: null
  }, N.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a));
  return a;
}
function si() {
  return di().memoizedState;
}
function ti(a, b, c, d) {
  var e = ci();
  N.flags |= a;
  e.memoizedState = li(1 | b, c, void 0, void 0 === d ? null : d);
}
function ui(a, b, c, d) {
  var e = di();
  d = void 0 === d ? null : d;
  var f = void 0;
  if (null !== O) {
    var g = O.memoizedState;
    f = g.destroy;
    if (null !== d && Wh(d, g.deps)) {
      e.memoizedState = li(b, c, f, d);
      return;
    }
  }
  N.flags |= a;
  e.memoizedState = li(1 | b, c, f, d);
}
function vi(a, b) {
  return ti(8390656, 8, a, b);
}
function ji(a, b) {
  return ui(2048, 8, a, b);
}
function wi(a, b) {
  return ui(4, 2, a, b);
}
function xi(a, b) {
  return ui(4, 4, a, b);
}
function yi(a, b) {
  if ("function" === typeof b) return a = a(), b(a), function () {
    b(null);
  };
  if (null !== b && void 0 !== b) return a = a(), b.current = a, function () {
    b.current = null;
  };
}
function zi(a, b, c) {
  c = null !== c && void 0 !== c ? c.concat([a]) : null;
  return ui(4, 4, yi.bind(null, b, a), c);
}
function Ai() {}
function Bi(a, b) {
  var c = di();
  b = void 0 === b ? null : b;
  var d = c.memoizedState;
  if (null !== d && null !== b && Wh(b, d[1])) return d[0];
  c.memoizedState = [a, b];
  return a;
}
function Ci(a, b) {
  var c = di();
  b = void 0 === b ? null : b;
  var d = c.memoizedState;
  if (null !== d && null !== b && Wh(b, d[1])) return d[0];
  a = a();
  c.memoizedState = [a, b];
  return a;
}
function Di(a, b, c) {
  if (0 === (Rh & 21)) return a.baseState && (a.baseState = !1, Ug = !0), a.memoizedState = c;
  He(c, b) || (c = yc(), N.lanes |= c, hh |= c, a.baseState = !0);
  return b;
}
function Ei(a, b) {
  var c = C;
  C = 0 !== c && 4 > c ? c : 4;
  a(!0);
  var d = Qh.transition;
  Qh.transition = {};
  try {
    a(!1), b();
  } finally {
    C = c, Qh.transition = d;
  }
}
function Fi() {
  return di().memoizedState;
}
function Gi(a, b, c) {
  var d = lh(a);
  c = {
    lane: d,
    action: c,
    hasEagerState: !1,
    eagerState: null,
    next: null
  };
  if (Hi(a)) Ii(b, c);else if (c = Yg(a, b, c, d), null !== c) {
    var e = L();
    mh(c, a, d, e);
    Ji(c, b, d);
  }
}
function ri(a, b, c) {
  var d = lh(a),
    e = {
      lane: d,
      action: c,
      hasEagerState: !1,
      eagerState: null,
      next: null
    };
  if (Hi(a)) Ii(b, e);else {
    var f = a.alternate;
    if (0 === a.lanes && (null === f || 0 === f.lanes) && (f = b.lastRenderedReducer, null !== f)) try {
      var g = b.lastRenderedState,
        h = f(g, c);
      e.hasEagerState = !0;
      e.eagerState = h;
      if (He(h, g)) {
        var k = b.interleaved;
        null === k ? (e.next = e, Xg(b)) : (e.next = k.next, k.next = e);
        b.interleaved = e;
        return;
      }
    } catch (l) {} finally {}
    c = Yg(a, b, e, d);
    null !== c && (e = L(), mh(c, a, d, e), Ji(c, b, d));
  }
}
function Hi(a) {
  var b = a.alternate;
  return a === N || null !== b && b === N;
}
function Ii(a, b) {
  Th = Sh = !0;
  var c = a.pending;
  null === c ? b.next = b : (b.next = c.next, c.next = b);
  a.pending = b;
}
function Ji(a, b, c) {
  if (0 !== (c & 4194240)) {
    var d = b.lanes;
    d &= a.pendingLanes;
    c |= d;
    b.lanes = c;
    Cc(a, c);
  }
}
var ai = {
    readContext: Vg,
    useCallback: Q,
    useContext: Q,
    useEffect: Q,
    useImperativeHandle: Q,
    useInsertionEffect: Q,
    useLayoutEffect: Q,
    useMemo: Q,
    useReducer: Q,
    useRef: Q,
    useState: Q,
    useDebugValue: Q,
    useDeferredValue: Q,
    useTransition: Q,
    useMutableSource: Q,
    useSyncExternalStore: Q,
    useId: Q,
    unstable_isNewReconciler: !1
  },
  Yh = {
    readContext: Vg,
    useCallback: function useCallback(a, b) {
      ci().memoizedState = [a, void 0 === b ? null : b];
      return a;
    },
    useContext: Vg,
    useEffect: vi,
    useImperativeHandle: function useImperativeHandle(a, b, c) {
      c = null !== c && void 0 !== c ? c.concat([a]) : null;
      return ti(4194308, 4, yi.bind(null, b, a), c);
    },
    useLayoutEffect: function useLayoutEffect(a, b) {
      return ti(4194308, 4, a, b);
    },
    useInsertionEffect: function useInsertionEffect(a, b) {
      return ti(4, 2, a, b);
    },
    useMemo: function useMemo(a, b) {
      var c = ci();
      b = void 0 === b ? null : b;
      a = a();
      c.memoizedState = [a, b];
      return a;
    },
    useReducer: function useReducer(a, b, c) {
      var d = ci();
      b = void 0 !== c ? c(b) : b;
      d.memoizedState = d.baseState = b;
      a = {
        pending: null,
        interleaved: null,
        lanes: 0,
        dispatch: null,
        lastRenderedReducer: a,
        lastRenderedState: b
      };
      d.queue = a;
      a = a.dispatch = Gi.bind(null, N, a);
      return [d.memoizedState, a];
    },
    useRef: function useRef(a) {
      var b = ci();
      a = {
        current: a
      };
      return b.memoizedState = a;
    },
    useState: qi,
    useDebugValue: Ai,
    useDeferredValue: function useDeferredValue(a) {
      return ci().memoizedState = a;
    },
    useTransition: function useTransition() {
      var a = qi(!1),
        b = a[0];
      a = Ei.bind(null, a[1]);
      ci().memoizedState = a;
      return [b, a];
    },
    useMutableSource: function useMutableSource() {},
    useSyncExternalStore: function useSyncExternalStore(a, b, c) {
      var d = N,
        e = ci();
      if (I) {
        if (void 0 === c) throw Error(p(407));
        c = c();
      } else {
        c = b();
        if (null === R) throw Error(p(349));
        0 !== (Rh & 30) || ni(d, b, c);
      }
      e.memoizedState = c;
      var f = {
        value: c,
        getSnapshot: b
      };
      e.queue = f;
      vi(ki.bind(null, d, f, a), [a]);
      d.flags |= 2048;
      li(9, mi.bind(null, d, f, c, b), void 0, null);
      return c;
    },
    useId: function useId() {
      var a = ci(),
        b = R.identifierPrefix;
      if (I) {
        var c = sg;
        var d = rg;
        c = (d & ~(1 << 32 - oc(d) - 1)).toString(32) + c;
        b = ":" + b + "R" + c;
        c = Uh++;
        0 < c && (b += "H" + c.toString(32));
        b += ":";
      } else c = Vh++, b = ":" + b + "r" + c.toString(32) + ":";
      return a.memoizedState = b;
    },
    unstable_isNewReconciler: !1
  },
  Zh = {
    readContext: Vg,
    useCallback: Bi,
    useContext: Vg,
    useEffect: ji,
    useImperativeHandle: zi,
    useInsertionEffect: wi,
    useLayoutEffect: xi,
    useMemo: Ci,
    useReducer: fi,
    useRef: si,
    useState: function useState() {
      return fi(ei);
    },
    useDebugValue: Ai,
    useDeferredValue: function useDeferredValue(a) {
      var b = di();
      return Di(b, O.memoizedState, a);
    },
    useTransition: function useTransition() {
      var a = fi(ei)[0],
        b = di().memoizedState;
      return [a, b];
    },
    useMutableSource: hi,
    useSyncExternalStore: ii,
    useId: Fi,
    unstable_isNewReconciler: !1
  },
  $h = {
    readContext: Vg,
    useCallback: Bi,
    useContext: Vg,
    useEffect: ji,
    useImperativeHandle: zi,
    useInsertionEffect: wi,
    useLayoutEffect: xi,
    useMemo: Ci,
    useReducer: gi,
    useRef: si,
    useState: function useState() {
      return gi(ei);
    },
    useDebugValue: Ai,
    useDeferredValue: function useDeferredValue(a) {
      var b = di();
      return null === O ? b.memoizedState = a : Di(b, O.memoizedState, a);
    },
    useTransition: function useTransition() {
      var a = gi(ei)[0],
        b = di().memoizedState;
      return [a, b];
    },
    useMutableSource: hi,
    useSyncExternalStore: ii,
    useId: Fi,
    unstable_isNewReconciler: !1
  };
function Ki(a, b) {
  try {
    var c = "",
      d = b;
    do c += Pa(d), d = d.return; while (d);
    var e = c;
  } catch (f) {
    e = "\nError generating stack: " + f.message + "\n" + f.stack;
  }
  return {
    value: a,
    source: b,
    stack: e,
    digest: null
  };
}
function Li(a, b, c) {
  return {
    value: a,
    source: null,
    stack: null != c ? c : null,
    digest: null != b ? b : null
  };
}
function Mi(a, b) {
  try {
    console.error(b.value);
  } catch (c) {
    setTimeout(function () {
      throw c;
    });
  }
}
var Ni = "function" === typeof WeakMap ? WeakMap : Map;
function Oi(a, b, c) {
  c = ch(-1, c);
  c.tag = 3;
  c.payload = {
    element: null
  };
  var d = b.value;
  c.callback = function () {
    Pi || (Pi = !0, Qi = d);
    Mi(a, b);
  };
  return c;
}
function Ri(a, b, c) {
  c = ch(-1, c);
  c.tag = 3;
  var d = a.type.getDerivedStateFromError;
  if ("function" === typeof d) {
    var e = b.value;
    c.payload = function () {
      return d(e);
    };
    c.callback = function () {
      Mi(a, b);
    };
  }
  var f = a.stateNode;
  null !== f && "function" === typeof f.componentDidCatch && (c.callback = function () {
    Mi(a, b);
    "function" !== typeof d && (null === Si ? Si = new Set([this]) : Si.add(this));
    var c = b.stack;
    this.componentDidCatch(b.value, {
      componentStack: null !== c ? c : ""
    });
  });
  return c;
}
function Ti(a, b, c) {
  var d = a.pingCache;
  if (null === d) {
    d = a.pingCache = new Ni();
    var e = new Set();
    d.set(b, e);
  } else e = d.get(b), void 0 === e && (e = new Set(), d.set(b, e));
  e.has(c) || (e.add(c), a = Ui.bind(null, a, b, c), b.then(a, a));
}
function Vi(a) {
  do {
    var b;
    if (b = 13 === a.tag) b = a.memoizedState, b = null !== b ? null !== b.dehydrated ? !0 : !1 : !0;
    if (b) return a;
    a = a.return;
  } while (null !== a);
  return null;
}
function Wi(a, b, c, d, e) {
  if (0 === (a.mode & 1)) return a === b ? a.flags |= 65536 : (a.flags |= 128, c.flags |= 131072, c.flags &= -52805, 1 === c.tag && (null === c.alternate ? c.tag = 17 : (b = ch(-1, 1), b.tag = 2, dh(c, b, 1))), c.lanes |= 1), a;
  a.flags |= 65536;
  a.lanes = e;
  return a;
}
var Xi = ua.ReactCurrentOwner,
  Ug = !1;
function Yi(a, b, c, d) {
  b.child = null === a ? Ch(b, null, c, d) : Bh(b, a.child, c, d);
}
function Zi(a, b, c, d, e) {
  c = c.render;
  var f = b.ref;
  Tg(b, e);
  d = Xh(a, b, c, d, f, e);
  c = bi();
  if (null !== a && !Ug) return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, $i(a, b, e);
  I && c && vg(b);
  b.flags |= 1;
  Yi(a, b, d, e);
  return b.child;
}
function aj(a, b, c, d, e) {
  if (null === a) {
    var f = c.type;
    if ("function" === typeof f && !bj(f) && void 0 === f.defaultProps && null === c.compare && void 0 === c.defaultProps) return b.tag = 15, b.type = f, cj(a, b, f, d, e);
    a = yh(c.type, null, d, b, b.mode, e);
    a.ref = b.ref;
    a.return = b;
    return b.child = a;
  }
  f = a.child;
  if (0 === (a.lanes & e)) {
    var g = f.memoizedProps;
    c = c.compare;
    c = null !== c ? c : Ie;
    if (c(g, d) && a.ref === b.ref) return $i(a, b, e);
  }
  b.flags |= 1;
  a = wh(f, d);
  a.ref = b.ref;
  a.return = b;
  return b.child = a;
}
function cj(a, b, c, d, e) {
  if (null !== a) {
    var f = a.memoizedProps;
    if (Ie(f, d) && a.ref === b.ref) if (Ug = !1, b.pendingProps = d = f, 0 !== (a.lanes & e)) 0 !== (a.flags & 131072) && (Ug = !0);else return b.lanes = a.lanes, $i(a, b, e);
  }
  return dj(a, b, c, d, e);
}
function ej(a, b, c) {
  var d = b.pendingProps,
    e = d.children,
    f = null !== a ? a.memoizedState : null;
  if ("hidden" === d.mode) {
    if (0 === (b.mode & 1)) b.memoizedState = {
      baseLanes: 0,
      cachePool: null,
      transitions: null
    }, G(fj, gj), gj |= c;else {
      if (0 === (c & 1073741824)) return a = null !== f ? f.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = {
        baseLanes: a,
        cachePool: null,
        transitions: null
      }, b.updateQueue = null, G(fj, gj), gj |= a, null;
      b.memoizedState = {
        baseLanes: 0,
        cachePool: null,
        transitions: null
      };
      d = null !== f ? f.baseLanes : c;
      G(fj, gj);
      gj |= d;
    }
  } else null !== f ? (d = f.baseLanes | c, b.memoizedState = null) : d = c, G(fj, gj), gj |= d;
  Yi(a, b, e, c);
  return b.child;
}
function hj(a, b) {
  var c = b.ref;
  if (null === a && null !== c || null !== a && a.ref !== c) b.flags |= 512, b.flags |= 2097152;
}
function dj(a, b, c, d, e) {
  var f = Zf(c) ? Xf : H.current;
  f = Yf(b, f);
  Tg(b, e);
  c = Xh(a, b, c, d, f, e);
  d = bi();
  if (null !== a && !Ug) return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, $i(a, b, e);
  I && d && vg(b);
  b.flags |= 1;
  Yi(a, b, c, e);
  return b.child;
}
function ij(a, b, c, d, e) {
  if (Zf(c)) {
    var f = !0;
    cg(b);
  } else f = !1;
  Tg(b, e);
  if (null === b.stateNode) jj(a, b), ph(b, c, d), rh(b, c, d, e), d = !0;else if (null === a) {
    var g = b.stateNode,
      h = b.memoizedProps;
    g.props = h;
    var k = g.context,
      l = c.contextType;
    "object" === typeof l && null !== l ? l = Vg(l) : (l = Zf(c) ? Xf : H.current, l = Yf(b, l));
    var m = c.getDerivedStateFromProps,
      q = "function" === typeof m || "function" === typeof g.getSnapshotBeforeUpdate;
    q || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && qh(b, g, d, l);
    $g = !1;
    var r = b.memoizedState;
    g.state = r;
    gh(b, d, g, e);
    k = b.memoizedState;
    h !== d || r !== k || Wf.current || $g ? ("function" === typeof m && (kh(b, c, m, d), k = b.memoizedState), (h = $g || oh(b, c, h, d, r, k, l)) ? (q || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b.flags |= 4194308)) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), d = !1);
  } else {
    g = b.stateNode;
    bh(a, b);
    h = b.memoizedProps;
    l = b.type === b.elementType ? h : Lg(b.type, h);
    g.props = l;
    q = b.pendingProps;
    r = g.context;
    k = c.contextType;
    "object" === typeof k && null !== k ? k = Vg(k) : (k = Zf(c) ? Xf : H.current, k = Yf(b, k));
    var y = c.getDerivedStateFromProps;
    (m = "function" === typeof y || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== q || r !== k) && qh(b, g, d, k);
    $g = !1;
    r = b.memoizedState;
    g.state = r;
    gh(b, d, g, e);
    var n = b.memoizedState;
    h !== q || r !== n || Wf.current || $g ? ("function" === typeof y && (kh(b, c, y, d), n = b.memoizedState), (l = $g || oh(b, c, l, d, r, n, k) || !1) ? (m || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, n, k), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, n, k)), "function" === typeof g.componentDidUpdate && (b.flags |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b.flags |= 1024)) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 1024), b.memoizedProps = d, b.memoizedState = n), g.props = d, g.state = n, g.context = k, d = l) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r === a.memoizedState || (b.flags |= 1024), d = !1);
  }
  return kj(a, b, c, d, f, e);
}
function kj(a, b, c, d, e, f) {
  hj(a, b);
  var g = 0 !== (b.flags & 128);
  if (!d && !g) return e && dg(b, c, !1), $i(a, b, f);
  d = b.stateNode;
  Xi.current = b;
  var h = g && "function" !== typeof c.getDerivedStateFromError ? null : d.render();
  b.flags |= 1;
  null !== a && g ? (b.child = Bh(b, a.child, null, f), b.child = Bh(b, null, h, f)) : Yi(a, b, h, f);
  b.memoizedState = d.state;
  e && dg(b, c, !0);
  return b.child;
}
function lj(a) {
  var b = a.stateNode;
  b.pendingContext ? ag(a, b.pendingContext, b.pendingContext !== b.context) : b.context && ag(a, b.context, !1);
  Ih(a, b.containerInfo);
}
function mj(a, b, c, d, e) {
  Ig();
  Jg(e);
  b.flags |= 256;
  Yi(a, b, c, d);
  return b.child;
}
var nj = {
  dehydrated: null,
  treeContext: null,
  retryLane: 0
};
function oj(a) {
  return {
    baseLanes: a,
    cachePool: null,
    transitions: null
  };
}
function pj(a, b, c) {
  var d = b.pendingProps,
    e = M.current,
    f = !1,
    g = 0 !== (b.flags & 128),
    h;
  (h = g) || (h = null !== a && null === a.memoizedState ? !1 : 0 !== (e & 2));
  if (h) f = !0, b.flags &= -129;else if (null === a || null !== a.memoizedState) e |= 1;
  G(M, e & 1);
  if (null === a) {
    Eg(b);
    a = b.memoizedState;
    if (null !== a && (a = a.dehydrated, null !== a)) return 0 === (b.mode & 1) ? b.lanes = 1 : "$!" === a.data ? b.lanes = 8 : b.lanes = 1073741824, null;
    g = d.children;
    a = d.fallback;
    return f ? (d = b.mode, f = b.child, g = {
      mode: "hidden",
      children: g
    }, 0 === (d & 1) && null !== f ? (f.childLanes = 0, f.pendingProps = g) : f = qj(g, d, 0, null), a = Ah(a, d, c, null), f.return = b, a.return = b, f.sibling = a, b.child = f, b.child.memoizedState = oj(c), b.memoizedState = nj, a) : rj(b, g);
  }
  e = a.memoizedState;
  if (null !== e && (h = e.dehydrated, null !== h)) return sj(a, b, g, d, h, e, c);
  if (f) {
    f = d.fallback;
    g = b.mode;
    e = a.child;
    h = e.sibling;
    var k = {
      mode: "hidden",
      children: d.children
    };
    0 === (g & 1) && b.child !== e ? (d = b.child, d.childLanes = 0, d.pendingProps = k, b.deletions = null) : (d = wh(e, k), d.subtreeFlags = e.subtreeFlags & 14680064);
    null !== h ? f = wh(h, f) : (f = Ah(f, g, c, null), f.flags |= 2);
    f.return = b;
    d.return = b;
    d.sibling = f;
    b.child = d;
    d = f;
    f = b.child;
    g = a.child.memoizedState;
    g = null === g ? oj(c) : {
      baseLanes: g.baseLanes | c,
      cachePool: null,
      transitions: g.transitions
    };
    f.memoizedState = g;
    f.childLanes = a.childLanes & ~c;
    b.memoizedState = nj;
    return d;
  }
  f = a.child;
  a = f.sibling;
  d = wh(f, {
    mode: "visible",
    children: d.children
  });
  0 === (b.mode & 1) && (d.lanes = c);
  d.return = b;
  d.sibling = null;
  null !== a && (c = b.deletions, null === c ? (b.deletions = [a], b.flags |= 16) : c.push(a));
  b.child = d;
  b.memoizedState = null;
  return d;
}
function rj(a, b) {
  b = qj({
    mode: "visible",
    children: b
  }, a.mode, 0, null);
  b.return = a;
  return a.child = b;
}
function tj(a, b, c, d) {
  null !== d && Jg(d);
  Bh(b, a.child, null, c);
  a = rj(b, b.pendingProps.children);
  a.flags |= 2;
  b.memoizedState = null;
  return a;
}
function sj(a, b, c, d, e, f, g) {
  if (c) {
    if (b.flags & 256) return b.flags &= -257, d = Li(Error(p(422))), tj(a, b, g, d);
    if (null !== b.memoizedState) return b.child = a.child, b.flags |= 128, null;
    f = d.fallback;
    e = b.mode;
    d = qj({
      mode: "visible",
      children: d.children
    }, e, 0, null);
    f = Ah(f, e, g, null);
    f.flags |= 2;
    d.return = b;
    f.return = b;
    d.sibling = f;
    b.child = d;
    0 !== (b.mode & 1) && Bh(b, a.child, null, g);
    b.child.memoizedState = oj(g);
    b.memoizedState = nj;
    return f;
  }
  if (0 === (b.mode & 1)) return tj(a, b, g, null);
  if ("$!" === e.data) {
    d = e.nextSibling && e.nextSibling.dataset;
    if (d) var h = d.dgst;
    d = h;
    f = Error(p(419));
    d = Li(f, d, void 0);
    return tj(a, b, g, d);
  }
  h = 0 !== (g & a.childLanes);
  if (Ug || h) {
    d = R;
    if (null !== d) {
      switch (g & -g) {
        case 4:
          e = 2;
          break;
        case 16:
          e = 8;
          break;
        case 64:
        case 128:
        case 256:
        case 512:
        case 1024:
        case 2048:
        case 4096:
        case 8192:
        case 16384:
        case 32768:
        case 65536:
        case 131072:
        case 262144:
        case 524288:
        case 1048576:
        case 2097152:
        case 4194304:
        case 8388608:
        case 16777216:
        case 33554432:
        case 67108864:
          e = 32;
          break;
        case 536870912:
          e = 268435456;
          break;
        default:
          e = 0;
      }
      e = 0 !== (e & (d.suspendedLanes | g)) ? 0 : e;
      0 !== e && e !== f.retryLane && (f.retryLane = e, Zg(a, e), mh(d, a, e, -1));
    }
    uj();
    d = Li(Error(p(421)));
    return tj(a, b, g, d);
  }
  if ("$?" === e.data) return b.flags |= 128, b.child = a.child, b = vj.bind(null, a), e._reactRetry = b, null;
  a = f.treeContext;
  yg = Lf(e.nextSibling);
  xg = b;
  I = !0;
  zg = null;
  null !== a && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a.id, sg = a.overflow, qg = b);
  b = rj(b, d.children);
  b.flags |= 4096;
  return b;
}
function wj(a, b, c) {
  a.lanes |= b;
  var d = a.alternate;
  null !== d && (d.lanes |= b);
  Sg(a.return, b, c);
}
function xj(a, b, c, d, e) {
  var f = a.memoizedState;
  null === f ? a.memoizedState = {
    isBackwards: b,
    rendering: null,
    renderingStartTime: 0,
    last: d,
    tail: c,
    tailMode: e
  } : (f.isBackwards = b, f.rendering = null, f.renderingStartTime = 0, f.last = d, f.tail = c, f.tailMode = e);
}
function yj(a, b, c) {
  var d = b.pendingProps,
    e = d.revealOrder,
    f = d.tail;
  Yi(a, b, d.children, c);
  d = M.current;
  if (0 !== (d & 2)) d = d & 1 | 2, b.flags |= 128;else {
    if (null !== a && 0 !== (a.flags & 128)) a: for (a = b.child; null !== a;) {
      if (13 === a.tag) null !== a.memoizedState && wj(a, c, b);else if (19 === a.tag) wj(a, c, b);else if (null !== a.child) {
        a.child.return = a;
        a = a.child;
        continue;
      }
      if (a === b) break a;
      for (; null === a.sibling;) {
        if (null === a.return || a.return === b) break a;
        a = a.return;
      }
      a.sibling.return = a.return;
      a = a.sibling;
    }
    d &= 1;
  }
  G(M, d);
  if (0 === (b.mode & 1)) b.memoizedState = null;else switch (e) {
    case "forwards":
      c = b.child;
      for (e = null; null !== c;) a = c.alternate, null !== a && null === Mh(a) && (e = c), c = c.sibling;
      c = e;
      null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null);
      xj(b, !1, e, c, f);
      break;
    case "backwards":
      c = null;
      e = b.child;
      for (b.child = null; null !== e;) {
        a = e.alternate;
        if (null !== a && null === Mh(a)) {
          b.child = e;
          break;
        }
        a = e.sibling;
        e.sibling = c;
        c = e;
        e = a;
      }
      xj(b, !0, c, null, f);
      break;
    case "together":
      xj(b, !1, null, null, void 0);
      break;
    default:
      b.memoizedState = null;
  }
  return b.child;
}
function jj(a, b) {
  0 === (b.mode & 1) && null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2);
}
function $i(a, b, c) {
  null !== a && (b.dependencies = a.dependencies);
  hh |= b.lanes;
  if (0 === (c & b.childLanes)) return null;
  if (null !== a && b.child !== a.child) throw Error(p(153));
  if (null !== b.child) {
    a = b.child;
    c = wh(a, a.pendingProps);
    b.child = c;
    for (c.return = b; null !== a.sibling;) a = a.sibling, c = c.sibling = wh(a, a.pendingProps), c.return = b;
    c.sibling = null;
  }
  return b.child;
}
function zj(a, b, c) {
  switch (b.tag) {
    case 3:
      lj(b);
      Ig();
      break;
    case 5:
      Kh(b);
      break;
    case 1:
      Zf(b.type) && cg(b);
      break;
    case 4:
      Ih(b, b.stateNode.containerInfo);
      break;
    case 10:
      var d = b.type._context,
        e = b.memoizedProps.value;
      G(Mg, d._currentValue);
      d._currentValue = e;
      break;
    case 13:
      d = b.memoizedState;
      if (null !== d) {
        if (null !== d.dehydrated) return G(M, M.current & 1), b.flags |= 128, null;
        if (0 !== (c & b.child.childLanes)) return pj(a, b, c);
        G(M, M.current & 1);
        a = $i(a, b, c);
        return null !== a ? a.sibling : null;
      }
      G(M, M.current & 1);
      break;
    case 19:
      d = 0 !== (c & b.childLanes);
      if (0 !== (a.flags & 128)) {
        if (d) return yj(a, b, c);
        b.flags |= 128;
      }
      e = b.memoizedState;
      null !== e && (e.rendering = null, e.tail = null, e.lastEffect = null);
      G(M, M.current);
      if (d) break;else return null;
    case 22:
    case 23:
      return b.lanes = 0, ej(a, b, c);
  }
  return $i(a, b, c);
}
var Aj, Bj, Cj, Dj;
Aj = function Aj(a, b) {
  for (var c = b.child; null !== c;) {
    if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode);else if (4 !== c.tag && null !== c.child) {
      c.child.return = c;
      c = c.child;
      continue;
    }
    if (c === b) break;
    for (; null === c.sibling;) {
      if (null === c.return || c.return === b) return;
      c = c.return;
    }
    c.sibling.return = c.return;
    c = c.sibling;
  }
};
Bj = function Bj() {};
Cj = function Cj(a, b, c, d) {
  var e = a.memoizedProps;
  if (e !== d) {
    a = b.stateNode;
    Hh(Eh.current);
    var f = null;
    switch (c) {
      case "input":
        e = Ya(a, e);
        d = Ya(a, d);
        f = [];
        break;
      case "select":
        e = A({}, e, {
          value: void 0
        });
        d = A({}, d, {
          value: void 0
        });
        f = [];
        break;
      case "textarea":
        e = gb(a, e);
        d = gb(a, d);
        f = [];
        break;
      default:
        "function" !== typeof e.onClick && "function" === typeof d.onClick && (a.onclick = Bf);
    }
    ub(c, d);
    var g;
    c = null;
    for (l in e) if (!d.hasOwnProperty(l) && e.hasOwnProperty(l) && null != e[l]) if ("style" === l) {
      var h = e[l];
      for (g in h) h.hasOwnProperty(g) && (c || (c = {}), c[g] = "");
    } else "dangerouslySetInnerHTML" !== l && "children" !== l && "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && "autoFocus" !== l && (ea.hasOwnProperty(l) ? f || (f = []) : (f = f || []).push(l, null));
    for (l in d) {
      var k = d[l];
      h = null != e ? e[l] : void 0;
      if (d.hasOwnProperty(l) && k !== h && (null != k || null != h)) if ("style" === l) {
        if (h) {
          for (g in h) !h.hasOwnProperty(g) || k && k.hasOwnProperty(g) || (c || (c = {}), c[g] = "");
          for (g in k) k.hasOwnProperty(g) && h[g] !== k[g] && (c || (c = {}), c[g] = k[g]);
        } else c || (f || (f = []), f.push(l, c)), c = k;
      } else "dangerouslySetInnerHTML" === l ? (k = k ? k.__html : void 0, h = h ? h.__html : void 0, null != k && h !== k && (f = f || []).push(l, k)) : "children" === l ? "string" !== typeof k && "number" !== typeof k || (f = f || []).push(l, "" + k) : "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && (ea.hasOwnProperty(l) ? (null != k && "onScroll" === l && D("scroll", a), f || h === k || (f = [])) : (f = f || []).push(l, k));
    }
    c && (f = f || []).push("style", c);
    var l = f;
    if (b.updateQueue = l) b.flags |= 4;
  }
};
Dj = function Dj(a, b, c, d) {
  c !== d && (b.flags |= 4);
};
function Ej(a, b) {
  if (!I) switch (a.tailMode) {
    case "hidden":
      b = a.tail;
      for (var c = null; null !== b;) null !== b.alternate && (c = b), b = b.sibling;
      null === c ? a.tail = null : c.sibling = null;
      break;
    case "collapsed":
      c = a.tail;
      for (var d = null; null !== c;) null !== c.alternate && (d = c), c = c.sibling;
      null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null;
  }
}
function S(a) {
  var b = null !== a.alternate && a.alternate.child === a.child,
    c = 0,
    d = 0;
  if (b) for (var e = a.child; null !== e;) c |= e.lanes | e.childLanes, d |= e.subtreeFlags & 14680064, d |= e.flags & 14680064, e.return = a, e = e.sibling;else for (e = a.child; null !== e;) c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a, e = e.sibling;
  a.subtreeFlags |= d;
  a.childLanes = c;
  return b;
}
function Fj(a, b, c) {
  var d = b.pendingProps;
  wg(b);
  switch (b.tag) {
    case 2:
    case 16:
    case 15:
    case 0:
    case 11:
    case 7:
    case 8:
    case 12:
    case 9:
    case 14:
      return S(b), null;
    case 1:
      return Zf(b.type) && $f(), S(b), null;
    case 3:
      d = b.stateNode;
      Jh();
      E(Wf);
      E(H);
      Oh();
      d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null);
      if (null === a || null === a.child) Gg(b) ? b.flags |= 4 : null === a || a.memoizedState.isDehydrated && 0 === (b.flags & 256) || (b.flags |= 1024, null !== zg && (Gj(zg), zg = null));
      Bj(a, b);
      S(b);
      return null;
    case 5:
      Lh(b);
      var e = Hh(Gh.current);
      c = b.type;
      if (null !== a && null != b.stateNode) Cj(a, b, c, d, e), a.ref !== b.ref && (b.flags |= 512, b.flags |= 2097152);else {
        if (!d) {
          if (null === b.stateNode) throw Error(p(166));
          S(b);
          return null;
        }
        a = Hh(Eh.current);
        if (Gg(b)) {
          d = b.stateNode;
          c = b.type;
          var f = b.memoizedProps;
          d[Of] = b;
          d[Pf] = f;
          a = 0 !== (b.mode & 1);
          switch (c) {
            case "dialog":
              D("cancel", d);
              D("close", d);
              break;
            case "iframe":
            case "object":
            case "embed":
              D("load", d);
              break;
            case "video":
            case "audio":
              for (e = 0; e < lf.length; e++) D(lf[e], d);
              break;
            case "source":
              D("error", d);
              break;
            case "img":
            case "image":
            case "link":
              D("error", d);
              D("load", d);
              break;
            case "details":
              D("toggle", d);
              break;
            case "input":
              Za(d, f);
              D("invalid", d);
              break;
            case "select":
              d._wrapperState = {
                wasMultiple: !!f.multiple
              };
              D("invalid", d);
              break;
            case "textarea":
              hb(d, f), D("invalid", d);
          }
          ub(c, f);
          e = null;
          for (var g in f) if (f.hasOwnProperty(g)) {
            var h = f[g];
            "children" === g ? "string" === typeof h ? d.textContent !== h && (!0 !== f.suppressHydrationWarning && Af(d.textContent, h, a), e = ["children", h]) : "number" === typeof h && d.textContent !== "" + h && (!0 !== f.suppressHydrationWarning && Af(d.textContent, h, a), e = ["children", "" + h]) : ea.hasOwnProperty(g) && null != h && "onScroll" === g && D("scroll", d);
          }
          switch (c) {
            case "input":
              Va(d);
              db(d, f, !0);
              break;
            case "textarea":
              Va(d);
              jb(d);
              break;
            case "select":
            case "option":
              break;
            default:
              "function" === typeof f.onClick && (d.onclick = Bf);
          }
          d = e;
          b.updateQueue = d;
          null !== d && (b.flags |= 4);
        } else {
          g = 9 === e.nodeType ? e : e.ownerDocument;
          "http://www.w3.org/1999/xhtml" === a && (a = kb(c));
          "http://www.w3.org/1999/xhtml" === a ? "script" === c ? (a = g.createElement("div"), a.innerHTML = "<script>\x3c/script>", a = a.removeChild(a.firstChild)) : "string" === typeof d.is ? a = g.createElement(c, {
            is: d.is
          }) : (a = g.createElement(c), "select" === c && (g = a, d.multiple ? g.multiple = !0 : d.size && (g.size = d.size))) : a = g.createElementNS(a, c);
          a[Of] = b;
          a[Pf] = d;
          Aj(a, b, !1, !1);
          b.stateNode = a;
          a: {
            g = vb(c, d);
            switch (c) {
              case "dialog":
                D("cancel", a);
                D("close", a);
                e = d;
                break;
              case "iframe":
              case "object":
              case "embed":
                D("load", a);
                e = d;
                break;
              case "video":
              case "audio":
                for (e = 0; e < lf.length; e++) D(lf[e], a);
                e = d;
                break;
              case "source":
                D("error", a);
                e = d;
                break;
              case "img":
              case "image":
              case "link":
                D("error", a);
                D("load", a);
                e = d;
                break;
              case "details":
                D("toggle", a);
                e = d;
                break;
              case "input":
                Za(a, d);
                e = Ya(a, d);
                D("invalid", a);
                break;
              case "option":
                e = d;
                break;
              case "select":
                a._wrapperState = {
                  wasMultiple: !!d.multiple
                };
                e = A({}, d, {
                  value: void 0
                });
                D("invalid", a);
                break;
              case "textarea":
                hb(a, d);
                e = gb(a, d);
                D("invalid", a);
                break;
              default:
                e = d;
            }
            ub(c, e);
            h = e;
            for (f in h) if (h.hasOwnProperty(f)) {
              var k = h[f];
              "style" === f ? sb(a, k) : "dangerouslySetInnerHTML" === f ? (k = k ? k.__html : void 0, null != k && nb(a, k)) : "children" === f ? "string" === typeof k ? ("textarea" !== c || "" !== k) && ob(a, k) : "number" === typeof k && ob(a, "" + k) : "suppressContentEditableWarning" !== f && "suppressHydrationWarning" !== f && "autoFocus" !== f && (ea.hasOwnProperty(f) ? null != k && "onScroll" === f && D("scroll", a) : null != k && ta(a, f, k, g));
            }
            switch (c) {
              case "input":
                Va(a);
                db(a, d, !1);
                break;
              case "textarea":
                Va(a);
                jb(a);
                break;
              case "option":
                null != d.value && a.setAttribute("value", "" + Sa(d.value));
                break;
              case "select":
                a.multiple = !!d.multiple;
                f = d.value;
                null != f ? fb(a, !!d.multiple, f, !1) : null != d.defaultValue && fb(a, !!d.multiple, d.defaultValue, !0);
                break;
              default:
                "function" === typeof e.onClick && (a.onclick = Bf);
            }
            switch (c) {
              case "button":
              case "input":
              case "select":
              case "textarea":
                d = !!d.autoFocus;
                break a;
              case "img":
                d = !0;
                break a;
              default:
                d = !1;
            }
          }
          d && (b.flags |= 4);
        }
        null !== b.ref && (b.flags |= 512, b.flags |= 2097152);
      }
      S(b);
      return null;
    case 6:
      if (a && null != b.stateNode) Dj(a, b, a.memoizedProps, d);else {
        if ("string" !== typeof d && null === b.stateNode) throw Error(p(166));
        c = Hh(Gh.current);
        Hh(Eh.current);
        if (Gg(b)) {
          d = b.stateNode;
          c = b.memoizedProps;
          d[Of] = b;
          if (f = d.nodeValue !== c) if (a = xg, null !== a) switch (a.tag) {
            case 3:
              Af(d.nodeValue, c, 0 !== (a.mode & 1));
              break;
            case 5:
              !0 !== a.memoizedProps.suppressHydrationWarning && Af(d.nodeValue, c, 0 !== (a.mode & 1));
          }
          f && (b.flags |= 4);
        } else d = (9 === c.nodeType ? c : c.ownerDocument).createTextNode(d), d[Of] = b, b.stateNode = d;
      }
      S(b);
      return null;
    case 13:
      E(M);
      d = b.memoizedState;
      if (null === a || null !== a.memoizedState && null !== a.memoizedState.dehydrated) {
        if (I && null !== yg && 0 !== (b.mode & 1) && 0 === (b.flags & 128)) Hg(), Ig(), b.flags |= 98560, f = !1;else if (f = Gg(b), null !== d && null !== d.dehydrated) {
          if (null === a) {
            if (!f) throw Error(p(318));
            f = b.memoizedState;
            f = null !== f ? f.dehydrated : null;
            if (!f) throw Error(p(317));
            f[Of] = b;
          } else Ig(), 0 === (b.flags & 128) && (b.memoizedState = null), b.flags |= 4;
          S(b);
          f = !1;
        } else null !== zg && (Gj(zg), zg = null), f = !0;
        if (!f) return b.flags & 65536 ? b : null;
      }
      if (0 !== (b.flags & 128)) return b.lanes = c, b;
      d = null !== d;
      d !== (null !== a && null !== a.memoizedState) && d && (b.child.flags |= 8192, 0 !== (b.mode & 1) && (null === a || 0 !== (M.current & 1) ? 0 === T && (T = 3) : uj()));
      null !== b.updateQueue && (b.flags |= 4);
      S(b);
      return null;
    case 4:
      return Jh(), Bj(a, b), null === a && sf(b.stateNode.containerInfo), S(b), null;
    case 10:
      return Rg(b.type._context), S(b), null;
    case 17:
      return Zf(b.type) && $f(), S(b), null;
    case 19:
      E(M);
      f = b.memoizedState;
      if (null === f) return S(b), null;
      d = 0 !== (b.flags & 128);
      g = f.rendering;
      if (null === g) {
        if (d) Ej(f, !1);else {
          if (0 !== T || null !== a && 0 !== (a.flags & 128)) for (a = b.child; null !== a;) {
            g = Mh(a);
            if (null !== g) {
              b.flags |= 128;
              Ej(f, !1);
              d = g.updateQueue;
              null !== d && (b.updateQueue = d, b.flags |= 4);
              b.subtreeFlags = 0;
              d = c;
              for (c = b.child; null !== c;) f = c, a = d, f.flags &= 14680066, g = f.alternate, null === g ? (f.childLanes = 0, f.lanes = a, f.child = null, f.subtreeFlags = 0, f.memoizedProps = null, f.memoizedState = null, f.updateQueue = null, f.dependencies = null, f.stateNode = null) : (f.childLanes = g.childLanes, f.lanes = g.lanes, f.child = g.child, f.subtreeFlags = 0, f.deletions = null, f.memoizedProps = g.memoizedProps, f.memoizedState = g.memoizedState, f.updateQueue = g.updateQueue, f.type = g.type, a = g.dependencies, f.dependencies = null === a ? null : {
                lanes: a.lanes,
                firstContext: a.firstContext
              }), c = c.sibling;
              G(M, M.current & 1 | 2);
              return b.child;
            }
            a = a.sibling;
          }
          null !== f.tail && B() > Hj && (b.flags |= 128, d = !0, Ej(f, !1), b.lanes = 4194304);
        }
      } else {
        if (!d) if (a = Mh(g), null !== a) {
          if (b.flags |= 128, d = !0, c = a.updateQueue, null !== c && (b.updateQueue = c, b.flags |= 4), Ej(f, !0), null === f.tail && "hidden" === f.tailMode && !g.alternate && !I) return S(b), null;
        } else 2 * B() - f.renderingStartTime > Hj && 1073741824 !== c && (b.flags |= 128, d = !0, Ej(f, !1), b.lanes = 4194304);
        f.isBackwards ? (g.sibling = b.child, b.child = g) : (c = f.last, null !== c ? c.sibling = g : b.child = g, f.last = g);
      }
      if (null !== f.tail) return b = f.tail, f.rendering = b, f.tail = b.sibling, f.renderingStartTime = B(), b.sibling = null, c = M.current, G(M, d ? c & 1 | 2 : c & 1), b;
      S(b);
      return null;
    case 22:
    case 23:
      return Ij(), d = null !== b.memoizedState, null !== a && null !== a.memoizedState !== d && (b.flags |= 8192), d && 0 !== (b.mode & 1) ? 0 !== (gj & 1073741824) && (S(b), b.subtreeFlags & 6 && (b.flags |= 8192)) : S(b), null;
    case 24:
      return null;
    case 25:
      return null;
  }
  throw Error(p(156, b.tag));
}
function Jj(a, b) {
  wg(b);
  switch (b.tag) {
    case 1:
      return Zf(b.type) && $f(), a = b.flags, a & 65536 ? (b.flags = a & -65537 | 128, b) : null;
    case 3:
      return Jh(), E(Wf), E(H), Oh(), a = b.flags, 0 !== (a & 65536) && 0 === (a & 128) ? (b.flags = a & -65537 | 128, b) : null;
    case 5:
      return Lh(b), null;
    case 13:
      E(M);
      a = b.memoizedState;
      if (null !== a && null !== a.dehydrated) {
        if (null === b.alternate) throw Error(p(340));
        Ig();
      }
      a = b.flags;
      return a & 65536 ? (b.flags = a & -65537 | 128, b) : null;
    case 19:
      return E(M), null;
    case 4:
      return Jh(), null;
    case 10:
      return Rg(b.type._context), null;
    case 22:
    case 23:
      return Ij(), null;
    case 24:
      return null;
    default:
      return null;
  }
}
var Kj = !1,
  U = !1,
  Lj = "function" === typeof WeakSet ? WeakSet : Set,
  V = null;
function Mj(a, b) {
  var c = a.ref;
  if (null !== c) if ("function" === typeof c) try {
    c(null);
  } catch (d) {
    W(a, b, d);
  } else c.current = null;
}
function Nj(a, b, c) {
  try {
    c();
  } catch (d) {
    W(a, b, d);
  }
}
var Oj = !1;
function Pj(a, b) {
  Cf = dd;
  a = Me();
  if (Ne(a)) {
    if ("selectionStart" in a) var c = {
      start: a.selectionStart,
      end: a.selectionEnd
    };else a: {
      c = (c = a.ownerDocument) && c.defaultView || window;
      var d = c.getSelection && c.getSelection();
      if (d && 0 !== d.rangeCount) {
        c = d.anchorNode;
        var e = d.anchorOffset,
          f = d.focusNode;
        d = d.focusOffset;
        try {
          c.nodeType, f.nodeType;
        } catch (F) {
          c = null;
          break a;
        }
        var g = 0,
          h = -1,
          k = -1,
          l = 0,
          m = 0,
          q = a,
          r = null;
        b: for (;;) {
          for (var y;;) {
            q !== c || 0 !== e && 3 !== q.nodeType || (h = g + e);
            q !== f || 0 !== d && 3 !== q.nodeType || (k = g + d);
            3 === q.nodeType && (g += q.nodeValue.length);
            if (null === (y = q.firstChild)) break;
            r = q;
            q = y;
          }
          for (;;) {
            if (q === a) break b;
            r === c && ++l === e && (h = g);
            r === f && ++m === d && (k = g);
            if (null !== (y = q.nextSibling)) break;
            q = r;
            r = q.parentNode;
          }
          q = y;
        }
        c = -1 === h || -1 === k ? null : {
          start: h,
          end: k
        };
      } else c = null;
    }
    c = c || {
      start: 0,
      end: 0
    };
  } else c = null;
  Df = {
    focusedElem: a,
    selectionRange: c
  };
  dd = !1;
  for (V = b; null !== V;) if (b = V, a = b.child, 0 !== (b.subtreeFlags & 1028) && null !== a) a.return = b, V = a;else for (; null !== V;) {
    b = V;
    try {
      var n = b.alternate;
      if (0 !== (b.flags & 1024)) switch (b.tag) {
        case 0:
        case 11:
        case 15:
          break;
        case 1:
          if (null !== n) {
            var t = n.memoizedProps,
              J = n.memoizedState,
              x = b.stateNode,
              w = x.getSnapshotBeforeUpdate(b.elementType === b.type ? t : Lg(b.type, t), J);
            x.__reactInternalSnapshotBeforeUpdate = w;
          }
          break;
        case 3:
          var u = b.stateNode.containerInfo;
          1 === u.nodeType ? u.textContent = "" : 9 === u.nodeType && u.documentElement && u.removeChild(u.documentElement);
          break;
        case 5:
        case 6:
        case 4:
        case 17:
          break;
        default:
          throw Error(p(163));
      }
    } catch (F) {
      W(b, b.return, F);
    }
    a = b.sibling;
    if (null !== a) {
      a.return = b.return;
      V = a;
      break;
    }
    V = b.return;
  }
  n = Oj;
  Oj = !1;
  return n;
}
function Qj(a, b, c) {
  var d = b.updateQueue;
  d = null !== d ? d.lastEffect : null;
  if (null !== d) {
    var e = d = d.next;
    do {
      if ((e.tag & a) === a) {
        var f = e.destroy;
        e.destroy = void 0;
        void 0 !== f && Nj(b, c, f);
      }
      e = e.next;
    } while (e !== d);
  }
}
function Rj(a, b) {
  b = b.updateQueue;
  b = null !== b ? b.lastEffect : null;
  if (null !== b) {
    var c = b = b.next;
    do {
      if ((c.tag & a) === a) {
        var d = c.create;
        c.destroy = d();
      }
      c = c.next;
    } while (c !== b);
  }
}
function Sj(a) {
  var b = a.ref;
  if (null !== b) {
    var c = a.stateNode;
    switch (a.tag) {
      case 5:
        a = c;
        break;
      default:
        a = c;
    }
    "function" === typeof b ? b(a) : b.current = a;
  }
}
function Tj(a) {
  var b = a.alternate;
  null !== b && (a.alternate = null, Tj(b));
  a.child = null;
  a.deletions = null;
  a.sibling = null;
  5 === a.tag && (b = a.stateNode, null !== b && (delete b[Of], delete b[Pf], delete b[of], delete b[Qf], delete b[Rf]));
  a.stateNode = null;
  a.return = null;
  a.dependencies = null;
  a.memoizedProps = null;
  a.memoizedState = null;
  a.pendingProps = null;
  a.stateNode = null;
  a.updateQueue = null;
}
function Uj(a) {
  return 5 === a.tag || 3 === a.tag || 4 === a.tag;
}
function Vj(a) {
  a: for (;;) {
    for (; null === a.sibling;) {
      if (null === a.return || Uj(a.return)) return null;
      a = a.return;
    }
    a.sibling.return = a.return;
    for (a = a.sibling; 5 !== a.tag && 6 !== a.tag && 18 !== a.tag;) {
      if (a.flags & 2) continue a;
      if (null === a.child || 4 === a.tag) continue a;else a.child.return = a, a = a.child;
    }
    if (!(a.flags & 2)) return a.stateNode;
  }
}
function Wj(a, b, c) {
  var d = a.tag;
  if (5 === d || 6 === d) a = a.stateNode, b ? 8 === c.nodeType ? c.parentNode.insertBefore(a, b) : c.insertBefore(a, b) : (8 === c.nodeType ? (b = c.parentNode, b.insertBefore(a, c)) : (b = c, b.appendChild(a)), c = c._reactRootContainer, null !== c && void 0 !== c || null !== b.onclick || (b.onclick = Bf));else if (4 !== d && (a = a.child, null !== a)) for (Wj(a, b, c), a = a.sibling; null !== a;) Wj(a, b, c), a = a.sibling;
}
function Xj(a, b, c) {
  var d = a.tag;
  if (5 === d || 6 === d) a = a.stateNode, b ? c.insertBefore(a, b) : c.appendChild(a);else if (4 !== d && (a = a.child, null !== a)) for (Xj(a, b, c), a = a.sibling; null !== a;) Xj(a, b, c), a = a.sibling;
}
var X = null,
  Yj = !1;
function Zj(a, b, c) {
  for (c = c.child; null !== c;) ak(a, b, c), c = c.sibling;
}
function ak(a, b, c) {
  if (lc && "function" === typeof lc.onCommitFiberUnmount) try {
    lc.onCommitFiberUnmount(kc, c);
  } catch (h) {}
  switch (c.tag) {
    case 5:
      U || Mj(c, b);
    case 6:
      var d = X,
        e = Yj;
      X = null;
      Zj(a, b, c);
      X = d;
      Yj = e;
      null !== X && (Yj ? (a = X, c = c.stateNode, 8 === a.nodeType ? a.parentNode.removeChild(c) : a.removeChild(c)) : X.removeChild(c.stateNode));
      break;
    case 18:
      null !== X && (Yj ? (a = X, c = c.stateNode, 8 === a.nodeType ? Kf(a.parentNode, c) : 1 === a.nodeType && Kf(a, c), bd(a)) : Kf(X, c.stateNode));
      break;
    case 4:
      d = X;
      e = Yj;
      X = c.stateNode.containerInfo;
      Yj = !0;
      Zj(a, b, c);
      X = d;
      Yj = e;
      break;
    case 0:
    case 11:
    case 14:
    case 15:
      if (!U && (d = c.updateQueue, null !== d && (d = d.lastEffect, null !== d))) {
        e = d = d.next;
        do {
          var f = e,
            g = f.destroy;
          f = f.tag;
          void 0 !== g && (0 !== (f & 2) ? Nj(c, b, g) : 0 !== (f & 4) && Nj(c, b, g));
          e = e.next;
        } while (e !== d);
      }
      Zj(a, b, c);
      break;
    case 1:
      if (!U && (Mj(c, b), d = c.stateNode, "function" === typeof d.componentWillUnmount)) try {
        d.props = c.memoizedProps, d.state = c.memoizedState, d.componentWillUnmount();
      } catch (h) {
        W(c, b, h);
      }
      Zj(a, b, c);
      break;
    case 21:
      Zj(a, b, c);
      break;
    case 22:
      c.mode & 1 ? (U = (d = U) || null !== c.memoizedState, Zj(a, b, c), U = d) : Zj(a, b, c);
      break;
    default:
      Zj(a, b, c);
  }
}
function bk(a) {
  var b = a.updateQueue;
  if (null !== b) {
    a.updateQueue = null;
    var c = a.stateNode;
    null === c && (c = a.stateNode = new Lj());
    b.forEach(function (b) {
      var d = ck.bind(null, a, b);
      c.has(b) || (c.add(b), b.then(d, d));
    });
  }
}
function dk(a, b) {
  var c = b.deletions;
  if (null !== c) for (var d = 0; d < c.length; d++) {
    var e = c[d];
    try {
      var f = a,
        g = b,
        h = g;
      a: for (; null !== h;) {
        switch (h.tag) {
          case 5:
            X = h.stateNode;
            Yj = !1;
            break a;
          case 3:
            X = h.stateNode.containerInfo;
            Yj = !0;
            break a;
          case 4:
            X = h.stateNode.containerInfo;
            Yj = !0;
            break a;
        }
        h = h.return;
      }
      if (null === X) throw Error(p(160));
      ak(f, g, e);
      X = null;
      Yj = !1;
      var k = e.alternate;
      null !== k && (k.return = null);
      e.return = null;
    } catch (l) {
      W(e, b, l);
    }
  }
  if (b.subtreeFlags & 12854) for (b = b.child; null !== b;) ek(b, a), b = b.sibling;
}
function ek(a, b) {
  var c = a.alternate,
    d = a.flags;
  switch (a.tag) {
    case 0:
    case 11:
    case 14:
    case 15:
      dk(b, a);
      fk(a);
      if (d & 4) {
        try {
          Qj(3, a, a.return), Rj(3, a);
        } catch (t) {
          W(a, a.return, t);
        }
        try {
          Qj(5, a, a.return);
        } catch (t) {
          W(a, a.return, t);
        }
      }
      break;
    case 1:
      dk(b, a);
      fk(a);
      d & 512 && null !== c && Mj(c, c.return);
      break;
    case 5:
      dk(b, a);
      fk(a);
      d & 512 && null !== c && Mj(c, c.return);
      if (a.flags & 32) {
        var e = a.stateNode;
        try {
          ob(e, "");
        } catch (t) {
          W(a, a.return, t);
        }
      }
      if (d & 4 && (e = a.stateNode, null != e)) {
        var f = a.memoizedProps,
          g = null !== c ? c.memoizedProps : f,
          h = a.type,
          k = a.updateQueue;
        a.updateQueue = null;
        if (null !== k) try {
          "input" === h && "radio" === f.type && null != f.name && ab(e, f);
          vb(h, g);
          var l = vb(h, f);
          for (g = 0; g < k.length; g += 2) {
            var m = k[g],
              q = k[g + 1];
            "style" === m ? sb(e, q) : "dangerouslySetInnerHTML" === m ? nb(e, q) : "children" === m ? ob(e, q) : ta(e, m, q, l);
          }
          switch (h) {
            case "input":
              bb(e, f);
              break;
            case "textarea":
              ib(e, f);
              break;
            case "select":
              var r = e._wrapperState.wasMultiple;
              e._wrapperState.wasMultiple = !!f.multiple;
              var y = f.value;
              null != y ? fb(e, !!f.multiple, y, !1) : r !== !!f.multiple && (null != f.defaultValue ? fb(e, !!f.multiple, f.defaultValue, !0) : fb(e, !!f.multiple, f.multiple ? [] : "", !1));
          }
          e[Pf] = f;
        } catch (t) {
          W(a, a.return, t);
        }
      }
      break;
    case 6:
      dk(b, a);
      fk(a);
      if (d & 4) {
        if (null === a.stateNode) throw Error(p(162));
        e = a.stateNode;
        f = a.memoizedProps;
        try {
          e.nodeValue = f;
        } catch (t) {
          W(a, a.return, t);
        }
      }
      break;
    case 3:
      dk(b, a);
      fk(a);
      if (d & 4 && null !== c && c.memoizedState.isDehydrated) try {
        bd(b.containerInfo);
      } catch (t) {
        W(a, a.return, t);
      }
      break;
    case 4:
      dk(b, a);
      fk(a);
      break;
    case 13:
      dk(b, a);
      fk(a);
      e = a.child;
      e.flags & 8192 && (f = null !== e.memoizedState, e.stateNode.isHidden = f, !f || null !== e.alternate && null !== e.alternate.memoizedState || (gk = B()));
      d & 4 && bk(a);
      break;
    case 22:
      m = null !== c && null !== c.memoizedState;
      a.mode & 1 ? (U = (l = U) || m, dk(b, a), U = l) : dk(b, a);
      fk(a);
      if (d & 8192) {
        l = null !== a.memoizedState;
        if ((a.stateNode.isHidden = l) && !m && 0 !== (a.mode & 1)) for (V = a, m = a.child; null !== m;) {
          for (q = V = m; null !== V;) {
            r = V;
            y = r.child;
            switch (r.tag) {
              case 0:
              case 11:
              case 14:
              case 15:
                Qj(4, r, r.return);
                break;
              case 1:
                Mj(r, r.return);
                var n = r.stateNode;
                if ("function" === typeof n.componentWillUnmount) {
                  d = r;
                  c = r.return;
                  try {
                    b = d, n.props = b.memoizedProps, n.state = b.memoizedState, n.componentWillUnmount();
                  } catch (t) {
                    W(d, c, t);
                  }
                }
                break;
              case 5:
                Mj(r, r.return);
                break;
              case 22:
                if (null !== r.memoizedState) {
                  hk(q);
                  continue;
                }
            }
            null !== y ? (y.return = r, V = y) : hk(q);
          }
          m = m.sibling;
        }
        a: for (m = null, q = a;;) {
          if (5 === q.tag) {
            if (null === m) {
              m = q;
              try {
                e = q.stateNode, l ? (f = e.style, "function" === typeof f.setProperty ? f.setProperty("display", "none", "important") : f.display = "none") : (h = q.stateNode, k = q.memoizedProps.style, g = void 0 !== k && null !== k && k.hasOwnProperty("display") ? k.display : null, h.style.display = rb("display", g));
              } catch (t) {
                W(a, a.return, t);
              }
            }
          } else if (6 === q.tag) {
            if (null === m) try {
              q.stateNode.nodeValue = l ? "" : q.memoizedProps;
            } catch (t) {
              W(a, a.return, t);
            }
          } else if ((22 !== q.tag && 23 !== q.tag || null === q.memoizedState || q === a) && null !== q.child) {
            q.child.return = q;
            q = q.child;
            continue;
          }
          if (q === a) break a;
          for (; null === q.sibling;) {
            if (null === q.return || q.return === a) break a;
            m === q && (m = null);
            q = q.return;
          }
          m === q && (m = null);
          q.sibling.return = q.return;
          q = q.sibling;
        }
      }
      break;
    case 19:
      dk(b, a);
      fk(a);
      d & 4 && bk(a);
      break;
    case 21:
      break;
    default:
      dk(b, a), fk(a);
  }
}
function fk(a) {
  var b = a.flags;
  if (b & 2) {
    try {
      a: {
        for (var c = a.return; null !== c;) {
          if (Uj(c)) {
            var d = c;
            break a;
          }
          c = c.return;
        }
        throw Error(p(160));
      }
      switch (d.tag) {
        case 5:
          var e = d.stateNode;
          d.flags & 32 && (ob(e, ""), d.flags &= -33);
          var f = Vj(a);
          Xj(a, f, e);
          break;
        case 3:
        case 4:
          var g = d.stateNode.containerInfo,
            h = Vj(a);
          Wj(a, h, g);
          break;
        default:
          throw Error(p(161));
      }
    } catch (k) {
      W(a, a.return, k);
    }
    a.flags &= -3;
  }
  b & 4096 && (a.flags &= -4097);
}
function ik(a, b, c) {
  V = a;
  jk(a, b, c);
}
function jk(a, b, c) {
  for (var d = 0 !== (a.mode & 1); null !== V;) {
    var e = V,
      f = e.child;
    if (22 === e.tag && d) {
      var g = null !== e.memoizedState || Kj;
      if (!g) {
        var h = e.alternate,
          k = null !== h && null !== h.memoizedState || U;
        h = Kj;
        var l = U;
        Kj = g;
        if ((U = k) && !l) for (V = e; null !== V;) g = V, k = g.child, 22 === g.tag && null !== g.memoizedState ? kk(e) : null !== k ? (k.return = g, V = k) : kk(e);
        for (; null !== f;) V = f, jk(f, b, c), f = f.sibling;
        V = e;
        Kj = h;
        U = l;
      }
      lk(a, b, c);
    } else 0 !== (e.subtreeFlags & 8772) && null !== f ? (f.return = e, V = f) : lk(a, b, c);
  }
}
function lk(a) {
  for (; null !== V;) {
    var b = V;
    if (0 !== (b.flags & 8772)) {
      var c = b.alternate;
      try {
        if (0 !== (b.flags & 8772)) switch (b.tag) {
          case 0:
          case 11:
          case 15:
            U || Rj(5, b);
            break;
          case 1:
            var d = b.stateNode;
            if (b.flags & 4 && !U) if (null === c) d.componentDidMount();else {
              var e = b.elementType === b.type ? c.memoizedProps : Lg(b.type, c.memoizedProps);
              d.componentDidUpdate(e, c.memoizedState, d.__reactInternalSnapshotBeforeUpdate);
            }
            var f = b.updateQueue;
            null !== f && ih(b, f, d);
            break;
          case 3:
            var g = b.updateQueue;
            if (null !== g) {
              c = null;
              if (null !== b.child) switch (b.child.tag) {
                case 5:
                  c = b.child.stateNode;
                  break;
                case 1:
                  c = b.child.stateNode;
              }
              ih(b, g, c);
            }
            break;
          case 5:
            var h = b.stateNode;
            if (null === c && b.flags & 4) {
              c = h;
              var k = b.memoizedProps;
              switch (b.type) {
                case "button":
                case "input":
                case "select":
                case "textarea":
                  k.autoFocus && c.focus();
                  break;
                case "img":
                  k.src && (c.src = k.src);
              }
            }
            break;
          case 6:
            break;
          case 4:
            break;
          case 12:
            break;
          case 13:
            if (null === b.memoizedState) {
              var l = b.alternate;
              if (null !== l) {
                var m = l.memoizedState;
                if (null !== m) {
                  var q = m.dehydrated;
                  null !== q && bd(q);
                }
              }
            }
            break;
          case 19:
          case 17:
          case 21:
          case 22:
          case 23:
          case 25:
            break;
          default:
            throw Error(p(163));
        }
        U || b.flags & 512 && Sj(b);
      } catch (r) {
        W(b, b.return, r);
      }
    }
    if (b === a) {
      V = null;
      break;
    }
    c = b.sibling;
    if (null !== c) {
      c.return = b.return;
      V = c;
      break;
    }
    V = b.return;
  }
}
function hk(a) {
  for (; null !== V;) {
    var b = V;
    if (b === a) {
      V = null;
      break;
    }
    var c = b.sibling;
    if (null !== c) {
      c.return = b.return;
      V = c;
      break;
    }
    V = b.return;
  }
}
function kk(a) {
  for (; null !== V;) {
    var b = V;
    try {
      switch (b.tag) {
        case 0:
        case 11:
        case 15:
          var c = b.return;
          try {
            Rj(4, b);
          } catch (k) {
            W(b, c, k);
          }
          break;
        case 1:
          var d = b.stateNode;
          if ("function" === typeof d.componentDidMount) {
            var e = b.return;
            try {
              d.componentDidMount();
            } catch (k) {
              W(b, e, k);
            }
          }
          var f = b.return;
          try {
            Sj(b);
          } catch (k) {
            W(b, f, k);
          }
          break;
        case 5:
          var g = b.return;
          try {
            Sj(b);
          } catch (k) {
            W(b, g, k);
          }
      }
    } catch (k) {
      W(b, b.return, k);
    }
    if (b === a) {
      V = null;
      break;
    }
    var h = b.sibling;
    if (null !== h) {
      h.return = b.return;
      V = h;
      break;
    }
    V = b.return;
  }
}
var mk = Math.ceil,
  nk = ua.ReactCurrentDispatcher,
  ok = ua.ReactCurrentOwner,
  pk = ua.ReactCurrentBatchConfig,
  K = 0,
  R = null,
  Y = null,
  Z = 0,
  gj = 0,
  fj = Uf(0),
  T = 0,
  qk = null,
  hh = 0,
  rk = 0,
  sk = 0,
  tk = null,
  uk = null,
  gk = 0,
  Hj = Infinity,
  vk = null,
  Pi = !1,
  Qi = null,
  Si = null,
  wk = !1,
  xk = null,
  yk = 0,
  zk = 0,
  Ak = null,
  Bk = -1,
  Ck = 0;
function L() {
  return 0 !== (K & 6) ? B() : -1 !== Bk ? Bk : Bk = B();
}
function lh(a) {
  if (0 === (a.mode & 1)) return 1;
  if (0 !== (K & 2) && 0 !== Z) return Z & -Z;
  if (null !== Kg.transition) return 0 === Ck && (Ck = yc()), Ck;
  a = C;
  if (0 !== a) return a;
  a = window.event;
  a = void 0 === a ? 16 : jd(a.type);
  return a;
}
function mh(a, b, c, d) {
  if (50 < zk) throw zk = 0, Ak = null, Error(p(185));
  Ac(a, c, d);
  if (0 === (K & 2) || a !== R) a === R && (0 === (K & 2) && (rk |= c), 4 === T && Dk(a, Z)), Ek(a, d), 1 === c && 0 === K && 0 === (b.mode & 1) && (Hj = B() + 500, fg && jg());
}
function Ek(a, b) {
  var c = a.callbackNode;
  wc(a, b);
  var d = uc(a, a === R ? Z : 0);
  if (0 === d) null !== c && bc(c), a.callbackNode = null, a.callbackPriority = 0;else if (b = d & -d, a.callbackPriority !== b) {
    null != c && bc(c);
    if (1 === b) 0 === a.tag ? ig(Fk.bind(null, a)) : hg(Fk.bind(null, a)), Jf(function () {
      0 === (K & 6) && jg();
    }), c = null;else {
      switch (Dc(d)) {
        case 1:
          c = fc;
          break;
        case 4:
          c = gc;
          break;
        case 16:
          c = hc;
          break;
        case 536870912:
          c = jc;
          break;
        default:
          c = hc;
      }
      c = Gk(c, Hk.bind(null, a));
    }
    a.callbackPriority = b;
    a.callbackNode = c;
  }
}
function Hk(a, b) {
  Bk = -1;
  Ck = 0;
  if (0 !== (K & 6)) throw Error(p(327));
  var c = a.callbackNode;
  if (Ik() && a.callbackNode !== c) return null;
  var d = uc(a, a === R ? Z : 0);
  if (0 === d) return null;
  if (0 !== (d & 30) || 0 !== (d & a.expiredLanes) || b) b = Jk(a, d);else {
    b = d;
    var e = K;
    K |= 2;
    var f = Kk();
    if (R !== a || Z !== b) vk = null, Hj = B() + 500, Lk(a, b);
    do try {
      Mk();
      break;
    } catch (h) {
      Nk(a, h);
    } while (1);
    Qg();
    nk.current = f;
    K = e;
    null !== Y ? b = 0 : (R = null, Z = 0, b = T);
  }
  if (0 !== b) {
    2 === b && (e = xc(a), 0 !== e && (d = e, b = Ok(a, e)));
    if (1 === b) throw c = qk, Lk(a, 0), Dk(a, d), Ek(a, B()), c;
    if (6 === b) Dk(a, d);else {
      e = a.current.alternate;
      if (0 === (d & 30) && !Pk(e) && (b = Jk(a, d), 2 === b && (f = xc(a), 0 !== f && (d = f, b = Ok(a, f))), 1 === b)) throw c = qk, Lk(a, 0), Dk(a, d), Ek(a, B()), c;
      a.finishedWork = e;
      a.finishedLanes = d;
      switch (b) {
        case 0:
        case 1:
          throw Error(p(345));
        case 2:
          Qk(a, uk, vk);
          break;
        case 3:
          Dk(a, d);
          if ((d & 130023424) === d && (b = gk + 500 - B(), 10 < b)) {
            if (0 !== uc(a, 0)) break;
            e = a.suspendedLanes;
            if ((e & d) !== d) {
              L();
              a.pingedLanes |= a.suspendedLanes & e;
              break;
            }
            a.timeoutHandle = Ff(Qk.bind(null, a, uk, vk), b);
            break;
          }
          Qk(a, uk, vk);
          break;
        case 4:
          Dk(a, d);
          if ((d & 4194240) === d) break;
          b = a.eventTimes;
          for (e = -1; 0 < d;) {
            var g = 31 - oc(d);
            f = 1 << g;
            g = b[g];
            g > e && (e = g);
            d &= ~f;
          }
          d = e;
          d = B() - d;
          d = (120 > d ? 120 : 480 > d ? 480 : 1080 > d ? 1080 : 1920 > d ? 1920 : 3E3 > d ? 3E3 : 4320 > d ? 4320 : 1960 * mk(d / 1960)) - d;
          if (10 < d) {
            a.timeoutHandle = Ff(Qk.bind(null, a, uk, vk), d);
            break;
          }
          Qk(a, uk, vk);
          break;
        case 5:
          Qk(a, uk, vk);
          break;
        default:
          throw Error(p(329));
      }
    }
  }
  Ek(a, B());
  return a.callbackNode === c ? Hk.bind(null, a) : null;
}
function Ok(a, b) {
  var c = tk;
  a.current.memoizedState.isDehydrated && (Lk(a, b).flags |= 256);
  a = Jk(a, b);
  2 !== a && (b = uk, uk = c, null !== b && Gj(b));
  return a;
}
function Gj(a) {
  null === uk ? uk = a : uk.push.apply(uk, a);
}
function Pk(a) {
  for (var b = a;;) {
    if (b.flags & 16384) {
      var c = b.updateQueue;
      if (null !== c && (c = c.stores, null !== c)) for (var d = 0; d < c.length; d++) {
        var e = c[d],
          f = e.getSnapshot;
        e = e.value;
        try {
          if (!He(f(), e)) return !1;
        } catch (g) {
          return !1;
        }
      }
    }
    c = b.child;
    if (b.subtreeFlags & 16384 && null !== c) c.return = b, b = c;else {
      if (b === a) break;
      for (; null === b.sibling;) {
        if (null === b.return || b.return === a) return !0;
        b = b.return;
      }
      b.sibling.return = b.return;
      b = b.sibling;
    }
  }
  return !0;
}
function Dk(a, b) {
  b &= ~sk;
  b &= ~rk;
  a.suspendedLanes |= b;
  a.pingedLanes &= ~b;
  for (a = a.expirationTimes; 0 < b;) {
    var c = 31 - oc(b),
      d = 1 << c;
    a[c] = -1;
    b &= ~d;
  }
}
function Fk(a) {
  if (0 !== (K & 6)) throw Error(p(327));
  Ik();
  var b = uc(a, 0);
  if (0 === (b & 1)) return Ek(a, B()), null;
  var c = Jk(a, b);
  if (0 !== a.tag && 2 === c) {
    var d = xc(a);
    0 !== d && (b = d, c = Ok(a, d));
  }
  if (1 === c) throw c = qk, Lk(a, 0), Dk(a, b), Ek(a, B()), c;
  if (6 === c) throw Error(p(345));
  a.finishedWork = a.current.alternate;
  a.finishedLanes = b;
  Qk(a, uk, vk);
  Ek(a, B());
  return null;
}
function Rk(a, b) {
  var c = K;
  K |= 1;
  try {
    return a(b);
  } finally {
    K = c, 0 === K && (Hj = B() + 500, fg && jg());
  }
}
function Sk(a) {
  null !== xk && 0 === xk.tag && 0 === (K & 6) && Ik();
  var b = K;
  K |= 1;
  var c = pk.transition,
    d = C;
  try {
    if (pk.transition = null, C = 1, a) return a();
  } finally {
    C = d, pk.transition = c, K = b, 0 === (K & 6) && jg();
  }
}
function Ij() {
  gj = fj.current;
  E(fj);
}
function Lk(a, b) {
  a.finishedWork = null;
  a.finishedLanes = 0;
  var c = a.timeoutHandle;
  -1 !== c && (a.timeoutHandle = -1, Gf(c));
  if (null !== Y) for (c = Y.return; null !== c;) {
    var d = c;
    wg(d);
    switch (d.tag) {
      case 1:
        d = d.type.childContextTypes;
        null !== d && void 0 !== d && $f();
        break;
      case 3:
        Jh();
        E(Wf);
        E(H);
        Oh();
        break;
      case 5:
        Lh(d);
        break;
      case 4:
        Jh();
        break;
      case 13:
        E(M);
        break;
      case 19:
        E(M);
        break;
      case 10:
        Rg(d.type._context);
        break;
      case 22:
      case 23:
        Ij();
    }
    c = c.return;
  }
  R = a;
  Y = a = wh(a.current, null);
  Z = gj = b;
  T = 0;
  qk = null;
  sk = rk = hh = 0;
  uk = tk = null;
  if (null !== Wg) {
    for (b = 0; b < Wg.length; b++) if (c = Wg[b], d = c.interleaved, null !== d) {
      c.interleaved = null;
      var e = d.next,
        f = c.pending;
      if (null !== f) {
        var g = f.next;
        f.next = e;
        d.next = g;
      }
      c.pending = d;
    }
    Wg = null;
  }
  return a;
}
function Nk(a, b) {
  do {
    var c = Y;
    try {
      Qg();
      Ph.current = ai;
      if (Sh) {
        for (var d = N.memoizedState; null !== d;) {
          var e = d.queue;
          null !== e && (e.pending = null);
          d = d.next;
        }
        Sh = !1;
      }
      Rh = 0;
      P = O = N = null;
      Th = !1;
      Uh = 0;
      ok.current = null;
      if (null === c || null === c.return) {
        T = 1;
        qk = b;
        Y = null;
        break;
      }
      a: {
        var f = a,
          g = c.return,
          h = c,
          k = b;
        b = Z;
        h.flags |= 32768;
        if (null !== k && "object" === typeof k && "function" === typeof k.then) {
          var l = k,
            m = h,
            q = m.tag;
          if (0 === (m.mode & 1) && (0 === q || 11 === q || 15 === q)) {
            var r = m.alternate;
            r ? (m.updateQueue = r.updateQueue, m.memoizedState = r.memoizedState, m.lanes = r.lanes) : (m.updateQueue = null, m.memoizedState = null);
          }
          var y = Vi(g);
          if (null !== y) {
            y.flags &= -257;
            Wi(y, g, h, f, b);
            y.mode & 1 && Ti(f, l, b);
            b = y;
            k = l;
            var n = b.updateQueue;
            if (null === n) {
              var t = new Set();
              t.add(k);
              b.updateQueue = t;
            } else n.add(k);
            break a;
          } else {
            if (0 === (b & 1)) {
              Ti(f, l, b);
              uj();
              break a;
            }
            k = Error(p(426));
          }
        } else if (I && h.mode & 1) {
          var J = Vi(g);
          if (null !== J) {
            0 === (J.flags & 65536) && (J.flags |= 256);
            Wi(J, g, h, f, b);
            Jg(Ki(k, h));
            break a;
          }
        }
        f = k = Ki(k, h);
        4 !== T && (T = 2);
        null === tk ? tk = [f] : tk.push(f);
        f = g;
        do {
          switch (f.tag) {
            case 3:
              f.flags |= 65536;
              b &= -b;
              f.lanes |= b;
              var x = Oi(f, k, b);
              fh(f, x);
              break a;
            case 1:
              h = k;
              var w = f.type,
                u = f.stateNode;
              if (0 === (f.flags & 128) && ("function" === typeof w.getDerivedStateFromError || null !== u && "function" === typeof u.componentDidCatch && (null === Si || !Si.has(u)))) {
                f.flags |= 65536;
                b &= -b;
                f.lanes |= b;
                var F = Ri(f, h, b);
                fh(f, F);
                break a;
              }
          }
          f = f.return;
        } while (null !== f);
      }
      Tk(c);
    } catch (na) {
      b = na;
      Y === c && null !== c && (Y = c = c.return);
      continue;
    }
    break;
  } while (1);
}
function Kk() {
  var a = nk.current;
  nk.current = ai;
  return null === a ? ai : a;
}
function uj() {
  if (0 === T || 3 === T || 2 === T) T = 4;
  null === R || 0 === (hh & 268435455) && 0 === (rk & 268435455) || Dk(R, Z);
}
function Jk(a, b) {
  var c = K;
  K |= 2;
  var d = Kk();
  if (R !== a || Z !== b) vk = null, Lk(a, b);
  do try {
    Uk();
    break;
  } catch (e) {
    Nk(a, e);
  } while (1);
  Qg();
  K = c;
  nk.current = d;
  if (null !== Y) throw Error(p(261));
  R = null;
  Z = 0;
  return T;
}
function Uk() {
  for (; null !== Y;) Vk(Y);
}
function Mk() {
  for (; null !== Y && !cc();) Vk(Y);
}
function Vk(a) {
  var b = Wk(a.alternate, a, gj);
  a.memoizedProps = a.pendingProps;
  null === b ? Tk(a) : Y = b;
  ok.current = null;
}
function Tk(a) {
  var b = a;
  do {
    var c = b.alternate;
    a = b.return;
    if (0 === (b.flags & 32768)) {
      if (c = Fj(c, b, gj), null !== c) {
        Y = c;
        return;
      }
    } else {
      c = Jj(c, b);
      if (null !== c) {
        c.flags &= 32767;
        Y = c;
        return;
      }
      if (null !== a) a.flags |= 32768, a.subtreeFlags = 0, a.deletions = null;else {
        T = 6;
        Y = null;
        return;
      }
    }
    b = b.sibling;
    if (null !== b) {
      Y = b;
      return;
    }
    Y = b = a;
  } while (null !== b);
  0 === T && (T = 5);
}
function Qk(a, b, c) {
  var d = C,
    e = pk.transition;
  try {
    pk.transition = null, C = 1, Xk(a, b, c, d);
  } finally {
    pk.transition = e, C = d;
  }
  return null;
}
function Xk(a, b, c, d) {
  do Ik(); while (null !== xk);
  if (0 !== (K & 6)) throw Error(p(327));
  c = a.finishedWork;
  var e = a.finishedLanes;
  if (null === c) return null;
  a.finishedWork = null;
  a.finishedLanes = 0;
  if (c === a.current) throw Error(p(177));
  a.callbackNode = null;
  a.callbackPriority = 0;
  var f = c.lanes | c.childLanes;
  Bc(a, f);
  a === R && (Y = R = null, Z = 0);
  0 === (c.subtreeFlags & 2064) && 0 === (c.flags & 2064) || wk || (wk = !0, Gk(hc, function () {
    Ik();
    return null;
  }));
  f = 0 !== (c.flags & 15990);
  if (0 !== (c.subtreeFlags & 15990) || f) {
    f = pk.transition;
    pk.transition = null;
    var g = C;
    C = 1;
    var h = K;
    K |= 4;
    ok.current = null;
    Pj(a, c);
    ek(c, a);
    Oe(Df);
    dd = !!Cf;
    Df = Cf = null;
    a.current = c;
    ik(c, a, e);
    dc();
    K = h;
    C = g;
    pk.transition = f;
  } else a.current = c;
  wk && (wk = !1, xk = a, yk = e);
  f = a.pendingLanes;
  0 === f && (Si = null);
  mc(c.stateNode, d);
  Ek(a, B());
  if (null !== b) for (d = a.onRecoverableError, c = 0; c < b.length; c++) e = b[c], d(e.value, {
    componentStack: e.stack,
    digest: e.digest
  });
  if (Pi) throw Pi = !1, a = Qi, Qi = null, a;
  0 !== (yk & 1) && 0 !== a.tag && Ik();
  f = a.pendingLanes;
  0 !== (f & 1) ? a === Ak ? zk++ : (zk = 0, Ak = a) : zk = 0;
  jg();
  return null;
}
function Ik() {
  if (null !== xk) {
    var a = Dc(yk),
      b = pk.transition,
      c = C;
    try {
      pk.transition = null;
      C = 16 > a ? 16 : a;
      if (null === xk) var d = !1;else {
        a = xk;
        xk = null;
        yk = 0;
        if (0 !== (K & 6)) throw Error(p(331));
        var e = K;
        K |= 4;
        for (V = a.current; null !== V;) {
          var f = V,
            g = f.child;
          if (0 !== (V.flags & 16)) {
            var h = f.deletions;
            if (null !== h) {
              for (var k = 0; k < h.length; k++) {
                var l = h[k];
                for (V = l; null !== V;) {
                  var m = V;
                  switch (m.tag) {
                    case 0:
                    case 11:
                    case 15:
                      Qj(8, m, f);
                  }
                  var q = m.child;
                  if (null !== q) q.return = m, V = q;else for (; null !== V;) {
                    m = V;
                    var r = m.sibling,
                      y = m.return;
                    Tj(m);
                    if (m === l) {
                      V = null;
                      break;
                    }
                    if (null !== r) {
                      r.return = y;
                      V = r;
                      break;
                    }
                    V = y;
                  }
                }
              }
              var n = f.alternate;
              if (null !== n) {
                var t = n.child;
                if (null !== t) {
                  n.child = null;
                  do {
                    var J = t.sibling;
                    t.sibling = null;
                    t = J;
                  } while (null !== t);
                }
              }
              V = f;
            }
          }
          if (0 !== (f.subtreeFlags & 2064) && null !== g) g.return = f, V = g;else b: for (; null !== V;) {
            f = V;
            if (0 !== (f.flags & 2048)) switch (f.tag) {
              case 0:
              case 11:
              case 15:
                Qj(9, f, f.return);
            }
            var x = f.sibling;
            if (null !== x) {
              x.return = f.return;
              V = x;
              break b;
            }
            V = f.return;
          }
        }
        var w = a.current;
        for (V = w; null !== V;) {
          g = V;
          var u = g.child;
          if (0 !== (g.subtreeFlags & 2064) && null !== u) u.return = g, V = u;else b: for (g = w; null !== V;) {
            h = V;
            if (0 !== (h.flags & 2048)) try {
              switch (h.tag) {
                case 0:
                case 11:
                case 15:
                  Rj(9, h);
              }
            } catch (na) {
              W(h, h.return, na);
            }
            if (h === g) {
              V = null;
              break b;
            }
            var F = h.sibling;
            if (null !== F) {
              F.return = h.return;
              V = F;
              break b;
            }
            V = h.return;
          }
        }
        K = e;
        jg();
        if (lc && "function" === typeof lc.onPostCommitFiberRoot) try {
          lc.onPostCommitFiberRoot(kc, a);
        } catch (na) {}
        d = !0;
      }
      return d;
    } finally {
      C = c, pk.transition = b;
    }
  }
  return !1;
}
function Yk(a, b, c) {
  b = Ki(c, b);
  b = Oi(a, b, 1);
  a = dh(a, b, 1);
  b = L();
  null !== a && (Ac(a, 1, b), Ek(a, b));
}
function W(a, b, c) {
  if (3 === a.tag) Yk(a, a, c);else for (; null !== b;) {
    if (3 === b.tag) {
      Yk(b, a, c);
      break;
    } else if (1 === b.tag) {
      var d = b.stateNode;
      if ("function" === typeof b.type.getDerivedStateFromError || "function" === typeof d.componentDidCatch && (null === Si || !Si.has(d))) {
        a = Ki(c, a);
        a = Ri(b, a, 1);
        b = dh(b, a, 1);
        a = L();
        null !== b && (Ac(b, 1, a), Ek(b, a));
        break;
      }
    }
    b = b.return;
  }
}
function Ui(a, b, c) {
  var d = a.pingCache;
  null !== d && d.delete(b);
  b = L();
  a.pingedLanes |= a.suspendedLanes & c;
  R === a && (Z & c) === c && (4 === T || 3 === T && (Z & 130023424) === Z && 500 > B() - gk ? Lk(a, 0) : sk |= c);
  Ek(a, b);
}
function Zk(a, b) {
  0 === b && (0 === (a.mode & 1) ? b = 1 : (b = sc, sc <<= 1, 0 === (sc & 130023424) && (sc = 4194304)));
  var c = L();
  a = Zg(a, b);
  null !== a && (Ac(a, b, c), Ek(a, c));
}
function vj(a) {
  var b = a.memoizedState,
    c = 0;
  null !== b && (c = b.retryLane);
  Zk(a, c);
}
function ck(a, b) {
  var c = 0;
  switch (a.tag) {
    case 13:
      var d = a.stateNode;
      var e = a.memoizedState;
      null !== e && (c = e.retryLane);
      break;
    case 19:
      d = a.stateNode;
      break;
    default:
      throw Error(p(314));
  }
  null !== d && d.delete(b);
  Zk(a, c);
}
var Wk;
Wk = function Wk(a, b, c) {
  if (null !== a) {
    if (a.memoizedProps !== b.pendingProps || Wf.current) Ug = !0;else {
      if (0 === (a.lanes & c) && 0 === (b.flags & 128)) return Ug = !1, zj(a, b, c);
      Ug = 0 !== (a.flags & 131072) ? !0 : !1;
    }
  } else Ug = !1, I && 0 !== (b.flags & 1048576) && ug(b, ng, b.index);
  b.lanes = 0;
  switch (b.tag) {
    case 2:
      var d = b.type;
      jj(a, b);
      a = b.pendingProps;
      var e = Yf(b, H.current);
      Tg(b, c);
      e = Xh(null, b, d, a, e, c);
      var f = bi();
      b.flags |= 1;
      "object" === typeof e && null !== e && "function" === typeof e.render && void 0 === e.$$typeof ? (b.tag = 1, b.memoizedState = null, b.updateQueue = null, Zf(d) ? (f = !0, cg(b)) : f = !1, b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null, ah(b), e.updater = nh, b.stateNode = e, e._reactInternals = b, rh(b, d, a, c), b = kj(null, b, d, !0, f, c)) : (b.tag = 0, I && f && vg(b), Yi(null, b, e, c), b = b.child);
      return b;
    case 16:
      d = b.elementType;
      a: {
        jj(a, b);
        a = b.pendingProps;
        e = d._init;
        d = e(d._payload);
        b.type = d;
        e = b.tag = $k(d);
        a = Lg(d, a);
        switch (e) {
          case 0:
            b = dj(null, b, d, a, c);
            break a;
          case 1:
            b = ij(null, b, d, a, c);
            break a;
          case 11:
            b = Zi(null, b, d, a, c);
            break a;
          case 14:
            b = aj(null, b, d, Lg(d.type, a), c);
            break a;
        }
        throw Error(p(306, d, ""));
      }
      return b;
    case 0:
      return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Lg(d, e), dj(a, b, d, e, c);
    case 1:
      return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Lg(d, e), ij(a, b, d, e, c);
    case 3:
      a: {
        lj(b);
        if (null === a) throw Error(p(387));
        d = b.pendingProps;
        f = b.memoizedState;
        e = f.element;
        bh(a, b);
        gh(b, d, null, c);
        var g = b.memoizedState;
        d = g.element;
        if (f.isDehydrated) {
          if (f = {
            element: d,
            isDehydrated: !1,
            cache: g.cache,
            pendingSuspenseBoundaries: g.pendingSuspenseBoundaries,
            transitions: g.transitions
          }, b.updateQueue.baseState = f, b.memoizedState = f, b.flags & 256) {
            e = Ki(Error(p(423)), b);
            b = mj(a, b, d, c, e);
            break a;
          } else if (d !== e) {
            e = Ki(Error(p(424)), b);
            b = mj(a, b, d, c, e);
            break a;
          } else for (yg = Lf(b.stateNode.containerInfo.firstChild), xg = b, I = !0, zg = null, c = Ch(b, null, d, c), b.child = c; c;) c.flags = c.flags & -3 | 4096, c = c.sibling;
        } else {
          Ig();
          if (d === e) {
            b = $i(a, b, c);
            break a;
          }
          Yi(a, b, d, c);
        }
        b = b.child;
      }
      return b;
    case 5:
      return Kh(b), null === a && Eg(b), d = b.type, e = b.pendingProps, f = null !== a ? a.memoizedProps : null, g = e.children, Ef(d, e) ? g = null : null !== f && Ef(d, f) && (b.flags |= 32), hj(a, b), Yi(a, b, g, c), b.child;
    case 6:
      return null === a && Eg(b), null;
    case 13:
      return pj(a, b, c);
    case 4:
      return Ih(b, b.stateNode.containerInfo), d = b.pendingProps, null === a ? b.child = Bh(b, null, d, c) : Yi(a, b, d, c), b.child;
    case 11:
      return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Lg(d, e), Zi(a, b, d, e, c);
    case 7:
      return Yi(a, b, b.pendingProps, c), b.child;
    case 8:
      return Yi(a, b, b.pendingProps.children, c), b.child;
    case 12:
      return Yi(a, b, b.pendingProps.children, c), b.child;
    case 10:
      a: {
        d = b.type._context;
        e = b.pendingProps;
        f = b.memoizedProps;
        g = e.value;
        G(Mg, d._currentValue);
        d._currentValue = g;
        if (null !== f) if (He(f.value, g)) {
          if (f.children === e.children && !Wf.current) {
            b = $i(a, b, c);
            break a;
          }
        } else for (f = b.child, null !== f && (f.return = b); null !== f;) {
          var h = f.dependencies;
          if (null !== h) {
            g = f.child;
            for (var k = h.firstContext; null !== k;) {
              if (k.context === d) {
                if (1 === f.tag) {
                  k = ch(-1, c & -c);
                  k.tag = 2;
                  var l = f.updateQueue;
                  if (null !== l) {
                    l = l.shared;
                    var m = l.pending;
                    null === m ? k.next = k : (k.next = m.next, m.next = k);
                    l.pending = k;
                  }
                }
                f.lanes |= c;
                k = f.alternate;
                null !== k && (k.lanes |= c);
                Sg(f.return, c, b);
                h.lanes |= c;
                break;
              }
              k = k.next;
            }
          } else if (10 === f.tag) g = f.type === b.type ? null : f.child;else if (18 === f.tag) {
            g = f.return;
            if (null === g) throw Error(p(341));
            g.lanes |= c;
            h = g.alternate;
            null !== h && (h.lanes |= c);
            Sg(g, c, b);
            g = f.sibling;
          } else g = f.child;
          if (null !== g) g.return = f;else for (g = f; null !== g;) {
            if (g === b) {
              g = null;
              break;
            }
            f = g.sibling;
            if (null !== f) {
              f.return = g.return;
              g = f;
              break;
            }
            g = g.return;
          }
          f = g;
        }
        Yi(a, b, e.children, c);
        b = b.child;
      }
      return b;
    case 9:
      return e = b.type, d = b.pendingProps.children, Tg(b, c), e = Vg(e), d = d(e), b.flags |= 1, Yi(a, b, d, c), b.child;
    case 14:
      return d = b.type, e = Lg(d, b.pendingProps), e = Lg(d.type, e), aj(a, b, d, e, c);
    case 15:
      return cj(a, b, b.type, b.pendingProps, c);
    case 17:
      return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : Lg(d, e), jj(a, b), b.tag = 1, Zf(d) ? (a = !0, cg(b)) : a = !1, Tg(b, c), ph(b, d, e), rh(b, d, e, c), kj(null, b, d, !0, a, c);
    case 19:
      return yj(a, b, c);
    case 22:
      return ej(a, b, c);
  }
  throw Error(p(156, b.tag));
};
function Gk(a, b) {
  return ac(a, b);
}
function al(a, b, c, d) {
  this.tag = a;
  this.key = c;
  this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;
  this.index = 0;
  this.ref = null;
  this.pendingProps = b;
  this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;
  this.mode = d;
  this.subtreeFlags = this.flags = 0;
  this.deletions = null;
  this.childLanes = this.lanes = 0;
  this.alternate = null;
}
function Bg(a, b, c, d) {
  return new al(a, b, c, d);
}
function bj(a) {
  a = a.prototype;
  return !(!a || !a.isReactComponent);
}
function $k(a) {
  if ("function" === typeof a) return bj(a) ? 1 : 0;
  if (void 0 !== a && null !== a) {
    a = a.$$typeof;
    if (a === Da) return 11;
    if (a === Ga) return 14;
  }
  return 2;
}
function wh(a, b) {
  var c = a.alternate;
  null === c ? (c = Bg(a.tag, b, a.key, a.mode), c.elementType = a.elementType, c.type = a.type, c.stateNode = a.stateNode, c.alternate = a, a.alternate = c) : (c.pendingProps = b, c.type = a.type, c.flags = 0, c.subtreeFlags = 0, c.deletions = null);
  c.flags = a.flags & 14680064;
  c.childLanes = a.childLanes;
  c.lanes = a.lanes;
  c.child = a.child;
  c.memoizedProps = a.memoizedProps;
  c.memoizedState = a.memoizedState;
  c.updateQueue = a.updateQueue;
  b = a.dependencies;
  c.dependencies = null === b ? null : {
    lanes: b.lanes,
    firstContext: b.firstContext
  };
  c.sibling = a.sibling;
  c.index = a.index;
  c.ref = a.ref;
  return c;
}
function yh(a, b, c, d, e, f) {
  var g = 2;
  d = a;
  if ("function" === typeof a) bj(a) && (g = 1);else if ("string" === typeof a) g = 5;else a: switch (a) {
    case ya:
      return Ah(c.children, e, f, b);
    case za:
      g = 8;
      e |= 8;
      break;
    case Aa:
      return a = Bg(12, c, b, e | 2), a.elementType = Aa, a.lanes = f, a;
    case Ea:
      return a = Bg(13, c, b, e), a.elementType = Ea, a.lanes = f, a;
    case Fa:
      return a = Bg(19, c, b, e), a.elementType = Fa, a.lanes = f, a;
    case Ia:
      return qj(c, e, f, b);
    default:
      if ("object" === typeof a && null !== a) switch (a.$$typeof) {
        case Ba:
          g = 10;
          break a;
        case Ca:
          g = 9;
          break a;
        case Da:
          g = 11;
          break a;
        case Ga:
          g = 14;
          break a;
        case Ha:
          g = 16;
          d = null;
          break a;
      }
      throw Error(p(130, null == a ? a : typeof a, ""));
  }
  b = Bg(g, c, b, e);
  b.elementType = a;
  b.type = d;
  b.lanes = f;
  return b;
}
function Ah(a, b, c, d) {
  a = Bg(7, a, d, b);
  a.lanes = c;
  return a;
}
function qj(a, b, c, d) {
  a = Bg(22, a, d, b);
  a.elementType = Ia;
  a.lanes = c;
  a.stateNode = {
    isHidden: !1
  };
  return a;
}
function xh(a, b, c) {
  a = Bg(6, a, null, b);
  a.lanes = c;
  return a;
}
function zh(a, b, c) {
  b = Bg(4, null !== a.children ? a.children : [], a.key, b);
  b.lanes = c;
  b.stateNode = {
    containerInfo: a.containerInfo,
    pendingChildren: null,
    implementation: a.implementation
  };
  return b;
}
function bl(a, b, c, d, e) {
  this.tag = b;
  this.containerInfo = a;
  this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
  this.timeoutHandle = -1;
  this.callbackNode = this.pendingContext = this.context = null;
  this.callbackPriority = 0;
  this.eventTimes = zc(0);
  this.expirationTimes = zc(-1);
  this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
  this.entanglements = zc(0);
  this.identifierPrefix = d;
  this.onRecoverableError = e;
  this.mutableSourceEagerHydrationData = null;
}
function cl(a, b, c, d, e, f, g, h, k) {
  a = new bl(a, b, c, h, k);
  1 === b ? (b = 1, !0 === f && (b |= 8)) : b = 0;
  f = Bg(3, null, null, b);
  a.current = f;
  f.stateNode = a;
  f.memoizedState = {
    element: d,
    isDehydrated: c,
    cache: null,
    transitions: null,
    pendingSuspenseBoundaries: null
  };
  ah(f);
  return a;
}
function dl(a, b, c) {
  var d = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
  return {
    $$typeof: wa,
    key: null == d ? null : "" + d,
    children: a,
    containerInfo: b,
    implementation: c
  };
}
function el(a) {
  if (!a) return Vf;
  a = a._reactInternals;
  a: {
    if (Vb(a) !== a || 1 !== a.tag) throw Error(p(170));
    var b = a;
    do {
      switch (b.tag) {
        case 3:
          b = b.stateNode.context;
          break a;
        case 1:
          if (Zf(b.type)) {
            b = b.stateNode.__reactInternalMemoizedMergedChildContext;
            break a;
          }
      }
      b = b.return;
    } while (null !== b);
    throw Error(p(171));
  }
  if (1 === a.tag) {
    var c = a.type;
    if (Zf(c)) return bg(a, c, b);
  }
  return b;
}
function fl(a, b, c, d, e, f, g, h, k) {
  a = cl(c, d, !0, a, e, f, g, h, k);
  a.context = el(null);
  c = a.current;
  d = L();
  e = lh(c);
  f = ch(d, e);
  f.callback = void 0 !== b && null !== b ? b : null;
  dh(c, f, e);
  a.current.lanes = e;
  Ac(a, e, d);
  Ek(a, d);
  return a;
}
function gl(a, b, c, d) {
  var e = b.current,
    f = L(),
    g = lh(e);
  c = el(c);
  null === b.context ? b.context = c : b.pendingContext = c;
  b = ch(f, g);
  b.payload = {
    element: a
  };
  d = void 0 === d ? null : d;
  null !== d && (b.callback = d);
  a = dh(e, b, g);
  null !== a && (mh(a, e, g, f), eh(a, e, g));
  return g;
}
function hl(a) {
  a = a.current;
  if (!a.child) return null;
  switch (a.child.tag) {
    case 5:
      return a.child.stateNode;
    default:
      return a.child.stateNode;
  }
}
function il(a, b) {
  a = a.memoizedState;
  if (null !== a && null !== a.dehydrated) {
    var c = a.retryLane;
    a.retryLane = 0 !== c && c < b ? c : b;
  }
}
function jl(a, b) {
  il(a, b);
  (a = a.alternate) && il(a, b);
}
function kl() {
  return null;
}
var ll = "function" === typeof reportError ? reportError : function (a) {
  console.error(a);
};
function ml(a) {
  this._internalRoot = a;
}
nl.prototype.render = ml.prototype.render = function (a) {
  var b = this._internalRoot;
  if (null === b) throw Error(p(409));
  gl(a, b, null, null);
};
nl.prototype.unmount = ml.prototype.unmount = function () {
  var a = this._internalRoot;
  if (null !== a) {
    this._internalRoot = null;
    var b = a.containerInfo;
    Sk(function () {
      gl(null, a, null, null);
    });
    b[uf] = null;
  }
};
function nl(a) {
  this._internalRoot = a;
}
nl.prototype.unstable_scheduleHydration = function (a) {
  if (a) {
    var b = Hc();
    a = {
      blockedOn: null,
      target: a,
      priority: b
    };
    for (var c = 0; c < Qc.length && 0 !== b && b < Qc[c].priority; c++);
    Qc.splice(c, 0, a);
    0 === c && Vc(a);
  }
};
function ol(a) {
  return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType);
}
function pl(a) {
  return !(!a || 1 !== a.nodeType && 9 !== a.nodeType && 11 !== a.nodeType && (8 !== a.nodeType || " react-mount-point-unstable " !== a.nodeValue));
}
function ql() {}
function rl(a, b, c, d, e) {
  if (e) {
    if ("function" === typeof d) {
      var f = d;
      d = function d() {
        var a = hl(g);
        f.call(a);
      };
    }
    var g = fl(b, d, a, 0, null, !1, !1, "", ql);
    a._reactRootContainer = g;
    a[uf] = g.current;
    sf(8 === a.nodeType ? a.parentNode : a);
    Sk();
    return g;
  }
  for (; e = a.lastChild;) a.removeChild(e);
  if ("function" === typeof d) {
    var h = d;
    d = function d() {
      var a = hl(k);
      h.call(a);
    };
  }
  var k = cl(a, 0, !1, null, null, !1, !1, "", ql);
  a._reactRootContainer = k;
  a[uf] = k.current;
  sf(8 === a.nodeType ? a.parentNode : a);
  Sk(function () {
    gl(b, k, c, d);
  });
  return k;
}
function sl(a, b, c, d, e) {
  var f = c._reactRootContainer;
  if (f) {
    var g = f;
    if ("function" === typeof e) {
      var h = e;
      e = function e() {
        var a = hl(g);
        h.call(a);
      };
    }
    gl(b, g, a, e);
  } else g = rl(c, b, a, e, d);
  return hl(g);
}
Ec = function Ec(a) {
  switch (a.tag) {
    case 3:
      var b = a.stateNode;
      if (b.current.memoizedState.isDehydrated) {
        var c = tc(b.pendingLanes);
        0 !== c && (Cc(b, c | 1), Ek(b, B()), 0 === (K & 6) && (Hj = B() + 500, jg()));
      }
      break;
    case 13:
      Sk(function () {
        var b = Zg(a, 1);
        if (null !== b) {
          var c = L();
          mh(b, a, 1, c);
        }
      }), jl(a, 1);
  }
};
Fc = function Fc(a) {
  if (13 === a.tag) {
    var b = Zg(a, 134217728);
    if (null !== b) {
      var c = L();
      mh(b, a, 134217728, c);
    }
    jl(a, 134217728);
  }
};
Gc = function Gc(a) {
  if (13 === a.tag) {
    var b = lh(a),
      c = Zg(a, b);
    if (null !== c) {
      var d = L();
      mh(c, a, b, d);
    }
    jl(a, b);
  }
};
Hc = function Hc() {
  return C;
};
Ic = function Ic(a, b) {
  var c = C;
  try {
    return C = a, b();
  } finally {
    C = c;
  }
};
yb = function yb(a, b, c) {
  switch (b) {
    case "input":
      bb(a, c);
      b = c.name;
      if ("radio" === c.type && null != b) {
        for (c = a; c.parentNode;) c = c.parentNode;
        c = c.querySelectorAll("input[name=" + JSON.stringify("" + b) + '][type="radio"]');
        for (b = 0; b < c.length; b++) {
          var d = c[b];
          if (d !== a && d.form === a.form) {
            var e = Db(d);
            if (!e) throw Error(p(90));
            Wa(d);
            bb(d, e);
          }
        }
      }
      break;
    case "textarea":
      ib(a, c);
      break;
    case "select":
      b = c.value, null != b && fb(a, !!c.multiple, b, !1);
  }
};
Gb = Rk;
Hb = Sk;
var tl = {
    usingClientEntryPoint: !1,
    Events: [Cb, ue, Db, Eb, Fb, Rk]
  },
  ul = {
    findFiberByHostInstance: Wc,
    bundleType: 0,
    version: "18.2.0",
    rendererPackageName: "react-dom"
  };
var vl = {
  bundleType: ul.bundleType,
  version: ul.version,
  rendererPackageName: ul.rendererPackageName,
  rendererConfig: ul.rendererConfig,
  overrideHookState: null,
  overrideHookStateDeletePath: null,
  overrideHookStateRenamePath: null,
  overrideProps: null,
  overridePropsDeletePath: null,
  overridePropsRenamePath: null,
  setErrorHandler: null,
  setSuspenseHandler: null,
  scheduleUpdate: null,
  currentDispatcherRef: ua.ReactCurrentDispatcher,
  findHostInstanceByFiber: function findHostInstanceByFiber(a) {
    a = Zb(a);
    return null === a ? null : a.stateNode;
  },
  findFiberByHostInstance: ul.findFiberByHostInstance || kl,
  findHostInstancesForRefresh: null,
  scheduleRefresh: null,
  scheduleRoot: null,
  setRefreshHandler: null,
  getCurrentFiber: null,
  reconcilerVersion: "18.2.0-next-9e3b772b8-20220608"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
  var wl = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  if (!wl.isDisabled && wl.supportsFiber) try {
    kc = wl.inject(vl), lc = wl;
  } catch (a) {}
}
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tl;
exports.createPortal = function (a, b) {
  var c = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
  if (!ol(b)) throw Error(p(200));
  return dl(a, b, null, c);
};
exports.createRoot = function (a, b) {
  if (!ol(a)) throw Error(p(299));
  var c = !1,
    d = "",
    e = ll;
  null !== b && void 0 !== b && (!0 === b.unstable_strictMode && (c = !0), void 0 !== b.identifierPrefix && (d = b.identifierPrefix), void 0 !== b.onRecoverableError && (e = b.onRecoverableError));
  b = cl(a, 1, !1, null, null, c, !1, d, e);
  a[uf] = b.current;
  sf(8 === a.nodeType ? a.parentNode : a);
  return new ml(b);
};
exports.findDOMNode = function (a) {
  if (null == a) return null;
  if (1 === a.nodeType) return a;
  var b = a._reactInternals;
  if (void 0 === b) {
    if ("function" === typeof a.render) throw Error(p(188));
    a = Object.keys(a).join(",");
    throw Error(p(268, a));
  }
  a = Zb(b);
  a = null === a ? null : a.stateNode;
  return a;
};
exports.flushSync = function (a) {
  return Sk(a);
};
exports.hydrate = function (a, b, c) {
  if (!pl(b)) throw Error(p(200));
  return sl(null, a, b, !0, c);
};
exports.hydrateRoot = function (a, b, c) {
  if (!ol(a)) throw Error(p(405));
  var d = null != c && c.hydratedSources || null,
    e = !1,
    f = "",
    g = ll;
  null !== c && void 0 !== c && (!0 === c.unstable_strictMode && (e = !0), void 0 !== c.identifierPrefix && (f = c.identifierPrefix), void 0 !== c.onRecoverableError && (g = c.onRecoverableError));
  b = fl(b, null, a, 1, null != c ? c : null, e, !1, f, g);
  a[uf] = b.current;
  sf(a);
  if (d) for (a = 0; a < d.length; a++) c = d[a], e = c._getVersion, e = e(c._source), null == b.mutableSourceEagerHydrationData ? b.mutableSourceEagerHydrationData = [c, e] : b.mutableSourceEagerHydrationData.push(c, e);
  return new nl(b);
};
exports.render = function (a, b, c) {
  if (!pl(b)) throw Error(p(200));
  return sl(null, a, b, !1, c);
};
exports.unmountComponentAtNode = function (a) {
  if (!pl(a)) throw Error(p(40));
  return a._reactRootContainer ? (Sk(function () {
    sl(null, null, a, !1, function () {
      a._reactRootContainer = null;
      a[uf] = null;
    });
  }), !0) : !1;
};
exports.unstable_batchedUpdates = Rk;
exports.unstable_renderSubtreeIntoContainer = function (a, b, c, d) {
  if (!pl(c)) throw Error(p(200));
  if (null == a || void 0 === a._reactInternals) throw Error(p(38));
  return sl(a, b, c, !1, d);
};
exports.version = "18.2.0-next-9e3b772b8-20220608";

/***/ }),

/***/ 545:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";


var m = __webpack_require__(1162);
if (true) {
  exports.createRoot = m.createRoot;
  exports.hydrateRoot = m.hydrateRoot;
} else { var i; }

/***/ }),

/***/ 1162:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


function checkDCE() {
  /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function') {
    return;
  }
  if (false) {}
  try {
    // Verify that the code above has been dead code eliminated (DCE'd).
    __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  } catch (err) {
    // DevTools shouldn't crash React, no matter what.
    // We should still report in case we break this code.
    console.error(err);
  }
}
if (true) {
  // DCE check should happen before ReactDOM bundle executes so that
  // DevTools can report bad minification during injection.
  checkDCE();
  module.exports = __webpack_require__(5478);
} else {}

/***/ }),

/***/ 1672:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";


function _typeof(obj) {
  "@babel/helpers - typeof";

  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  }, _typeof(obj);
}
Object.defineProperty(exports, "__esModule", ({
  value: true
}));
Object.defineProperty(exports, "DraggableCore", ({
  enumerable: true,
  get: function get() {
    return _DraggableCore.default;
  }
}));
exports["default"] = void 0;
var React = _interopRequireWildcard(__webpack_require__(9512));
var _propTypes = _interopRequireDefault(__webpack_require__(1226));
var _reactDom = _interopRequireDefault(__webpack_require__(1162));
var _clsx2 = _interopRequireDefault(__webpack_require__(1569));
var _domFns = __webpack_require__(2156);
var _positionFns = __webpack_require__(4336);
var _shims = __webpack_require__(6776);
var _DraggableCore = _interopRequireDefault(__webpack_require__(8334));
var _log = _interopRequireDefault(__webpack_require__(6992));
var _excluded = ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"];
function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    default: obj
  };
}
function _getRequireWildcardCache(nodeInterop) {
  if (typeof WeakMap !== "function") return null;
  var cacheBabelInterop = new WeakMap();
  var cacheNodeInterop = new WeakMap();
  return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
    return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
  })(nodeInterop);
}
function _interopRequireWildcard(obj, nodeInterop) {
  if (!nodeInterop && obj && obj.__esModule) {
    return obj;
  }
  if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
    return {
      default: obj
    };
  }
  var cache = _getRequireWildcardCache(nodeInterop);
  if (cache && cache.has(obj)) {
    return cache.get(obj);
  }
  var newObj = {};
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (var key in obj) {
    if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
      var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
      if (desc && (desc.get || desc.set)) {
        Object.defineProperty(newObj, key, desc);
      } else {
        newObj[key] = obj[key];
      }
    }
  }
  newObj.default = obj;
  if (cache) {
    cache.set(obj, newObj);
  }
  return newObj;
}
function _extends() {
  _extends = Object.assign || function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];
      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }
    return target;
  };
  return _extends.apply(this, arguments);
}
function _objectWithoutProperties(source, excluded) {
  if (source == null) return {};
  var target = _objectWithoutPropertiesLoose(source, excluded);
  var key, i;
  if (Object.getOwnPropertySymbols) {
    var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
    for (i = 0; i < sourceSymbolKeys.length; i++) {
      key = sourceSymbolKeys[i];
      if (excluded.indexOf(key) >= 0) continue;
      if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
      target[key] = source[key];
    }
  }
  return target;
}
function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};
  var sourceKeys = Object.keys(source);
  var key, i;
  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }
  return target;
}
function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);
  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    enumerableOnly && (symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    })), keys.push.apply(keys, symbols);
  }
  return keys;
}
function _objectSpread(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = null != arguments[i] ? arguments[i] : {};
    i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
      _defineProperty(target, key, source[key]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
    });
  }
  return target;
}
function _slicedToArray(arr, i) {
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
}
function _nonIterableRest() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _unsupportedIterableToArray(o, minLen) {
  if (!o) return;
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor) n = o.constructor.name;
  if (n === "Map" || n === "Set") return Array.from(o);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
  if (len == null || len > arr.length) len = arr.length;
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
    arr2[i] = arr[i];
  }
  return arr2;
}
function _iterableToArrayLimit(arr, i) {
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
  if (_i == null) return;
  var _arr = [];
  var _n = true;
  var _d = false;
  var _s, _e;
  try {
    for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
      _arr.push(_s.value);
      if (i && _arr.length === i) break;
    }
  } catch (err) {
    _d = true;
    _e = err;
  } finally {
    try {
      if (!_n && _i["return"] != null) _i["return"]();
    } finally {
      if (_d) throw _e;
    }
  }
  return _arr;
}
function _arrayWithHoles(arr) {
  if (Array.isArray(arr)) return arr;
}
function _classCallCheck(instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
}
function _defineProperties(target, props) {
  for (var i = 0; i < props.length; i++) {
    var descriptor = props[i];
    descriptor.enumerable = descriptor.enumerable || false;
    descriptor.configurable = true;
    if ("value" in descriptor) descriptor.writable = true;
    Object.defineProperty(target, descriptor.key, descriptor);
  }
}
function _createClass(Constructor, protoProps, staticProps) {
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  if (staticProps) _defineProperties(Constructor, staticProps);
  Object.defineProperty(Constructor, "prototype", {
    writable: false
  });
  return Constructor;
}
function _inherits(subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function");
  }
  subClass.prototype = Object.create(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      writable: true,
      configurable: true
    }
  });
  Object.defineProperty(subClass, "prototype", {
    writable: false
  });
  if (superClass) _setPrototypeOf(subClass, superClass);
}
function _setPrototypeOf(o, p) {
  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
    o.__proto__ = p;
    return o;
  };
  return _setPrototypeOf(o, p);
}
function _createSuper(Derived) {
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
  return function _createSuperInternal() {
    var Super = _getPrototypeOf(Derived),
      result;
    if (hasNativeReflectConstruct) {
      var NewTarget = _getPrototypeOf(this).constructor;
      result = Reflect.construct(Super, arguments, NewTarget);
    } else {
      result = Super.apply(this, arguments);
    }
    return _possibleConstructorReturn(this, result);
  };
}
function _possibleConstructorReturn(self, call) {
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
    return call;
  } else if (call !== void 0) {
    throw new TypeError("Derived constructors may only return object or undefined");
  }
  return _assertThisInitialized(self);
}
function _assertThisInitialized(self) {
  if (self === void 0) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }
  return self;
}
function _isNativeReflectConstruct() {
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  if (Reflect.construct.sham) return false;
  if (typeof Proxy === "function") return true;
  try {
    Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
    return true;
  } catch (e) {
    return false;
  }
}
function _getPrototypeOf(o) {
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
    return o.__proto__ || Object.getPrototypeOf(o);
  };
  return _getPrototypeOf(o);
}
function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}

//
// Define <Draggable>
//
var Draggable = /*#__PURE__*/function (_React$Component) {
  _inherits(Draggable, _React$Component);
  var _super = _createSuper(Draggable);
  function Draggable(props
  /*: DraggableProps*/) {
    var _this;
    _classCallCheck(this, Draggable);
    _this = _super.call(this, props);
    _defineProperty(_assertThisInitialized(_this), "onDragStart", function (e, coreData) {
      (0, _log.default)('Draggable: onDragStart: %j', coreData); // Short-circuit if user's callback killed it.

      var shouldStart = _this.props.onStart(e, (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData)); // Kills start event on core as well, so move handlers are never bound.

      if (shouldStart === false) return false;
      _this.setState({
        dragging: true,
        dragged: true
      });
    });
    _defineProperty(_assertThisInitialized(_this), "onDrag", function (e, coreData) {
      if (!_this.state.dragging) return false;
      (0, _log.default)('Draggable: onDrag: %j', coreData);
      var uiData = (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData);
      var newState
      /*: $Shape<DraggableState>*/ = {
        x: uiData.x,
        y: uiData.y
      }; // Keep within bounds.

      if (_this.props.bounds) {
        // Save original x and y.
        var x = newState.x,
          y = newState.y; // Add slack to the values used to calculate bound position. This will ensure that if
        // we start removing slack, the element won't react to it right away until it's been
        // completely removed.

        newState.x += _this.state.slackX;
        newState.y += _this.state.slackY; // Get bound position. This will ceil/floor the x and y within the boundaries.

        var _getBoundPosition = (0, _positionFns.getBoundPosition)(_assertThisInitialized(_this), newState.x, newState.y),
          _getBoundPosition2 = _slicedToArray(_getBoundPosition, 2),
          newStateX = _getBoundPosition2[0],
          newStateY = _getBoundPosition2[1];
        newState.x = newStateX;
        newState.y = newStateY; // Recalculate slack by noting how much was shaved by the boundPosition handler.

        newState.slackX = _this.state.slackX + (x - newState.x);
        newState.slackY = _this.state.slackY + (y - newState.y); // Update the event we fire to reflect what really happened after bounds took effect.

        uiData.x = newState.x;
        uiData.y = newState.y;
        uiData.deltaX = newState.x - _this.state.x;
        uiData.deltaY = newState.y - _this.state.y;
      } // Short-circuit if user's callback killed it.

      var shouldUpdate = _this.props.onDrag(e, uiData);
      if (shouldUpdate === false) return false;
      _this.setState(newState);
    });
    _defineProperty(_assertThisInitialized(_this), "onDragStop", function (e, coreData) {
      if (!_this.state.dragging) return false; // Short-circuit if user's callback killed it.

      var shouldContinue = _this.props.onStop(e, (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData));
      if (shouldContinue === false) return false;
      (0, _log.default)('Draggable: onDragStop: %j', coreData);
      var newState
      /*: $Shape<DraggableState>*/ = {
        dragging: false,
        slackX: 0,
        slackY: 0
      }; // If this is a controlled component, the result of this operation will be to
      // revert back to the old position. We expect a handler on `onDragStop`, at the least.

      var controlled = Boolean(_this.props.position);
      if (controlled) {
        var _this$props$position = _this.props.position,
          x = _this$props$position.x,
          y = _this$props$position.y;
        newState.x = x;
        newState.y = y;
      }
      _this.setState(newState);
    });
    _this.state = {
      // Whether or not we are currently dragging.
      dragging: false,
      // Whether or not we have been dragged before.
      dragged: false,
      // Current transform x and y.
      x: props.position ? props.position.x : props.defaultPosition.x,
      y: props.position ? props.position.y : props.defaultPosition.y,
      prevPropsPosition: _objectSpread({}, props.position),
      // Used for compensating for out-of-bounds drags
      slackX: 0,
      slackY: 0,
      // Can only determine if SVG after mounting
      isElementSVG: false
    };
    if (props.position && !(props.onDrag || props.onStop)) {
      // eslint-disable-next-line no-console
      console.warn('A `position` was applied to this <Draggable>, without drag handlers. This will make this ' + 'component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the ' + '`position` of this element.');
    }
    return _this;
  }
  _createClass(Draggable, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      // Check to see if the element passed is an instanceof SVGElement
      if (typeof window.SVGElement !== 'undefined' && this.findDOMNode() instanceof window.SVGElement) {
        this.setState({
          isElementSVG: true
        });
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.setState({
        dragging: false
      }); // prevents invariant if unmounted while dragging
    } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
    // the underlying DOM node ourselves. See the README for more information.
  }, {
    key: "findDOMNode",
    value: function findDOMNode() /*: ?HTMLElement*/
    {
      var _this$props$nodeRef$c, _this$props, _this$props$nodeRef;
      return (_this$props$nodeRef$c = (_this$props = this.props) === null || _this$props === void 0 ? void 0 : (_this$props$nodeRef = _this$props.nodeRef) === null || _this$props$nodeRef === void 0 ? void 0 : _this$props$nodeRef.current) !== null && _this$props$nodeRef$c !== void 0 ? _this$props$nodeRef$c : _reactDom.default.findDOMNode(this);
    }
  }, {
    key: "render",
    value: function render() /*: ReactElement<any>*/
    {
      var _clsx;
      var _this$props2 = this.props,
        axis = _this$props2.axis,
        bounds = _this$props2.bounds,
        children = _this$props2.children,
        defaultPosition = _this$props2.defaultPosition,
        defaultClassName = _this$props2.defaultClassName,
        defaultClassNameDragging = _this$props2.defaultClassNameDragging,
        defaultClassNameDragged = _this$props2.defaultClassNameDragged,
        position = _this$props2.position,
        positionOffset = _this$props2.positionOffset,
        scale = _this$props2.scale,
        draggableCoreProps = _objectWithoutProperties(_this$props2, _excluded);
      var style = {};
      var svgTransform = null; // If this is controlled, we don't want to move it - unless it's dragging.

      var controlled = Boolean(position);
      var draggable = !controlled || this.state.dragging;
      var validPosition = position || defaultPosition;
      var transformOpts = {
        // Set left if horizontal drag is enabled
        x: (0, _positionFns.canDragX)(this) && draggable ? this.state.x : validPosition.x,
        // Set top if vertical drag is enabled
        y: (0, _positionFns.canDragY)(this) && draggable ? this.state.y : validPosition.y
      }; // If this element was SVG, we use the `transform` attribute.

      if (this.state.isElementSVG) {
        svgTransform = (0, _domFns.createSVGTransform)(transformOpts, positionOffset);
      } else {
        // Add a CSS transform to move the element around. This allows us to move the element around
        // without worrying about whether or not it is relatively or absolutely positioned.
        // If the item you are dragging already has a transform set, wrap it in a <span> so <Draggable>
        // has a clean slate.
        style = (0, _domFns.createCSSTransform)(transformOpts, positionOffset);
      } // Mark with class while dragging

      var className = (0, _clsx2.default)(children.props.className || '', defaultClassName, (_clsx = {}, _defineProperty(_clsx, defaultClassNameDragging, this.state.dragging), _defineProperty(_clsx, defaultClassNameDragged, this.state.dragged), _clsx)); // Reuse the child provided
      // This makes it flexible to use whatever element is wanted (div, ul, etc)

      return /*#__PURE__*/React.createElement(_DraggableCore.default, _extends({}, draggableCoreProps, {
        onStart: this.onDragStart,
        onDrag: this.onDrag,
        onStop: this.onDragStop
      }), /*#__PURE__*/React.cloneElement(React.Children.only(children), {
        className: className,
        style: _objectSpread(_objectSpread({}, children.props.style), style),
        transform: svgTransform
      }));
    }
  }], [{
    key: "getDerivedStateFromProps",
    value:
    // React 16.3+
    // Arity (props, state)
    function getDerivedStateFromProps(_ref, _ref2) /*: ?$Shape<DraggableState>*/
    {
      var position = _ref.position;
      var prevPropsPosition = _ref2.prevPropsPosition;

      // Set x/y if a new position is provided in props that is different than the previous.
      if (position && (!prevPropsPosition || position.x !== prevPropsPosition.x || position.y !== prevPropsPosition.y)) {
        (0, _log.default)('Draggable: getDerivedStateFromProps %j', {
          position: position,
          prevPropsPosition: prevPropsPosition
        });
        return {
          x: position.x,
          y: position.y,
          prevPropsPosition: _objectSpread({}, position)
        };
      }
      return null;
    }
  }]);
  return Draggable;
}(React.Component);
exports["default"] = Draggable;
_defineProperty(Draggable, "displayName", 'Draggable');
_defineProperty(Draggable, "propTypes", _objectSpread(_objectSpread({}, _DraggableCore.default.propTypes), {}, {
  /**
   * `axis` determines which axis the draggable can move.
   *
   *  Note that all callbacks will still return data as normal. This only
   *  controls flushing to the DOM.
   *
   * 'both' allows movement horizontally and vertically.
   * 'x' limits movement to horizontal axis.
   * 'y' limits movement to vertical axis.
   * 'none' limits all movement.
   *
   * Defaults to 'both'.
   */
  axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']),
  /**
   * `bounds` determines the range of movement available to the element.
   * Available values are:
   *
   * 'parent' restricts movement within the Draggable's parent node.
   *
   * Alternatively, pass an object with the following properties, all of which are optional:
   *
   * {left: LEFT_BOUND, right: RIGHT_BOUND, bottom: BOTTOM_BOUND, top: TOP_BOUND}
   *
   * All values are in px.
   *
   * Example:
   *
   * ```jsx
   *   let App = React.createClass({
   *       render: function () {
   *         return (
   *            <Draggable bounds={{right: 300, bottom: 300}}>
   *              <div>Content</div>
   *           </Draggable>
   *         );
   *       }
   *   });
   * ```
   */
  bounds: _propTypes.default.oneOfType([_propTypes.default.shape({
    left: _propTypes.default.number,
    right: _propTypes.default.number,
    top: _propTypes.default.number,
    bottom: _propTypes.default.number
  }), _propTypes.default.string, _propTypes.default.oneOf([false])]),
  defaultClassName: _propTypes.default.string,
  defaultClassNameDragging: _propTypes.default.string,
  defaultClassNameDragged: _propTypes.default.string,
  /**
   * `defaultPosition` specifies the x and y that the dragged item should start at
   *
   * Example:
   *
   * ```jsx
   *      let App = React.createClass({
   *          render: function () {
   *              return (
   *                  <Draggable defaultPosition={{x: 25, y: 25}}>
   *                      <div>I start with transformX: 25px and transformY: 25px;</div>
   *                  </Draggable>
   *              );
   *          }
   *      });
   * ```
   */
  defaultPosition: _propTypes.default.shape({
    x: _propTypes.default.number,
    y: _propTypes.default.number
  }),
  positionOffset: _propTypes.default.shape({
    x: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
    y: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
  }),
  /**
   * `position`, if present, defines the current position of the element.
   *
   *  This is similar to how form elements in React work - if no `position` is supplied, the component
   *  is uncontrolled.
   *
   * Example:
   *
   * ```jsx
   *      let App = React.createClass({
   *          render: function () {
   *              return (
   *                  <Draggable position={{x: 25, y: 25}}>
   *                      <div>I start with transformX: 25px and transformY: 25px;</div>
   *                  </Draggable>
   *              );
   *          }
   *      });
   * ```
   */
  position: _propTypes.default.shape({
    x: _propTypes.default.number,
    y: _propTypes.default.number
  }),
  /**
   * These properties should be defined on the child, not here.
   */
  className: _shims.dontSetMe,
  style: _shims.dontSetMe,
  transform: _shims.dontSetMe
}));
_defineProperty(Draggable, "defaultProps", _objectSpread(_objectSpread({}, _DraggableCore.default.defaultProps), {}, {
  axis: 'both',
  bounds: false,
  defaultClassName: 'react-draggable',
  defaultClassNameDragging: 'react-draggable-dragging',
  defaultClassNameDragged: 'react-draggable-dragged',
  defaultPosition: {
    x: 0,
    y: 0
  },
  scale: 1
}));

/***/ }),

/***/ 8334:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";


function _typeof(obj) {
  "@babel/helpers - typeof";

  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  }, _typeof(obj);
}
Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports["default"] = void 0;
var React = _interopRequireWildcard(__webpack_require__(9512));
var _propTypes = _interopRequireDefault(__webpack_require__(1226));
var _reactDom = _interopRequireDefault(__webpack_require__(1162));
var _domFns = __webpack_require__(2156);
var _positionFns = __webpack_require__(4336);
var _shims = __webpack_require__(6776);
var _log = _interopRequireDefault(__webpack_require__(6992));
function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    default: obj
  };
}
function _getRequireWildcardCache(nodeInterop) {
  if (typeof WeakMap !== "function") return null;
  var cacheBabelInterop = new WeakMap();
  var cacheNodeInterop = new WeakMap();
  return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
    return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
  })(nodeInterop);
}
function _interopRequireWildcard(obj, nodeInterop) {
  if (!nodeInterop && obj && obj.__esModule) {
    return obj;
  }
  if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
    return {
      default: obj
    };
  }
  var cache = _getRequireWildcardCache(nodeInterop);
  if (cache && cache.has(obj)) {
    return cache.get(obj);
  }
  var newObj = {};
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (var key in obj) {
    if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
      var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
      if (desc && (desc.get || desc.set)) {
        Object.defineProperty(newObj, key, desc);
      } else {
        newObj[key] = obj[key];
      }
    }
  }
  newObj.default = obj;
  if (cache) {
    cache.set(obj, newObj);
  }
  return newObj;
}
function _slicedToArray(arr, i) {
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
}
function _nonIterableRest() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _unsupportedIterableToArray(o, minLen) {
  if (!o) return;
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor) n = o.constructor.name;
  if (n === "Map" || n === "Set") return Array.from(o);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
  if (len == null || len > arr.length) len = arr.length;
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
    arr2[i] = arr[i];
  }
  return arr2;
}
function _iterableToArrayLimit(arr, i) {
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
  if (_i == null) return;
  var _arr = [];
  var _n = true;
  var _d = false;
  var _s, _e;
  try {
    for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
      _arr.push(_s.value);
      if (i && _arr.length === i) break;
    }
  } catch (err) {
    _d = true;
    _e = err;
  } finally {
    try {
      if (!_n && _i["return"] != null) _i["return"]();
    } finally {
      if (_d) throw _e;
    }
  }
  return _arr;
}
function _arrayWithHoles(arr) {
  if (Array.isArray(arr)) return arr;
}
function _classCallCheck(instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
}
function _defineProperties(target, props) {
  for (var i = 0; i < props.length; i++) {
    var descriptor = props[i];
    descriptor.enumerable = descriptor.enumerable || false;
    descriptor.configurable = true;
    if ("value" in descriptor) descriptor.writable = true;
    Object.defineProperty(target, descriptor.key, descriptor);
  }
}
function _createClass(Constructor, protoProps, staticProps) {
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  if (staticProps) _defineProperties(Constructor, staticProps);
  Object.defineProperty(Constructor, "prototype", {
    writable: false
  });
  return Constructor;
}
function _inherits(subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function");
  }
  subClass.prototype = Object.create(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      writable: true,
      configurable: true
    }
  });
  Object.defineProperty(subClass, "prototype", {
    writable: false
  });
  if (superClass) _setPrototypeOf(subClass, superClass);
}
function _setPrototypeOf(o, p) {
  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
    o.__proto__ = p;
    return o;
  };
  return _setPrototypeOf(o, p);
}
function _createSuper(Derived) {
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
  return function _createSuperInternal() {
    var Super = _getPrototypeOf(Derived),
      result;
    if (hasNativeReflectConstruct) {
      var NewTarget = _getPrototypeOf(this).constructor;
      result = Reflect.construct(Super, arguments, NewTarget);
    } else {
      result = Super.apply(this, arguments);
    }
    return _possibleConstructorReturn(this, result);
  };
}
function _possibleConstructorReturn(self, call) {
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
    return call;
  } else if (call !== void 0) {
    throw new TypeError("Derived constructors may only return object or undefined");
  }
  return _assertThisInitialized(self);
}
function _assertThisInitialized(self) {
  if (self === void 0) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }
  return self;
}
function _isNativeReflectConstruct() {
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  if (Reflect.construct.sham) return false;
  if (typeof Proxy === "function") return true;
  try {
    Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
    return true;
  } catch (e) {
    return false;
  }
}
function _getPrototypeOf(o) {
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
    return o.__proto__ || Object.getPrototypeOf(o);
  };
  return _getPrototypeOf(o);
}
function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}

// Simple abstraction for dragging events names.
var eventsFor = {
  touch: {
    start: 'touchstart',
    move: 'touchmove',
    stop: 'touchend'
  },
  mouse: {
    start: 'mousedown',
    move: 'mousemove',
    stop: 'mouseup'
  }
}; // Default to mouse events.

var dragEventFor = eventsFor.mouse;
/*:: type DraggableCoreState = {
  dragging: boolean,
  lastX: number,
  lastY: number,
  touchIdentifier: ?number
};*/

/*:: export type DraggableData = {
  node: HTMLElement,
  x: number, y: number,
  deltaX: number, deltaY: number,
  lastX: number, lastY: number,
};*/

/*:: export type DraggableEventHandler = (e: MouseEvent, data: DraggableData) => void | false;*/

/*:: export type ControlPosition = {x: number, y: number};*/

/*:: export type PositionOffsetControlPosition = {x: number|string, y: number|string};*/

/*:: export type DraggableCoreDefaultProps = {
  allowAnyClick: boolean,
  disabled: boolean,
  enableUserSelectHack: boolean,
  onStart: DraggableEventHandler,
  onDrag: DraggableEventHandler,
  onStop: DraggableEventHandler,
  onMouseDown: (e: MouseEvent) => void,
  scale: number,
};*/

/*:: export type DraggableCoreProps = {
  ...DraggableCoreDefaultProps,
  cancel: string,
  children: ReactElement<any>,
  offsetParent: HTMLElement,
  grid: [number, number],
  handle: string,
  nodeRef?: ?React.ElementRef<any>,
};*/

//
// Define <DraggableCore>.
//
// <DraggableCore> is for advanced usage of <Draggable>. It maintains minimal internal state so it can
// work well with libraries that require more control over the element.
//
var DraggableCore = /*#__PURE__*/function (_React$Component) {
  _inherits(DraggableCore, _React$Component);
  var _super = _createSuper(DraggableCore);
  function DraggableCore() {
    var _this;
    _classCallCheck(this, DraggableCore);
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _super.call.apply(_super, [this].concat(args));
    _defineProperty(_assertThisInitialized(_this), "state", {
      dragging: false,
      // Used while dragging to determine deltas.
      lastX: NaN,
      lastY: NaN,
      touchIdentifier: null
    });
    _defineProperty(_assertThisInitialized(_this), "mounted", false);
    _defineProperty(_assertThisInitialized(_this), "handleDragStart", function (e) {
      // Make it possible to attach event handlers on top of this one.
      _this.props.onMouseDown(e); // Only accept left-clicks.

      if (!_this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false; // Get nodes. Be sure to grab relative document (could be iframed)

      var thisNode = _this.findDOMNode();
      if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) {
        throw new Error('<DraggableCore> not mounted on DragStart!');
      }
      var ownerDocument = thisNode.ownerDocument; // Short circuit if handle or cancel prop was provided and selector doesn't match.

      if (_this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e.target, _this.props.handle, thisNode) || _this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e.target, _this.props.cancel, thisNode)) {
        return;
      } // Prevent scrolling on mobile devices, like ipad/iphone.
      // Important that this is after handle/cancel.

      if (e.type === 'touchstart') e.preventDefault(); // Set touch identifier in component state if this is a touch event. This allows us to
      // distinguish between individual touches on multitouch screens by identifying which
      // touchpoint was set to this element.

      var touchIdentifier = (0, _domFns.getTouchIdentifier)(e);
      _this.setState({
        touchIdentifier: touchIdentifier
      }); // Get the current drag point from the event. This is used as the offset.

      var position = (0, _positionFns.getControlPosition)(e, touchIdentifier, _assertThisInitialized(_this));
      if (position == null) return; // not possible but satisfies flow

      var x = position.x,
        y = position.y; // Create an event object with all the data parents need to make a decision here.

      var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y);
      (0, _log.default)('DraggableCore: handleDragStart: %j', coreEvent); // Call event handler. If it returns explicit false, cancel.

      (0, _log.default)('calling', _this.props.onStart);
      var shouldUpdate = _this.props.onStart(e, coreEvent);
      if (shouldUpdate === false || _this.mounted === false) return; // Add a style to the body to disable user-select. This prevents text from
      // being selected all over the page.

      if (_this.props.enableUserSelectHack) (0, _domFns.addUserSelectStyles)(ownerDocument); // Initiate dragging. Set the current x and y as offsets
      // so we know how much we've moved during the drag. This allows us
      // to drag elements around even if they have been moved, without issue.

      _this.setState({
        dragging: true,
        lastX: x,
        lastY: y
      }); // Add events to the document directly so we catch when the user's mouse/touch moves outside of
      // this element. We use different events depending on whether or not we have detected that this
      // is a touch-capable device.

      (0, _domFns.addEvent)(ownerDocument, dragEventFor.move, _this.handleDrag);
      (0, _domFns.addEvent)(ownerDocument, dragEventFor.stop, _this.handleDragStop);
    });
    _defineProperty(_assertThisInitialized(_this), "handleDrag", function (e) {
      // Get the current drag point from the event. This is used as the offset.
      var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));
      if (position == null) return;
      var x = position.x,
        y = position.y; // Snap to grid if prop has been provided

      if (Array.isArray(_this.props.grid)) {
        var deltaX = x - _this.state.lastX,
          deltaY = y - _this.state.lastY;
        var _snapToGrid = (0, _positionFns.snapToGrid)(_this.props.grid, deltaX, deltaY);
        var _snapToGrid2 = _slicedToArray(_snapToGrid, 2);
        deltaX = _snapToGrid2[0];
        deltaY = _snapToGrid2[1];
        if (!deltaX && !deltaY) return; // skip useless drag

        x = _this.state.lastX + deltaX, y = _this.state.lastY + deltaY;
      }
      var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y);
      (0, _log.default)('DraggableCore: handleDrag: %j', coreEvent); // Call event handler. If it returns explicit false, trigger end.

      var shouldUpdate = _this.props.onDrag(e, coreEvent);
      if (shouldUpdate === false || _this.mounted === false) {
        try {
          // $FlowIgnore
          _this.handleDragStop(new MouseEvent('mouseup'));
        } catch (err) {
          // Old browsers
          var event = document.createEvent('MouseEvents')
          /*: any*/

          /*: MouseTouchEvent*/; // I see why this insanity was deprecated
          // $FlowIgnore

          event.initMouseEvent('mouseup', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
          _this.handleDragStop(event);
        }
        return;
      }
      _this.setState({
        lastX: x,
        lastY: y
      });
    });
    _defineProperty(_assertThisInitialized(_this), "handleDragStop", function (e) {
      if (!_this.state.dragging) return;
      var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));
      if (position == null) return;
      var x = position.x,
        y = position.y; // Snap to grid if prop has been provided

      if (Array.isArray(_this.props.grid)) {
        var deltaX = x - _this.state.lastX || 0;
        var deltaY = y - _this.state.lastY || 0;
        var _snapToGrid3 = (0, _positionFns.snapToGrid)(_this.props.grid, deltaX, deltaY);
        var _snapToGrid4 = _slicedToArray(_snapToGrid3, 2);
        deltaX = _snapToGrid4[0];
        deltaY = _snapToGrid4[1];
        x = _this.state.lastX + deltaX, y = _this.state.lastY + deltaY;
      }
      var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y); // Call event handler

      var shouldContinue = _this.props.onStop(e, coreEvent);
      if (shouldContinue === false || _this.mounted === false) return false;
      var thisNode = _this.findDOMNode();
      if (thisNode) {
        // Remove user-select hack
        if (_this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(thisNode.ownerDocument);
      }
      (0, _log.default)('DraggableCore: handleDragStop: %j', coreEvent); // Reset the el.

      _this.setState({
        dragging: false,
        lastX: NaN,
        lastY: NaN
      });
      if (thisNode) {
        // Remove event handlers
        (0, _log.default)('DraggableCore: Removing handlers');
        (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.move, _this.handleDrag);
        (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.stop, _this.handleDragStop);
      }
    });
    _defineProperty(_assertThisInitialized(_this), "onMouseDown", function (e) {
      dragEventFor = eventsFor.mouse; // on touchscreen laptops we could switch back to mouse

      return _this.handleDragStart(e);
    });
    _defineProperty(_assertThisInitialized(_this), "onMouseUp", function (e) {
      dragEventFor = eventsFor.mouse;
      return _this.handleDragStop(e);
    });
    _defineProperty(_assertThisInitialized(_this), "onTouchStart", function (e) {
      // We're on a touch device now, so change the event handlers
      dragEventFor = eventsFor.touch;
      return _this.handleDragStart(e);
    });
    _defineProperty(_assertThisInitialized(_this), "onTouchEnd", function (e) {
      // We're on a touch device now, so change the event handlers
      dragEventFor = eventsFor.touch;
      return _this.handleDragStop(e);
    });
    return _this;
  }
  _createClass(DraggableCore, [{
    key: "componentDidMount",
    value: function componentDidMount() {
      this.mounted = true; // Touch handlers must be added with {passive: false} to be cancelable.
      // https://developers.google.com/web/updates/2017/01/scrolling-intervention

      var thisNode = this.findDOMNode();
      if (thisNode) {
        (0, _domFns.addEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
          passive: false
        });
      }
    }
  }, {
    key: "componentWillUnmount",
    value: function componentWillUnmount() {
      this.mounted = false; // Remove any leftover event handlers. Remove both touch and mouse handlers in case
      // some browser quirk caused a touch event to fire during a mouse move, or vice versa.

      var thisNode = this.findDOMNode();
      if (thisNode) {
        var ownerDocument = thisNode.ownerDocument;
        (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.move, this.handleDrag);
        (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.move, this.handleDrag);
        (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);
        (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.stop, this.handleDragStop);
        (0, _domFns.removeEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
          passive: false
        });
        if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(ownerDocument);
      }
    } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
    // the underlying DOM node ourselves. See the README for more information.
  }, {
    key: "findDOMNode",
    value: function findDOMNode() /*: ?HTMLElement*/
    {
      var _this$props, _this$props2, _this$props2$nodeRef;
      return (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.nodeRef ? (_this$props2 = this.props) === null || _this$props2 === void 0 ? void 0 : (_this$props2$nodeRef = _this$props2.nodeRef) === null || _this$props2$nodeRef === void 0 ? void 0 : _this$props2$nodeRef.current : _reactDom.default.findDOMNode(this);
    }
  }, {
    key: "render",
    value: function render() /*: React.Element<any>*/
    {
      // Reuse the child provided
      // This makes it flexible to use whatever element is wanted (div, ul, etc)
      return /*#__PURE__*/React.cloneElement(React.Children.only(this.props.children), {
        // Note: mouseMove handler is attached to document so it will still function
        // when the user drags quickly and leaves the bounds of the element.
        onMouseDown: this.onMouseDown,
        onMouseUp: this.onMouseUp,
        // onTouchStart is added on `componentDidMount` so they can be added with
        // {passive: false}, which allows it to cancel. See
        // https://developers.google.com/web/updates/2017/01/scrolling-intervention
        onTouchEnd: this.onTouchEnd
      });
    }
  }]);
  return DraggableCore;
}(React.Component);
exports["default"] = DraggableCore;
_defineProperty(DraggableCore, "displayName", 'DraggableCore');
_defineProperty(DraggableCore, "propTypes", {
  /**
   * `allowAnyClick` allows dragging using any mouse button.
   * By default, we only accept the left button.
   *
   * Defaults to `false`.
   */
  allowAnyClick: _propTypes.default.bool,
  /**
   * `disabled`, if true, stops the <Draggable> from dragging. All handlers,
   * with the exception of `onMouseDown`, will not fire.
   */
  disabled: _propTypes.default.bool,
  /**
   * By default, we add 'user-select:none' attributes to the document body
   * to prevent ugly text selection during drag. If this is causing problems
   * for your app, set this to `false`.
   */
  enableUserSelectHack: _propTypes.default.bool,
  /**
   * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
   * instead of using the parent node.
   */
  offsetParent: function offsetParent(props
  /*: DraggableCoreProps*/, propName
  /*: $Keys<DraggableCoreProps>*/) {
    if (props[propName] && props[propName].nodeType !== 1) {
      throw new Error('Draggable\'s offsetParent must be a DOM Node.');
    }
  },
  /**
   * `grid` specifies the x and y that dragging should snap to.
   */
  grid: _propTypes.default.arrayOf(_propTypes.default.number),
  /**
   * `handle` specifies a selector to be used as the handle that initiates drag.
   *
   * Example:
   *
   * ```jsx
   *   let App = React.createClass({
   *       render: function () {
   *         return (
   *            <Draggable handle=".handle">
   *              <div>
   *                  <div className="handle">Click me to drag</div>
   *                  <div>This is some other content</div>
   *              </div>
   *           </Draggable>
   *         );
   *       }
   *   });
   * ```
   */
  handle: _propTypes.default.string,
  /**
   * `cancel` specifies a selector to be used to prevent drag initialization.
   *
   * Example:
   *
   * ```jsx
   *   let App = React.createClass({
   *       render: function () {
   *           return(
   *               <Draggable cancel=".cancel">
   *                   <div>
   *                     <div className="cancel">You can't drag from here</div>
   *                     <div>Dragging here works fine</div>
   *                   </div>
   *               </Draggable>
   *           );
   *       }
   *   });
   * ```
   */
  cancel: _propTypes.default.string,
  /* If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.
   * Unfortunately, in order for <Draggable> to work properly, we need raw access
   * to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`
   * as in this example:
   *
   * function MyComponent() {
   *   const nodeRef = React.useRef(null);
   *   return (
   *     <Draggable nodeRef={nodeRef}>
   *       <div ref={nodeRef}>Example Target</div>
   *     </Draggable>
   *   );
   * }
   *
   * This can be used for arbitrarily nested components, so long as the ref ends up
   * pointing to the actual child DOM node and not a custom component.
   */
  nodeRef: _propTypes.default.object,
  /**
   * Called when dragging starts.
   * If this function returns the boolean false, dragging will be canceled.
   */
  onStart: _propTypes.default.func,
  /**
   * Called while dragging.
   * If this function returns the boolean false, dragging will be canceled.
   */
  onDrag: _propTypes.default.func,
  /**
   * Called when dragging stops.
   * If this function returns the boolean false, the drag will remain active.
   */
  onStop: _propTypes.default.func,
  /**
   * A workaround option which can be passed if onMouseDown needs to be accessed,
   * since it'll always be blocked (as there is internal use of onMouseDown)
   */
  onMouseDown: _propTypes.default.func,
  /**
   * `scale`, if set, applies scaling while dragging an element
   */
  scale: _propTypes.default.number,
  /**
   * These properties should be defined on the child, not here.
   */
  className: _shims.dontSetMe,
  style: _shims.dontSetMe,
  transform: _shims.dontSetMe
});
_defineProperty(DraggableCore, "defaultProps", {
  allowAnyClick: false,
  // by default only accept left click
  disabled: false,
  enableUserSelectHack: true,
  onStart: function onStart() {},
  onDrag: function onDrag() {},
  onStop: function onStop() {},
  onMouseDown: function onMouseDown() {},
  scale: 1
});

/***/ }),

/***/ 1710:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var _require = __webpack_require__(1672),
  Draggable = _require.default,
  DraggableCore = _require.DraggableCore; // Previous versions of this lib exported <Draggable> as the root export. As to no-// them, or TypeScript, we export *both* as the root and as 'default'.
// See https://github.com/mzabriskie/react-draggable/pull/254
// and https://github.com/mzabriskie/react-draggable/issues/266

module.exports = Draggable;
module.exports["default"] = Draggable;
module.exports.DraggableCore = DraggableCore;

/***/ }),

/***/ 2156:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";


function _typeof(obj) {
  "@babel/helpers - typeof";

  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  }, _typeof(obj);
}
Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports.addClassName = addClassName;
exports.addEvent = addEvent;
exports.addUserSelectStyles = addUserSelectStyles;
exports.createCSSTransform = createCSSTransform;
exports.createSVGTransform = createSVGTransform;
exports.getTouch = getTouch;
exports.getTouchIdentifier = getTouchIdentifier;
exports.getTranslation = getTranslation;
exports.innerHeight = innerHeight;
exports.innerWidth = innerWidth;
exports.matchesSelector = matchesSelector;
exports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;
exports.offsetXYFromParent = offsetXYFromParent;
exports.outerHeight = outerHeight;
exports.outerWidth = outerWidth;
exports.removeClassName = removeClassName;
exports.removeEvent = removeEvent;
exports.removeUserSelectStyles = removeUserSelectStyles;
var _shims = __webpack_require__(6776);
var _getPrefix = _interopRequireWildcard(__webpack_require__(8907));
function _getRequireWildcardCache(nodeInterop) {
  if (typeof WeakMap !== "function") return null;
  var cacheBabelInterop = new WeakMap();
  var cacheNodeInterop = new WeakMap();
  return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
    return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
  })(nodeInterop);
}
function _interopRequireWildcard(obj, nodeInterop) {
  if (!nodeInterop && obj && obj.__esModule) {
    return obj;
  }
  if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
    return {
      default: obj
    };
  }
  var cache = _getRequireWildcardCache(nodeInterop);
  if (cache && cache.has(obj)) {
    return cache.get(obj);
  }
  var newObj = {};
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (var key in obj) {
    if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
      var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
      if (desc && (desc.get || desc.set)) {
        Object.defineProperty(newObj, key, desc);
      } else {
        newObj[key] = obj[key];
      }
    }
  }
  newObj.default = obj;
  if (cache) {
    cache.set(obj, newObj);
  }
  return newObj;
}
function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);
  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    enumerableOnly && (symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    })), keys.push.apply(keys, symbols);
  }
  return keys;
}
function _objectSpread(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = null != arguments[i] ? arguments[i] : {};
    i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
      _defineProperty(target, key, source[key]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
    });
  }
  return target;
}
function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}
var matchesSelectorFunc = '';
function matchesSelector(el
/*: Node*/, selector
/*: string*/) /*: boolean*/
{
  if (!matchesSelectorFunc) {
    matchesSelectorFunc = (0, _shims.findInArray)(['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (method) {
      // $FlowIgnore: Doesn't think elements are indexable
      return (0, _shims.isFunction)(el[method]);
    });
  } // Might not be found entirely (not an Element?) - in that case, bail
  // $FlowIgnore: Doesn't think elements are indexable

  if (!(0, _shims.isFunction)(el[matchesSelectorFunc])) return false; // $FlowIgnore: Doesn't think elements are indexable

  return el[matchesSelectorFunc](selector);
} // Works up the tree to the draggable itself attempting to match selector.

function matchesSelectorAndParentsTo(el
/*: Node*/, selector
/*: string*/, baseNode
/*: Node*/) /*: boolean*/
{
  var node = el;
  do {
    if (matchesSelector(node, selector)) return true;
    if (node === baseNode) return false;
    node = node.parentNode;
  } while (node);
  return false;
}
function addEvent(el
/*: ?Node*/, event
/*: string*/, handler
/*: Function*/, inputOptions
/*: Object*/) /*: void*/
{
  if (!el) return;
  var options = _objectSpread({
    capture: true
  }, inputOptions); // $FlowIgnore[method-unbinding]

  if (el.addEventListener) {
    el.addEventListener(event, handler, options);
  } else if (el.attachEvent) {
    el.attachEvent('on' + event, handler);
  } else {
    // $FlowIgnore: Doesn't think elements are indexable
    el['on' + event] = handler;
  }
}
function removeEvent(el
/*: ?Node*/, event
/*: string*/, handler
/*: Function*/, inputOptions
/*: Object*/) /*: void*/
{
  if (!el) return;
  var options = _objectSpread({
    capture: true
  }, inputOptions); // $FlowIgnore[method-unbinding]

  if (el.removeEventListener) {
    el.removeEventListener(event, handler, options);
  } else if (el.detachEvent) {
    el.detachEvent('on' + event, handler);
  } else {
    // $FlowIgnore: Doesn't think elements are indexable
    el['on' + event] = null;
  }
}
function outerHeight(node
/*: HTMLElement*/) /*: number*/
{
  // This is deliberately excluding margin for our calculations, since we are using
  // offsetTop which is including margin. See getBoundPosition
  var height = node.clientHeight;
  var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
  height += (0, _shims.int)(computedStyle.borderTopWidth);
  height += (0, _shims.int)(computedStyle.borderBottomWidth);
  return height;
}
function outerWidth(node
/*: HTMLElement*/) /*: number*/
{
  // This is deliberately excluding margin for our calculations, since we are using
  // offsetLeft which is including margin. See getBoundPosition
  var width = node.clientWidth;
  var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
  width += (0, _shims.int)(computedStyle.borderLeftWidth);
  width += (0, _shims.int)(computedStyle.borderRightWidth);
  return width;
}
function innerHeight(node
/*: HTMLElement*/) /*: number*/
{
  var height = node.clientHeight;
  var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
  height -= (0, _shims.int)(computedStyle.paddingTop);
  height -= (0, _shims.int)(computedStyle.paddingBottom);
  return height;
}
function innerWidth(node
/*: HTMLElement*/) /*: number*/
{
  var width = node.clientWidth;
  var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
  width -= (0, _shims.int)(computedStyle.paddingLeft);
  width -= (0, _shims.int)(computedStyle.paddingRight);
  return width;
}
/*:: interface EventWithOffset {
  clientX: number, clientY: number
}*/

// Get from offsetParent
function offsetXYFromParent(evt
/*: EventWithOffset*/, offsetParent
/*: HTMLElement*/, scale
/*: number*/) /*: ControlPosition*/
{
  var isBody = offsetParent === offsetParent.ownerDocument.body;
  var offsetParentRect = isBody ? {
    left: 0,
    top: 0
  } : offsetParent.getBoundingClientRect();
  var x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale;
  var y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale;
  return {
    x: x,
    y: y
  };
}
function createCSSTransform(controlPos
/*: ControlPosition*/, positionOffset
/*: PositionOffsetControlPosition*/) /*: Object*/
{
  var translation = getTranslation(controlPos, positionOffset, 'px');
  return _defineProperty({}, (0, _getPrefix.browserPrefixToKey)('transform', _getPrefix.default), translation);
}
function createSVGTransform(controlPos
/*: ControlPosition*/, positionOffset
/*: PositionOffsetControlPosition*/) /*: string*/
{
  var translation = getTranslation(controlPos, positionOffset, '');
  return translation;
}
function getTranslation(_ref2, positionOffset
/*: PositionOffsetControlPosition*/, unitSuffix
/*: string*/) /*: string*/
{
  var x = _ref2.x,
    y = _ref2.y;
  var translation = "translate(".concat(x).concat(unitSuffix, ",").concat(y).concat(unitSuffix, ")");
  if (positionOffset) {
    var defaultX = "".concat(typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix);
    var defaultY = "".concat(typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix);
    translation = "translate(".concat(defaultX, ", ").concat(defaultY, ")") + translation;
  }
  return translation;
}
function getTouch(e
/*: MouseTouchEvent*/, identifier
/*: number*/) /*: ?{clientX: number, clientY: number}*/
{
  return e.targetTouches && (0, _shims.findInArray)(e.targetTouches, function (t) {
    return identifier === t.identifier;
  }) || e.changedTouches && (0, _shims.findInArray)(e.changedTouches, function (t) {
    return identifier === t.identifier;
  });
}
function getTouchIdentifier(e
/*: MouseTouchEvent*/) /*: ?number*/
{
  if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
  if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
} // User-select Hacks:
//
// Useful for preventing blue highlights all over everything when dragging.
// Note we're passing `document` b/c we could be iframed

function addUserSelectStyles(doc
/*: ?Document*/) {
  if (!doc) return;
  var styleEl = doc.getElementById('react-draggable-style-el');
  if (!styleEl) {
    styleEl = doc.createElement('style');
    styleEl.type = 'text/css';
    styleEl.id = 'react-draggable-style-el';
    styleEl.innerHTML = '.react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n';
    styleEl.innerHTML += '.react-draggable-transparent-selection *::selection {all: inherit;}\n';
    doc.getElementsByTagName('head')[0].appendChild(styleEl);
  }
  if (doc.body) addClassName(doc.body, 'react-draggable-transparent-selection');
}
function removeUserSelectStyles(doc
/*: ?Document*/) {
  if (!doc) return;
  try {
    if (doc.body) removeClassName(doc.body, 'react-draggable-transparent-selection'); // $FlowIgnore: IE

    if (doc.selection) {
      // $FlowIgnore: IE
      doc.selection.empty();
    } else {
      // Remove selection caused by scroll, unless it's a focused input
      // (we use doc.defaultView in case we're in an iframe)
      var selection = (doc.defaultView || window).getSelection();
      if (selection && selection.type !== 'Caret') {
        selection.removeAllRanges();
      }
    }
  } catch (e) {// probably IE
  }
}
function addClassName(el
/*: HTMLElement*/, className
/*: string*/) {
  if (el.classList) {
    el.classList.add(className);
  } else {
    if (!el.className.match(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)")))) {
      el.className += " ".concat(className);
    }
  }
}
function removeClassName(el
/*: HTMLElement*/, className
/*: string*/) {
  if (el.classList) {
    el.classList.remove(className);
  } else {
    el.className = el.className.replace(new RegExp("(?:^|\\s)".concat(className, "(?!\\S)"), 'g'), '');
  }
}

/***/ }),

/***/ 8907:
/***/ (function(__unused_webpack_module, exports) {

"use strict";


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports.browserPrefixToKey = browserPrefixToKey;
exports.browserPrefixToStyle = browserPrefixToStyle;
exports["default"] = void 0;
exports.getPrefix = getPrefix;
var prefixes = ['Moz', 'Webkit', 'O', 'ms'];
function getPrefix() /*: string*/
{
  var _window$document, _window$document$docu;
  var prop
  /*: string*/ = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform';
  // Ensure we're running in an environment where there is actually a global
  // `window` obj
  if (typeof window === 'undefined') return ''; // If we're in a pseudo-browser server-side environment, this access
  // path may not exist, so bail out if it doesn't.

  var style = (_window$document = window.document) === null || _window$document === void 0 ? void 0 : (_window$document$docu = _window$document.documentElement) === null || _window$document$docu === void 0 ? void 0 : _window$document$docu.style;
  if (!style) return '';
  if (prop in style) return '';
  for (var i = 0; i < prefixes.length; i++) {
    if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i];
  }
  return '';
}
function browserPrefixToKey(prop
/*: string*/, prefix
/*: string*/) /*: string*/
{
  return prefix ? "".concat(prefix).concat(kebabToTitleCase(prop)) : prop;
}
function browserPrefixToStyle(prop
/*: string*/, prefix
/*: string*/) /*: string*/
{
  return prefix ? "-".concat(prefix.toLowerCase(), "-").concat(prop) : prop;
}
function kebabToTitleCase(str
/*: string*/) /*: string*/
{
  var out = '';
  var shouldCapitalize = true;
  for (var i = 0; i < str.length; i++) {
    if (shouldCapitalize) {
      out += str[i].toUpperCase();
      shouldCapitalize = false;
    } else if (str[i] === '-') {
      shouldCapitalize = true;
    } else {
      out += str[i];
    }
  }
  return out;
} // Default export is the prefix itself, like 'Moz', 'Webkit', etc
// Note that you may have to re-test for certain things; for instance, Chrome 50
// can handle unprefixed `transform`, but not unprefixed `user-select`

var _default = getPrefix()
/*: string*/;

exports["default"] = _default;

/***/ }),

/***/ 6992:
/***/ (function(__unused_webpack_module, exports) {

"use strict";


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports["default"] = log;

/*eslint no-console:0*/
function log() {
  var _console;
  if (false) {}
}

/***/ }),

/***/ 4336:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports.canDragX = canDragX;
exports.canDragY = canDragY;
exports.createCoreData = createCoreData;
exports.createDraggableData = createDraggableData;
exports.getBoundPosition = getBoundPosition;
exports.getControlPosition = getControlPosition;
exports.snapToGrid = snapToGrid;
var _shims = __webpack_require__(6776);
var _domFns = __webpack_require__(2156);
function getBoundPosition(draggable
/*: Draggable*/, x
/*: number*/, y
/*: number*/) /*: [number, number]*/
{
  // If no bounds, short-circuit and move on
  if (!draggable.props.bounds) return [x, y]; // Clone new bounds

  var bounds = draggable.props.bounds;
  bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds);
  var node = findDOMNode(draggable);
  if (typeof bounds === 'string') {
    var ownerDocument = node.ownerDocument;
    var ownerWindow = ownerDocument.defaultView;
    var boundNode;
    if (bounds === 'parent') {
      boundNode = node.parentNode;
    } else {
      boundNode = ownerDocument.querySelector(bounds);
    }
    if (!(boundNode instanceof ownerWindow.HTMLElement)) {
      throw new Error('Bounds selector "' + bounds + '" could not find an element.');
    }
    var boundNodeEl
    /*: HTMLElement*/ = boundNode; // for Flow, can't seem to refine correctly

    var nodeStyle = ownerWindow.getComputedStyle(node);
    var boundNodeStyle = ownerWindow.getComputedStyle(boundNodeEl); // Compute bounds. This is a pain with padding and offsets but this gets it exactly right.

    bounds = {
      left: -node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingLeft) + (0, _shims.int)(nodeStyle.marginLeft),
      top: -node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingTop) + (0, _shims.int)(nodeStyle.marginTop),
      right: (0, _domFns.innerWidth)(boundNodeEl) - (0, _domFns.outerWidth)(node) - node.offsetLeft + (0, _shims.int)(boundNodeStyle.paddingRight) - (0, _shims.int)(nodeStyle.marginRight),
      bottom: (0, _domFns.innerHeight)(boundNodeEl) - (0, _domFns.outerHeight)(node) - node.offsetTop + (0, _shims.int)(boundNodeStyle.paddingBottom) - (0, _shims.int)(nodeStyle.marginBottom)
    };
  } // Keep x and y below right and bottom limits...

  if ((0, _shims.isNum)(bounds.right)) x = Math.min(x, bounds.right);
  if ((0, _shims.isNum)(bounds.bottom)) y = Math.min(y, bounds.bottom); // But above left and top limits.

  if ((0, _shims.isNum)(bounds.left)) x = Math.max(x, bounds.left);
  if ((0, _shims.isNum)(bounds.top)) y = Math.max(y, bounds.top);
  return [x, y];
}
function snapToGrid(grid
/*: [number, number]*/, pendingX
/*: number*/, pendingY
/*: number*/) /*: [number, number]*/
{
  var x = Math.round(pendingX / grid[0]) * grid[0];
  var y = Math.round(pendingY / grid[1]) * grid[1];
  return [x, y];
}
function canDragX(draggable
/*: Draggable*/) /*: boolean*/
{
  return draggable.props.axis === 'both' || draggable.props.axis === 'x';
}
function canDragY(draggable
/*: Draggable*/) /*: boolean*/
{
  return draggable.props.axis === 'both' || draggable.props.axis === 'y';
} // Get {x, y} positions from event.

function getControlPosition(e
/*: MouseTouchEvent*/, touchIdentifier
/*: ?number*/, draggableCore
/*: DraggableCore*/) /*: ?ControlPosition*/
{
  var touchObj = typeof touchIdentifier === 'number' ? (0, _domFns.getTouch)(e, touchIdentifier) : null;
  if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch

  var node = findDOMNode(draggableCore); // User can provide an offsetParent if desired.

  var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;
  return (0, _domFns.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale);
} // Create an data object exposed by <DraggableCore>'s events

function createCoreData(draggable
/*: DraggableCore*/, x
/*: number*/, y
/*: number*/) /*: DraggableData*/
{
  var state = draggable.state;
  var isStart = !(0, _shims.isNum)(state.lastX);
  var node = findDOMNode(draggable);
  if (isStart) {
    // If this is our first move, use the x and y as last coords.
    return {
      node: node,
      deltaX: 0,
      deltaY: 0,
      lastX: x,
      lastY: y,
      x: x,
      y: y
    };
  } else {
    // Otherwise calculate proper values.
    return {
      node: node,
      deltaX: x - state.lastX,
      deltaY: y - state.lastY,
      lastX: state.lastX,
      lastY: state.lastY,
      x: x,
      y: y
    };
  }
} // Create an data exposed by <Draggable>'s events

function createDraggableData(draggable
/*: Draggable*/, coreData
/*: DraggableData*/) /*: DraggableData*/
{
  var scale = draggable.props.scale;
  return {
    node: coreData.node,
    x: draggable.state.x + coreData.deltaX / scale,
    y: draggable.state.y + coreData.deltaY / scale,
    deltaX: coreData.deltaX / scale,
    deltaY: coreData.deltaY / scale,
    lastX: draggable.state.x,
    lastY: draggable.state.y
  };
} // A lot faster than stringify/parse

function cloneBounds(bounds
/*: Bounds*/) /*: Bounds*/
{
  return {
    left: bounds.left,
    top: bounds.top,
    right: bounds.right,
    bottom: bounds.bottom
  };
}
function findDOMNode(draggable
/*: Draggable | DraggableCore*/) /*: HTMLElement*/
{
  var node = draggable.findDOMNode();
  if (!node) {
    throw new Error('<DraggableCore>: Unmounted during event!');
  } // $FlowIgnore we can't assert on HTMLElement due to tests... FIXME

  return node;
}

/***/ }),

/***/ 6776:
/***/ (function(__unused_webpack_module, exports) {

"use strict";


Object.defineProperty(exports, "__esModule", ({
  value: true
}));
exports.dontSetMe = dontSetMe;
exports.findInArray = findInArray;
exports.int = int;
exports.isFunction = isFunction;
exports.isNum = isNum;

// @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc
function findInArray(array
/*: Array<any> | TouchList*/, callback
/*: Function*/) /*: any*/
{
  for (var i = 0, length = array.length; i < length; i++) {
    if (callback.apply(callback, [array[i], i, array])) return array[i];
  }
}
function isFunction(func
/*: any*/) /*: boolean %checks*/
{
  // $FlowIgnore[method-unbinding]
  return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]';
}
function isNum(num
/*: any*/) /*: boolean %checks*/
{
  return typeof num === 'number' && !isNaN(num);
}
function int(a
/*: string*/) /*: number*/
{
  return parseInt(a, 10);
}
function dontSetMe(props
/*: Object*/, propName
/*: string*/, componentName
/*: string*/) /*: ?Error*/
{
  if (props[propName]) {
    return new Error("Invalid prop ".concat(propName, " passed to ").concat(componentName, " - do not set this, set it on the child."));
  }
}

/***/ }),

/***/ 8414:
/***/ (function(__unused_webpack_module, exports) {

"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */



var b = "function" === typeof Symbol && Symbol.for,
  c = b ? Symbol.for("react.element") : 60103,
  d = b ? Symbol.for("react.portal") : 60106,
  e = b ? Symbol.for("react.fragment") : 60107,
  f = b ? Symbol.for("react.strict_mode") : 60108,
  g = b ? Symbol.for("react.profiler") : 60114,
  h = b ? Symbol.for("react.provider") : 60109,
  k = b ? Symbol.for("react.context") : 60110,
  l = b ? Symbol.for("react.async_mode") : 60111,
  m = b ? Symbol.for("react.concurrent_mode") : 60111,
  n = b ? Symbol.for("react.forward_ref") : 60112,
  p = b ? Symbol.for("react.suspense") : 60113,
  q = b ? Symbol.for("react.suspense_list") : 60120,
  r = b ? Symbol.for("react.memo") : 60115,
  t = b ? Symbol.for("react.lazy") : 60116,
  v = b ? Symbol.for("react.block") : 60121,
  w = b ? Symbol.for("react.fundamental") : 60117,
  x = b ? Symbol.for("react.responder") : 60118,
  y = b ? Symbol.for("react.scope") : 60119;
function z(a) {
  if ("object" === typeof a && null !== a) {
    var u = a.$$typeof;
    switch (u) {
      case c:
        switch (a = a.type, a) {
          case l:
          case m:
          case e:
          case g:
          case f:
          case p:
            return a;
          default:
            switch (a = a && a.$$typeof, a) {
              case k:
              case n:
              case t:
              case r:
              case h:
                return a;
              default:
                return u;
            }
        }
      case d:
        return u;
    }
  }
}
function A(a) {
  return z(a) === m;
}
exports.AsyncMode = l;
exports.ConcurrentMode = m;
exports.ContextConsumer = k;
exports.ContextProvider = h;
exports.Element = c;
exports.ForwardRef = n;
exports.Fragment = e;
exports.Lazy = t;
exports.Memo = r;
exports.Portal = d;
exports.Profiler = g;
exports.StrictMode = f;
exports.Suspense = p;
exports.isAsyncMode = function (a) {
  return A(a) || z(a) === l;
};
exports.isConcurrentMode = A;
exports.isContextConsumer = function (a) {
  return z(a) === k;
};
exports.isContextProvider = function (a) {
  return z(a) === h;
};
exports.isElement = function (a) {
  return "object" === typeof a && null !== a && a.$$typeof === c;
};
exports.isForwardRef = function (a) {
  return z(a) === n;
};
exports.isFragment = function (a) {
  return z(a) === e;
};
exports.isLazy = function (a) {
  return z(a) === t;
};
exports.isMemo = function (a) {
  return z(a) === r;
};
exports.isPortal = function (a) {
  return z(a) === d;
};
exports.isProfiler = function (a) {
  return z(a) === g;
};
exports.isStrictMode = function (a) {
  return z(a) === f;
};
exports.isSuspense = function (a) {
  return z(a) === p;
};
exports.isValidElementType = function (a) {
  return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
};
exports.typeOf = z;

/***/ }),

/***/ 4436:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


if (true) {
  module.exports = __webpack_require__(8414);
} else {}

/***/ }),

/***/ 130:
/***/ (function(__unused_webpack_module, exports) {

"use strict";
var __webpack_unused_export__;
/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */


var b = Symbol.for("react.element"),
  c = Symbol.for("react.portal"),
  d = Symbol.for("react.fragment"),
  e = Symbol.for("react.strict_mode"),
  f = Symbol.for("react.profiler"),
  g = Symbol.for("react.provider"),
  h = Symbol.for("react.context"),
  k = Symbol.for("react.server_context"),
  l = Symbol.for("react.forward_ref"),
  m = Symbol.for("react.suspense"),
  n = Symbol.for("react.suspense_list"),
  p = Symbol.for("react.memo"),
  q = Symbol.for("react.lazy"),
  t = Symbol.for("react.offscreen"),
  u;
u = Symbol.for("react.module.reference");
function v(a) {
  if ("object" === typeof a && null !== a) {
    var r = a.$$typeof;
    switch (r) {
      case b:
        switch (a = a.type, a) {
          case d:
          case f:
          case e:
          case m:
          case n:
            return a;
          default:
            switch (a = a && a.$$typeof, a) {
              case k:
              case h:
              case l:
              case q:
              case p:
              case g:
                return a;
              default:
                return r;
            }
        }
      case c:
        return r;
    }
  }
}
__webpack_unused_export__ = h;
__webpack_unused_export__ = g;
__webpack_unused_export__ = b;
__webpack_unused_export__ = l;
__webpack_unused_export__ = d;
__webpack_unused_export__ = q;
__webpack_unused_export__ = p;
__webpack_unused_export__ = c;
__webpack_unused_export__ = f;
__webpack_unused_export__ = e;
__webpack_unused_export__ = m;
__webpack_unused_export__ = n;
__webpack_unused_export__ = function () {
  return !1;
};
__webpack_unused_export__ = function () {
  return !1;
};
__webpack_unused_export__ = function (a) {
  return v(a) === h;
};
__webpack_unused_export__ = function (a) {
  return v(a) === g;
};
__webpack_unused_export__ = function (a) {
  return "object" === typeof a && null !== a && a.$$typeof === b;
};
__webpack_unused_export__ = function (a) {
  return v(a) === l;
};
__webpack_unused_export__ = function (a) {
  return v(a) === d;
};
__webpack_unused_export__ = function (a) {
  return v(a) === q;
};
__webpack_unused_export__ = function (a) {
  return v(a) === p;
};
__webpack_unused_export__ = function (a) {
  return v(a) === c;
};
__webpack_unused_export__ = function (a) {
  return v(a) === f;
};
__webpack_unused_export__ = function (a) {
  return v(a) === e;
};
__webpack_unused_export__ = function (a) {
  return v(a) === m;
};
__webpack_unused_export__ = function (a) {
  return v(a) === n;
};
exports.isValidElementType = function (a) {
  return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? !0 : !1;
};
exports.typeOf = v;

/***/ }),

/***/ 9827:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


if (true) {
  module.exports = __webpack_require__(130);
} else {}

/***/ }),

/***/ 7939:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports["default"] = void 0;
var React = _interopRequireWildcard(__webpack_require__(9512));
var _reactDraggable = __webpack_require__(1710);
var _utils = __webpack_require__(7748);
var _propTypes = __webpack_require__(3691);
var _excluded = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
function _getRequireWildcardCache(nodeInterop) {
  if (typeof WeakMap !== "function") return null;
  var cacheBabelInterop = new WeakMap();
  var cacheNodeInterop = new WeakMap();
  return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
    return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
  })(nodeInterop);
}
function _interopRequireWildcard(obj, nodeInterop) {
  if (!nodeInterop && obj && obj.__esModule) {
    return obj;
  }
  if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
    return {
      default: obj
    };
  }
  var cache = _getRequireWildcardCache(nodeInterop);
  if (cache && cache.has(obj)) {
    return cache.get(obj);
  }
  var newObj = {};
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (var key in obj) {
    if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
      var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
      if (desc && (desc.get || desc.set)) {
        Object.defineProperty(newObj, key, desc);
      } else {
        newObj[key] = obj[key];
      }
    }
  }
  newObj.default = obj;
  if (cache) {
    cache.set(obj, newObj);
  }
  return newObj;
}
function _extends() {
  _extends = Object.assign ? Object.assign.bind() : function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];
      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }
    return target;
  };
  return _extends.apply(this, arguments);
}
function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};
  var sourceKeys = Object.keys(source);
  var key, i;
  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }
  return target;
}
function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);
  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    enumerableOnly && (symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    })), keys.push.apply(keys, symbols);
  }
  return keys;
}
function _objectSpread(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = null != arguments[i] ? arguments[i] : {};
    i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
      _defineProperty(target, key, source[key]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
    });
  }
  return target;
}
function _defineProperty(obj, key, value) {
  key = _toPropertyKey(key);
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}
function _toPropertyKey(arg) {
  var key = _toPrimitive(arg, "string");
  return typeof key === "symbol" ? key : String(key);
}
function _toPrimitive(input, hint) {
  if (typeof input !== "object" || input === null) return input;
  var prim = input[Symbol.toPrimitive];
  if (prim !== undefined) {
    var res = prim.call(input, hint || "default");
    if (typeof res !== "object") return res;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (hint === "string" ? String : Number)(input);
}
function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  _setPrototypeOf(subClass, superClass);
}
function _setPrototypeOf(o, p) {
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
    o.__proto__ = p;
    return o;
  };
  return _setPrototypeOf(o, p);
}
// The base <Resizable> component.
// This component does not have state and relies on the parent to set its props based on callback data.
var Resizable = /*#__PURE__*/function (_React$Component) {
  _inheritsLoose(Resizable, _React$Component);
  function Resizable() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
    _this.handleRefs = {};
    _this.lastHandleRect = null;
    _this.slack = null;
    return _this;
  }
  var _proto = Resizable.prototype;
  _proto.componentWillUnmount = function componentWillUnmount() {
    this.resetData();
  };
  _proto.resetData = function resetData() {
    this.lastHandleRect = this.slack = null;
  }

  // Clamp width and height within provided constraints
  ;

  _proto.runConstraints = function runConstraints(width, height) {
    var _this$props = this.props,
      minConstraints = _this$props.minConstraints,
      maxConstraints = _this$props.maxConstraints,
      lockAspectRatio = _this$props.lockAspectRatio;
    // short circuit
    if (!minConstraints && !maxConstraints && !lockAspectRatio) return [width, height];

    // If constraining to min and max, we need to also fit width and height to aspect ratio.
    if (lockAspectRatio) {
      var ratio = this.props.width / this.props.height;
      var deltaW = width - this.props.width;
      var deltaH = height - this.props.height;

      // Find which coordinate was greater and should push the other toward it.
      // E.g.:
      // ratio = 1, deltaW = 10, deltaH = 5, deltaH should become 10.
      // ratio = 2, deltaW = 10, deltaH = 6, deltaW should become 12.
      if (Math.abs(deltaW) > Math.abs(deltaH * ratio)) {
        height = width / ratio;
      } else {
        width = height * ratio;
      }
    }
    var oldW = width,
      oldH = height;

    // Add slack to the values used to calculate bound position. This will ensure that if
    // we start removing slack, the element won't react to it right away until it's been
    // completely removed.
    var _ref = this.slack || [0, 0],
      slackW = _ref[0],
      slackH = _ref[1];
    width += slackW;
    height += slackH;
    if (minConstraints) {
      width = Math.max(minConstraints[0], width);
      height = Math.max(minConstraints[1], height);
    }
    if (maxConstraints) {
      width = Math.min(maxConstraints[0], width);
      height = Math.min(maxConstraints[1], height);
    }

    // If the width or height changed, we must have introduced some slack. Record it for the next iteration.
    this.slack = [slackW + (oldW - width), slackH + (oldH - height)];
    return [width, height];
  }

  /**
   * Wrapper around drag events to provide more useful data.
   *
   * @param  {String} handlerName Handler name to wrap.
   * @return {Function}           Handler function.
   */;
  _proto.resizeHandler = function resizeHandler(handlerName, axis) {
    var _this2 = this;
    return function (e, _ref2) {
      var node = _ref2.node,
        deltaX = _ref2.deltaX,
        deltaY = _ref2.deltaY;
      // Reset data in case it was left over somehow (should not be possible)
      if (handlerName === 'onResizeStart') _this2.resetData();

      // Axis restrictions
      var canDragX = (_this2.props.axis === 'both' || _this2.props.axis === 'x') && axis !== 'n' && axis !== 's';
      var canDragY = (_this2.props.axis === 'both' || _this2.props.axis === 'y') && axis !== 'e' && axis !== 'w';
      // No dragging possible.
      if (!canDragX && !canDragY) return;

      // Decompose axis for later use
      var axisV = axis[0];
      var axisH = axis[axis.length - 1]; // intentionally not axis[1], so that this catches axis === 'w' for example

      // Track the element being dragged to account for changes in position.
      // If a handle's position is changed between callbacks, we need to factor this in to the next callback.
      // Failure to do so will cause the element to "skip" when resized upwards or leftwards.
      var handleRect = node.getBoundingClientRect();
      if (_this2.lastHandleRect != null) {
        // If the handle has repositioned on either axis since last render,
        // we need to increase our callback values by this much.
        // Only checking 'n', 'w' since resizing by 's', 'w' won't affect the overall position on page,
        if (axisH === 'w') {
          var deltaLeftSinceLast = handleRect.left - _this2.lastHandleRect.left;
          deltaX += deltaLeftSinceLast;
        }
        if (axisV === 'n') {
          var deltaTopSinceLast = handleRect.top - _this2.lastHandleRect.top;
          deltaY += deltaTopSinceLast;
        }
      }
      // Storage of last rect so we know how much it has really moved.
      _this2.lastHandleRect = handleRect;

      // Reverse delta if using top or left drag handles.
      if (axisH === 'w') deltaX = -deltaX;
      if (axisV === 'n') deltaY = -deltaY;

      // Update w/h by the deltas. Also factor in transformScale.
      var width = _this2.props.width + (canDragX ? deltaX / _this2.props.transformScale : 0);
      var height = _this2.props.height + (canDragY ? deltaY / _this2.props.transformScale : 0);

      // Run user-provided constraints.
      var _this2$runConstraints = _this2.runConstraints(width, height);
      width = _this2$runConstraints[0];
      height = _this2$runConstraints[1];
      var dimensionsChanged = width !== _this2.props.width || height !== _this2.props.height;

      // Call user-supplied callback if present.
      var cb = typeof _this2.props[handlerName] === 'function' ? _this2.props[handlerName] : null;
      // Don't call 'onResize' if dimensions haven't changed.
      var shouldSkipCb = handlerName === 'onResize' && !dimensionsChanged;
      if (cb && !shouldSkipCb) {
        e.persist == null ? void 0 : e.persist();
        cb(e, {
          node: node,
          size: {
            width: width,
            height: height
          },
          handle: axis
        });
      }

      // Reset internal data
      if (handlerName === 'onResizeStop') _this2.resetData();
    };
  }

  // Render a resize handle given an axis & DOM ref. Ref *must* be attached for
  // the underlying draggable library to work properly.
  ;

  _proto.renderResizeHandle = function renderResizeHandle(handleAxis, ref) {
    var handle = this.props.handle;
    // No handle provided, make the default
    if (!handle) {
      return /*#__PURE__*/React.createElement("span", {
        className: "react-resizable-handle react-resizable-handle-" + handleAxis,
        ref: ref
      });
    }
    // Handle is a function, such as:
    // `handle={(handleAxis) => <span className={...} />}`
    if (typeof handle === 'function') {
      return handle(handleAxis, ref);
    }
    // Handle is a React component (composite or DOM).
    var isDOMElement = typeof handle.type === 'string';
    var props = _objectSpread({
      ref: ref
    }, isDOMElement ? {} : {
      handleAxis: handleAxis
    });
    return /*#__PURE__*/React.cloneElement(handle, props);
  };
  _proto.render = function render() {
    var _this3 = this;
    // Pass along only props not meant for the `<Resizable>`.`
    // eslint-disable-next-line no-unused-vars
    var _this$props2 = this.props,
      children = _this$props2.children,
      className = _this$props2.className,
      draggableOpts = _this$props2.draggableOpts,
      width = _this$props2.width,
      height = _this$props2.height,
      handle = _this$props2.handle,
      handleSize = _this$props2.handleSize,
      lockAspectRatio = _this$props2.lockAspectRatio,
      axis = _this$props2.axis,
      minConstraints = _this$props2.minConstraints,
      maxConstraints = _this$props2.maxConstraints,
      onResize = _this$props2.onResize,
      onResizeStop = _this$props2.onResizeStop,
      onResizeStart = _this$props2.onResizeStart,
      resizeHandles = _this$props2.resizeHandles,
      transformScale = _this$props2.transformScale,
      p = _objectWithoutPropertiesLoose(_this$props2, _excluded);

    // What we're doing here is getting the child of this element, and cloning it with this element's props.
    // We are then defining its children as:
    // 1. Its original children (resizable's child's children), and
    // 2. One or more draggable handles.
    return (0, _utils.cloneElement)(children, _objectSpread(_objectSpread({}, p), {}, {
      className: (className ? className + " " : '') + "react-resizable",
      children: [].concat(children.props.children, resizeHandles.map(function (handleAxis) {
        var _this3$handleRefs$han;
        // Create a ref to the handle so that `<DraggableCore>` doesn't have to use ReactDOM.findDOMNode().
        var ref = (_this3$handleRefs$han = _this3.handleRefs[handleAxis]) != null ? _this3$handleRefs$han : _this3.handleRefs[handleAxis] = /*#__PURE__*/React.createRef();
        return /*#__PURE__*/React.createElement(_reactDraggable.DraggableCore, _extends({}, draggableOpts, {
          nodeRef: ref,
          key: "resizableHandle-" + handleAxis,
          onStop: _this3.resizeHandler('onResizeStop', handleAxis),
          onStart: _this3.resizeHandler('onResizeStart', handleAxis),
          onDrag: _this3.resizeHandler('onResize', handleAxis)
        }), _this3.renderResizeHandle(handleAxis, ref));
      }))
    }));
  };
  return Resizable;
}(React.Component);
exports["default"] = Resizable;
Resizable.propTypes = _propTypes.resizableProps;
Resizable.defaultProps = {
  axis: 'both',
  handleSize: [20, 20],
  lockAspectRatio: false,
  minConstraints: [20, 20],
  maxConstraints: [Infinity, Infinity],
  resizeHandles: ['se'],
  transformScale: 1
};

/***/ }),

/***/ 8690:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
var __webpack_unused_export__;


__webpack_unused_export__ = true;
exports["default"] = void 0;
var React = _interopRequireWildcard(__webpack_require__(9512));
var _propTypes = _interopRequireDefault(__webpack_require__(1226));
var _Resizable = _interopRequireDefault(__webpack_require__(7939));
var _propTypes2 = __webpack_require__(3691);
var _excluded = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    default: obj
  };
}
function _getRequireWildcardCache(nodeInterop) {
  if (typeof WeakMap !== "function") return null;
  var cacheBabelInterop = new WeakMap();
  var cacheNodeInterop = new WeakMap();
  return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
    return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
  })(nodeInterop);
}
function _interopRequireWildcard(obj, nodeInterop) {
  if (!nodeInterop && obj && obj.__esModule) {
    return obj;
  }
  if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
    return {
      default: obj
    };
  }
  var cache = _getRequireWildcardCache(nodeInterop);
  if (cache && cache.has(obj)) {
    return cache.get(obj);
  }
  var newObj = {};
  var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (var key in obj) {
    if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
      var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
      if (desc && (desc.get || desc.set)) {
        Object.defineProperty(newObj, key, desc);
      } else {
        newObj[key] = obj[key];
      }
    }
  }
  newObj.default = obj;
  if (cache) {
    cache.set(obj, newObj);
  }
  return newObj;
}
function _extends() {
  _extends = Object.assign ? Object.assign.bind() : function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];
      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }
    return target;
  };
  return _extends.apply(this, arguments);
}
function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);
  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    enumerableOnly && (symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    })), keys.push.apply(keys, symbols);
  }
  return keys;
}
function _objectSpread(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = null != arguments[i] ? arguments[i] : {};
    i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
      _defineProperty(target, key, source[key]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
    });
  }
  return target;
}
function _defineProperty(obj, key, value) {
  key = _toPropertyKey(key);
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}
function _toPropertyKey(arg) {
  var key = _toPrimitive(arg, "string");
  return typeof key === "symbol" ? key : String(key);
}
function _toPrimitive(input, hint) {
  if (typeof input !== "object" || input === null) return input;
  var prim = input[Symbol.toPrimitive];
  if (prim !== undefined) {
    var res = prim.call(input, hint || "default");
    if (typeof res !== "object") return res;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (hint === "string" ? String : Number)(input);
}
function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};
  var sourceKeys = Object.keys(source);
  var key, i;
  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }
  return target;
}
function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  _setPrototypeOf(subClass, superClass);
}
function _setPrototypeOf(o, p) {
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
    o.__proto__ = p;
    return o;
  };
  return _setPrototypeOf(o, p);
}
var ResizableBox = /*#__PURE__*/function (_React$Component) {
  _inheritsLoose(ResizableBox, _React$Component);
  function ResizableBox() {
    var _this;
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
    _this.state = {
      width: _this.props.width,
      height: _this.props.height,
      propsWidth: _this.props.width,
      propsHeight: _this.props.height
    };
    _this.onResize = function (e, data) {
      var size = data.size;
      if (_this.props.onResize) {
        e.persist == null ? void 0 : e.persist();
        _this.setState(size, function () {
          return _this.props.onResize && _this.props.onResize(e, data);
        });
      } else {
        _this.setState(size);
      }
    };
    return _this;
  }
  ResizableBox.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
    // If parent changes height/width, set that in our state.
    if (state.propsWidth !== props.width || state.propsHeight !== props.height) {
      return {
        width: props.width,
        height: props.height,
        propsWidth: props.width,
        propsHeight: props.height
      };
    }
    return null;
  };
  var _proto = ResizableBox.prototype;
  _proto.render = function render() {
    // Basic wrapper around a Resizable instance.
    // If you use Resizable directly, you are responsible for updating the child component
    // with a new width and height.
    var _this$props = this.props,
      handle = _this$props.handle,
      handleSize = _this$props.handleSize,
      onResize = _this$props.onResize,
      onResizeStart = _this$props.onResizeStart,
      onResizeStop = _this$props.onResizeStop,
      draggableOpts = _this$props.draggableOpts,
      minConstraints = _this$props.minConstraints,
      maxConstraints = _this$props.maxConstraints,
      lockAspectRatio = _this$props.lockAspectRatio,
      axis = _this$props.axis,
      width = _this$props.width,
      height = _this$props.height,
      resizeHandles = _this$props.resizeHandles,
      style = _this$props.style,
      transformScale = _this$props.transformScale,
      props = _objectWithoutPropertiesLoose(_this$props, _excluded);
    return /*#__PURE__*/React.createElement(_Resizable.default, {
      axis: axis,
      draggableOpts: draggableOpts,
      handle: handle,
      handleSize: handleSize,
      height: this.state.height,
      lockAspectRatio: lockAspectRatio,
      maxConstraints: maxConstraints,
      minConstraints: minConstraints,
      onResizeStart: onResizeStart,
      onResize: this.onResize,
      onResizeStop: onResizeStop,
      resizeHandles: resizeHandles,
      transformScale: transformScale,
      width: this.state.width
    }, /*#__PURE__*/React.createElement("div", _extends({}, props, {
      style: _objectSpread(_objectSpread({}, style), {}, {
        width: this.state.width + 'px',
        height: this.state.height + 'px'
      })
    })));
  };
  return ResizableBox;
}(React.Component);
exports["default"] = ResizableBox;
// PropTypes are identical to <Resizable>, except that children are not strictly required to be present.
ResizableBox.propTypes = _objectSpread(_objectSpread({}, _propTypes2.resizableProps), {}, {
  children: _propTypes.default.element
});

/***/ }),

/***/ 3691:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.resizableProps = void 0;
var _propTypes = _interopRequireDefault(__webpack_require__(1226));
var _reactDraggable = __webpack_require__(1710);
function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    default: obj
  };
}
var resizableProps = {
  /*
  * Restricts resizing to a particular axis (default: 'both')
  * 'both' - allows resizing by width or height
  * 'x' - only allows the width to be changed
  * 'y' - only allows the height to be changed
  * 'none' - disables resizing altogether
  * */
  axis: _propTypes.default.oneOf(['both', 'x', 'y', 'none']),
  className: _propTypes.default.string,
  /*
  * Require that one and only one child be present.
  * */
  children: _propTypes.default.element.isRequired,
  /*
  * These will be passed wholesale to react-draggable's DraggableCore
  * */
  draggableOpts: _propTypes.default.shape({
    allowAnyClick: _propTypes.default.bool,
    cancel: _propTypes.default.string,
    children: _propTypes.default.node,
    disabled: _propTypes.default.bool,
    enableUserSelectHack: _propTypes.default.bool,
    offsetParent: _propTypes.default.node,
    grid: _propTypes.default.arrayOf(_propTypes.default.number),
    handle: _propTypes.default.string,
    nodeRef: _propTypes.default.object,
    onStart: _propTypes.default.func,
    onDrag: _propTypes.default.func,
    onStop: _propTypes.default.func,
    onMouseDown: _propTypes.default.func,
    scale: _propTypes.default.number
  }),
  /*
  * Initial height
  * */
  height: function height() {
    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
    var props = args[0];
    // Required if resizing height or both
    if (props.axis === 'both' || props.axis === 'y') {
      var _PropTypes$number;
      return (_PropTypes$number = _propTypes.default.number).isRequired.apply(_PropTypes$number, args);
    }
    return _propTypes.default.number.apply(_propTypes.default, args);
  },
  /*
  * Customize cursor resize handle
  * */
  handle: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
  /*
  * If you change this, be sure to update your css
  * */
  handleSize: _propTypes.default.arrayOf(_propTypes.default.number),
  lockAspectRatio: _propTypes.default.bool,
  /*
  * Max X & Y measure
  * */
  maxConstraints: _propTypes.default.arrayOf(_propTypes.default.number),
  /*
  * Min X & Y measure
  * */
  minConstraints: _propTypes.default.arrayOf(_propTypes.default.number),
  /*
  * Called on stop resize event
  * */
  onResizeStop: _propTypes.default.func,
  /*
  * Called on start resize event
  * */
  onResizeStart: _propTypes.default.func,
  /*
  * Called on resize event
  * */
  onResize: _propTypes.default.func,
  /*
  * Defines which resize handles should be rendered (default: 'se')
  * 's' - South handle (bottom-center)
  * 'w' - West handle (left-center)
  * 'e' - East handle (right-center)
  * 'n' - North handle (top-center)
  * 'sw' - Southwest handle (bottom-left)
  * 'nw' - Northwest handle (top-left)
  * 'se' - Southeast handle (bottom-right)
  * 'ne' - Northeast handle (top-center)
  * */
  resizeHandles: _propTypes.default.arrayOf(_propTypes.default.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])),
  /*
  * If `transform: scale(n)` is set on the parent, this should be set to `n`.
  * */
  transformScale: _propTypes.default.number,
  /*
   * Initial width
   */
  width: function width() {
    for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
      args[_key2] = arguments[_key2];
    }
    var props = args[0];
    // Required if resizing width or both
    if (props.axis === 'both' || props.axis === 'x') {
      var _PropTypes$number2;
      return (_PropTypes$number2 = _propTypes.default.number).isRequired.apply(_PropTypes$number2, args);
    }
    return _propTypes.default.number.apply(_propTypes.default, args);
  }
};
exports.resizableProps = resizableProps;

/***/ }),

/***/ 7748:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;
exports.cloneElement = cloneElement;
var _react = _interopRequireDefault(__webpack_require__(9512));
function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : {
    default: obj
  };
}
function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);
  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    enumerableOnly && (symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    })), keys.push.apply(keys, symbols);
  }
  return keys;
}
function _objectSpread(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = null != arguments[i] ? arguments[i] : {};
    i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
      _defineProperty(target, key, source[key]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
    });
  }
  return target;
}
function _defineProperty(obj, key, value) {
  key = _toPropertyKey(key);
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}
function _toPropertyKey(arg) {
  var key = _toPrimitive(arg, "string");
  return typeof key === "symbol" ? key : String(key);
}
function _toPrimitive(input, hint) {
  if (typeof input !== "object" || input === null) return input;
  var prim = input[Symbol.toPrimitive];
  if (prim !== undefined) {
    var res = prim.call(input, hint || "default");
    if (typeof res !== "object") return res;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (hint === "string" ? String : Number)(input);
}
// React.addons.cloneWithProps look-alike that merges style & className.
function cloneElement(element, props) {
  if (props.style && element.props.style) {
    props.style = _objectSpread(_objectSpread({}, element.props.style), props.style);
  }
  if (props.className && element.props.className) {
    props.className = element.props.className + " " + props.className;
  }
  return /*#__PURE__*/_react.default.cloneElement(element, props);
}

/***/ }),

/***/ 3350:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


module.exports = function () {
  throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
};
module.exports.Resizable = __webpack_require__(7939)["default"];
module.exports.ResizableBox = __webpack_require__(8690)["default"];

/***/ }),

/***/ 4992:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

"use strict";
/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */


var f = __webpack_require__(9512),
  k = Symbol.for("react.element"),
  l = Symbol.for("react.fragment"),
  m = Object.prototype.hasOwnProperty,
  n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
  p = {
    key: !0,
    ref: !0,
    __self: !0,
    __source: !0
  };
function q(c, a, g) {
  var b,
    d = {},
    e = null,
    h = null;
  void 0 !== g && (e = "" + g);
  void 0 !== a.key && (e = "" + a.key);
  void 0 !== a.ref && (h = a.ref);
  for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
  if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
  return {
    $$typeof: k,
    type: c,
    key: e,
    ref: h,
    props: d,
    _owner: n.current
  };
}
exports.Fragment = l;
exports.jsx = q;
exports.jsxs = q;

/***/ }),

/***/ 7276:
/***/ (function(__unused_webpack_module, exports) {

"use strict";
/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */


var l = Symbol.for("react.element"),
  n = Symbol.for("react.portal"),
  p = Symbol.for("react.fragment"),
  q = Symbol.for("react.strict_mode"),
  r = Symbol.for("react.profiler"),
  t = Symbol.for("react.provider"),
  u = Symbol.for("react.context"),
  v = Symbol.for("react.forward_ref"),
  w = Symbol.for("react.suspense"),
  x = Symbol.for("react.memo"),
  y = Symbol.for("react.lazy"),
  z = Symbol.iterator;
function A(a) {
  if (null === a || "object" !== typeof a) return null;
  a = z && a[z] || a["@@iterator"];
  return "function" === typeof a ? a : null;
}
var B = {
    isMounted: function isMounted() {
      return !1;
    },
    enqueueForceUpdate: function enqueueForceUpdate() {},
    enqueueReplaceState: function enqueueReplaceState() {},
    enqueueSetState: function enqueueSetState() {}
  },
  C = Object.assign,
  D = {};
function E(a, b, e) {
  this.props = a;
  this.context = b;
  this.refs = D;
  this.updater = e || B;
}
E.prototype.isReactComponent = {};
E.prototype.setState = function (a, b) {
  if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
  this.updater.enqueueSetState(this, a, b, "setState");
};
E.prototype.forceUpdate = function (a) {
  this.updater.enqueueForceUpdate(this, a, "forceUpdate");
};
function F() {}
F.prototype = E.prototype;
function G(a, b, e) {
  this.props = a;
  this.context = b;
  this.refs = D;
  this.updater = e || B;
}
var H = G.prototype = new F();
H.constructor = G;
C(H, E.prototype);
H.isPureReactComponent = !0;
var I = Array.isArray,
  J = Object.prototype.hasOwnProperty,
  K = {
    current: null
  },
  L = {
    key: !0,
    ref: !0,
    __self: !0,
    __source: !0
  };
function M(a, b, e) {
  var d,
    c = {},
    k = null,
    h = null;
  if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
  var g = arguments.length - 2;
  if (1 === g) c.children = e;else if (1 < g) {
    for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
    c.children = f;
  }
  if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
  return {
    $$typeof: l,
    type: a,
    key: k,
    ref: h,
    props: c,
    _owner: K.current
  };
}
function N(a, b) {
  return {
    $$typeof: l,
    type: a.type,
    key: b,
    ref: a.ref,
    props: a.props,
    _owner: a._owner
  };
}
function O(a) {
  return "object" === typeof a && null !== a && a.$$typeof === l;
}
function escape(a) {
  var b = {
    "=": "=0",
    ":": "=2"
  };
  return "$" + a.replace(/[=:]/g, function (a) {
    return b[a];
  });
}
var P = /\/+/g;
function Q(a, b) {
  return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
}
function R(a, b, e, d, c) {
  var k = typeof a;
  if ("undefined" === k || "boolean" === k) a = null;
  var h = !1;
  if (null === a) h = !0;else switch (k) {
    case "string":
    case "number":
      h = !0;
      break;
    case "object":
      switch (a.$$typeof) {
        case l:
        case n:
          h = !0;
      }
  }
  if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function (a) {
    return a;
  })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
  h = 0;
  d = "" === d ? "." : d + ":";
  if (I(a)) for (var g = 0; g < a.length; g++) {
    k = a[g];
    var f = d + Q(k, g);
    h += R(k, b, e, f, c);
  } else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
  return h;
}
function S(a, b, e) {
  if (null == a) return a;
  var d = [],
    c = 0;
  R(a, d, "", "", function (a) {
    return b.call(e, a, c++);
  });
  return d;
}
function T(a) {
  if (-1 === a._status) {
    var b = a._result;
    b = b();
    b.then(function (b) {
      if (0 === a._status || -1 === a._status) a._status = 1, a._result = b;
    }, function (b) {
      if (0 === a._status || -1 === a._status) a._status = 2, a._result = b;
    });
    -1 === a._status && (a._status = 0, a._result = b);
  }
  if (1 === a._status) return a._result.default;
  throw a._result;
}
var U = {
    current: null
  },
  V = {
    transition: null
  },
  W = {
    ReactCurrentDispatcher: U,
    ReactCurrentBatchConfig: V,
    ReactCurrentOwner: K
  };
exports.Children = {
  map: S,
  forEach: function forEach(a, b, e) {
    S(a, function () {
      b.apply(this, arguments);
    }, e);
  },
  count: function count(a) {
    var b = 0;
    S(a, function () {
      b++;
    });
    return b;
  },
  toArray: function toArray(a) {
    return S(a, function (a) {
      return a;
    }) || [];
  },
  only: function only(a) {
    if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
    return a;
  }
};
exports.Component = E;
exports.Fragment = p;
exports.Profiler = r;
exports.PureComponent = G;
exports.StrictMode = q;
exports.Suspense = w;
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
exports.cloneElement = function (a, b, e) {
  if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
  var d = C({}, a.props),
    c = a.key,
    k = a.ref,
    h = a._owner;
  if (null != b) {
    void 0 !== b.ref && (k = b.ref, h = K.current);
    void 0 !== b.key && (c = "" + b.key);
    if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
    for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
  }
  var f = arguments.length - 2;
  if (1 === f) d.children = e;else if (1 < f) {
    g = Array(f);
    for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
    d.children = g;
  }
  return {
    $$typeof: l,
    type: a.type,
    key: c,
    ref: k,
    props: d,
    _owner: h
  };
};
exports.createContext = function (a) {
  a = {
    $$typeof: u,
    _currentValue: a,
    _currentValue2: a,
    _threadCount: 0,
    Provider: null,
    Consumer: null,
    _defaultValue: null,
    _globalName: null
  };
  a.Provider = {
    $$typeof: t,
    _context: a
  };
  return a.Consumer = a;
};
exports.createElement = M;
exports.createFactory = function (a) {
  var b = M.bind(null, a);
  b.type = a;
  return b;
};
exports.createRef = function () {
  return {
    current: null
  };
};
exports.forwardRef = function (a) {
  return {
    $$typeof: v,
    render: a
  };
};
exports.isValidElement = O;
exports.lazy = function (a) {
  return {
    $$typeof: y,
    _payload: {
      _status: -1,
      _result: a
    },
    _init: T
  };
};
exports.memo = function (a, b) {
  return {
    $$typeof: x,
    type: a,
    compare: void 0 === b ? null : b
  };
};
exports.startTransition = function (a) {
  var b = V.transition;
  V.transition = {};
  try {
    a();
  } finally {
    V.transition = b;
  }
};
exports.unstable_act = function () {
  throw Error("act(...) is not supported in production builds of React.");
};
exports.useCallback = function (a, b) {
  return U.current.useCallback(a, b);
};
exports.useContext = function (a) {
  return U.current.useContext(a);
};
exports.useDebugValue = function () {};
exports.useDeferredValue = function (a) {
  return U.current.useDeferredValue(a);
};
exports.useEffect = function (a, b) {
  return U.current.useEffect(a, b);
};
exports.useId = function () {
  return U.current.useId();
};
exports.useImperativeHandle = function (a, b, e) {
  return U.current.useImperativeHandle(a, b, e);
};
exports.useInsertionEffect = function (a, b) {
  return U.current.useInsertionEffect(a, b);
};
exports.useLayoutEffect = function (a, b) {
  return U.current.useLayoutEffect(a, b);
};
exports.useMemo = function (a, b) {
  return U.current.useMemo(a, b);
};
exports.useReducer = function (a, b, e) {
  return U.current.useReducer(a, b, e);
};
exports.useRef = function (a) {
  return U.current.useRef(a);
};
exports.useState = function (a) {
  return U.current.useState(a);
};
exports.useSyncExternalStore = function (a, b, e) {
  return U.current.useSyncExternalStore(a, b, e);
};
exports.useTransition = function () {
  return U.current.useTransition();
};
exports.version = "18.2.0";

/***/ }),

/***/ 9512:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


if (true) {
  module.exports = __webpack_require__(7276);
} else {}

/***/ }),

/***/ 9386:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


if (true) {
  module.exports = __webpack_require__(4992);
} else {}

/***/ }),

/***/ 3637:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Wh: function() { return /* binding */ Recoil_index_5; },
  cn: function() { return /* binding */ Recoil_index_8; },
  nZ: function() { return /* binding */ Recoil_index_9; },
  _8: function() { return /* binding */ Recoil_index_31; },
  FV: function() { return /* binding */ Recoil_index_22; },
  sJ: function() { return /* binding */ Recoil_index_20; },
  Zl: function() { return /* binding */ Recoil_index_24; }
});

// UNUSED EXPORTS: DefaultValue, RecoilEnv, RecoilLoadable, atomFamily, constSelector, default, errorSelector, isRecoilValue, noWait, readOnlySelector, retentionZone, selectorFamily, snapshot_UNSTABLE, useGetRecoilValueInfo_UNSTABLE, useGotoRecoilSnapshot, useRecoilBridgeAcrossReactRoots_UNSTABLE, useRecoilRefresher_UNSTABLE, useRecoilSnapshot, useRecoilStateLoadable, useRecoilState_TRANSITION_SUPPORT_UNSTABLE, useRecoilStoreID, useRecoilTransactionObserver_UNSTABLE, useRecoilTransaction_UNSTABLE, useRecoilValueLoadable, useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE, useRecoilValue_TRANSITION_SUPPORT_UNSTABLE, useResetRecoilState, useRetain, waitForAll, waitForAllSettled, waitForAny, waitForNone

;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectDestructuringEmpty.js
function _objectDestructuringEmpty(obj) {
  if (obj == null) throw new TypeError("Cannot destructure " + obj);
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
var toConsumableArray = __webpack_require__(372);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectWithoutProperties.js
var objectWithoutProperties = __webpack_require__(9686);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(2171);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
var slicedToArray = __webpack_require__(8935);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/getPrototypeOf.js
var getPrototypeOf = __webpack_require__(6072);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/setPrototypeOf.js
var setPrototypeOf = __webpack_require__(7513);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/isNativeFunction.js
function _isNativeFunction(fn) {
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/isNativeReflectConstruct.js
var isNativeReflectConstruct = __webpack_require__(5348);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/construct.js


function _construct(Parent, args, Class) {
  if ((0,isNativeReflectConstruct/* default */.Z)()) {
    _construct = Reflect.construct.bind();
  } else {
    _construct = function _construct(Parent, args, Class) {
      var a = [null];
      a.push.apply(a, args);
      var Constructor = Function.bind.apply(Parent, a);
      var instance = new Constructor();
      if (Class) (0,setPrototypeOf/* default */.Z)(instance, Class.prototype);
      return instance;
    };
  }
  return _construct.apply(null, arguments);
}
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/wrapNativeSuper.js




function _wrapNativeSuper(Class) {
  var _cache = typeof Map === "function" ? new Map() : undefined;
  _wrapNativeSuper = function _wrapNativeSuper(Class) {
    if (Class === null || !_isNativeFunction(Class)) return Class;
    if (typeof Class !== "function") {
      throw new TypeError("Super expression must either be null or a function");
    }
    if (typeof _cache !== "undefined") {
      if (_cache.has(Class)) return _cache.get(Class);
      _cache.set(Class, Wrapper);
    }
    function Wrapper() {
      return _construct(Class, arguments, (0,getPrototypeOf/* default */.Z)(this).constructor);
    }
    Wrapper.prototype = Object.create(Class.prototype, {
      constructor: {
        value: Wrapper,
        enumerable: false,
        writable: true,
        configurable: true
      }
    });
    return (0,setPrototypeOf/* default */.Z)(Wrapper, Class);
  };
  return _wrapNativeSuper(Class);
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7921);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/unsupportedIterableToArray.js
var unsupportedIterableToArray = __webpack_require__(9154);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createForOfIteratorHelper.js

function _createForOfIteratorHelper(o, allowArrayLike) {
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  if (!it) {
    if (Array.isArray(o) || (it = (0,unsupportedIterableToArray/* default */.Z)(o)) || allowArrayLike && o && typeof o.length === "number") {
      if (it) o = it;
      var i = 0;
      var F = function F() {};
      return {
        s: F,
        n: function n() {
          if (i >= o.length) return {
            done: true
          };
          return {
            done: false,
            value: o[i++]
          };
        },
        e: function e(_e) {
          throw _e;
        },
        f: F
      };
    }
    throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  }
  var normalCompletion = true,
    didErr = false,
    err;
  return {
    s: function s() {
      it = it.call(o);
    },
    n: function n() {
      var step = it.next();
      normalCompletion = step.done;
      return step;
    },
    e: function e(_e2) {
      didErr = true;
      err = _e2;
    },
    f: function f() {
      try {
        if (!normalCompletion && it["return"] != null) it["return"]();
      } finally {
        if (didErr) throw err;
      }
    }
  };
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/defineProperty.js
var defineProperty = __webpack_require__(994);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/objectSpread2.js
var objectSpread2 = __webpack_require__(2648);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/assertThisInitialized.js
var assertThisInitialized = __webpack_require__(2901);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/inherits.js
var inherits = __webpack_require__(8863);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createSuper.js + 1 modules
var createSuper = __webpack_require__(8271);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/classCallCheck.js
var classCallCheck = __webpack_require__(4816);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createClass.js
var createClass = __webpack_require__(5292);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_react-dom@18.2.0@react-dom/index.js
var _react_dom_18_2_0_react_dom = __webpack_require__(1162);
;// CONCATENATED MODULE: ./node_modules/_recoil@0.7.7@recoil/es/index.js















var _excluded = ["override"],
  _excluded2 = ["cachePolicyForParams_UNSTABLE"];
var _marked = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(filterIterable),
  _marked2 = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(concatIterables);



/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

function err(message) {
  var error = new Error(message); // In V8, Error objects keep the closure scope chain alive until the
  // err.stack property is accessed.

  if (error.stack === undefined) {
    // IE sets the stack only if error is thrown
    try {
      throw error;
    } catch (_) {} // eslint-disable-line fb-www/no-unused-catch-bindings, no-empty
  }

  return error;
}
var err_1 = err;

// @oss-only

var Recoil_err = err_1;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

// Split declaration and implementation to allow this function to pretend to
// check for actual instance of Promise instead of something with a `then`
// method.
// eslint-disable-next-line no-redeclare
function isPromise(p) {
  return !!p && typeof p.then === 'function';
}
var Recoil_isPromise = isPromise;
function nullthrows(x, message) {
  if (x != null) {
    return x;
  }
  throw Recoil_err(message !== null && message !== void 0 ? message : 'Got unexpected null or undefined');
}
var Recoil_nullthrows = nullthrows;
function _defineProperty(obj, key, value) {
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}
var BaseLoadable = /*#__PURE__*/function () {
  function BaseLoadable() {
    (0,classCallCheck/* default */.Z)(this, BaseLoadable);
  }
  (0,createClass/* default */.Z)(BaseLoadable, [{
    key: "getValue",
    value: function getValue() {
      throw Recoil_err('BaseLoadable');
    }
  }, {
    key: "toPromise",
    value: function toPromise() {
      throw Recoil_err('BaseLoadable');
    }
  }, {
    key: "valueMaybe",
    value: function valueMaybe() {
      throw Recoil_err('BaseLoadable');
    }
  }, {
    key: "valueOrThrow",
    value: function valueOrThrow() {
      // $FlowFixMe[prop-missing]
      throw Recoil_err("Loadable expected value, but in \"".concat(this.state, "\" state"));
    }
  }, {
    key: "promiseMaybe",
    value: function promiseMaybe() {
      throw Recoil_err('BaseLoadable');
    }
  }, {
    key: "promiseOrThrow",
    value: function promiseOrThrow() {
      // $FlowFixMe[prop-missing]
      throw Recoil_err("Loadable expected promise, but in \"".concat(this.state, "\" state"));
    }
  }, {
    key: "errorMaybe",
    value: function errorMaybe() {
      throw Recoil_err('BaseLoadable');
    }
  }, {
    key: "errorOrThrow",
    value: function errorOrThrow() {
      // $FlowFixMe[prop-missing]
      throw Recoil_err("Loadable expected error, but in \"".concat(this.state, "\" state"));
    }
  }, {
    key: "is",
    value: function is(other) {
      // $FlowFixMe[prop-missing]
      return other.state === this.state && other.contents === this.contents;
    }
  }, {
    key: "map",
    value: function map(_map) {
      throw Recoil_err('BaseLoadable');
    }
  }]);
  return BaseLoadable;
}();
var ValueLoadable = /*#__PURE__*/function (_BaseLoadable) {
  (0,inherits/* default */.Z)(ValueLoadable, _BaseLoadable);
  var _super = (0,createSuper/* default */.Z)(ValueLoadable);
  function ValueLoadable(value) {
    var _this;
    (0,classCallCheck/* default */.Z)(this, ValueLoadable);
    _this = _super.call(this);
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this), "state", 'hasValue');
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this), "contents", void 0);
    _this.contents = value;
    return _this;
  }
  (0,createClass/* default */.Z)(ValueLoadable, [{
    key: "getValue",
    value: function getValue() {
      return this.contents;
    }
  }, {
    key: "toPromise",
    value: function toPromise() {
      return Promise.resolve(this.contents);
    }
  }, {
    key: "valueMaybe",
    value: function valueMaybe() {
      return this.contents;
    }
  }, {
    key: "valueOrThrow",
    value: function valueOrThrow() {
      return this.contents;
    }
  }, {
    key: "promiseMaybe",
    value: function promiseMaybe() {
      return undefined;
    }
  }, {
    key: "errorMaybe",
    value: function errorMaybe() {
      return undefined;
    }
  }, {
    key: "map",
    value: function map(_map2) {
      var _this2 = this;
      try {
        var next = _map2(this.contents);
        return Recoil_isPromise(next) ? loadableWithPromise(next) : isLoadable(next) ? next : loadableWithValue(next);
      } catch (e) {
        return Recoil_isPromise(e) ?
        // If we "suspended", then try again.
        // errors and subsequent retries will be handled in 'loading' case
        // $FlowFixMe[prop-missing]
        loadableWithPromise(e.next(function () {
          return _this2.map(_map2);
        })) : loadableWithError(e);
      }
    }
  }]);
  return ValueLoadable;
}(BaseLoadable);
var ErrorLoadable = /*#__PURE__*/function (_BaseLoadable2) {
  (0,inherits/* default */.Z)(ErrorLoadable, _BaseLoadable2);
  var _super2 = (0,createSuper/* default */.Z)(ErrorLoadable);
  function ErrorLoadable(error) {
    var _this3;
    (0,classCallCheck/* default */.Z)(this, ErrorLoadable);
    _this3 = _super2.call(this);
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this3), "state", 'hasError');
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this3), "contents", void 0);
    _this3.contents = error;
    return _this3;
  }
  (0,createClass/* default */.Z)(ErrorLoadable, [{
    key: "getValue",
    value: function getValue() {
      throw this.contents;
    }
  }, {
    key: "toPromise",
    value: function toPromise() {
      return Promise.reject(this.contents);
    }
  }, {
    key: "valueMaybe",
    value: function valueMaybe() {
      return undefined;
    }
  }, {
    key: "promiseMaybe",
    value: function promiseMaybe() {
      return undefined;
    }
  }, {
    key: "errorMaybe",
    value: function errorMaybe() {
      return this.contents;
    }
  }, {
    key: "errorOrThrow",
    value: function errorOrThrow() {
      return this.contents;
    }
  }, {
    key: "map",
    value: function map(_map) {
      // $FlowIssue[incompatible-return]
      return this;
    }
  }]);
  return ErrorLoadable;
}(BaseLoadable);
var LoadingLoadable = /*#__PURE__*/function (_BaseLoadable3) {
  (0,inherits/* default */.Z)(LoadingLoadable, _BaseLoadable3);
  var _super3 = (0,createSuper/* default */.Z)(LoadingLoadable);
  function LoadingLoadable(promise) {
    var _this4;
    (0,classCallCheck/* default */.Z)(this, LoadingLoadable);
    _this4 = _super3.call(this);
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this4), "state", 'loading');
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this4), "contents", void 0);
    _this4.contents = promise;
    return _this4;
  }
  (0,createClass/* default */.Z)(LoadingLoadable, [{
    key: "getValue",
    value: function getValue() {
      throw this.contents;
    }
  }, {
    key: "toPromise",
    value: function toPromise() {
      return this.contents;
    }
  }, {
    key: "valueMaybe",
    value: function valueMaybe() {
      return undefined;
    }
  }, {
    key: "promiseMaybe",
    value: function promiseMaybe() {
      return this.contents;
    }
  }, {
    key: "promiseOrThrow",
    value: function promiseOrThrow() {
      return this.contents;
    }
  }, {
    key: "errorMaybe",
    value: function errorMaybe() {
      return undefined;
    }
  }, {
    key: "map",
    value: function map(_map3) {
      var _this5 = this;
      return loadableWithPromise(this.contents.then(function (value) {
        var next = _map3(value);
        if (isLoadable(next)) {
          var nextLoadable = next;
          switch (nextLoadable.state) {
            case 'hasValue':
              return nextLoadable.contents;
            case 'hasError':
              throw nextLoadable.contents;
            case 'loading':
              return nextLoadable.contents;
          }
        } // $FlowIssue[incompatible-return]

        return next;
      }) // $FlowFixMe[incompatible-call]
      .catch(function (e) {
        if (Recoil_isPromise(e)) {
          // we were "suspended," try again
          return e.then(function () {
            return _this5.map(_map3).contents;
          });
        }
        throw e;
      }));
    }
  }]);
  return LoadingLoadable;
}(BaseLoadable);
function loadableWithValue(value) {
  return Object.freeze(new ValueLoadable(value));
}
function loadableWithError(error) {
  return Object.freeze(new ErrorLoadable(error));
}
function loadableWithPromise(promise) {
  return Object.freeze(new LoadingLoadable(promise));
}
function loadableLoading() {
  return Object.freeze(new LoadingLoadable(new Promise(function () {})));
}
function loadableAllArray(inputs) {
  return inputs.every(function (i) {
    return i.state === 'hasValue';
  }) ? loadableWithValue(inputs.map(function (i) {
    return i.contents;
  })) : inputs.some(function (i) {
    return i.state === 'hasError';
  }) ? loadableWithError(Recoil_nullthrows(inputs.find(function (i) {
    return i.state === 'hasError';
  }), 'Invalid loadable passed to loadableAll').contents) : loadableWithPromise(Promise.all(inputs.map(function (i) {
    return i.contents;
  })));
}
function loadableAll(inputs) {
  var unwrapedInputs = Array.isArray(inputs) ? inputs : Object.getOwnPropertyNames(inputs).map(function (key) {
    return inputs[key];
  });
  var normalizedInputs = unwrapedInputs.map(function (x) {
    return isLoadable(x) ? x : Recoil_isPromise(x) ? loadableWithPromise(x) : loadableWithValue(x);
  });
  var output = loadableAllArray(normalizedInputs);
  return Array.isArray(inputs) ?
  // $FlowIssue[incompatible-return]
  output :
  // Object.getOwnPropertyNames() has consistent key ordering with ES6
  // $FlowIssue[incompatible-call]
  output.map(function (outputs) {
    return Object.getOwnPropertyNames(inputs).reduce(
    // $FlowFixMe[invalid-computed-prop]
    function (out, key, idx) {
      return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, out), {}, (0,defineProperty/* default */.Z)({}, key, outputs[idx]));
    }, {});
  });
}
function isLoadable(x) {
  return x instanceof BaseLoadable;
}
var LoadableStaticInterface = {
  of: function of(value) {
    return Recoil_isPromise(value) ? loadableWithPromise(value) : isLoadable(value) ? value : loadableWithValue(value);
  },
  error: function error(_error) {
    return loadableWithError(_error);
  },
  // $FlowIssue[incompatible-return]
  loading: function loading() {
    return loadableLoading();
  },
  // $FlowIssue[unclear-type]
  all: loadableAll,
  isLoadable: isLoadable
};
var Recoil_Loadable = {
  loadableWithValue: loadableWithValue,
  loadableWithError: loadableWithError,
  loadableWithPromise: loadableWithPromise,
  loadableLoading: loadableLoading,
  loadableAll: loadableAll,
  isLoadable: isLoadable,
  RecoilLoadable: LoadableStaticInterface
};
var Recoil_Loadable_1 = Recoil_Loadable.loadableWithValue;
var Recoil_Loadable_2 = Recoil_Loadable.loadableWithError;
var Recoil_Loadable_3 = Recoil_Loadable.loadableWithPromise;
var Recoil_Loadable_4 = Recoil_Loadable.loadableLoading;
var Recoil_Loadable_5 = Recoil_Loadable.loadableAll;
var Recoil_Loadable_6 = Recoil_Loadable.isLoadable;
var Recoil_Loadable_7 = Recoil_Loadable.RecoilLoadable;
var Recoil_Loadable$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  loadableWithValue: Recoil_Loadable_1,
  loadableWithError: Recoil_Loadable_2,
  loadableWithPromise: Recoil_Loadable_3,
  loadableLoading: Recoil_Loadable_4,
  loadableAll: Recoil_Loadable_5,
  isLoadable: Recoil_Loadable_6,
  RecoilLoadable: Recoil_Loadable_7
});
var env = {
  RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED: true,
  // Note: RECOIL_GKS_ENABLED settings will only be honored in OSS builds of Recoil
  RECOIL_GKS_ENABLED: new Set(['recoil_hamt_2020', 'recoil_sync_external_store', 'recoil_suppress_rerender_in_callback', 'recoil_memory_managament_2020'])
};
function readProcessEnvBooleanFlag(name, set) {
  var _process$env$name, _process$env$name$toL;
  var sanitizedValue = (_process$env$name = ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"})[name]) === null || _process$env$name === void 0 ? void 0 : (_process$env$name$toL = _process$env$name.toLowerCase()) === null || _process$env$name$toL === void 0 ? void 0 : _process$env$name$toL.trim();
  if (sanitizedValue == null || sanitizedValue === '') {
    return;
  }
  var allowedValues = ['true', 'false'];
  if (!allowedValues.includes(sanitizedValue)) {
    throw Recoil_err("process.env.".concat(name, " value must be 'true', 'false', or empty: ").concat(sanitizedValue));
  }
  set(sanitizedValue === 'true');
}
function readProcessEnvStringArrayFlag(name, set) {
  var _process$env$name2;
  var sanitizedValue = (_process$env$name2 = ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"})[name]) === null || _process$env$name2 === void 0 ? void 0 : _process$env$name2.trim();
  if (sanitizedValue == null || sanitizedValue === '') {
    return;
  }
  set(sanitizedValue.split(/\s*,\s*|\s+/));
}
/**
 * Allow NodeJS/NextJS/etc to set the initial state through process.env variable
 * Note:  we don't assume 'process' is available in all runtime environments
 *
 * @see https://github.com/facebookexperimental/Recoil/issues/733
 */

function applyProcessEnvFlagOverrides() {
  var _process;

  // note: this check is needed in addition to the check below, runtime error will occur without it!
  // eslint-disable-next-line fb-www/typeof-undefined
  if (typeof process === 'undefined') {
    return;
  }
  if (((_process = process) === null || _process === void 0 ? void 0 : ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"})) == null) {
    return;
  }
  readProcessEnvBooleanFlag('RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED', function (value) {
    env.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED = value;
  });
  readProcessEnvStringArrayFlag('RECOIL_GKS_ENABLED', function (value) {
    value.forEach(function (gk) {
      env.RECOIL_GKS_ENABLED.add(gk);
    });
  });
}
applyProcessEnvFlagOverrides();
var Recoil_RecoilEnv = env;
function Recoil_gkx_OSS(gk) {
  return Recoil_RecoilEnv.RECOIL_GKS_ENABLED.has(gk);
}
Recoil_gkx_OSS.setPass = function (gk) {
  Recoil_RecoilEnv.RECOIL_GKS_ENABLED.add(gk);
};
Recoil_gkx_OSS.setFail = function (gk) {
  Recoil_RecoilEnv.RECOIL_GKS_ENABLED.delete(gk);
};
Recoil_gkx_OSS.clear = function () {
  Recoil_RecoilEnv.RECOIL_GKS_ENABLED.clear();
};
var Recoil_gkx = Recoil_gkx_OSS; // @oss-only

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

function recoverableViolation(message, _projectName) {
  var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
    error = _ref2.error;
  if (false) {}
  return null;
}
var recoverableViolation_1 = recoverableViolation;

// @oss-only

var Recoil_recoverableViolation = recoverableViolation_1;
var _createMutableSource, _useMutableSource, _useSyncExternalStore;
var createMutableSource =
// flowlint-next-line unclear-type:off
(_createMutableSource = _react_18_2_0_react.createMutableSource) !== null && _createMutableSource !== void 0 ? _createMutableSource : _react_18_2_0_react.unstable_createMutableSource;
var useMutableSource =
// flowlint-next-line unclear-type:off
(_useMutableSource = _react_18_2_0_react.useMutableSource) !== null && _useMutableSource !== void 0 ? _useMutableSource : _react_18_2_0_react.unstable_useMutableSource; // https://github.com/reactwg/react-18/discussions/86

var useSyncExternalStore =
// flowlint-next-line unclear-type:off
(_useSyncExternalStore = _react_18_2_0_react.useSyncExternalStore) !== null && _useSyncExternalStore !== void 0 ? _useSyncExternalStore :
// flowlint-next-line unclear-type:off
_react_18_2_0_react.unstable_useSyncExternalStore;
var ReactRendererVersionMismatchWarnOnce = false; // Check if the current renderer supports `useSyncExternalStore()`.
// Since React goes through a proxy dispatcher and the current renderer can
// change we can't simply check if `React.useSyncExternalStore()` is defined.

function currentRendererSupportsUseSyncExternalStore() {
  var _ReactCurrentDispatch;

  // $FlowFixMe[incompatible-use]
  var _react$__SECRET_INTER =
    /* $FlowFixMe[prop-missing] This workaround was approved as a safer mechanism
     * to detect if the current renderer supports useSyncExternalStore()
     * https://fb.workplace.com/groups/reactjs/posts/9558682330846963/ */
    _react_18_2_0_react.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
    ReactCurrentDispatcher = _react$__SECRET_INTER.ReactCurrentDispatcher,
    ReactCurrentOwner = _react$__SECRET_INTER.ReactCurrentOwner;
  var dispatcher = (_ReactCurrentDispatch = ReactCurrentDispatcher === null || ReactCurrentDispatcher === void 0 ? void 0 : ReactCurrentDispatcher.current) !== null && _ReactCurrentDispatch !== void 0 ? _ReactCurrentDispatch : ReactCurrentOwner.currentDispatcher;
  var isUseSyncExternalStoreSupported = dispatcher.useSyncExternalStore != null;
  if (useSyncExternalStore && !isUseSyncExternalStoreSupported && !ReactRendererVersionMismatchWarnOnce) {
    ReactRendererVersionMismatchWarnOnce = true;
    Recoil_recoverableViolation('A React renderer without React 18+ API support is being used with React 18+.');
  }
  return isUseSyncExternalStoreSupported;
}

/**
 * mode: The React API and approach to use for syncing state with React
 * early: Re-renders from Recoil updates occur:
 *    1) earlier
 *    2) in sync with React updates in the same batch
 *    3) before transaction observers instead of after.
 * concurrent: Is the current mode compatible with Concurrent Mode and useTransition()
 */
function reactMode() {
  // NOTE: This mode is currently broken with some Suspense cases
  // see Recoil_selector-test.js
  if (Recoil_gkx('recoil_transition_support')) {
    return {
      mode: 'TRANSITION_SUPPORT',
      early: true,
      concurrent: true
    };
  }
  if (Recoil_gkx('recoil_sync_external_store') && useSyncExternalStore != null) {
    return {
      mode: 'SYNC_EXTERNAL_STORE',
      early: true,
      concurrent: false
    };
  }
  if (Recoil_gkx('recoil_mutable_source') && useMutableSource != null && typeof window !== 'undefined' && !window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE) {
    return Recoil_gkx('recoil_suppress_rerender_in_callback') ? {
      mode: 'MUTABLE_SOURCE',
      early: true,
      concurrent: true
    } : {
      mode: 'MUTABLE_SOURCE',
      early: false,
      concurrent: false
    };
  }
  return Recoil_gkx('recoil_suppress_rerender_in_callback') ? {
    mode: 'LEGACY',
    early: true,
    concurrent: false
  } : {
    mode: 'LEGACY',
    early: false,
    concurrent: false
  };
} // TODO Need to figure out if there is a standard/open-source equivalent to see if hot module replacement is happening:

function isFastRefreshEnabled() {
  // @fb-only: const {isAcceptingUpdate} = require('__debug');
  // @fb-only: return typeof isAcceptingUpdate === 'function' && isAcceptingUpdate();
  return false; // @oss-only
}

var Recoil_ReactMode = {
  createMutableSource: createMutableSource,
  useMutableSource: useMutableSource,
  useSyncExternalStore: useSyncExternalStore,
  currentRendererSupportsUseSyncExternalStore: currentRendererSupportsUseSyncExternalStore,
  reactMode: reactMode,
  isFastRefreshEnabled: isFastRefreshEnabled
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

// eslint-disable-next-line no-unused-vars
var AbstractRecoilValue = /*#__PURE__*/function () {
  function AbstractRecoilValue(newKey) {
    (0,classCallCheck/* default */.Z)(this, AbstractRecoilValue);
    _defineProperty(this, "key", void 0);
    this.key = newKey;
  }
  (0,createClass/* default */.Z)(AbstractRecoilValue, [{
    key: "toJSON",
    value: function toJSON() {
      return {
        key: this.key
      };
    }
  }]);
  return AbstractRecoilValue;
}();
var RecoilState = /*#__PURE__*/function (_AbstractRecoilValue) {
  (0,inherits/* default */.Z)(RecoilState, _AbstractRecoilValue);
  var _super4 = (0,createSuper/* default */.Z)(RecoilState);
  function RecoilState() {
    (0,classCallCheck/* default */.Z)(this, RecoilState);
    return _super4.apply(this, arguments);
  }
  return (0,createClass/* default */.Z)(RecoilState);
}(AbstractRecoilValue);
var RecoilValueReadOnly = /*#__PURE__*/function (_AbstractRecoilValue2) {
  (0,inherits/* default */.Z)(RecoilValueReadOnly, _AbstractRecoilValue2);
  var _super5 = (0,createSuper/* default */.Z)(RecoilValueReadOnly);
  function RecoilValueReadOnly() {
    (0,classCallCheck/* default */.Z)(this, RecoilValueReadOnly);
    return _super5.apply(this, arguments);
  }
  return (0,createClass/* default */.Z)(RecoilValueReadOnly);
}(AbstractRecoilValue);
function isRecoilValue(x) {
  return x instanceof RecoilState || x instanceof RecoilValueReadOnly;
}
var Recoil_RecoilValue = {
  AbstractRecoilValue: AbstractRecoilValue,
  RecoilState: RecoilState,
  RecoilValueReadOnly: RecoilValueReadOnly,
  isRecoilValue: isRecoilValue
};
var Recoil_RecoilValue_1 = Recoil_RecoilValue.AbstractRecoilValue;
var Recoil_RecoilValue_2 = Recoil_RecoilValue.RecoilState;
var Recoil_RecoilValue_3 = Recoil_RecoilValue.RecoilValueReadOnly;
var Recoil_RecoilValue_4 = Recoil_RecoilValue.isRecoilValue;
var Recoil_RecoilValue$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  AbstractRecoilValue: Recoil_RecoilValue_1,
  RecoilState: Recoil_RecoilValue_2,
  RecoilValueReadOnly: Recoil_RecoilValue_3,
  isRecoilValue: Recoil_RecoilValue_4
});

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

function sprintf(format) {
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
    args[_key - 1] = arguments[_key];
  }
  var index = 0;
  return format.replace(/%s/g, function () {
    return String(args[index++]);
  });
}
var sprintf_1 = (/* unused pure expression or super */ null && (sprintf));
function expectationViolation(format) {
  if (false) { var error, message, _len2, args, _key2; }
}
var expectationViolation_1 = expectationViolation;

// @oss-only

var Recoil_expectationViolation = expectationViolation_1;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * Creates a new iterable whose output is generated by passing the input
 * iterable's values through the mapper function.
 */

function mapIterable(iterable, callback) {
  // Use generator to create iterable/iterator
  return /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
    var index, _iterator, _step, value;
    return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          index = 0;
          _iterator = _createForOfIteratorHelper(iterable);
          _context.prev = 2;
          _iterator.s();
        case 4:
          if ((_step = _iterator.n()).done) {
            _context.next = 10;
            break;
          }
          value = _step.value;
          _context.next = 8;
          return callback(value, index++);
        case 8:
          _context.next = 4;
          break;
        case 10:
          _context.next = 15;
          break;
        case 12:
          _context.prev = 12;
          _context.t0 = _context["catch"](2);
          _iterator.e(_context.t0);
        case 15:
          _context.prev = 15;
          _iterator.f();
          return _context.finish(15);
        case 18:
        case "end":
          return _context.stop();
      }
    }, _callee, null, [[2, 12, 15, 18]]);
  })();
}
var Recoil_mapIterable = mapIterable;
var isFastRefreshEnabled$1 = Recoil_ReactMode.isFastRefreshEnabled;
var DefaultValue = /*#__PURE__*/(0,createClass/* default */.Z)(function DefaultValue() {
  (0,classCallCheck/* default */.Z)(this, DefaultValue);
});
var DEFAULT_VALUE = new DefaultValue();
// flowlint-next-line unclear-type:off
var nodes = new Map(); // flowlint-next-line unclear-type:off

var recoilValues = new Map();
/* eslint-disable no-redeclare */

function recoilValuesForKeys(keys) {
  return Recoil_mapIterable(keys, function (key) {
    return Recoil_nullthrows(recoilValues.get(key));
  });
}
function checkForDuplicateAtomKey(key) {
  if (nodes.has(key)) {
    var message = "Duplicate atom key \"".concat(key, "\". This is a FATAL ERROR in\n      production. But it is safe to ignore this warning if it occurred because of\n      hot module replacement.");
    if (false) {} else {
      // @fb-only: recoverableViolation(message, 'recoil');
      console.warn(message); // @oss-only
    }
  }
}

function registerNode(node) {
  if (Recoil_RecoilEnv.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED) {
    checkForDuplicateAtomKey(node.key);
  }
  nodes.set(node.key, node);
  var recoilValue = node.set == null ? new Recoil_RecoilValue$1.RecoilValueReadOnly(node.key) : new Recoil_RecoilValue$1.RecoilState(node.key);
  recoilValues.set(node.key, recoilValue);
  return recoilValue;
}
/* eslint-enable no-redeclare */
var NodeMissingError = /*#__PURE__*/function (_Error) {
  (0,inherits/* default */.Z)(NodeMissingError, _Error);
  var _super6 = (0,createSuper/* default */.Z)(NodeMissingError);
  function NodeMissingError() {
    (0,classCallCheck/* default */.Z)(this, NodeMissingError);
    return _super6.apply(this, arguments);
  }
  return (0,createClass/* default */.Z)(NodeMissingError);
}( /*#__PURE__*/_wrapNativeSuper(Error)); // flowlint-next-line unclear-type:off
function getNode(key) {
  var node = nodes.get(key);
  if (node == null) {
    throw new NodeMissingError("Missing definition for RecoilValue: \"".concat(key, "\"\""));
  }
  return node;
} // flowlint-next-line unclear-type:off

function getNodeMaybe(key) {
  return nodes.get(key);
}
var configDeletionHandlers = new Map();
function deleteNodeConfigIfPossible(key) {
  var _node$shouldDeleteCon;
  if (!Recoil_gkx('recoil_memory_managament_2020')) {
    return;
  }
  var node = nodes.get(key);
  if (node !== null && node !== void 0 && (_node$shouldDeleteCon = node.shouldDeleteConfigOnRelease) !== null && _node$shouldDeleteCon !== void 0 && _node$shouldDeleteCon.call(node)) {
    var _getConfigDeletionHan;
    nodes.delete(key);
    (_getConfigDeletionHan = getConfigDeletionHandler(key)) === null || _getConfigDeletionHan === void 0 ? void 0 : _getConfigDeletionHan();
    configDeletionHandlers.delete(key);
  }
}
function setConfigDeletionHandler(key, fn) {
  if (!Recoil_gkx('recoil_memory_managament_2020')) {
    return;
  }
  if (fn === undefined) {
    configDeletionHandlers.delete(key);
  } else {
    configDeletionHandlers.set(key, fn);
  }
}
function getConfigDeletionHandler(key) {
  return configDeletionHandlers.get(key);
}
var Recoil_Node = {
  nodes: nodes,
  recoilValues: recoilValues,
  registerNode: registerNode,
  getNode: getNode,
  getNodeMaybe: getNodeMaybe,
  deleteNodeConfigIfPossible: deleteNodeConfigIfPossible,
  setConfigDeletionHandler: setConfigDeletionHandler,
  getConfigDeletionHandler: getConfigDeletionHandler,
  recoilValuesForKeys: recoilValuesForKeys,
  NodeMissingError: NodeMissingError,
  DefaultValue: DefaultValue,
  DEFAULT_VALUE: DEFAULT_VALUE
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

function enqueueExecution(s, f) {
  f();
}
var Recoil_Queue = {
  enqueueExecution: enqueueExecution
};
function createCommonjsModule(fn, module) {
  return module = {
    exports: {}
  }, fn(module, module.exports), module.exports;
}
var hamt_1 = createCommonjsModule(function (module) {
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  };
  /**
      @fileOverview Hash Array Mapped Trie.
  
      Code based on: https://github.com/exclipy/pdata
  */

  var hamt = {}; // export

  /* Configuration
   ******************************************************************************/

  var SIZE = 5;
  var BUCKET_SIZE = Math.pow(2, SIZE);
  var MASK = BUCKET_SIZE - 1;
  var MAX_INDEX_NODE = BUCKET_SIZE / 2;
  var MIN_ARRAY_NODE = BUCKET_SIZE / 4;
  /*
   ******************************************************************************/

  var nothing = {};
  var constant = function constant(x) {
    return function () {
      return x;
    };
  };
  /**
      Get 32 bit hash of string.
  
      Based on:
      http://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery
  */

  var hash = hamt.hash = function (str) {
    var type = typeof str === 'undefined' ? 'undefined' : _typeof(str);
    if (type === 'number') return str;
    if (type !== 'string') str += '';
    var hash = 0;
    for (var i = 0, len = str.length; i < len; ++i) {
      var c = str.charCodeAt(i);
      hash = (hash << 5) - hash + c | 0;
    }
    return hash;
  };
  /* Bit Ops
   ******************************************************************************/

  /**
      Hamming weight.
  
      Taken from: http://jsperf.com/hamming-weight
  */

  var popcount = function popcount(x) {
    x -= x >> 1 & 0x55555555;
    x = (x & 0x33333333) + (x >> 2 & 0x33333333);
    x = x + (x >> 4) & 0x0f0f0f0f;
    x += x >> 8;
    x += x >> 16;
    return x & 0x7f;
  };
  var hashFragment = function hashFragment(shift, h) {
    return h >>> shift & MASK;
  };
  var toBitmap = function toBitmap(x) {
    return 1 << x;
  };
  var fromBitmap = function fromBitmap(bitmap, bit) {
    return popcount(bitmap & bit - 1);
  };
  /* Array Ops
   ******************************************************************************/

  /**
      Set a value in an array.
  
      @param mutate Should the input array be mutated?
      @param at Index to change.
      @param v New value
      @param arr Array.
  */

  var arrayUpdate = function arrayUpdate(mutate, at, v, arr) {
    var out = arr;
    if (!mutate) {
      var len = arr.length;
      out = new Array(len);
      for (var i = 0; i < len; ++i) {
        out[i] = arr[i];
      }
    }
    out[at] = v;
    return out;
  };
  /**
      Remove a value from an array.
  
      @param mutate Should the input array be mutated?
      @param at Index to remove.
      @param arr Array.
  */

  var arraySpliceOut = function arraySpliceOut(mutate, at, arr) {
    var newLen = arr.length - 1;
    var i = 0;
    var g = 0;
    var out = arr;
    if (mutate) {
      i = g = at;
    } else {
      out = new Array(newLen);
      while (i < at) {
        out[g++] = arr[i++];
      }
    }
    ++i;
    while (i <= newLen) {
      out[g++] = arr[i++];
    }
    if (mutate) {
      out.length = newLen;
    }
    return out;
  };
  /**
      Insert a value into an array.
  
      @param mutate Should the input array be mutated?
      @param at Index to insert at.
      @param v Value to insert,
      @param arr Array.
  */

  var arraySpliceIn = function arraySpliceIn(mutate, at, v, arr) {
    var len = arr.length;
    if (mutate) {
      var _i = len;
      while (_i >= at) {
        arr[_i--] = arr[_i];
      }
      arr[at] = v;
      return arr;
    }
    var i = 0,
      g = 0;
    var out = new Array(len + 1);
    while (i < at) {
      out[g++] = arr[i++];
    }
    out[at] = v;
    while (i < len) {
      out[++g] = arr[i++];
    }
    return out;
  };
  /* Node Structures
   ******************************************************************************/

  var LEAF = 1;
  var COLLISION = 2;
  var INDEX = 3;
  var ARRAY = 4;
  /**
      Empty node.
  */

  var empty = {
    __hamt_isEmpty: true
  };
  var isEmptyNode = function isEmptyNode(x) {
    return x === empty || x && x.__hamt_isEmpty;
  };
  /**
      Leaf holding a value.
  
      @member edit Edit of the node.
      @member hash Hash of key.
      @member key Key.
      @member value Value stored.
  */

  var Leaf = function Leaf(edit, hash, key, value) {
    return {
      type: LEAF,
      edit: edit,
      hash: hash,
      key: key,
      value: value,
      _modify: Leaf__modify
    };
  };
  /**
      Leaf holding multiple values with the same hash but different keys.
  
      @member edit Edit of the node.
      @member hash Hash of key.
      @member children Array of collision children node.
  */

  var Collision = function Collision(edit, hash, children) {
    return {
      type: COLLISION,
      edit: edit,
      hash: hash,
      children: children,
      _modify: Collision__modify
    };
  };
  /**
      Internal node with a sparse set of children.
  
      Uses a bitmap and array to pack children.
  
    @member edit Edit of the node.
      @member mask Bitmap that encode the positions of children in the array.
      @member children Array of child nodes.
  */

  var IndexedNode = function IndexedNode(edit, mask, children) {
    return {
      type: INDEX,
      edit: edit,
      mask: mask,
      children: children,
      _modify: IndexedNode__modify
    };
  };
  /**
      Internal node with many children.
  
      @member edit Edit of the node.
      @member size Number of children.
      @member children Array of child nodes.
  */

  var ArrayNode = function ArrayNode(edit, size, children) {
    return {
      type: ARRAY,
      edit: edit,
      size: size,
      children: children,
      _modify: ArrayNode__modify
    };
  };
  /**
      Is `node` a leaf node?
  */

  var isLeaf = function isLeaf(node) {
    return node === empty || node.type === LEAF || node.type === COLLISION;
  };
  /* Internal node operations.
   ******************************************************************************/

  /**
      Expand an indexed node into an array node.
  
    @param edit Current edit.
      @param frag Index of added child.
      @param child Added child.
      @param mask Index node mask before child added.
      @param subNodes Index node children before child added.
  */

  var expand = function expand(edit, frag, child, bitmap, subNodes) {
    var arr = [];
    var bit = bitmap;
    var count = 0;
    for (var i = 0; bit; ++i) {
      if (bit & 1) arr[i] = subNodes[count++];
      bit >>>= 1;
    }
    arr[frag] = child;
    return ArrayNode(edit, count + 1, arr);
  };
  /**
      Collapse an array node into a indexed node.
  
    @param edit Current edit.
      @param count Number of elements in new array.
      @param removed Index of removed element.
      @param elements Array node children before remove.
  */

  var pack = function pack(edit, count, removed, elements) {
    var children = new Array(count - 1);
    var g = 0;
    var bitmap = 0;
    for (var i = 0, len = elements.length; i < len; ++i) {
      if (i !== removed) {
        var elem = elements[i];
        if (elem && !isEmptyNode(elem)) {
          children[g++] = elem;
          bitmap |= 1 << i;
        }
      }
    }
    return IndexedNode(edit, bitmap, children);
  };
  /**
      Merge two leaf nodes.
  
      @param shift Current shift.
      @param h1 Node 1 hash.
      @param n1 Node 1.
      @param h2 Node 2 hash.
      @param n2 Node 2.
  */

  var mergeLeaves = function mergeLeaves(edit, shift, h1, n1, h2, n2) {
    if (h1 === h2) return Collision(edit, h1, [n2, n1]);
    var subH1 = hashFragment(shift, h1);
    var subH2 = hashFragment(shift, h2);
    return IndexedNode(edit, toBitmap(subH1) | toBitmap(subH2), subH1 === subH2 ? [mergeLeaves(edit, shift + SIZE, h1, n1, h2, n2)] : subH1 < subH2 ? [n1, n2] : [n2, n1]);
  };
  /**
      Update an entry in a collision list.
  
      @param mutate Should mutation be used?
      @param edit Current edit.
      @param keyEq Key compare function.
      @param hash Hash of collision.
      @param list Collision list.
      @param f Update function.
      @param k Key to update.
      @param size Size ref.
  */

  var updateCollisionList = function updateCollisionList(mutate, edit, keyEq, h, list, f, k, size) {
    var len = list.length;
    for (var i = 0; i < len; ++i) {
      var child = list[i];
      if (keyEq(k, child.key)) {
        var value = child.value;
        var _newValue = f(value);
        if (_newValue === value) return list;
        if (_newValue === nothing) {
          --size.value;
          return arraySpliceOut(mutate, i, list);
        }
        return arrayUpdate(mutate, i, Leaf(edit, h, k, _newValue), list);
      }
    }
    var newValue = f();
    if (newValue === nothing) return list;
    ++size.value;
    return arrayUpdate(mutate, len, Leaf(edit, h, k, newValue), list);
  };
  var canEditNode = function canEditNode(edit, node) {
    return edit === node.edit;
  };
  /* Editing
   ******************************************************************************/

  var Leaf__modify = function Leaf__modify(edit, keyEq, shift, f, h, k, size) {
    if (keyEq(k, this.key)) {
      var _v = f(this.value);
      if (_v === this.value) return this;else if (_v === nothing) {
        --size.value;
        return empty;
      }
      if (canEditNode(edit, this)) {
        this.value = _v;
        return this;
      }
      return Leaf(edit, h, k, _v);
    }
    var v = f();
    if (v === nothing) return this;
    ++size.value;
    return mergeLeaves(edit, shift, this.hash, this, h, Leaf(edit, h, k, v));
  };
  var Collision__modify = function Collision__modify(edit, keyEq, shift, f, h, k, size) {
    if (h === this.hash) {
      var canEdit = canEditNode(edit, this);
      var list = updateCollisionList(canEdit, edit, keyEq, this.hash, this.children, f, k, size);
      if (list === this.children) return this;
      return list.length > 1 ? Collision(edit, this.hash, list) : list[0]; // collapse single element collision list
    }

    var v = f();
    if (v === nothing) return this;
    ++size.value;
    return mergeLeaves(edit, shift, this.hash, this, h, Leaf(edit, h, k, v));
  };
  var IndexedNode__modify = function IndexedNode__modify(edit, keyEq, shift, f, h, k, size) {
    var mask = this.mask;
    var children = this.children;
    var frag = hashFragment(shift, h);
    var bit = toBitmap(frag);
    var indx = fromBitmap(mask, bit);
    var exists = mask & bit;
    var current = exists ? children[indx] : empty;
    var child = current._modify(edit, keyEq, shift + SIZE, f, h, k, size);
    if (current === child) return this;
    var canEdit = canEditNode(edit, this);
    var bitmap = mask;
    var newChildren = void 0;
    if (exists && isEmptyNode(child)) {
      // remove
      bitmap &= ~bit;
      if (!bitmap) return empty;
      if (children.length <= 2 && isLeaf(children[indx ^ 1])) return children[indx ^ 1]; // collapse

      newChildren = arraySpliceOut(canEdit, indx, children);
    } else if (!exists && !isEmptyNode(child)) {
      // add
      if (children.length >= MAX_INDEX_NODE) return expand(edit, frag, child, mask, children);
      bitmap |= bit;
      newChildren = arraySpliceIn(canEdit, indx, child, children);
    } else {
      // modify
      newChildren = arrayUpdate(canEdit, indx, child, children);
    }
    if (canEdit) {
      this.mask = bitmap;
      this.children = newChildren;
      return this;
    }
    return IndexedNode(edit, bitmap, newChildren);
  };
  var ArrayNode__modify = function ArrayNode__modify(edit, keyEq, shift, f, h, k, size) {
    var count = this.size;
    var children = this.children;
    var frag = hashFragment(shift, h);
    var child = children[frag];
    var newChild = (child || empty)._modify(edit, keyEq, shift + SIZE, f, h, k, size);
    if (child === newChild) return this;
    var canEdit = canEditNode(edit, this);
    var newChildren = void 0;
    if (isEmptyNode(child) && !isEmptyNode(newChild)) {
      // add
      ++count;
      newChildren = arrayUpdate(canEdit, frag, newChild, children);
    } else if (!isEmptyNode(child) && isEmptyNode(newChild)) {
      // remove
      --count;
      if (count <= MIN_ARRAY_NODE) return pack(edit, count, frag, children);
      newChildren = arrayUpdate(canEdit, frag, empty, children);
    } else {
      // modify
      newChildren = arrayUpdate(canEdit, frag, newChild, children);
    }
    if (canEdit) {
      this.size = count;
      this.children = newChildren;
      return this;
    }
    return ArrayNode(edit, count, newChildren);
  };
  empty._modify = function (edit, keyEq, shift, f, h, k, size) {
    var v = f();
    if (v === nothing) return empty;
    ++size.value;
    return Leaf(edit, h, k, v);
  };
  /*
   ******************************************************************************/

  function Map(editable, edit, config, root, size) {
    this._editable = editable;
    this._edit = edit;
    this._config = config;
    this._root = root;
    this._size = size;
  }
  Map.prototype.setTree = function (newRoot, newSize) {
    if (this._editable) {
      this._root = newRoot;
      this._size = newSize;
      return this;
    }
    return newRoot === this._root ? this : new Map(this._editable, this._edit, this._config, newRoot, newSize);
  };
  /* Queries
   ******************************************************************************/

  /**
      Lookup the value for `key` in `map` using a custom `hash`.
  
      Returns the value or `alt` if none.
  */

  var tryGetHash = hamt.tryGetHash = function (alt, hash, key, map) {
    var node = map._root;
    var shift = 0;
    var keyEq = map._config.keyEq;
    while (true) {
      switch (node.type) {
        case LEAF:
          {
            return keyEq(key, node.key) ? node.value : alt;
          }
        case COLLISION:
          {
            if (hash === node.hash) {
              var children = node.children;
              for (var i = 0, len = children.length; i < len; ++i) {
                var child = children[i];
                if (keyEq(key, child.key)) return child.value;
              }
            }
            return alt;
          }
        case INDEX:
          {
            var frag = hashFragment(shift, hash);
            var bit = toBitmap(frag);
            if (node.mask & bit) {
              node = node.children[fromBitmap(node.mask, bit)];
              shift += SIZE;
              break;
            }
            return alt;
          }
        case ARRAY:
          {
            node = node.children[hashFragment(shift, hash)];
            if (node) {
              shift += SIZE;
              break;
            }
            return alt;
          }
        default:
          return alt;
      }
    }
  };
  Map.prototype.tryGetHash = function (alt, hash, key) {
    return tryGetHash(alt, hash, key, this);
  };
  /**
      Lookup the value for `key` in `map` using internal hash function.
  
      @see `tryGetHash`
  */

  var tryGet = hamt.tryGet = function (alt, key, map) {
    return tryGetHash(alt, map._config.hash(key), key, map);
  };
  Map.prototype.tryGet = function (alt, key) {
    return tryGet(alt, key, this);
  };
  /**
      Lookup the value for `key` in `map` using a custom `hash`.
  
      Returns the value or `undefined` if none.
  */

  var getHash = hamt.getHash = function (hash, key, map) {
    return tryGetHash(undefined, hash, key, map);
  };
  Map.prototype.getHash = function (hash, key) {
    return getHash(hash, key, this);
  };
  /**
      Lookup the value for `key` in `map` using internal hash function.
  
      @see `get`
  */

  var get = hamt.get = function (key, map) {
    return tryGetHash(undefined, map._config.hash(key), key, map);
  };
  Map.prototype.get = function (key, alt) {
    return tryGet(alt, key, this);
  };
  /**
      Does an entry exist for `key` in `map`? Uses custom `hash`.
  */

  var hasHash = hamt.has = function (hash, key, map) {
    return tryGetHash(nothing, hash, key, map) !== nothing;
  };
  Map.prototype.hasHash = function (hash, key) {
    return hasHash(hash, key, this);
  };
  /**
      Does an entry exist for `key` in `map`? Uses internal hash function.
  */

  var has = hamt.has = function (key, map) {
    return hasHash(map._config.hash(key), key, map);
  };
  Map.prototype.has = function (key) {
    return has(key, this);
  };
  var defKeyCompare = function defKeyCompare(x, y) {
    return x === y;
  };
  /**
      Create an empty map.
  
      @param config Configuration.
  */

  hamt.make = function (config) {
    return new Map(0, 0, {
      keyEq: config && config.keyEq || defKeyCompare,
      hash: config && config.hash || hash
    }, empty, 0);
  };
  /**
      Empty map.
  */

  hamt.empty = hamt.make();
  /**
      Does `map` contain any elements?
  */

  var isEmpty = hamt.isEmpty = function (map) {
    return map && !!isEmptyNode(map._root);
  };
  Map.prototype.isEmpty = function () {
    return isEmpty(this);
  };
  /* Updates
   ******************************************************************************/

  /**
      Alter the value stored for `key` in `map` using function `f` using
      custom hash.
  
      `f` is invoked with the current value for `k` if it exists,
      or no arguments if no such value exists. `modify` will always either
      update or insert a value into the map.
  
      Returns a map with the modified value. Does not alter `map`.
  */

  var modifyHash = hamt.modifyHash = function (f, hash, key, map) {
    var size = {
      value: map._size
    };
    var newRoot = map._root._modify(map._editable ? map._edit : NaN, map._config.keyEq, 0, f, hash, key, size);
    return map.setTree(newRoot, size.value);
  };
  Map.prototype.modifyHash = function (hash, key, f) {
    return modifyHash(f, hash, key, this);
  };
  /**
      Alter the value stored for `key` in `map` using function `f` using
      internal hash function.
  
      @see `modifyHash`
  */

  var modify = hamt.modify = function (f, key, map) {
    return modifyHash(f, map._config.hash(key), key, map);
  };
  Map.prototype.modify = function (key, f) {
    return modify(f, key, this);
  };
  /**
      Store `value` for `key` in `map` using custom `hash`.
  
      Returns a map with the modified value. Does not alter `map`.
  */

  var setHash = hamt.setHash = function (hash, key, value, map) {
    return modifyHash(constant(value), hash, key, map);
  };
  Map.prototype.setHash = function (hash, key, value) {
    return setHash(hash, key, value, this);
  };
  /**
      Store `value` for `key` in `map` using internal hash function.
  
      @see `setHash`
  */

  var set = hamt.set = function (key, value, map) {
    return setHash(map._config.hash(key), key, value, map);
  };
  Map.prototype.set = function (key, value) {
    return set(key, value, this);
  };
  /**
      Remove the entry for `key` in `map`.
  
      Returns a map with the value removed. Does not alter `map`.
  */

  var del = constant(nothing);
  var removeHash = hamt.removeHash = function (hash, key, map) {
    return modifyHash(del, hash, key, map);
  };
  Map.prototype.removeHash = Map.prototype.deleteHash = function (hash, key) {
    return removeHash(hash, key, this);
  };
  /**
      Remove the entry for `key` in `map` using internal hash function.
  
      @see `removeHash`
  */

  var remove = hamt.remove = function (key, map) {
    return removeHash(map._config.hash(key), key, map);
  };
  Map.prototype.remove = Map.prototype.delete = function (key) {
    return remove(key, this);
  };
  /* Mutation
   ******************************************************************************/

  /**
      Mark `map` as mutable.
   */

  var beginMutation = hamt.beginMutation = function (map) {
    return new Map(map._editable + 1, map._edit + 1, map._config, map._root, map._size);
  };
  Map.prototype.beginMutation = function () {
    return beginMutation(this);
  };
  /**
      Mark `map` as immutable.
   */

  var endMutation = hamt.endMutation = function (map) {
    map._editable = map._editable && map._editable - 1;
    return map;
  };
  Map.prototype.endMutation = function () {
    return endMutation(this);
  };
  /**
      Mutate `map` within the context of `f`.
      @param f
      @param map HAMT
  */

  var mutate = hamt.mutate = function (f, map) {
    var transient = beginMutation(map);
    f(transient);
    return endMutation(transient);
  };
  Map.prototype.mutate = function (f) {
    return mutate(f, this);
  };
  /* Traversal
   ******************************************************************************/

  /**
      Apply a continuation.
  */

  var appk = function appk(k) {
    return k && lazyVisitChildren(k[0], k[1], k[2], k[3], k[4]);
  };
  /**
      Recursively visit all values stored in an array of nodes lazily.
  */

  var lazyVisitChildren = function lazyVisitChildren(len, children, i, f, k) {
    while (i < len) {
      var child = children[i++];
      if (child && !isEmptyNode(child)) return lazyVisit(child, f, [len, children, i, f, k]);
    }
    return appk(k);
  };
  /**
      Recursively visit all values stored in `node` lazily.
  */

  var lazyVisit = function lazyVisit(node, f, k) {
    switch (node.type) {
      case LEAF:
        return {
          value: f(node),
          rest: k
        };
      case COLLISION:
      case ARRAY:
      case INDEX:
        var children = node.children;
        return lazyVisitChildren(children.length, children, 0, f, k);
      default:
        return appk(k);
    }
  };
  var DONE = {
    done: true
  };
  /**
      Javascript iterator over a map.
  */

  function MapIterator(v) {
    this.v = v;
  }
  MapIterator.prototype.next = function () {
    if (!this.v) return DONE;
    var v0 = this.v;
    this.v = appk(v0.rest);
    return v0;
  };
  MapIterator.prototype[Symbol.iterator] = function () {
    return this;
  };
  /**
      Lazily visit each value in map with function `f`.
  */

  var visit = function visit(map, f) {
    return new MapIterator(lazyVisit(map._root, f));
  };
  /**
      Get a Javascsript iterator of `map`.
  
      Iterates over `[key, value]` arrays.
  */

  var buildPairs = function buildPairs(x) {
    return [x.key, x.value];
  };
  var entries = hamt.entries = function (map) {
    return visit(map, buildPairs);
  };
  Map.prototype.entries = Map.prototype[Symbol.iterator] = function () {
    return entries(this);
  };
  /**
      Get array of all keys in `map`.
  
      Order is not guaranteed.
  */

  var buildKeys = function buildKeys(x) {
    return x.key;
  };
  var keys = hamt.keys = function (map) {
    return visit(map, buildKeys);
  };
  Map.prototype.keys = function () {
    return keys(this);
  };
  /**
      Get array of all values in `map`.
  
      Order is not guaranteed, duplicates are preserved.
  */

  var buildValues = function buildValues(x) {
    return x.value;
  };
  var values = hamt.values = Map.prototype.values = function (map) {
    return visit(map, buildValues);
  };
  Map.prototype.values = function () {
    return values(this);
  };
  /* Fold
   ******************************************************************************/

  /**
      Visit every entry in the map, aggregating data.
  
      Order of nodes is not guaranteed.
  
      @param f Function mapping accumulated value, value, and key to new value.
      @param z Starting value.
      @param m HAMT
  */

  var fold = hamt.fold = function (f, z, m) {
    var root = m._root;
    if (root.type === LEAF) return f(z, root.value, root.key);
    var toVisit = [root.children];
    var children = void 0;
    while (children = toVisit.pop()) {
      for (var i = 0, len = children.length; i < len;) {
        var child = children[i++];
        if (child && child.type) {
          if (child.type === LEAF) z = f(z, child.value, child.key);else toVisit.push(child.children);
        }
      }
    }
    return z;
  };
  Map.prototype.fold = function (f, z) {
    return fold(f, z, this);
  };
  /**
      Visit every entry in the map, aggregating data.
  
      Order of nodes is not guaranteed.
  
      @param f Function invoked with value and key
      @param map HAMT
  */

  var forEach = hamt.forEach = function (f, map) {
    return fold(function (_, value, key) {
      return f(value, key, map);
    }, null, map);
  };
  Map.prototype.forEach = function (f) {
    return forEach(f, this);
  };
  /* Aggregate
   ******************************************************************************/

  /**
      Get the number of entries in `map`.
  */

  var count = hamt.count = function (map) {
    return map._size;
  };
  Map.prototype.count = function () {
    return count(this);
  };
  Object.defineProperty(Map.prototype, 'size', {
    get: Map.prototype.count
  });
  /* Export
   ******************************************************************************/

  if (module.exports) {
    module.exports = hamt;
  } else {
    undefined.hamt = hamt;
  }
});
var BuiltInMap = /*#__PURE__*/function () {
  function BuiltInMap(existing) {
    (0,classCallCheck/* default */.Z)(this, BuiltInMap);
    _defineProperty(this, "_map", void 0);
    this._map = new Map(existing === null || existing === void 0 ? void 0 : existing.entries());
  }
  (0,createClass/* default */.Z)(BuiltInMap, [{
    key: "keys",
    value: function keys() {
      return this._map.keys();
    }
  }, {
    key: "entries",
    value: function entries() {
      return this._map.entries();
    }
  }, {
    key: "get",
    value: function get(k) {
      return this._map.get(k);
    }
  }, {
    key: "has",
    value: function has(k) {
      return this._map.has(k);
    }
  }, {
    key: "set",
    value: function set(k, v) {
      this._map.set(k, v);
      return this;
    }
  }, {
    key: "delete",
    value: function _delete(k) {
      this._map.delete(k);
      return this;
    }
  }, {
    key: "clone",
    value: function clone() {
      return persistentMap(this);
    }
  }, {
    key: "toMap",
    value: function toMap() {
      return new Map(this._map);
    }
  }]);
  return BuiltInMap;
}();
var HashArrayMappedTrieMap = /*#__PURE__*/function () {
  // Because hamt.empty is not a function there is no way to introduce type
  // parameters on it, so empty is typed as HAMTPlusMap<string, mixed>.
  // $FlowIssue
  function HashArrayMappedTrieMap(existing) {
    (0,classCallCheck/* default */.Z)(this, HashArrayMappedTrieMap);
    _defineProperty(this, "_hamt", hamt_1.empty.beginMutation());
    if (existing instanceof HashArrayMappedTrieMap) {
      var h = existing._hamt.endMutation();
      existing._hamt = h.beginMutation();
      this._hamt = h.beginMutation();
    } else if (existing) {
      var _iterator2 = _createForOfIteratorHelper(existing.entries()),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var _step2$value = (0,slicedToArray/* default */.Z)(_step2.value, 2),
            k = _step2$value[0],
            v = _step2$value[1];
          this._hamt.set(k, v);
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
    }
  }
  (0,createClass/* default */.Z)(HashArrayMappedTrieMap, [{
    key: "keys",
    value: function keys() {
      return this._hamt.keys();
    }
  }, {
    key: "entries",
    value: function entries() {
      return this._hamt.entries();
    }
  }, {
    key: "get",
    value: function get(k) {
      return this._hamt.get(k);
    }
  }, {
    key: "has",
    value: function has(k) {
      return this._hamt.has(k);
    }
  }, {
    key: "set",
    value: function set(k, v) {
      this._hamt.set(k, v);
      return this;
    }
  }, {
    key: "delete",
    value: function _delete(k) {
      this._hamt.delete(k);
      return this;
    }
  }, {
    key: "clone",
    value: function clone() {
      return persistentMap(this);
    }
  }, {
    key: "toMap",
    value: function toMap() {
      return new Map(this._hamt);
    }
  }]);
  return HashArrayMappedTrieMap;
}();
function persistentMap(existing) {
  if (Recoil_gkx('recoil_hamt_2020')) {
    return new HashArrayMappedTrieMap(existing);
  } else {
    return new BuiltInMap(existing);
  }
}
var Recoil_PersistentMap = {
  persistentMap: persistentMap
};
var Recoil_PersistentMap_1 = Recoil_PersistentMap.persistentMap;
var Recoil_PersistentMap$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  persistentMap: Recoil_PersistentMap_1
});

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * Returns a set containing all of the values from the first set that are not
 * present in any of the subsequent sets.
 *
 * Note: this is written procedurally (i.e., without filterSet) for performant
 * use in tight loops.
 */

function differenceSets(set) {
  var ret = new Set();
  for (var _len3 = arguments.length, setsWithValuesToRemove = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
    setsWithValuesToRemove[_key3 - 1] = arguments[_key3];
  }
  var _iterator3 = _createForOfIteratorHelper(set),
    _step3;
  try {
    FIRST: for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
      var value = _step3.value;
      var _iterator4 = _createForOfIteratorHelper(setsWithValuesToRemove),
        _step4;
      try {
        for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
          var otherSet = _step4.value;
          if (otherSet.has(value)) {
            continue FIRST;
          }
        }
      } catch (err) {
        _iterator4.e(err);
      } finally {
        _iterator4.f();
      }
      ret.add(value);
    }
  } catch (err) {
    _iterator3.e(err);
  } finally {
    _iterator3.f();
  }
  return ret;
}
var Recoil_differenceSets = differenceSets;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * Returns a new Map object with the same keys as the original, but with the
 * values replaced with the output of the given callback function.
 */

function mapMap(map, callback) {
  var result = new Map();
  map.forEach(function (value, key) {
    result.set(key, callback(value, key));
  });
  return result;
}
var Recoil_mapMap = mapMap;
function makeGraph() {
  return {
    nodeDeps: new Map(),
    nodeToNodeSubscriptions: new Map()
  };
}
function cloneGraph(graph) {
  return {
    nodeDeps: Recoil_mapMap(graph.nodeDeps, function (s) {
      return new Set(s);
    }),
    nodeToNodeSubscriptions: Recoil_mapMap(graph.nodeToNodeSubscriptions, function (s) {
      return new Set(s);
    })
  };
} // Note that this overwrites the deps of existing nodes, rather than unioning
// the new deps with the old deps.

function mergeDepsIntoGraph(key, newDeps, graph,
// If olderGraph is given then we will not overwrite changes made to the given
// graph compared with olderGraph:
olderGraph) {
  var nodeDeps = graph.nodeDeps,
    nodeToNodeSubscriptions = graph.nodeToNodeSubscriptions;
  var oldDeps = nodeDeps.get(key);
  if (oldDeps && olderGraph && oldDeps !== olderGraph.nodeDeps.get(key)) {
    return;
  } // Update nodeDeps:

  nodeDeps.set(key, newDeps); // Add new deps to nodeToNodeSubscriptions:

  var addedDeps = oldDeps == null ? newDeps : Recoil_differenceSets(newDeps, oldDeps);
  var _iterator5 = _createForOfIteratorHelper(addedDeps),
    _step5;
  try {
    for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
      var _dep = _step5.value;
      if (!nodeToNodeSubscriptions.has(_dep)) {
        nodeToNodeSubscriptions.set(_dep, new Set());
      }
      var _existing = Recoil_nullthrows(nodeToNodeSubscriptions.get(_dep));
      _existing.add(key);
    } // Remove removed deps from nodeToNodeSubscriptions:
  } catch (err) {
    _iterator5.e(err);
  } finally {
    _iterator5.f();
  }
  if (oldDeps) {
    var removedDeps = Recoil_differenceSets(oldDeps, newDeps);
    var _iterator6 = _createForOfIteratorHelper(removedDeps),
      _step6;
    try {
      for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
        var dep = _step6.value;
        if (!nodeToNodeSubscriptions.has(dep)) {
          return;
        }
        var existing = Recoil_nullthrows(nodeToNodeSubscriptions.get(dep));
        existing.delete(key);
        if (existing.size === 0) {
          nodeToNodeSubscriptions.delete(dep);
        }
      }
    } catch (err) {
      _iterator6.e(err);
    } finally {
      _iterator6.f();
    }
  }
}
function saveDepsToStore(key, deps, store, version) {
  var _storeState$nextTree, _storeState$previousT, _storeState$previousT2, _storeState$previousT3;
  var storeState = store.getState();
  if (!(version === storeState.currentTree.version || version === ((_storeState$nextTree = storeState.nextTree) === null || _storeState$nextTree === void 0 ? void 0 : _storeState$nextTree.version) || version === ((_storeState$previousT = storeState.previousTree) === null || _storeState$previousT === void 0 ? void 0 : _storeState$previousT.version))) {
    Recoil_recoverableViolation('Tried to save dependencies to a discarded tree');
  } // Merge the dependencies discovered into the store's dependency map
  // for the version that was read:

  var graph = store.getGraph(version);
  mergeDepsIntoGraph(key, deps, graph); // If this version is not the latest version, also write these dependencies
  // into later versions if they don't already have their own:

  if (version === ((_storeState$previousT2 = storeState.previousTree) === null || _storeState$previousT2 === void 0 ? void 0 : _storeState$previousT2.version)) {
    var currentGraph = store.getGraph(storeState.currentTree.version);
    mergeDepsIntoGraph(key, deps, currentGraph, graph);
  }
  if (version === ((_storeState$previousT3 = storeState.previousTree) === null || _storeState$previousT3 === void 0 ? void 0 : _storeState$previousT3.version) || version === storeState.currentTree.version) {
    var _storeState$nextTree2;
    var nextVersion = (_storeState$nextTree2 = storeState.nextTree) === null || _storeState$nextTree2 === void 0 ? void 0 : _storeState$nextTree2.version;
    if (nextVersion !== undefined) {
      var nextGraph = store.getGraph(nextVersion);
      mergeDepsIntoGraph(key, deps, nextGraph, graph);
    }
  }
}
var Recoil_Graph = {
  cloneGraph: cloneGraph,
  graph: makeGraph,
  saveDepsToStore: saveDepsToStore
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

var nextTreeStateVersion = 0;
var getNextTreeStateVersion = function getNextTreeStateVersion() {
  return nextTreeStateVersion++;
};
var nextStoreID = 0;
var getNextStoreID = function getNextStoreID() {
  return nextStoreID++;
};
var nextComponentID = 0;
var getNextComponentID = function getNextComponentID() {
  return nextComponentID++;
};
var Recoil_Keys = {
  getNextTreeStateVersion: getNextTreeStateVersion,
  getNextStoreID: getNextStoreID,
  getNextComponentID: getNextComponentID
};
var persistentMap$1 = Recoil_PersistentMap$1.persistentMap;
var graph = Recoil_Graph.graph;
var getNextTreeStateVersion$1 = Recoil_Keys.getNextTreeStateVersion;
function makeEmptyTreeState() {
  var version = getNextTreeStateVersion$1();
  return {
    version: version,
    stateID: version,
    transactionMetadata: {},
    dirtyAtoms: new Set(),
    atomValues: persistentMap$1(),
    nonvalidatedAtoms: persistentMap$1()
  };
}
function makeEmptyStoreState() {
  var currentTree = makeEmptyTreeState();
  return {
    currentTree: currentTree,
    nextTree: null,
    previousTree: null,
    commitDepth: 0,
    knownAtoms: new Set(),
    knownSelectors: new Set(),
    transactionSubscriptions: new Map(),
    nodeTransactionSubscriptions: new Map(),
    nodeToComponentSubscriptions: new Map(),
    queuedComponentCallbacks_DEPRECATED: [],
    suspendedComponentResolvers: new Set(),
    graphsByVersion: new Map().set(currentTree.version, graph()),
    retention: {
      referenceCounts: new Map(),
      nodesRetainedByZone: new Map(),
      retainablesToCheckForRelease: new Set()
    },
    nodeCleanupFunctions: new Map()
  };
}
var Recoil_State = {
  makeEmptyTreeState: makeEmptyTreeState,
  makeEmptyStoreState: makeEmptyStoreState,
  getNextTreeStateVersion: getNextTreeStateVersion$1
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
var RetentionZone = /*#__PURE__*/(0,createClass/* default */.Z)(function RetentionZone() {
  (0,classCallCheck/* default */.Z)(this, RetentionZone);
});
function retentionZone() {
  return new RetentionZone();
}
var Recoil_RetentionZone = {
  RetentionZone: RetentionZone,
  retentionZone: retentionZone
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * Utilities for working with built-in Maps and Sets without mutating them.
 *
 * 
 * @format
 * @oncall recoil
 */

function setByAddingToSet(set, v) {
  var next = new Set(set);
  next.add(v);
  return next;
}
function setByDeletingFromSet(set, v) {
  var next = new Set(set);
  next.delete(v);
  return next;
}
function mapBySettingInMap(map, k, v) {
  var next = new Map(map);
  next.set(k, v);
  return next;
}
function mapByUpdatingInMap(map, k, updater) {
  var next = new Map(map);
  next.set(k, updater(next.get(k)));
  return next;
}
function mapByDeletingFromMap(map, k) {
  var next = new Map(map);
  next.delete(k);
  return next;
}
function mapByDeletingMultipleFromMap(map, ks) {
  var next = new Map(map);
  ks.forEach(function (k) {
    return next.delete(k);
  });
  return next;
}
var Recoil_CopyOnWrite = {
  setByAddingToSet: setByAddingToSet,
  setByDeletingFromSet: setByDeletingFromSet,
  mapBySettingInMap: mapBySettingInMap,
  mapByUpdatingInMap: mapByUpdatingInMap,
  mapByDeletingFromMap: mapByDeletingFromMap,
  mapByDeletingMultipleFromMap: mapByDeletingMultipleFromMap
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * Creates a new iterable whose output is generated by passing the input
 * iterable's values through the filter function.
 */

function filterIterable(iterable, predicate) {
  var index, _iterator7, _step7, value;
  return (0,regeneratorRuntime/* default */.Z)().wrap(function filterIterable$(_context2) {
    while (1) switch (_context2.prev = _context2.next) {
      case 0:
        // Use generator to create iterable/iterator
        index = 0;
        _iterator7 = _createForOfIteratorHelper(iterable);
        _context2.prev = 2;
        _iterator7.s();
      case 4:
        if ((_step7 = _iterator7.n()).done) {
          _context2.next = 11;
          break;
        }
        value = _step7.value;
        if (!predicate(value, index++)) {
          _context2.next = 9;
          break;
        }
        _context2.next = 9;
        return value;
      case 9:
        _context2.next = 4;
        break;
      case 11:
        _context2.next = 16;
        break;
      case 13:
        _context2.prev = 13;
        _context2.t0 = _context2["catch"](2);
        _iterator7.e(_context2.t0);
      case 16:
        _context2.prev = 16;
        _iterator7.f();
        return _context2.finish(16);
      case 19:
      case "end":
        return _context2.stop();
    }
  }, _marked, null, [[2, 13, 16, 19]]);
}
var Recoil_filterIterable = filterIterable;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * Return a proxy object based on the provided base and factories objects.
 * The proxy will include all properties of the base object as-is.
 * The factories object contains callbacks to obtain the values of the properies
 * for its keys.
 *
 * This is useful for providing users an object where some properties may be
 * lazily computed only on first access.
 */
// $FlowIssue[unclear-type]

function lazyProxy(base, factories) {
  var proxy = new Proxy(base, {
    // Compute and cache lazy property if not already done.
    get: function get(target, prop) {
      if (!(prop in target) && prop in factories) {
        target[prop] = factories[prop]();
      }
      return target[prop];
    },
    // This method allows user to iterate keys as normal
    ownKeys: function ownKeys(target) {
      return Object.keys(target);
    }
  }); // $FlowIssue[incompatible-return]

  return proxy;
}
var Recoil_lazyProxy = lazyProxy;
var getNode$1 = Recoil_Node.getNode,
  getNodeMaybe$1 = Recoil_Node.getNodeMaybe,
  recoilValuesForKeys$1 = Recoil_Node.recoilValuesForKeys;
var RetentionZone$1 = Recoil_RetentionZone.RetentionZone;
var setByAddingToSet$1 = Recoil_CopyOnWrite.setByAddingToSet;

// flowlint-next-line unclear-type:off

var emptySet = Object.freeze(new Set());
var ReadOnlyRecoilValueError = /*#__PURE__*/function (_Error2) {
  (0,inherits/* default */.Z)(ReadOnlyRecoilValueError, _Error2);
  var _super7 = (0,createSuper/* default */.Z)(ReadOnlyRecoilValueError);
  function ReadOnlyRecoilValueError() {
    (0,classCallCheck/* default */.Z)(this, ReadOnlyRecoilValueError);
    return _super7.apply(this, arguments);
  }
  return (0,createClass/* default */.Z)(ReadOnlyRecoilValueError);
}( /*#__PURE__*/_wrapNativeSuper(Error));
function initializeRetentionForNode(store, nodeKey, retainedBy) {
  if (!Recoil_gkx('recoil_memory_managament_2020')) {
    return function () {
      return undefined;
    };
  }
  var nodesRetainedByZone = store.getState().retention.nodesRetainedByZone;
  function addToZone(zone) {
    var set = nodesRetainedByZone.get(zone);
    if (!set) {
      nodesRetainedByZone.set(zone, set = new Set());
    }
    set.add(nodeKey);
  }
  if (retainedBy instanceof RetentionZone$1) {
    addToZone(retainedBy);
  } else if (Array.isArray(retainedBy)) {
    var _iterator8 = _createForOfIteratorHelper(retainedBy),
      _step8;
    try {
      for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
        var zone = _step8.value;
        addToZone(zone);
      }
    } catch (err) {
      _iterator8.e(err);
    } finally {
      _iterator8.f();
    }
  }
  return function () {
    if (!Recoil_gkx('recoil_memory_managament_2020')) {
      return;
    }
    var _store$getState4 = store.getState(),
      retention = _store$getState4.retention;
    function deleteFromZone(zone) {
      var set = retention.nodesRetainedByZone.get(zone);
      set === null || set === void 0 ? void 0 : set.delete(nodeKey);
      if (set && set.size === 0) {
        retention.nodesRetainedByZone.delete(zone);
      }
    }
    if (retainedBy instanceof RetentionZone$1) {
      deleteFromZone(retainedBy);
    } else if (Array.isArray(retainedBy)) {
      var _iterator9 = _createForOfIteratorHelper(retainedBy),
        _step9;
      try {
        for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
          var _zone = _step9.value;
          deleteFromZone(_zone);
        }
      } catch (err) {
        _iterator9.e(err);
      } finally {
        _iterator9.f();
      }
    }
  };
}
function initializeNodeIfNewToStore(store, treeState, key, trigger) {
  var storeState = store.getState();
  if (storeState.nodeCleanupFunctions.has(key)) {
    return;
  }
  var node = getNode$1(key);
  var retentionCleanup = initializeRetentionForNode(store, key, node.retainedBy);
  var nodeCleanup = node.init(store, treeState, trigger);
  storeState.nodeCleanupFunctions.set(key, function () {
    nodeCleanup();
    retentionCleanup();
  });
}
function initializeNode(store, key, trigger) {
  initializeNodeIfNewToStore(store, store.getState().currentTree, key, trigger);
}
function cleanUpNode(store, key) {
  var _state$nodeCleanupFun;
  var state = store.getState();
  (_state$nodeCleanupFun = state.nodeCleanupFunctions.get(key)) === null || _state$nodeCleanupFun === void 0 ? void 0 : _state$nodeCleanupFun();
  state.nodeCleanupFunctions.delete(key);
} // Get the current value loadable of a node and update the state.
// Update dependencies and subscriptions for selectors.
// Update saved value validation for atoms.

function getNodeLoadable(store, state, key) {
  initializeNodeIfNewToStore(store, state, key, 'get');
  return getNode$1(key).get(store, state);
} // Peek at the current value loadable for a node without any evaluation or state change

function peekNodeLoadable(store, state, key) {
  return getNode$1(key).peek(store, state);
} // Write value directly to state bypassing the Node interface as the node
// definitions may not have been loaded yet when processing the initial snapshot.

function setUnvalidatedAtomValue_DEPRECATED(state, key, newValue) {
  var _node$invalidate;
  var node = getNodeMaybe$1(key);
  node === null || node === void 0 ? void 0 : (_node$invalidate = node.invalidate) === null || _node$invalidate === void 0 ? void 0 : _node$invalidate.call(node, state);
  return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, state), {}, {
    atomValues: state.atomValues.clone().delete(key),
    nonvalidatedAtoms: state.nonvalidatedAtoms.clone().set(key, newValue),
    dirtyAtoms: setByAddingToSet$1(state.dirtyAtoms, key)
  });
} // Return the discovered dependencies and values to be written by setting
// a node value. (Multiple values may be written due to selectors getting to
// set upstreams; deps may be discovered because of reads in updater functions.)

function setNodeValue(store, state, key, newValue) {
  var node = getNode$1(key);
  if (node.set == null) {
    throw new ReadOnlyRecoilValueError("Attempt to set read-only RecoilValue: ".concat(key));
  }
  var set = node.set; // so flow doesn't lose the above refinement.

  initializeNodeIfNewToStore(store, state, key, 'set');
  return set(store, state, newValue);
}
function peekNodeInfo(store, state, key) {
  var storeState = store.getState();
  var graph = store.getGraph(state.version);
  var type = getNode$1(key).nodeType;
  return Recoil_lazyProxy({
    type: type
  }, {
    // $FlowFixMe[underconstrained-implicit-instantiation]
    loadable: function loadable() {
      return peekNodeLoadable(store, state, key);
    },
    isActive: function isActive() {
      return storeState.knownAtoms.has(key) || storeState.knownSelectors.has(key);
    },
    isSet: function isSet() {
      return type === 'selector' ? false : state.atomValues.has(key);
    },
    isModified: function isModified() {
      return state.dirtyAtoms.has(key);
    },
    // Report current dependencies.  If the node hasn't been evaluated, then
    // dependencies may be missing based on the current state.
    deps: function deps() {
      var _graph$nodeDeps$get;
      return recoilValuesForKeys$1((_graph$nodeDeps$get = graph.nodeDeps.get(key)) !== null && _graph$nodeDeps$get !== void 0 ? _graph$nodeDeps$get : []);
    },
    // Reports all "current" subscribers.  Evaluating other nodes or
    // previous in-progress async evaluations may introduce new subscribers.
    subscribers: function subscribers() {
      var _storeState$nodeToCom, _storeState$nodeToCom2;
      return {
        nodes: recoilValuesForKeys$1(Recoil_filterIterable(getDownstreamNodes(store, state, new Set([key])), function (nodeKey) {
          return nodeKey !== key;
        })),
        components: Recoil_mapIterable((_storeState$nodeToCom = (_storeState$nodeToCom2 = storeState.nodeToComponentSubscriptions.get(key)) === null || _storeState$nodeToCom2 === void 0 ? void 0 : _storeState$nodeToCom2.values()) !== null && _storeState$nodeToCom !== void 0 ? _storeState$nodeToCom : [], function (_ref3) {
          var _ref4 = (0,slicedToArray/* default */.Z)(_ref3, 1),
            name = _ref4[0];
          return {
            name: name
          };
        })
      };
    }
  });
} // Find all of the recursively dependent nodes

function getDownstreamNodes(store, state, keys) {
  var visitedNodes = new Set();
  var visitingNodes = Array.from(keys);
  var graph = store.getGraph(state.version);
  for (var key = visitingNodes.pop(); key; key = visitingNodes.pop()) {
    var _graph$nodeToNodeSubs;
    visitedNodes.add(key);
    var subscribedNodes = (_graph$nodeToNodeSubs = graph.nodeToNodeSubscriptions.get(key)) !== null && _graph$nodeToNodeSubs !== void 0 ? _graph$nodeToNodeSubs : emptySet;
    var _iterator10 = _createForOfIteratorHelper(subscribedNodes),
      _step10;
    try {
      for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
        var downstreamNode = _step10.value;
        if (!visitedNodes.has(downstreamNode)) {
          visitingNodes.push(downstreamNode);
        }
      }
    } catch (err) {
      _iterator10.e(err);
    } finally {
      _iterator10.f();
    }
  }
  return visitedNodes;
}
var Recoil_FunctionalCore = {
  getNodeLoadable: getNodeLoadable,
  peekNodeLoadable: peekNodeLoadable,
  setNodeValue: setNodeValue,
  initializeNode: initializeNode,
  cleanUpNode: cleanUpNode,
  setUnvalidatedAtomValue_DEPRECATED: setUnvalidatedAtomValue_DEPRECATED,
  peekNodeInfo: peekNodeInfo,
  getDownstreamNodes: getDownstreamNodes
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

var _invalidateMemoizedSnapshot = null;
function setInvalidateMemoizedSnapshot(invalidate) {
  _invalidateMemoizedSnapshot = invalidate;
}
function invalidateMemoizedSnapshot() {
  var _invalidateMemoizedSn;
  (_invalidateMemoizedSn = _invalidateMemoizedSnapshot) === null || _invalidateMemoizedSn === void 0 ? void 0 : _invalidateMemoizedSn();
}
var Recoil_SnapshotCache = {
  setInvalidateMemoizedSnapshot: setInvalidateMemoizedSnapshot,
  invalidateMemoizedSnapshot: invalidateMemoizedSnapshot
};
var getDownstreamNodes$1 = Recoil_FunctionalCore.getDownstreamNodes,
  getNodeLoadable$1 = Recoil_FunctionalCore.getNodeLoadable,
  setNodeValue$1 = Recoil_FunctionalCore.setNodeValue;
var getNextComponentID$1 = Recoil_Keys.getNextComponentID;
var getNode$2 = Recoil_Node.getNode,
  getNodeMaybe$2 = Recoil_Node.getNodeMaybe;
var DefaultValue$1 = Recoil_Node.DefaultValue;
var reactMode$1 = Recoil_ReactMode.reactMode;
var AbstractRecoilValue$1 = Recoil_RecoilValue$1.AbstractRecoilValue,
  RecoilState$1 = Recoil_RecoilValue$1.RecoilState,
  RecoilValueReadOnly$1 = Recoil_RecoilValue$1.RecoilValueReadOnly,
  isRecoilValue$1 = Recoil_RecoilValue$1.isRecoilValue;
var invalidateMemoizedSnapshot$1 = Recoil_SnapshotCache.invalidateMemoizedSnapshot;
function getRecoilValueAsLoadable(store, _ref5) {
  var key = _ref5.key;
  var treeState = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : store.getState().currentTree;
  var _storeState$nextTree, _storeState$previousT;

  // Reading from an older tree can cause bugs because the dependencies that we
  // discover during the read are lost.
  var storeState = store.getState();
  if (!(treeState.version === storeState.currentTree.version || treeState.version === ((_storeState$nextTree = storeState.nextTree) === null || _storeState$nextTree === void 0 ? void 0 : _storeState$nextTree.version) || treeState.version === ((_storeState$previousT = storeState.previousTree) === null || _storeState$previousT === void 0 ? void 0 : _storeState$previousT.version))) {
    Recoil_recoverableViolation('Tried to read from a discarded tree');
  }
  var loadable = getNodeLoadable$1(store, treeState, key);
  if (loadable.state === 'loading') {
    loadable.contents.catch(function () {
      /**
       * HACK: intercept thrown error here to prevent an uncaught promise exception. Ideally this would happen closer to selector
       * execution (perhaps introducing a new ERROR class to be resolved by async selectors that are in an error state)
       */
      return;
    });
  }
  return loadable;
}
function applyAtomValueWrites(atomValues, writes) {
  var result = atomValues.clone();
  writes.forEach(function (v, k) {
    if (v.state === 'hasValue' && v.contents instanceof DefaultValue$1) {
      result.delete(k);
    } else {
      result.set(k, v);
    }
  });
  return result;
}
function valueFromValueOrUpdater(store, state, _ref6, valueOrUpdater) {
  var key = _ref6.key;
  if (typeof valueOrUpdater === 'function') {
    // Updater form: pass in the current value. Throw if the current value
    // is unavailable (namely when updating an async selector that's
    // pending or errored):
    var current = getNodeLoadable$1(store, state, key);
    if (current.state === 'loading') {
      var msg = "Tried to set atom or selector \"".concat(key, "\" using an updater function while the current state is pending, this is not currently supported.");
      Recoil_recoverableViolation(msg);
      throw Recoil_err(msg);
    } else if (current.state === 'hasError') {
      throw current.contents;
    } // T itself may be a function, so our refinement is not sufficient:

    return valueOrUpdater(current.contents); // flowlint-line unclear-type:off
  } else {
    return valueOrUpdater;
  }
}
function applyAction(store, state, action) {
  if (action.type === 'set') {
    var recoilValue = action.recoilValue,
      valueOrUpdater = action.valueOrUpdater;
    var newValue = valueFromValueOrUpdater(store, state, recoilValue, valueOrUpdater);
    var writes = setNodeValue$1(store, state, recoilValue.key, newValue);
    var _iterator11 = _createForOfIteratorHelper(writes.entries()),
      _step11;
    try {
      for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
        var _step11$value = (0,slicedToArray/* default */.Z)(_step11.value, 2),
          key = _step11$value[0],
          loadable = _step11$value[1];
        writeLoadableToTreeState(state, key, loadable);
      }
    } catch (err) {
      _iterator11.e(err);
    } finally {
      _iterator11.f();
    }
  } else if (action.type === 'setLoadable') {
    var _key4 = action.recoilValue.key,
      _loadable = action.loadable;
    writeLoadableToTreeState(state, _key4, _loadable);
  } else if (action.type === 'markModified') {
    var _key5 = action.recoilValue.key;
    state.dirtyAtoms.add(_key5);
  } else if (action.type === 'setUnvalidated') {
    var _node$invalidate;

    // Write value directly to state bypassing the Node interface as the node
    // definitions may not have been loaded yet when processing the initial snapshot.
    var _key6 = action.recoilValue.key,
      unvalidatedValue = action.unvalidatedValue;
    var node = getNodeMaybe$2(_key6);
    node === null || node === void 0 ? void 0 : (_node$invalidate = node.invalidate) === null || _node$invalidate === void 0 ? void 0 : _node$invalidate.call(node, state);
    state.atomValues.delete(_key6);
    state.nonvalidatedAtoms.set(_key6, unvalidatedValue);
    state.dirtyAtoms.add(_key6);
  } else {
    Recoil_recoverableViolation("Unknown action ".concat(action.type));
  }
}
function writeLoadableToTreeState(state, key, loadable) {
  if (loadable.state === 'hasValue' && loadable.contents instanceof DefaultValue$1) {
    state.atomValues.delete(key);
  } else {
    state.atomValues.set(key, loadable);
  }
  state.dirtyAtoms.add(key);
  state.nonvalidatedAtoms.delete(key);
}
function applyActionsToStore(store, actions) {
  store.replaceState(function (state) {
    var newState = copyTreeState(state);
    var _iterator12 = _createForOfIteratorHelper(actions),
      _step12;
    try {
      for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
        var action = _step12.value;
        applyAction(store, newState, action);
      }
    } catch (err) {
      _iterator12.e(err);
    } finally {
      _iterator12.f();
    }
    invalidateDownstreams(store, newState);
    invalidateMemoizedSnapshot$1();
    return newState;
  });
}
function queueOrPerformStateUpdate(store, action) {
  if (batchStack.length) {
    var actionsByStore = batchStack[batchStack.length - 1];
    var actions = actionsByStore.get(store);
    if (!actions) {
      actionsByStore.set(store, actions = []);
    }
    actions.push(action);
  } else {
    applyActionsToStore(store, [action]);
  }
}
var batchStack = [];
function batchStart() {
  var actionsByStore = new Map();
  batchStack.push(actionsByStore);
  return function () {
    var _iterator13 = _createForOfIteratorHelper(actionsByStore),
      _step13;
    try {
      for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
        var _step13$value = (0,slicedToArray/* default */.Z)(_step13.value, 2),
          store = _step13$value[0],
          actions = _step13$value[1];
        applyActionsToStore(store, actions);
      }
    } catch (err) {
      _iterator13.e(err);
    } finally {
      _iterator13.f();
    }
    var popped = batchStack.pop();
    if (popped !== actionsByStore) {
      Recoil_recoverableViolation('Incorrect order of batch popping');
    }
  };
}
function copyTreeState(state) {
  return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, state), {}, {
    atomValues: state.atomValues.clone(),
    nonvalidatedAtoms: state.nonvalidatedAtoms.clone(),
    dirtyAtoms: new Set(state.dirtyAtoms)
  });
}
function invalidateDownstreams(store, state) {
  // Inform any nodes that were changed or downstream of changes so that they
  // can clear out any caches as needed due to the update:
  var downstreams = getDownstreamNodes$1(store, state, state.dirtyAtoms);
  var _iterator14 = _createForOfIteratorHelper(downstreams),
    _step14;
  try {
    for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
      var key = _step14.value;
      var _getNodeMaybe, _getNodeMaybe$invalid;
      (_getNodeMaybe = getNodeMaybe$2(key)) === null || _getNodeMaybe === void 0 ? void 0 : (_getNodeMaybe$invalid = _getNodeMaybe.invalidate) === null || _getNodeMaybe$invalid === void 0 ? void 0 : _getNodeMaybe$invalid.call(_getNodeMaybe, state);
    }
  } catch (err) {
    _iterator14.e(err);
  } finally {
    _iterator14.f();
  }
}
function setRecoilValue(store, recoilValue, valueOrUpdater) {
  queueOrPerformStateUpdate(store, {
    type: 'set',
    recoilValue: recoilValue,
    valueOrUpdater: valueOrUpdater
  });
}
function setRecoilValueLoadable(store, recoilValue, loadable) {
  if (loadable instanceof DefaultValue$1) {
    return setRecoilValue(store, recoilValue, loadable);
  }
  queueOrPerformStateUpdate(store, {
    type: 'setLoadable',
    recoilValue: recoilValue,
    loadable: loadable
  });
}
function markRecoilValueModified(store, recoilValue) {
  queueOrPerformStateUpdate(store, {
    type: 'markModified',
    recoilValue: recoilValue
  });
}
function setUnvalidatedRecoilValue(store, recoilValue, unvalidatedValue) {
  queueOrPerformStateUpdate(store, {
    type: 'setUnvalidated',
    recoilValue: recoilValue,
    unvalidatedValue: unvalidatedValue
  });
}
function subscribeToRecoilValue(store, _ref7, callback) {
  var key = _ref7.key;
  var componentDebugName = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  var subID = getNextComponentID$1();
  var storeState = store.getState();
  if (!storeState.nodeToComponentSubscriptions.has(key)) {
    storeState.nodeToComponentSubscriptions.set(key, new Map());
  }
  Recoil_nullthrows(storeState.nodeToComponentSubscriptions.get(key)).set(subID, [componentDebugName !== null && componentDebugName !== void 0 ? componentDebugName : '<not captured>', callback]); // Handle the case that, during the same tick that we are subscribing, an atom
  // has been updated by some effect handler. Otherwise we will miss the update.

  var mode = reactMode$1();
  if (mode.early && (mode.mode === 'LEGACY' || mode.mode === 'MUTABLE_SOURCE')) {
    var nextTree = store.getState().nextTree;
    if (nextTree && nextTree.dirtyAtoms.has(key)) {
      callback(nextTree);
    }
  }
  return {
    release: function release() {
      var releaseStoreState = store.getState();
      var subs = releaseStoreState.nodeToComponentSubscriptions.get(key);
      if (subs === undefined || !subs.has(subID)) {
        Recoil_recoverableViolation("Subscription missing at release time for atom ".concat(key, ". This is a bug in Recoil."));
        return;
      }
      subs.delete(subID);
      if (subs.size === 0) {
        releaseStoreState.nodeToComponentSubscriptions.delete(key);
      }
    }
  };
}
function refreshRecoilValue(store, recoilValue) {
  var _node$clearCache;
  var _store$getState5 = store.getState(),
    currentTree = _store$getState5.currentTree;
  var node = getNode$2(recoilValue.key);
  (_node$clearCache = node.clearCache) === null || _node$clearCache === void 0 ? void 0 : _node$clearCache.call(node, store, currentTree);
}
var Recoil_RecoilValueInterface = {
  RecoilValueReadOnly: RecoilValueReadOnly$1,
  AbstractRecoilValue: AbstractRecoilValue$1,
  RecoilState: RecoilState$1,
  getRecoilValueAsLoadable: getRecoilValueAsLoadable,
  setRecoilValue: setRecoilValue,
  setRecoilValueLoadable: setRecoilValueLoadable,
  markRecoilValueModified: markRecoilValueModified,
  setUnvalidatedRecoilValue: setUnvalidatedRecoilValue,
  subscribeToRecoilValue: subscribeToRecoilValue,
  isRecoilValue: isRecoilValue$1,
  applyAtomValueWrites: applyAtomValueWrites,
  // TODO Remove export when deprecating initialStoreState_DEPRECATED in RecoilRoot
  batchStart: batchStart,
  writeLoadableToTreeState: writeLoadableToTreeState,
  invalidateDownstreams: invalidateDownstreams,
  copyTreeState: copyTreeState,
  refreshRecoilValue: refreshRecoilValue
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * The someSet() method tests whether some elements in the given Set pass the
 * test implemented by the provided function.
 */

function someSet(set, callback, context) {
  var iterator = set.entries();
  var current = iterator.next();
  while (!current.done) {
    var entry = current.value;
    if (callback.call(context, entry[1], entry[0], set)) {
      return true;
    }
    current = iterator.next();
  }
  return false;
}
var Recoil_someSet = someSet;
var cleanUpNode$1 = Recoil_FunctionalCore.cleanUpNode;
var deleteNodeConfigIfPossible$1 = Recoil_Node.deleteNodeConfigIfPossible,
  getNode$3 = Recoil_Node.getNode;
var RetentionZone$2 = Recoil_RetentionZone.RetentionZone;

// Components that aren't mounted after suspending for this long will be assumed
// to be discarded and their resources released.

var SUSPENSE_TIMEOUT_MS = 120000;
var emptySet$1 = new Set();
function releaseRetainablesNowOnCurrentTree(store, retainables) {
  var storeState = store.getState();
  var treeState = storeState.currentTree;
  if (storeState.nextTree) {
    Recoil_recoverableViolation('releaseNodesNowOnCurrentTree should only be called at the end of a batch');
    return; // leak memory rather than erase something that's about to be used.
  }

  var nodes = new Set();
  var _iterator15 = _createForOfIteratorHelper(retainables),
    _step15;
  try {
    for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
      var r = _step15.value;
      if (r instanceof RetentionZone$2) {
        var _iterator17 = _createForOfIteratorHelper(nodesRetainedByZone(storeState, r)),
          _step17;
        try {
          for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
            var n = _step17.value;
            nodes.add(n);
          }
        } catch (err) {
          _iterator17.e(err);
        } finally {
          _iterator17.f();
        }
      } else {
        nodes.add(r);
      }
    }
  } catch (err) {
    _iterator15.e(err);
  } finally {
    _iterator15.f();
  }
  var releasableNodes = findReleasableNodes(store, nodes);
  var _iterator16 = _createForOfIteratorHelper(releasableNodes),
    _step16;
  try {
    for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
      var node = _step16.value;
      releaseNode(store, treeState, node);
    }
  } catch (err) {
    _iterator16.e(err);
  } finally {
    _iterator16.f();
  }
}
function findReleasableNodes(store, searchFromNodes) {
  var storeState = store.getState();
  var treeState = storeState.currentTree;
  var graph = store.getGraph(treeState.version);
  var releasableNodes = new Set(); // mutated to collect answer

  var nonReleasableNodes = new Set();
  findReleasableNodesInner(searchFromNodes);
  return releasableNodes;
  function findReleasableNodesInner(searchFromNodes) {
    var releasableNodesFoundThisIteration = new Set();
    var downstreams = getDownstreamNodesInTopologicalOrder(store, treeState, searchFromNodes, releasableNodes,
    // don't descend into these
    nonReleasableNodes // don't descend into these
    ); // Find which of the downstream nodes are releasable and which are not:
    var _iterator18 = _createForOfIteratorHelper(downstreams),
      _step18;
    try {
      for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
        var node = _step18.value;
        var _storeState$retention;

        // Not releasable if configured to be retained forever:
        if (getNode$3(node).retainedBy === 'recoilRoot') {
          nonReleasableNodes.add(node);
          continue;
        } // Not releasable if retained directly by a component:

        if (((_storeState$retention = storeState.retention.referenceCounts.get(node)) !== null && _storeState$retention !== void 0 ? _storeState$retention : 0) > 0) {
          nonReleasableNodes.add(node);
          continue;
        } // Not releasable if retained by a zone:

        if (zonesThatCouldRetainNode(node).some(function (z) {
          return storeState.retention.referenceCounts.get(z);
        })) {
          nonReleasableNodes.add(node);
          continue;
        } // Not releasable if it has a non-releasable child (which will already be in
        // nonReleasableNodes because we are going in topological order):

        var nodeChildren = graph.nodeToNodeSubscriptions.get(node);
        if (nodeChildren && Recoil_someSet(nodeChildren, function (child) {
          return nonReleasableNodes.has(child);
        })) {
          nonReleasableNodes.add(node);
          continue;
        }
        releasableNodes.add(node);
        releasableNodesFoundThisIteration.add(node);
      } // If we found any releasable nodes, we need to walk UP from those nodes to
      // find whether their parents can now be released as well:
    } catch (err) {
      _iterator18.e(err);
    } finally {
      _iterator18.f();
    }
    var parents = new Set();
    var _iterator19 = _createForOfIteratorHelper(releasableNodesFoundThisIteration),
      _step19;
    try {
      for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
        var _node5 = _step19.value;
        var _iterator20 = _createForOfIteratorHelper((_graph$nodeDeps$get = graph.nodeDeps.get(_node5)) !== null && _graph$nodeDeps$get !== void 0 ? _graph$nodeDeps$get : emptySet$1),
          _step20;
        try {
          for (_iterator20.s(); !(_step20 = _iterator20.n()).done;) {
            var parent = _step20.value;
            var _graph$nodeDeps$get;
            if (!releasableNodes.has(parent)) {
              parents.add(parent);
            }
          }
        } catch (err) {
          _iterator20.e(err);
        } finally {
          _iterator20.f();
        }
      }
    } catch (err) {
      _iterator19.e(err);
    } finally {
      _iterator19.f();
    }
    if (parents.size) {
      findReleasableNodesInner(parents);
    }
  }
} // Children before parents

function getDownstreamNodesInTopologicalOrder(store, treeState, nodes,
// Mutable set is destroyed in place
doNotDescendInto1, doNotDescendInto2) {
  var graph = store.getGraph(treeState.version);
  var answer = [];
  var visited = new Set();
  while (nodes.size > 0) {
    visit(Recoil_nullthrows(nodes.values().next().value));
  }
  return answer;
  function visit(node) {
    if (doNotDescendInto1.has(node) || doNotDescendInto2.has(node)) {
      nodes.delete(node);
      return;
    }
    if (visited.has(node)) {
      return;
    }
    var children = graph.nodeToNodeSubscriptions.get(node);
    if (children) {
      var _iterator21 = _createForOfIteratorHelper(children),
        _step21;
      try {
        for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
          var child = _step21.value;
          visit(child);
        }
      } catch (err) {
        _iterator21.e(err);
      } finally {
        _iterator21.f();
      }
    }
    visited.add(node);
    nodes.delete(node);
    answer.push(node);
  }
}
function releaseNode(store, treeState, node) {
  if (!Recoil_gkx('recoil_memory_managament_2020')) {
    return;
  } // Atom effects, in-closure caches, etc.:

  cleanUpNode$1(store, node); // Delete from store state:

  var storeState = store.getState();
  storeState.knownAtoms.delete(node);
  storeState.knownSelectors.delete(node);
  storeState.nodeTransactionSubscriptions.delete(node);
  storeState.retention.referenceCounts.delete(node);
  var zones = zonesThatCouldRetainNode(node);
  var _iterator22 = _createForOfIteratorHelper(zones),
    _step22;
  try {
    for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
      var zone = _step22.value;
      var _storeState$retention2;
      (_storeState$retention2 = storeState.retention.nodesRetainedByZone.get(zone)) === null || _storeState$retention2 === void 0 ? void 0 : _storeState$retention2.delete(node);
    } // Note that we DO NOT delete from nodeToComponentSubscriptions because this
    // already happens when the last component that was retaining the node unmounts,
    // and this could happen either before or after that.
    // Delete from TreeState and dep graph:
  } catch (err) {
    _iterator22.e(err);
  } finally {
    _iterator22.f();
  }
  treeState.atomValues.delete(node);
  treeState.dirtyAtoms.delete(node);
  treeState.nonvalidatedAtoms.delete(node);
  var graph = storeState.graphsByVersion.get(treeState.version);
  if (graph) {
    var deps = graph.nodeDeps.get(node);
    if (deps !== undefined) {
      graph.nodeDeps.delete(node);
      var _iterator23 = _createForOfIteratorHelper(deps),
        _step23;
      try {
        for (_iterator23.s(); !(_step23 = _iterator23.n()).done;) {
          var dep = _step23.value;
          var _graph$nodeToNodeSubs;
          (_graph$nodeToNodeSubs = graph.nodeToNodeSubscriptions.get(dep)) === null || _graph$nodeToNodeSubs === void 0 ? void 0 : _graph$nodeToNodeSubs.delete(node);
        }
      } catch (err) {
        _iterator23.e(err);
      } finally {
        _iterator23.f();
      }
    } // No need to delete sub's deps as there should be no subs at this point.
    // But an invariant would require deleting nodes in topological order.

    graph.nodeToNodeSubscriptions.delete(node);
  } // Node config (for family members only as their configs can be recreated, and
  // only if they are not retained within any other Stores):

  deleteNodeConfigIfPossible$1(node);
}
function nodesRetainedByZone(storeState, zone) {
  var _storeState$retention3;
  return (_storeState$retention3 = storeState.retention.nodesRetainedByZone.get(zone)) !== null && _storeState$retention3 !== void 0 ? _storeState$retention3 : emptySet$1;
}
function zonesThatCouldRetainNode(node) {
  var retainedBy = getNode$3(node).retainedBy;
  if (retainedBy === undefined || retainedBy === 'components' || retainedBy === 'recoilRoot') {
    return [];
  } else if (retainedBy instanceof RetentionZone$2) {
    return [retainedBy];
  } else {
    return retainedBy; // it's an array of zones
  }
}

function scheduleOrPerformPossibleReleaseOfRetainable(store, retainable) {
  var state = store.getState();
  if (state.nextTree) {
    state.retention.retainablesToCheckForRelease.add(retainable);
  } else {
    releaseRetainablesNowOnCurrentTree(store, new Set([retainable]));
  }
}
function updateRetainCount(store, retainable, delta) {
  var _map$get;
  if (!Recoil_gkx('recoil_memory_managament_2020')) {
    return;
  }
  var map = store.getState().retention.referenceCounts;
  var newCount = ((_map$get = map.get(retainable)) !== null && _map$get !== void 0 ? _map$get : 0) + delta;
  if (newCount === 0) {
    updateRetainCountToZero(store, retainable);
  } else {
    map.set(retainable, newCount);
  }
}
function updateRetainCountToZero(store, retainable) {
  if (!Recoil_gkx('recoil_memory_managament_2020')) {
    return;
  }
  var map = store.getState().retention.referenceCounts;
  map.delete(retainable);
  scheduleOrPerformPossibleReleaseOfRetainable(store, retainable);
}
function releaseScheduledRetainablesNow(store) {
  if (!Recoil_gkx('recoil_memory_managament_2020')) {
    return;
  }
  var state = store.getState();
  releaseRetainablesNowOnCurrentTree(store, state.retention.retainablesToCheckForRelease);
  state.retention.retainablesToCheckForRelease.clear();
}
function retainedByOptionWithDefault(r) {
  // The default will change from 'recoilRoot' to 'components' in the future.
  return r === undefined ? 'recoilRoot' : r;
}
var Recoil_Retention = {
  SUSPENSE_TIMEOUT_MS: SUSPENSE_TIMEOUT_MS,
  updateRetainCount: updateRetainCount,
  updateRetainCountToZero: updateRetainCountToZero,
  releaseScheduledRetainablesNow: releaseScheduledRetainablesNow,
  retainedByOptionWithDefault: retainedByOptionWithDefault
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * This is to export esstiential functions from react-dom
 * for our web build
 *
 * 
 * @format
 * @oncall recoil
 */
var unstable_batchedUpdates = _react_dom_18_2_0_react_dom.unstable_batchedUpdates;
var ReactBatchedUpdates = {
  unstable_batchedUpdates: unstable_batchedUpdates
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * This is to export esstiential functions from react-dom
 * for our web build
 *
 * 
 * @format
 * @oncall recoil
 */
// @fb-only: const {unstable_batchedUpdates} = require('ReactDOMComet');
// prettier-ignore
var unstable_batchedUpdates$1 = ReactBatchedUpdates.unstable_batchedUpdates; // @oss-only

var Recoil_ReactBatchedUpdates = {
  unstable_batchedUpdates: unstable_batchedUpdates$1
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
var batchStart$1 = Recoil_RecoilValueInterface.batchStart;
var unstable_batchedUpdates$2 = Recoil_ReactBatchedUpdates.unstable_batchedUpdates; // flowlint-next-line unclear-type:off

/*
 * During SSR, unstable_batchedUpdates may be undefined so this
 * falls back to a basic function that executes the batch
 */
var batcher = unstable_batchedUpdates$2 || function (batchFn) {
  return batchFn();
};
/**
 * Sets the provided batcher function as the batcher function used by Recoil.
 *
 * Set the batcher to a custom batcher for your renderer,
 * if you use a renderer other than React DOM or React Native.
 */

var setBatcher = function setBatcher(newBatcher) {
  batcher = newBatcher;
};
/**
 * Returns the current batcher function.
 */

var getBatcher = function getBatcher() {
  return batcher;
};
/**
 * Calls the current batcher function and passes the
 * provided callback function.
 */

var batchUpdates = function batchUpdates(callback) {
  batcher(function () {
    var batchEnd = function batchEnd() {
      return undefined;
    };
    try {
      batchEnd = batchStart$1();
      callback();
    } finally {
      batchEnd();
    }
  });
};
var Recoil_Batching = {
  getBatcher: getBatcher,
  setBatcher: setBatcher,
  batchUpdates: batchUpdates
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * Combines multiple Iterables into a single Iterable.
 * Traverses the input Iterables in the order provided and maintains the order
 * of their elements.
 *
 * Example:
 * ```
 * const r = Array.from(concatIterables(['a', 'b'], ['c'], ['d', 'e', 'f']));
 * r == ['a', 'b', 'c', 'd', 'e', 'f'];
 * ```
 */

function concatIterables(iters) {
  var _iterator24, _step24, iter, _iterator25, _step25, val;
  return (0,regeneratorRuntime/* default */.Z)().wrap(function concatIterables$(_context3) {
    while (1) switch (_context3.prev = _context3.next) {
      case 0:
        _iterator24 = _createForOfIteratorHelper(iters);
        _context3.prev = 1;
        _iterator24.s();
      case 3:
        if ((_step24 = _iterator24.n()).done) {
          _context3.next = 24;
          break;
        }
        iter = _step24.value;
        _iterator25 = _createForOfIteratorHelper(iter);
        _context3.prev = 6;
        _iterator25.s();
      case 8:
        if ((_step25 = _iterator25.n()).done) {
          _context3.next = 14;
          break;
        }
        val = _step25.value;
        _context3.next = 12;
        return val;
      case 12:
        _context3.next = 8;
        break;
      case 14:
        _context3.next = 19;
        break;
      case 16:
        _context3.prev = 16;
        _context3.t0 = _context3["catch"](6);
        _iterator25.e(_context3.t0);
      case 19:
        _context3.prev = 19;
        _iterator25.f();
        return _context3.finish(19);
      case 22:
        _context3.next = 3;
        break;
      case 24:
        _context3.next = 29;
        break;
      case 26:
        _context3.prev = 26;
        _context3.t1 = _context3["catch"](1);
        _iterator24.e(_context3.t1);
      case 29:
        _context3.prev = 29;
        _iterator24.f();
        return _context3.finish(29);
      case 32:
      case "end":
        return _context3.stop();
    }
  }, _marked2, null, [[1, 26, 29, 32], [6, 16, 19, 22]]);
}
var Recoil_concatIterables = concatIterables;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/* eslint-disable fb-www/typeof-undefined */

var isSSR =
// $FlowFixMe(site=recoil) Window does not have a FlowType definition https://github.com/facebook/flow/issues/6709
typeof Window === 'undefined' || typeof window === 'undefined';
/* eslint-enable fb-www/typeof-undefined */

var isWindow = function isWindow(value) {
  return !isSSR && (
  // $FlowFixMe(site=recoil) Window does not have a FlowType definition https://github.com/facebook/flow/issues/6709
  value === window || value instanceof Window);
};
var isReactNative = typeof navigator !== 'undefined' && navigator.product === 'ReactNative'; // eslint-disable-line fb-www/typeof-undefined

var Recoil_Environment = {
  isSSR: isSSR,
  isReactNative: isReactNative,
  isWindow: isWindow
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * Caches a function's results based on the key returned by the passed
 * hashFunction.
 */

function memoizeWithArgsHash(fn, hashFunction) {
  var cache;
  return function () {
    if (!cache) {
      cache = {};
    }
    var key = hashFunction.apply(void 0, arguments);
    if (!Object.hasOwnProperty.call(cache, key)) {
      cache[key] = fn.apply(void 0, arguments);
    }
    return cache[key];
  };
}
/**
 * Caches a function's results based on a comparison of the arguments.
 * Only caches the last return of the function.
 * Defaults to reference equality
 */

function memoizeOneWithArgsHash(fn, hashFunction) {
  var lastKey;
  var lastResult; // breaking cache when arguments change

  return function () {
    var key = hashFunction.apply(void 0, arguments);
    if (lastKey === key) {
      return lastResult;
    }
    lastKey = key;
    lastResult = fn.apply(void 0, arguments);
    return lastResult;
  };
}
/**
 * Caches a function's results based on a comparison of the arguments.
 * Only caches the last return of the function.
 * Defaults to reference equality
 */

function memoizeOneWithArgsHashAndInvalidation(fn, hashFunction) {
  var lastKey;
  var lastResult; // breaking cache when arguments change

  var memoizedFn = function memoizedFn() {
    var key = hashFunction.apply(void 0, arguments);
    if (lastKey === key) {
      return lastResult;
    }
    lastKey = key;
    lastResult = fn.apply(void 0, arguments);
    return lastResult;
  };
  var invalidate = function invalidate() {
    lastKey = null;
  };
  return [memoizedFn, invalidate];
}
var Recoil_Memoize = {
  memoizeWithArgsHash: memoizeWithArgsHash,
  memoizeOneWithArgsHash: memoizeOneWithArgsHash,
  memoizeOneWithArgsHashAndInvalidation: memoizeOneWithArgsHashAndInvalidation
};
var batchUpdates$1 = Recoil_Batching.batchUpdates;
var initializeNode$1 = Recoil_FunctionalCore.initializeNode,
  peekNodeInfo$1 = Recoil_FunctionalCore.peekNodeInfo;
var graph$1 = Recoil_Graph.graph;
var getNextStoreID$1 = Recoil_Keys.getNextStoreID;
var DEFAULT_VALUE$1 = Recoil_Node.DEFAULT_VALUE,
  recoilValues$1 = Recoil_Node.recoilValues,
  recoilValuesForKeys$2 = Recoil_Node.recoilValuesForKeys;
var AbstractRecoilValue$2 = Recoil_RecoilValueInterface.AbstractRecoilValue,
  getRecoilValueAsLoadable$1 = Recoil_RecoilValueInterface.getRecoilValueAsLoadable,
  setRecoilValue$1 = Recoil_RecoilValueInterface.setRecoilValue,
  setUnvalidatedRecoilValue$1 = Recoil_RecoilValueInterface.setUnvalidatedRecoilValue;
var updateRetainCount$1 = Recoil_Retention.updateRetainCount;
var setInvalidateMemoizedSnapshot$1 = Recoil_SnapshotCache.setInvalidateMemoizedSnapshot;
var getNextTreeStateVersion$2 = Recoil_State.getNextTreeStateVersion,
  makeEmptyStoreState$1 = Recoil_State.makeEmptyStoreState;
var isSSR$1 = Recoil_Environment.isSSR;
var memoizeOneWithArgsHashAndInvalidation$1 = Recoil_Memoize.memoizeOneWithArgsHashAndInvalidation;

// Opaque at this surface because it's part of the public API from here.

var retainWarning = "\nRecoil Snapshots only last for the duration of the callback they are provided to. To keep a Snapshot longer, do this:\n\n  const release = snapshot.retain();\n  try {\n    await doSomethingWithSnapshot(snapshot);\n  } finally {\n    release();\n  }\n\nThis is currently a DEV-only warning but will become a thrown exception in the next release of Recoil.\n"; // A "Snapshot" is "read-only" and captures a specific set of values of atoms.
// However, the data-flow-graph and selector values may evolve as selector
// evaluation functions are executed and async selectors resolve.
var Snapshot = /*#__PURE__*/function () {
  // eslint-disable-next-line fb-www/no-uninitialized-properties
  function Snapshot(storeState, parentStoreID) {
    var _this6 = this;
    (0,classCallCheck/* default */.Z)(this, Snapshot);
    _defineProperty(this, "_store", void 0);
    _defineProperty(this, "_refCount", 1);
    _defineProperty(this, "getLoadable", function (recoilValue) {
      _this6.checkRefCount_INTERNAL();
      return getRecoilValueAsLoadable$1(_this6._store, recoilValue);
    });
    _defineProperty(this, "getPromise", function (recoilValue) {
      _this6.checkRefCount_INTERNAL();
      return _this6.getLoadable(recoilValue).toPromise();
    });
    _defineProperty(this, "getNodes_UNSTABLE", function (opt) {
      _this6.checkRefCount_INTERNAL(); // TODO Deal with modified selectors

      if ((opt === null || opt === void 0 ? void 0 : opt.isModified) === true) {
        if ((opt === null || opt === void 0 ? void 0 : opt.isInitialized) === false) {
          return [];
        }
        var state = _this6._store.getState().currentTree;
        return recoilValuesForKeys$2(state.dirtyAtoms);
      }
      var knownAtoms = _this6._store.getState().knownAtoms;
      var knownSelectors = _this6._store.getState().knownSelectors;
      return (opt === null || opt === void 0 ? void 0 : opt.isInitialized) == null ? recoilValues$1.values() : opt.isInitialized === true ? recoilValuesForKeys$2(Recoil_concatIterables([knownAtoms, knownSelectors])) : Recoil_filterIterable(recoilValues$1.values(), function (_ref8) {
        var key = _ref8.key;
        return !knownAtoms.has(key) && !knownSelectors.has(key);
      });
    });
    _defineProperty(this, "getInfo_UNSTABLE", function (_ref9) {
      var key = _ref9.key;
      _this6.checkRefCount_INTERNAL();
      return peekNodeInfo$1(_this6._store, _this6._store.getState().currentTree, key);
    });
    _defineProperty(this, "map", function (mapper) {
      _this6.checkRefCount_INTERNAL();
      var mutableSnapshot = new MutableSnapshot(_this6, batchUpdates$1);
      mapper(mutableSnapshot); // if removing batchUpdates from `set` add it here

      return mutableSnapshot;
    });
    _defineProperty(this, "asyncMap", /*#__PURE__*/function () {
      var _ref10 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(mapper) {
        var mutableSnapshot;
        return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              _this6.checkRefCount_INTERNAL();
              mutableSnapshot = new MutableSnapshot(_this6, batchUpdates$1);
              mutableSnapshot.retain(); // Retain new snapshot during async mapper
              _context4.next = 5;
              return mapper(mutableSnapshot);
            case 5:
              // Continue to retain the new snapshot for the user, but auto-release it
              // after the next tick, the same as a new synchronous snapshot.

              mutableSnapshot.autoRelease_INTERNAL();
              return _context4.abrupt("return", mutableSnapshot);
            case 7:
            case "end":
              return _context4.stop();
          }
        }, _callee2);
      }));
      return function (_x) {
        return _ref10.apply(this, arguments);
      };
    }());
    this._store = {
      storeID: getNextStoreID$1(),
      parentStoreID: parentStoreID,
      getState: function getState() {
        return storeState;
      },
      replaceState: function replaceState(replacer) {
        // no batching, so nextTree is never active
        storeState.currentTree = replacer(storeState.currentTree);
      },
      getGraph: function getGraph(version) {
        var graphs = storeState.graphsByVersion;
        if (graphs.has(version)) {
          return Recoil_nullthrows(graphs.get(version));
        }
        var newGraph = graph$1();
        graphs.set(version, newGraph);
        return newGraph;
      },
      subscribeToTransactions: function subscribeToTransactions() {
        return {
          release: function release() {}
        };
      },
      addTransactionMetadata: function addTransactionMetadata() {
        throw Recoil_err('Cannot subscribe to Snapshots');
      }
    }; // Initialize any nodes that are live in the parent store (primarily so that
    // this snapshot gets counted towards the node's live stores count).
    // TODO Optimize this when cloning snapshots for callbacks
    var _iterator26 = _createForOfIteratorHelper(this._store.getState().knownAtoms),
      _step26;
    try {
      for (_iterator26.s(); !(_step26 = _iterator26.n()).done;) {
        var nodeKey = _step26.value;
        initializeNode$1(this._store, nodeKey, 'get');
        updateRetainCount$1(this._store, nodeKey, 1);
      }
    } catch (err) {
      _iterator26.e(err);
    } finally {
      _iterator26.f();
    }
    this.autoRelease_INTERNAL();
  }
  (0,createClass/* default */.Z)(Snapshot, [{
    key: "retain",
    value: function retain() {
      var _this7 = this;
      if (this._refCount <= 0) {
        if (false) {} else {
          Recoil_recoverableViolation('Attempt to retain() Snapshot that was already released.');
        }
      }
      this._refCount++;
      var released = false;
      return function () {
        if (!released) {
          released = true;
          _this7._release();
        }
      };
    }
    /**
     * Release the snapshot on the next tick.  This means the snapshot is retained
     * during the execution of the current function using it.
     */
  }, {
    key: "autoRelease_INTERNAL",
    value: function autoRelease_INTERNAL() {
      var _this8 = this;
      if (!isSSR$1) {
        // Use timeout of 10 to workaround Firefox issue: https://github.com/facebookexperimental/Recoil/issues/1936
        window.setTimeout(function () {
          return _this8._release();
        }, 10);
      }
    }
  }, {
    key: "_release",
    value: function _release() {
      this._refCount--;
      if (this._refCount === 0) {
        this._store.getState().nodeCleanupFunctions.forEach(function (cleanup) {
          return cleanup();
        });
        this._store.getState().nodeCleanupFunctions.clear();
        if (!Recoil_gkx('recoil_memory_managament_2020')) {
          return;
        } // Temporarily nerfing this to allow us to find broken call sites without
        // actually breaking anybody yet.
        // for (const k of this._store.getState().knownAtoms) {
        //   updateRetainCountToZero(this._store, k);
        // }
      } else if (this._refCount < 0) {
        if (false) {}
      }
    }
  }, {
    key: "isRetained",
    value: function isRetained() {
      return this._refCount > 0;
    }
  }, {
    key: "checkRefCount_INTERNAL",
    value: function checkRefCount_INTERNAL() {
      if (Recoil_gkx('recoil_memory_managament_2020') && this._refCount <= 0) {
        if (false) {} // What we will ship later:
        // throw err(retainWarning);
      }
    }
  }, {
    key: "getStore_INTERNAL",
    value: function getStore_INTERNAL() {
      this.checkRefCount_INTERNAL();
      return this._store;
    }
  }, {
    key: "getID",
    value: function getID() {
      this.checkRefCount_INTERNAL();
      return this._store.getState().currentTree.stateID;
    }
  }, {
    key: "getStoreID",
    value: function getStoreID() {
      this.checkRefCount_INTERNAL();
      return this._store.storeID;
    } // We want to allow the methods to be destructured and used as accessors

    /* eslint-disable fb-www/extra-arrow-initializer */

    /* eslint-enable fb-www/extra-arrow-initializer */
  }]);
  return Snapshot;
}();
function cloneStoreState(store, treeState) {
  var bumpVersion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  var storeState = store.getState();
  var version = bumpVersion ? getNextTreeStateVersion$2() : treeState.version;
  return {
    // Always clone the TreeState to isolate stores from accidental mutations.
    // For example, reading a selector from a cloned snapshot shouldn't cache
    // in the original treestate which may cause the original to skip
    // initialization of upstream atoms.
    currentTree: {
      // TODO snapshots shouldn't really have versions because a new version number
      // is always assigned when the snapshot is gone to.
      version: bumpVersion ? version : treeState.version,
      stateID: bumpVersion ? version : treeState.stateID,
      transactionMetadata: (0,objectSpread2/* default */.Z)({}, treeState.transactionMetadata),
      dirtyAtoms: new Set(treeState.dirtyAtoms),
      atomValues: treeState.atomValues.clone(),
      nonvalidatedAtoms: treeState.nonvalidatedAtoms.clone()
    },
    commitDepth: 0,
    nextTree: null,
    previousTree: null,
    knownAtoms: new Set(storeState.knownAtoms),
    // FIXME here's a copy
    knownSelectors: new Set(storeState.knownSelectors),
    // FIXME here's a copy
    transactionSubscriptions: new Map(),
    nodeTransactionSubscriptions: new Map(),
    nodeToComponentSubscriptions: new Map(),
    queuedComponentCallbacks_DEPRECATED: [],
    suspendedComponentResolvers: new Set(),
    graphsByVersion: new Map().set(version, store.getGraph(treeState.version)),
    retention: {
      referenceCounts: new Map(),
      nodesRetainedByZone: new Map(),
      retainablesToCheckForRelease: new Set()
    },
    // FIXME here's a copy
    // Create blank cleanup handlers for atoms so snapshots don't re-run
    // atom effects.
    nodeCleanupFunctions: new Map(Recoil_mapIterable(storeState.nodeCleanupFunctions.entries(), function (_ref11) {
      var _ref12 = (0,slicedToArray/* default */.Z)(_ref11, 1),
        key = _ref12[0];
      return [key, function () {}];
    }))
  };
} // Factory to build a fresh snapshot

function freshSnapshot(initializeState) {
  var snapshot = new Snapshot(makeEmptyStoreState$1());
  return initializeState != null ? snapshot.map(initializeState) : snapshot;
} // Factory to clone a snapshot state

var _memoizeOneWithArgsHa = memoizeOneWithArgsHashAndInvalidation$1(
  // $FlowFixMe[missing-local-annot]
  function (store, version) {
    var _storeState$nextTree;
    var storeState = store.getState();
    var treeState = version === 'latest' ? (_storeState$nextTree = storeState.nextTree) !== null && _storeState$nextTree !== void 0 ? _storeState$nextTree : storeState.currentTree : Recoil_nullthrows(storeState.previousTree);
    return new Snapshot(cloneStoreState(store, treeState), store.storeID);
  }, function (store, version) {
    var _store$getState$nextT, _store$getState$previ;
    return String(version) + String(store.storeID) + String((_store$getState$nextT = store.getState().nextTree) === null || _store$getState$nextT === void 0 ? void 0 : _store$getState$nextT.version) + String(store.getState().currentTree.version) + String((_store$getState$previ = store.getState().previousTree) === null || _store$getState$previ === void 0 ? void 0 : _store$getState$previ.version);
  }),
  _memoizeOneWithArgsHa2 = (0,slicedToArray/* default */.Z)(_memoizeOneWithArgsHa, 2),
  memoizedCloneSnapshot = _memoizeOneWithArgsHa2[0],
  invalidateMemoizedSnapshot$2 = _memoizeOneWithArgsHa2[1]; // Avoid circular dependencies

setInvalidateMemoizedSnapshot$1(invalidateMemoizedSnapshot$2);
function cloneSnapshot(store) {
  var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'latest';
  var snapshot = memoizedCloneSnapshot(store, version);
  if (!snapshot.isRetained()) {
    invalidateMemoizedSnapshot$2();
    return memoizedCloneSnapshot(store, version);
  }
  return snapshot;
}
var MutableSnapshot = /*#__PURE__*/function (_Snapshot) {
  (0,inherits/* default */.Z)(MutableSnapshot, _Snapshot);
  var _super8 = (0,createSuper/* default */.Z)(MutableSnapshot);
  function MutableSnapshot(snapshot, batch) {
    var _this9;
    (0,classCallCheck/* default */.Z)(this, MutableSnapshot);
    _this9 = _super8.call(this, cloneStoreState(snapshot.getStore_INTERNAL(), snapshot.getStore_INTERNAL().getState().currentTree, true), snapshot.getStoreID());
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this9), "_batch", void 0);
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this9), "set", function (recoilState, newValueOrUpdater) {
      _this9.checkRefCount_INTERNAL();
      var store = _this9.getStore_INTERNAL(); // This batchUpdates ensures this `set` is applied immediately and you can
      // read the written value after calling `set`. I would like to remove this
      // behavior and only batch in `Snapshot.map`, but this would be a breaking
      // change potentially.

      _this9._batch(function () {
        updateRetainCount$1(store, recoilState.key, 1);
        setRecoilValue$1(_this9.getStore_INTERNAL(), recoilState, newValueOrUpdater);
      });
    });
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this9), "reset", function (recoilState) {
      _this9.checkRefCount_INTERNAL();
      var store = _this9.getStore_INTERNAL(); // See note at `set` about batched updates.

      _this9._batch(function () {
        updateRetainCount$1(store, recoilState.key, 1);
        setRecoilValue$1(_this9.getStore_INTERNAL(), recoilState, DEFAULT_VALUE$1);
      });
    });
    _defineProperty((0,assertThisInitialized/* default */.Z)(_this9), "setUnvalidatedAtomValues_DEPRECATED", function (values) {
      _this9.checkRefCount_INTERNAL();
      var store = _this9.getStore_INTERNAL(); // See note at `set` about batched updates.

      batchUpdates$1(function () {
        var _iterator27 = _createForOfIteratorHelper(values.entries()),
          _step27;
        try {
          for (_iterator27.s(); !(_step27 = _iterator27.n()).done;) {
            var _step27$value = (0,slicedToArray/* default */.Z)(_step27.value, 2),
              k = _step27$value[0],
              v = _step27$value[1];
            updateRetainCount$1(store, k, 1);
            setUnvalidatedRecoilValue$1(store, new AbstractRecoilValue$2(k), v);
          }
        } catch (err) {
          _iterator27.e(err);
        } finally {
          _iterator27.f();
        }
      });
    });
    _this9._batch = batch;
    return _this9;
  }
  return (0,createClass/* default */.Z)(MutableSnapshot);
}(Snapshot);
var Recoil_Snapshot = {
  Snapshot: Snapshot,
  MutableSnapshot: MutableSnapshot,
  freshSnapshot: freshSnapshot,
  cloneSnapshot: cloneSnapshot
};
var Recoil_Snapshot_1 = Recoil_Snapshot.Snapshot;
var Recoil_Snapshot_2 = Recoil_Snapshot.MutableSnapshot;
var Recoil_Snapshot_3 = Recoil_Snapshot.freshSnapshot;
var Recoil_Snapshot_4 = Recoil_Snapshot.cloneSnapshot;
var Recoil_Snapshot$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  Snapshot: Recoil_Snapshot_1,
  MutableSnapshot: Recoil_Snapshot_2,
  freshSnapshot: Recoil_Snapshot_3,
  cloneSnapshot: Recoil_Snapshot_4
});

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

function unionSets() {
  var result = new Set();
  for (var _len4 = arguments.length, sets = new Array(_len4), _key7 = 0; _key7 < _len4; _key7++) {
    sets[_key7] = arguments[_key7];
  }
  for (var _i2 = 0, _sets = sets; _i2 < _sets.length; _i2++) {
    var set = _sets[_i2];
    var _iterator28 = _createForOfIteratorHelper(set),
      _step28;
    try {
      for (_iterator28.s(); !(_step28 = _iterator28.n()).done;) {
        var value = _step28.value;
        result.add(value);
      }
    } catch (err) {
      _iterator28.e(err);
    } finally {
      _iterator28.f();
    }
  }
  return result;
}
var Recoil_unionSets = unionSets;
var useRef = _react_18_2_0_react.useRef;
/**
 * The same as `useRef()` except that if a function is specified then it will
 * call that function to get the value to initialize the reference with.
 * This is similar to how `useState()` behaves when given a function.  It allows
 * the user to avoid generating the initial value for subsequent renders.
 * The tradeoff is that to set the reference to a function itself you need to
 * nest it: useRefInitOnce(() => () => {...});
 */

function useRefInitOnce(initialValue) {
  // $FlowExpectedError[incompatible-call]
  var ref = useRef(initialValue);
  if (ref.current === initialValue && typeof initialValue === 'function') {
    // $FlowExpectedError[incompatible-use]
    ref.current = initialValue();
  }
  return ref;
}
var Recoil_useRefInitOnce = useRefInitOnce;

// @fb-only: const RecoilusagelogEvent = require('RecoilusagelogEvent');
// @fb-only: const RecoilUsageLogFalcoEvent = require('RecoilUsageLogFalcoEvent');
// @fb-only: const URI = require('URI');

var getNextTreeStateVersion$3 = Recoil_State.getNextTreeStateVersion,
  makeEmptyStoreState$2 = Recoil_State.makeEmptyStoreState;
var cleanUpNode$2 = Recoil_FunctionalCore.cleanUpNode,
  getDownstreamNodes$2 = Recoil_FunctionalCore.getDownstreamNodes,
  initializeNode$2 = Recoil_FunctionalCore.initializeNode,
  setNodeValue$2 = Recoil_FunctionalCore.setNodeValue,
  setUnvalidatedAtomValue_DEPRECATED$1 = Recoil_FunctionalCore.setUnvalidatedAtomValue_DEPRECATED;
var graph$2 = Recoil_Graph.graph;
var cloneGraph$1 = Recoil_Graph.cloneGraph;
var getNextStoreID$2 = Recoil_Keys.getNextStoreID;
var createMutableSource$1 = Recoil_ReactMode.createMutableSource,
  reactMode$2 = Recoil_ReactMode.reactMode;
var applyAtomValueWrites$1 = Recoil_RecoilValueInterface.applyAtomValueWrites;
var releaseScheduledRetainablesNow$1 = Recoil_Retention.releaseScheduledRetainablesNow;
var freshSnapshot$1 = Recoil_Snapshot$1.freshSnapshot;
var useCallback = _react_18_2_0_react.useCallback,
  useContext = _react_18_2_0_react.useContext,
  useEffect = _react_18_2_0_react.useEffect,
  useMemo = _react_18_2_0_react.useMemo,
  useRef$1 = _react_18_2_0_react.useRef,
  useState = _react_18_2_0_react.useState;
function notInAContext() {
  throw Recoil_err('This component must be used inside a <RecoilRoot> component.');
}
var defaultStore = Object.freeze({
  storeID: getNextStoreID$2(),
  getState: notInAContext,
  replaceState: notInAContext,
  getGraph: notInAContext,
  subscribeToTransactions: notInAContext,
  addTransactionMetadata: notInAContext
});
var stateReplacerIsBeingExecuted = false;
function startNextTreeIfNeeded(store) {
  if (stateReplacerIsBeingExecuted) {
    throw Recoil_err('An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.');
  }
  var storeState = store.getState();
  if (storeState.nextTree === null) {
    if (Recoil_gkx('recoil_memory_managament_2020') && Recoil_gkx('recoil_release_on_cascading_update_killswitch_2021')) {
      // If this is a cascading update (that is, rendering due to one state change
      // invokes a second state change), we won't have cleaned up retainables yet
      // because this normally happens after notifying components. Do it before
      // proceeding with the cascading update so that it remains predictable:
      if (storeState.commitDepth > 0) {
        releaseScheduledRetainablesNow$1(store);
      }
    }
    var version = storeState.currentTree.version;
    var nextVersion = getNextTreeStateVersion$3();
    storeState.nextTree = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, storeState.currentTree), {}, {
      version: nextVersion,
      stateID: nextVersion,
      dirtyAtoms: new Set(),
      transactionMetadata: {}
    });
    storeState.graphsByVersion.set(nextVersion, cloneGraph$1(Recoil_nullthrows(storeState.graphsByVersion.get(version))));
  }
}
var AppContext = _react_18_2_0_react.createContext({
  current: defaultStore
});
var useStoreRef = function useStoreRef() {
  return useContext(AppContext);
}; // $FlowExpectedError[incompatible-call]

var MutableSourceContext = _react_18_2_0_react.createContext(null);
function useRecoilMutableSource() {
  var mutableSource = useContext(MutableSourceContext);
  if (mutableSource == null) {
    Recoil_expectationViolation('Attempted to use a Recoil hook outside of a <RecoilRoot>. ' + '<RecoilRoot> must be an ancestor of any component that uses ' + 'Recoil hooks.');
  }
  return mutableSource;
}
function notifyComponents(store, storeState, treeState) {
  var dependentNodes = getDownstreamNodes$2(store, treeState, treeState.dirtyAtoms);
  var _iterator29 = _createForOfIteratorHelper(dependentNodes),
    _step29;
  try {
    for (_iterator29.s(); !(_step29 = _iterator29.n()).done;) {
      var key = _step29.value;
      var comps = storeState.nodeToComponentSubscriptions.get(key);
      if (comps) {
        var _iterator30 = _createForOfIteratorHelper(comps),
          _step30;
        try {
          for (_iterator30.s(); !(_step30 = _iterator30.n()).done;) {
            var _step30$value = (0,slicedToArray/* default */.Z)(_step30.value, 2),
              _subID = _step30$value[0],
              _step30$value$ = (0,slicedToArray/* default */.Z)(_step30$value[1], 2),
              _debugName = _step30$value$[0],
              callback = _step30$value$[1];
            callback(treeState);
          }
        } catch (err) {
          _iterator30.e(err);
        } finally {
          _iterator30.f();
        }
      }
    }
  } catch (err) {
    _iterator29.e(err);
  } finally {
    _iterator29.f();
  }
}
function sendEndOfBatchNotifications(store) {
  var storeState = store.getState();
  var treeState = storeState.currentTree; // Inform transaction subscribers of the transaction:

  var dirtyAtoms = treeState.dirtyAtoms;
  if (dirtyAtoms.size) {
    // Execute Node-specific subscribers before global subscribers
    var _iterator31 = _createForOfIteratorHelper(storeState.nodeTransactionSubscriptions),
      _step31;
    try {
      for (_iterator31.s(); !(_step31 = _iterator31.n()).done;) {
        var _step31$value = (0,slicedToArray/* default */.Z)(_step31.value, 2),
          key = _step31$value[0],
          subscriptions = _step31$value[1];
        if (dirtyAtoms.has(key)) {
          var _iterator33 = _createForOfIteratorHelper(subscriptions),
            _step33;
          try {
            for (_iterator33.s(); !(_step33 = _iterator33.n()).done;) {
              var _step33$value = (0,slicedToArray/* default */.Z)(_step33.value, 2),
                _ = _step33$value[0],
                subscription = _step33$value[1];
              subscription(store);
            }
          } catch (err) {
            _iterator33.e(err);
          } finally {
            _iterator33.f();
          }
        }
      }
    } catch (err) {
      _iterator31.e(err);
    } finally {
      _iterator31.f();
    }
    var _iterator32 = _createForOfIteratorHelper(storeState.transactionSubscriptions),
      _step32;
    try {
      for (_iterator32.s(); !(_step32 = _iterator32.n()).done;) {
        var _step32$value = (0,slicedToArray/* default */.Z)(_step32.value, 2),
          _2 = _step32$value[0],
          _subscription = _step32$value[1];
        _subscription(store);
      }
    } catch (err) {
      _iterator32.e(err);
    } finally {
      _iterator32.f();
    }
    if (!reactMode$2().early || storeState.suspendedComponentResolvers.size > 0) {
      // Notifying components is needed to wake from suspense, even when using
      // early rendering.
      notifyComponents(store, storeState, treeState); // Wake all suspended components so the right one(s) can try to re-render.
      // We need to wake up components not just when some asynchronous selector
      // resolved, but also when changing synchronous values because this may cause
      // a selector to change from asynchronous to synchronous, in which case there
      // would be no follow-up asynchronous resolution to wake us up.
      // TODO OPTIMIZATION Only wake up related downstream components

      storeState.suspendedComponentResolvers.forEach(function (cb) {
        return cb();
      });
      storeState.suspendedComponentResolvers.clear();
    }
  } // Special behavior ONLY invoked by useInterface.
  // FIXME delete queuedComponentCallbacks_DEPRECATED when deleting useInterface.

  storeState.queuedComponentCallbacks_DEPRECATED.forEach(function (cb) {
    return cb(treeState);
  });
  storeState.queuedComponentCallbacks_DEPRECATED.splice(0, storeState.queuedComponentCallbacks_DEPRECATED.length);
}
function endBatch(store) {
  var storeState = store.getState();
  storeState.commitDepth++;
  try {
    var nextTree = storeState.nextTree; // Ignore commits that are not because of Recoil transactions -- namely,
    // because something above RecoilRoot re-rendered:

    if (nextTree == null) {
      return;
    } // nextTree is now committed -- note that copying and reset occurs when
    // a transaction begins, in startNextTreeIfNeeded:

    storeState.previousTree = storeState.currentTree;
    storeState.currentTree = nextTree;
    storeState.nextTree = null;
    sendEndOfBatchNotifications(store);
    if (storeState.previousTree != null) {
      storeState.graphsByVersion.delete(storeState.previousTree.version);
    } else {
      Recoil_recoverableViolation('Ended batch with no previous state, which is unexpected', 'recoil');
    }
    storeState.previousTree = null;
    if (Recoil_gkx('recoil_memory_managament_2020')) {
      // Only release retainables if there were no writes during the end of the
      // batch.  This avoids releasing something we might be about to use.
      if (nextTree == null) {
        releaseScheduledRetainablesNow$1(store);
      }
    }
  } finally {
    storeState.commitDepth--;
  }
}
/*
 * The purpose of the Batcher is to observe when React batches end so that
 * Recoil state changes can be batched. Whenever Recoil state changes, we call
 * setState on the batcher. Then we wait for that change to be committed, which
 * signifies the end of the batch. That's when we respond to the Recoil change.
 */

function Batcher(_ref13) {
  var setNotifyBatcherOfChange = _ref13.setNotifyBatcherOfChange;
  var storeRef = useStoreRef();
  var _useState = useState([]),
    _useState2 = (0,slicedToArray/* default */.Z)(_useState, 2),
    setState = _useState2[1]; // $FlowFixMe[incompatible-call]

  setNotifyBatcherOfChange(function () {
    return setState({});
  });
  useEffect(function () {
    // $FlowFixMe[incompatible-call]
    setNotifyBatcherOfChange(function () {
      return setState({});
    }); // If an asynchronous selector resolves after the Batcher is unmounted,
    // notifyBatcherOfChange will still be called. An error gets thrown whenever
    // setState is called after a component is already unmounted, so this sets
    // notifyBatcherOfChange to be a no-op.

    return function () {
      setNotifyBatcherOfChange(function () {});
    };
  }, [setNotifyBatcherOfChange]);
  useEffect(function () {
    // enqueueExecution runs this function immediately; it is only used to
    // manipulate the order of useEffects during tests, since React seems to
    // call useEffect in an unpredictable order sometimes.
    Recoil_Queue.enqueueExecution('Batcher', function () {
      endBatch(storeRef.current);
    });
  });
  return null;
}
if (false) {} // When removing this deprecated function, remove stateBySettingRecoilValue
// which will no longer be needed.

function initialStoreState_DEPRECATED(store, initializeState) {
  var initial = makeEmptyStoreState$2();
  initializeState({
    set: function set(atom, value) {
      var state = initial.currentTree;
      var writes = setNodeValue$2(store, state, atom.key, value);
      var writtenNodes = new Set(writes.keys());
      var nonvalidatedAtoms = state.nonvalidatedAtoms.clone();
      var _iterator34 = _createForOfIteratorHelper(writtenNodes),
        _step34;
      try {
        for (_iterator34.s(); !(_step34 = _iterator34.n()).done;) {
          var n = _step34.value;
          nonvalidatedAtoms.delete(n);
        }
      } catch (err) {
        _iterator34.e(err);
      } finally {
        _iterator34.f();
      }
      initial.currentTree = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, state), {}, {
        dirtyAtoms: Recoil_unionSets(state.dirtyAtoms, writtenNodes),
        atomValues: applyAtomValueWrites$1(state.atomValues, writes),
        // NB: PLEASE un-export applyAtomValueWrites when deleting this code
        nonvalidatedAtoms: nonvalidatedAtoms
      });
    },
    setUnvalidatedAtomValues: function setUnvalidatedAtomValues(atomValues) {
      // FIXME replace this with a mutative loop
      atomValues.forEach(function (v, k) {
        initial.currentTree = setUnvalidatedAtomValue_DEPRECATED$1(initial.currentTree, k, v);
      });
    }
  });
  return initial;
} // Initialize state snapshot for <RecoilRoot> for the initializeState prop.
// Atom effect initialization takes precedence over this prop.
// Any atom effects will be run before initialization, but then cleaned up,
// they are then re-run when used as part of rendering.  These semantics are
// compatible with React StrictMode where effects may be re-run multiple times
// but state initialization only happens once the first time.

function initialStoreState(initializeState) {
  // Initialize a snapshot and get its store
  var snapshot = freshSnapshot$1(initializeState);
  var storeState = snapshot.getStore_INTERNAL().getState(); // Counteract the snapshot auto-release

  snapshot.retain(); // Cleanup any effects run during initialization and clear the handlers so
  // they will re-initialize if used during rendering.  This allows atom effect
  // initialization to take precedence over initializeState and be compatible
  // with StrictMode semantics.

  storeState.nodeCleanupFunctions.forEach(function (cleanup) {
    return cleanup();
  });
  storeState.nodeCleanupFunctions.clear();
  return storeState;
}
var nextID = 0;
function RecoilRoot_INTERNAL(_ref14) {
  var initializeState_DEPRECATED = _ref14.initializeState_DEPRECATED,
    initializeState = _ref14.initializeState,
    storeProp = _ref14.store_INTERNAL,
    children = _ref14.children;
  // prettier-ignore
  // @fb-only: useEffect(() => {
  // @fb-only: if (gkx('recoil_usage_logging')) {
  // @fb-only: try {
  // @fb-only: RecoilUsageLogFalcoEvent.log(() => ({
  // @fb-only: type: RecoilusagelogEvent.RECOIL_ROOT_MOUNTED,
  // @fb-only: path: URI.getRequestURI().getPath(),
  // @fb-only: }));
  // @fb-only: } catch {
  // @fb-only: recoverableViolation(
  // @fb-only: 'Error when logging Recoil Usage event',
  // @fb-only: 'recoil',
  // @fb-only: );
  // @fb-only: }
  // @fb-only: }
  // @fb-only: }, []);
  var storeStateRef; // eslint-disable-line prefer-const

  var getGraph = function getGraph(version) {
    var graphs = storeStateRef.current.graphsByVersion;
    if (graphs.has(version)) {
      return Recoil_nullthrows(graphs.get(version));
    }
    var newGraph = graph$2();
    graphs.set(version, newGraph);
    return newGraph;
  };
  var subscribeToTransactions = function subscribeToTransactions(callback, key) {
    if (key == null) {
      // Global transaction subscriptions
      var _storeRef$current$get = storeRef.current.getState(),
        transactionSubscriptions = _storeRef$current$get.transactionSubscriptions;
      var id = nextID++;
      transactionSubscriptions.set(id, callback);
      return {
        release: function release() {
          transactionSubscriptions.delete(id);
        }
      };
    } else {
      // Node-specific transaction subscriptions:
      var _storeRef$current$get2 = storeRef.current.getState(),
        nodeTransactionSubscriptions = _storeRef$current$get2.nodeTransactionSubscriptions;
      if (!nodeTransactionSubscriptions.has(key)) {
        nodeTransactionSubscriptions.set(key, new Map());
      }
      var _id2 = nextID++;
      Recoil_nullthrows(nodeTransactionSubscriptions.get(key)).set(_id2, callback);
      return {
        release: function release() {
          var subs = nodeTransactionSubscriptions.get(key);
          if (subs) {
            subs.delete(_id2);
            if (subs.size === 0) {
              nodeTransactionSubscriptions.delete(key);
            }
          }
        }
      };
    }
  };
  var addTransactionMetadata = function addTransactionMetadata(metadata) {
    startNextTreeIfNeeded(storeRef.current);
    for (var _i3 = 0, _Object$keys = Object.keys(metadata); _i3 < _Object$keys.length; _i3++) {
      var k = _Object$keys[_i3];
      Recoil_nullthrows(storeRef.current.getState().nextTree).transactionMetadata[k] = metadata[k];
    }
  };
  var replaceState = function replaceState(replacer) {
    startNextTreeIfNeeded(storeRef.current); // Use replacer to get the next state:

    var nextTree = Recoil_nullthrows(storeStateRef.current.nextTree);
    var replaced;
    try {
      stateReplacerIsBeingExecuted = true;
      replaced = replacer(nextTree);
    } finally {
      stateReplacerIsBeingExecuted = false;
    }
    if (replaced === nextTree) {
      return;
    }
    if (false) {} // Save changes to nextTree and schedule a React update:

    storeStateRef.current.nextTree = replaced;
    if (reactMode$2().early) {
      notifyComponents(storeRef.current, storeStateRef.current, replaced);
    }
    Recoil_nullthrows(notifyBatcherOfChange.current)();
  };
  var notifyBatcherOfChange = useRef$1(null);
  var setNotifyBatcherOfChange = useCallback(function (x) {
    notifyBatcherOfChange.current = x;
  }, [notifyBatcherOfChange]);
  var storeRef = Recoil_useRefInitOnce(function () {
    return storeProp !== null && storeProp !== void 0 ? storeProp : {
      storeID: getNextStoreID$2(),
      getState: function getState() {
        return storeStateRef.current;
      },
      replaceState: replaceState,
      getGraph: getGraph,
      subscribeToTransactions: subscribeToTransactions,
      addTransactionMetadata: addTransactionMetadata
    };
  });
  if (storeProp != null) {
    storeRef.current = storeProp;
  }
  storeStateRef = Recoil_useRefInitOnce(function () {
    return initializeState_DEPRECATED != null ? initialStoreState_DEPRECATED(storeRef.current, initializeState_DEPRECATED) : initializeState != null ? initialStoreState(initializeState) : makeEmptyStoreState$2();
  });
  var mutableSource = useMemo(function () {
    return createMutableSource$1 === null || createMutableSource$1 === void 0 ? void 0 : createMutableSource$1(storeStateRef, function () {
      return storeStateRef.current.currentTree.version;
    });
  }, [storeStateRef]); // Cleanup when the <RecoilRoot> is unmounted

  useEffect(function () {
    // React is free to call effect cleanup handlers and effects at will, the
    // deps array is only an optimization.  For example, React strict mode
    // will execute each effect twice for testing.  Therefore, we need symmetry
    // to re-initialize all known atoms after they were cleaned up.
    var store = storeRef.current;
    var _iterator35 = _createForOfIteratorHelper(new Set(store.getState().knownAtoms)),
      _step35;
    try {
      for (_iterator35.s(); !(_step35 = _iterator35.n()).done;) {
        var atomKey = _step35.value;
        initializeNode$2(store, atomKey, 'get');
      }
    } catch (err) {
      _iterator35.e(err);
    } finally {
      _iterator35.f();
    }
    return function () {
      var _iterator36 = _createForOfIteratorHelper(store.getState().knownAtoms),
        _step36;
      try {
        for (_iterator36.s(); !(_step36 = _iterator36.n()).done;) {
          var atomKey = _step36.value;
          cleanUpNode$2(store, atomKey);
        }
      } catch (err) {
        _iterator36.e(err);
      } finally {
        _iterator36.f();
      }
    };
  }, [storeRef]);
  return /*#__PURE__*/_react_18_2_0_react.createElement(AppContext.Provider, {
    value: storeRef
  }, /*#__PURE__*/_react_18_2_0_react.createElement(MutableSourceContext.Provider, {
    value: mutableSource
  }, /*#__PURE__*/_react_18_2_0_react.createElement(Batcher, {
    setNotifyBatcherOfChange: setNotifyBatcherOfChange
  }), children));
}
function RecoilRoot(props) {
  var override = props.override,
    propsExceptOverride = (0,objectWithoutProperties/* default */.Z)(props, _excluded);
  var ancestorStoreRef = useStoreRef();
  if (override === false && ancestorStoreRef.current !== defaultStore) {
    // If ancestorStoreRef.current !== defaultStore, it means that this
    // RecoilRoot is not nested within another.
    return props.children;
  }
  return /*#__PURE__*/_react_18_2_0_react.createElement(RecoilRoot_INTERNAL, propsExceptOverride);
}
function useRecoilStoreID() {
  return useStoreRef().current.storeID;
}
var Recoil_RecoilRoot = {
  RecoilRoot: RecoilRoot,
  useStoreRef: useStoreRef,
  useRecoilMutableSource: useRecoilMutableSource,
  useRecoilStoreID: useRecoilStoreID,
  notifyComponents_FOR_TESTING: notifyComponents,
  sendEndOfBatchNotifications_FOR_TESTING: sendEndOfBatchNotifications
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

function shallowArrayEqual(a, b) {
  if (a === b) {
    return true;
  }
  if (a.length !== b.length) {
    return false;
  }
  for (var i = 0, l = a.length; i < l; i++) {
    if (a[i] !== b[i]) {
      return false;
    }
  }
  return true;
}
var Recoil_shallowArrayEqual = shallowArrayEqual;
var useEffect$1 = _react_18_2_0_react.useEffect,
  useRef$2 = _react_18_2_0_react.useRef;
function usePrevious(value) {
  var ref = useRef$2();
  useEffect$1(function () {
    // $FlowFixMe[incompatible-type]
    ref.current = value;
  });
  return ref.current;
}
var Recoil_usePrevious = usePrevious;
var useStoreRef$1 = Recoil_RecoilRoot.useStoreRef;
var SUSPENSE_TIMEOUT_MS$1 = Recoil_Retention.SUSPENSE_TIMEOUT_MS;
var updateRetainCount$2 = Recoil_Retention.updateRetainCount;
var RetentionZone$3 = Recoil_RetentionZone.RetentionZone;
var useEffect$2 = _react_18_2_0_react.useEffect,
  useRef$3 = _react_18_2_0_react.useRef;
var isSSR$2 = Recoil_Environment.isSSR;

// I don't see a way to avoid the any type here because we want to accept readable
// and writable values with any type parameter, but normally with writable ones
// RecoilState<SomeT> is not a subtype of RecoilState<mixed>.

// flowlint-line unclear-type:off
function useRetain(toRetain) {
  if (!Recoil_gkx('recoil_memory_managament_2020')) {
    return;
  } // eslint-disable-next-line fb-www/react-hooks

  return useRetain_ACTUAL(toRetain);
}
function useRetain_ACTUAL(toRetain) {
  var array = Array.isArray(toRetain) ? toRetain : [toRetain];
  var retainables = array.map(function (a) {
    return a instanceof RetentionZone$3 ? a : a.key;
  });
  var storeRef = useStoreRef$1();
  useEffect$2(function () {
    if (!Recoil_gkx('recoil_memory_managament_2020')) {
      return;
    }
    var store = storeRef.current;
    if (timeoutID.current && !isSSR$2) {
      // Already performed a temporary retain on render, simply cancel the release
      // of that temporary retain.
      window.clearTimeout(timeoutID.current);
      timeoutID.current = null;
    } else {
      var _iterator37 = _createForOfIteratorHelper(retainables),
        _step37;
      try {
        for (_iterator37.s(); !(_step37 = _iterator37.n()).done;) {
          var r = _step37.value;
          updateRetainCount$2(store, r, 1);
        }
      } catch (err) {
        _iterator37.e(err);
      } finally {
        _iterator37.f();
      }
    }
    return function () {
      var _iterator38 = _createForOfIteratorHelper(retainables),
        _step38;
      try {
        for (_iterator38.s(); !(_step38 = _iterator38.n()).done;) {
          var _r = _step38.value;
          updateRetainCount$2(store, _r, -1);
        }
      } catch (err) {
        _iterator38.e(err);
      } finally {
        _iterator38.f();
      }
    }; // eslint-disable-next-line fb-www/react-hooks-deps
  }, [storeRef].concat((0,toConsumableArray/* default */.Z)(retainables))); // We want to retain if the component suspends. This is terrible but the Suspense
  // API affords us no better option. If we suspend and never commit after some
  // seconds, then release. The 'actual' retain/release in the effect above
  // cancels this.

  var timeoutID = useRef$3();
  var previousRetainables = Recoil_usePrevious(retainables);
  if (!isSSR$2 && (previousRetainables === undefined || !Recoil_shallowArrayEqual(previousRetainables, retainables))) {
    var store = storeRef.current;
    var _iterator39 = _createForOfIteratorHelper(retainables),
      _step39;
    try {
      for (_iterator39.s(); !(_step39 = _iterator39.n()).done;) {
        var _r3 = _step39.value;
        updateRetainCount$2(store, _r3, 1);
      }
    } catch (err) {
      _iterator39.e(err);
    } finally {
      _iterator39.f();
    }
    if (previousRetainables) {
      var _iterator40 = _createForOfIteratorHelper(previousRetainables),
        _step40;
      try {
        for (_iterator40.s(); !(_step40 = _iterator40.n()).done;) {
          var r = _step40.value;
          updateRetainCount$2(store, r, -1);
        }
      } catch (err) {
        _iterator40.e(err);
      } finally {
        _iterator40.f();
      }
    }
    if (timeoutID.current) {
      window.clearTimeout(timeoutID.current);
    }
    timeoutID.current = window.setTimeout(function () {
      timeoutID.current = null;
      var _iterator41 = _createForOfIteratorHelper(retainables),
        _step41;
      try {
        for (_iterator41.s(); !(_step41 = _iterator41.n()).done;) {
          var _r2 = _step41.value;
          updateRetainCount$2(store, _r2, -1);
        }
      } catch (err) {
        _iterator41.e(err);
      } finally {
        _iterator41.f();
      }
    }, SUSPENSE_TIMEOUT_MS$1);
  }
}
var Recoil_useRetain = useRetain;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * THIS CODE HAS BEEN COMMENTED OUT INTENTIONALLY
 *
 * This technique of getting the component name is imperfect, since it both only
 * works in a non-minified code base, and more importantly introduces performance
 * problems since it relies in throwing errors which is an expensive operation.
 *
 * At some point we may want to reevaluate this technique hence why we have commented
 * this code out, rather than delete it all together.
 */
// const {useRef} = require('react');
// const gkx = require('recoil-shared/util/Recoil_gkx');
// const stackTraceParser = require('recoil-shared/util/Recoil_stackTraceParser');

function useComponentName() {
  // const nameRef = useRef();
  // if (__DEV__) {
  //   if (gkx('recoil_infer_component_names')) {
  //     if (nameRef.current === undefined) {
  //       // There is no blessed way to determine the calling React component from
  //       // within a hook. This hack uses the fact that hooks must start with 'use'
  //       // and that hooks are either called by React Components or other hooks. It
  //       // follows therefore, that to find the calling component, you simply need
  //       // to look down the stack and find the first function which doesn't start
  //       // with 'use'. We are only enabling this in dev for now, since once the
  //       // codebase is minified, the naming assumptions no longer hold true.
  //       // eslint-disable-next-line fb-www/no-new-error
  //       const frames = stackTraceParser(new Error().stack);
  //       for (const {methodName} of frames) {
  //         // I observed cases where the frame was of the form 'Object.useXXX'
  //         // hence why I'm searching for hooks following a word boundary
  //         if (!methodName.match(/\buse[^\b]+$/)) {
  //           return (nameRef.current = methodName);
  //         }
  //       }
  //       nameRef.current = null;
  //     }
  //     return nameRef.current ?? '<unable to determine component name>';
  //   }
  // }
  // @fb-only: return "<component name only available when both in dev mode and when passing GK 'recoil_infer_component_names'>";
  return '<component name not available>'; // @oss-only
}

var Recoil_useComponentName = useComponentName;
var batchUpdates$2 = Recoil_Batching.batchUpdates;
var DEFAULT_VALUE$2 = Recoil_Node.DEFAULT_VALUE;
var currentRendererSupportsUseSyncExternalStore$1 = Recoil_ReactMode.currentRendererSupportsUseSyncExternalStore,
  reactMode$3 = Recoil_ReactMode.reactMode,
  useMutableSource$1 = Recoil_ReactMode.useMutableSource,
  useSyncExternalStore$1 = Recoil_ReactMode.useSyncExternalStore;
var useRecoilMutableSource$1 = Recoil_RecoilRoot.useRecoilMutableSource,
  useStoreRef$2 = Recoil_RecoilRoot.useStoreRef;
var isRecoilValue$2 = Recoil_RecoilValue$1.isRecoilValue;
var AbstractRecoilValue$3 = Recoil_RecoilValueInterface.AbstractRecoilValue,
  getRecoilValueAsLoadable$2 = Recoil_RecoilValueInterface.getRecoilValueAsLoadable,
  setRecoilValue$2 = Recoil_RecoilValueInterface.setRecoilValue,
  setUnvalidatedRecoilValue$2 = Recoil_RecoilValueInterface.setUnvalidatedRecoilValue,
  subscribeToRecoilValue$1 = Recoil_RecoilValueInterface.subscribeToRecoilValue;
var useCallback$1 = _react_18_2_0_react.useCallback,
  useEffect$3 = _react_18_2_0_react.useEffect,
  useMemo$1 = _react_18_2_0_react.useMemo,
  useRef$4 = _react_18_2_0_react.useRef,
  useState$1 = _react_18_2_0_react.useState;
var setByAddingToSet$2 = Recoil_CopyOnWrite.setByAddingToSet;
var isSSR$3 = Recoil_Environment.isSSR;
function handleLoadable(loadable, recoilValue, storeRef) {
  // We can't just throw the promise we are waiting on to Suspense.  If the
  // upstream dependencies change it may produce a state in which the component
  // can render, but it would still be suspended on a Promise that may never resolve.
  if (loadable.state === 'hasValue') {
    return loadable.contents;
  } else if (loadable.state === 'loading') {
    var promise = new Promise(function (resolve) {
      var suspendedComponentResolvers = storeRef.current.getState().suspendedComponentResolvers;
      suspendedComponentResolvers.add(resolve); // SSR should clear out the wake-up resolver if the Promise is resolved
      // to avoid infinite loops.  (See https://github.com/facebookexperimental/Recoil/pull/2073)

      if (isSSR$3 && Recoil_isPromise(loadable.contents)) {
        loadable.contents.finally(function () {
          suspendedComponentResolvers.delete(resolve);
        });
      }
    }); // $FlowExpectedError Flow(prop-missing) for integrating with tools that inspect thrown promises @fb-only
    // @fb-only: promise.displayName = `Recoil State: ${recoilValue.key}`;

    throw promise;
  } else if (loadable.state === 'hasError') {
    throw loadable.contents;
  } else {
    throw Recoil_err("Invalid value of loadable atom \"".concat(recoilValue.key, "\""));
  }
}
function validateRecoilValue(recoilValue, hookName // $FlowFixMe[missing-local-annot]
) {
  if (!isRecoilValue$2(recoilValue)) {
    throw Recoil_err("Invalid argument to ".concat(hookName, ": expected an atom or selector but got ").concat(String(recoilValue)));
  }
}

/**
 * Various things are broken with useRecoilInterface, particularly concurrent
 * mode, React strict mode, and memory management. They will not be fixed.
 * */
function useRecoilInterface_DEPRECATED() {
  var componentName = Recoil_useComponentName();
  var storeRef = useStoreRef$2(); // eslint-disable-next-line fb-www/react-no-unused-state-hook

  var _useState$ = useState$1([]),
    _useState$2 = (0,slicedToArray/* default */.Z)(_useState$, 2),
    forceUpdate = _useState$2[1];
  var recoilValuesUsed = useRef$4(new Set());
  recoilValuesUsed.current = new Set(); // Track the RecoilValues used just during this render

  var previousSubscriptions = useRef$4(new Set());
  var subscriptions = useRef$4(new Map());
  var unsubscribeFrom = useCallback$1(function (key) {
    var sub = subscriptions.current.get(key);
    if (sub) {
      sub.release();
      subscriptions.current.delete(key);
    }
  }, [subscriptions]);
  var updateState = useCallback$1(function (_state, key) {
    if (subscriptions.current.has(key)) {
      forceUpdate([]);
    }
  }, []); // Effect to add/remove subscriptions as nodes are used

  useEffect$3(function () {
    var store = storeRef.current;
    Recoil_differenceSets(recoilValuesUsed.current, previousSubscriptions.current).forEach(function (key) {
      if (subscriptions.current.has(key)) {
        Recoil_expectationViolation("Double subscription to RecoilValue \"".concat(key, "\""));
        return;
      }
      var sub = subscribeToRecoilValue$1(store, new AbstractRecoilValue$3(key), function (state) {
        return updateState(state, key);
      }, componentName);
      subscriptions.current.set(key, sub);
      /**
       * Since we're subscribing in an effect we need to update to the latest
       * value of the atom since it may have changed since we rendered. We can
       * go ahead and do that now, unless we're in the middle of a batch --
       * in which case we should do it at the end of the batch, due to the
       * following edge case: Suppose an atom is updated in another useEffect
       * of this same component. Then the following sequence of events occur:
       * 1. Atom is updated and subs fired (but we may not be subscribed
       *    yet depending on order of effects, so we miss this) Updated value
       *    is now in nextTree, but not currentTree.
       * 2. This effect happens. We subscribe and update.
       * 3. From the update we re-render and read currentTree, with old value.
       * 4. Batcher's effect sets currentTree to nextTree.
       * In this sequence we miss the update. To avoid that, add the update
       * to queuedComponentCallback if a batch is in progress.
       */
      // FIXME delete queuedComponentCallbacks_DEPRECATED when deleting useInterface.

      var state = store.getState();
      if (state.nextTree) {
        store.getState().queuedComponentCallbacks_DEPRECATED.push(function () {
          updateState(store.getState(), key);
        });
      } else {
        updateState(store.getState(), key);
      }
    });
    Recoil_differenceSets(previousSubscriptions.current, recoilValuesUsed.current).forEach(function (key) {
      unsubscribeFrom(key);
    });
    previousSubscriptions.current = recoilValuesUsed.current;
  }); // Effect to unsubscribe from all when unmounting

  useEffect$3(function () {
    var currentSubscriptions = subscriptions.current; // Restore subscriptions that were cleared due to StrictMode running this effect twice

    Recoil_differenceSets(recoilValuesUsed.current, new Set(currentSubscriptions.keys())).forEach(function (key) {
      var sub = subscribeToRecoilValue$1(storeRef.current, new AbstractRecoilValue$3(key), function (state) {
        return updateState(state, key);
      }, componentName);
      currentSubscriptions.set(key, sub);
    });
    return function () {
      return currentSubscriptions.forEach(function (_, key) {
        return unsubscribeFrom(key);
      });
    };
  }, [componentName, storeRef, unsubscribeFrom, updateState]);
  return useMemo$1(function () {
    // eslint-disable-next-line no-shadow
    function useSetRecoilState(recoilState) {
      if (false) {}
      return function (newValueOrUpdater) {
        setRecoilValue$2(storeRef.current, recoilState, newValueOrUpdater);
      };
    } // eslint-disable-next-line no-shadow

    function useResetRecoilState(recoilState) {
      if (false) {}
      return function () {
        return setRecoilValue$2(storeRef.current, recoilState, DEFAULT_VALUE$2);
      };
    } // eslint-disable-next-line no-shadow

    function useRecoilValueLoadable(recoilValue) {
      var _storeState$nextTree;
      if (false) {}
      if (!recoilValuesUsed.current.has(recoilValue.key)) {
        recoilValuesUsed.current = setByAddingToSet$2(recoilValuesUsed.current, recoilValue.key);
      } // TODO Restore optimization to memoize lookup

      var storeState = storeRef.current.getState();
      return getRecoilValueAsLoadable$2(storeRef.current, recoilValue, reactMode$3().early ? (_storeState$nextTree = storeState.nextTree) !== null && _storeState$nextTree !== void 0 ? _storeState$nextTree : storeState.currentTree : storeState.currentTree);
    } // eslint-disable-next-line no-shadow

    function useRecoilValue(recoilValue) {
      if (false) {}
      var loadable = useRecoilValueLoadable(recoilValue);
      return handleLoadable(loadable, recoilValue, storeRef);
    } // eslint-disable-next-line no-shadow

    function useRecoilState(recoilState) {
      if (false) {}
      return [useRecoilValue(recoilState), useSetRecoilState(recoilState)];
    } // eslint-disable-next-line no-shadow

    function useRecoilStateLoadable(recoilState) {
      if (false) {}
      return [useRecoilValueLoadable(recoilState), useSetRecoilState(recoilState)];
    }
    return {
      getRecoilValue: useRecoilValue,
      getRecoilValueLoadable: useRecoilValueLoadable,
      getRecoilState: useRecoilState,
      getRecoilStateLoadable: useRecoilStateLoadable,
      getSetRecoilState: useSetRecoilState,
      getResetRecoilState: useResetRecoilState
    };
  }, [recoilValuesUsed, storeRef]);
}
var recoilComponentGetRecoilValueCount_FOR_TESTING = {
  current: 0
};
function useRecoilValueLoadable_SYNC_EXTERNAL_STORE(recoilValue) {
  var storeRef = useStoreRef$2();
  var componentName = Recoil_useComponentName();
  var getSnapshot = useCallback$1(function () {
    var _storeState$nextTree2;
    if (false) {}
    var store = storeRef.current;
    var storeState = store.getState();
    var treeState = reactMode$3().early ? (_storeState$nextTree2 = storeState.nextTree) !== null && _storeState$nextTree2 !== void 0 ? _storeState$nextTree2 : storeState.currentTree : storeState.currentTree;
    var loadable = getRecoilValueAsLoadable$2(store, recoilValue, treeState);
    return {
      loadable: loadable,
      key: recoilValue.key
    };
  }, [storeRef, recoilValue]); // Memoize the state to avoid unnecessary rerenders

  var memoizePreviousSnapshot = useCallback$1(function (getState) {
    var prevState;
    return function () {
      var _prevState, _prevState2;
      var nextState = getState();
      if ((_prevState = prevState) !== null && _prevState !== void 0 && _prevState.loadable.is(nextState.loadable) && ((_prevState2 = prevState) === null || _prevState2 === void 0 ? void 0 : _prevState2.key) === nextState.key) {
        return prevState;
      }
      prevState = nextState;
      return nextState;
    };
  }, []);
  var getMemoizedSnapshot = useMemo$1(function () {
    return memoizePreviousSnapshot(getSnapshot);
  }, [getSnapshot, memoizePreviousSnapshot]);
  var subscribe = useCallback$1(function (notify) {
    var store = storeRef.current;
    var subscription = subscribeToRecoilValue$1(store, recoilValue, notify, componentName);
    return subscription.release;
  }, [storeRef, recoilValue, componentName]);
  return useSyncExternalStore$1(subscribe, getMemoizedSnapshot,
  // getSnapshot()
  getMemoizedSnapshot // getServerSnapshot() for SSR support
  ).loadable;
}
function useRecoilValueLoadable_MUTABLE_SOURCE(recoilValue) {
  var storeRef = useStoreRef$2();
  var getLoadable = useCallback$1(function () {
    var _storeState$nextTree3;
    var store = storeRef.current;
    var storeState = store.getState();
    var treeState = reactMode$3().early ? (_storeState$nextTree3 = storeState.nextTree) !== null && _storeState$nextTree3 !== void 0 ? _storeState$nextTree3 : storeState.currentTree : storeState.currentTree;
    return getRecoilValueAsLoadable$2(store, recoilValue, treeState);
  }, [storeRef, recoilValue]);
  var getLoadableWithTesting = useCallback$1(function () {
    if (false) {}
    return getLoadable();
  }, [getLoadable]);
  var componentName = Recoil_useComponentName();
  var subscribe = useCallback$1(function (_storeState, notify) {
    var store = storeRef.current;
    var subscription = subscribeToRecoilValue$1(store, recoilValue, function () {
      if (!Recoil_gkx('recoil_suppress_rerender_in_callback')) {
        return notify();
      } // Only re-render if the value has changed.
      // This will evaluate the atom/selector now as well as when the
      // component renders, but that may help with prefetching.

      var newLoadable = getLoadable();
      if (!prevLoadableRef.current.is(newLoadable)) {
        notify();
      } // If the component is suspended then the effect setting prevLoadableRef
      // will not run.  So, set the previous value here when its subscription
      // is fired to wake it up.  We can't just rely on this, though, because
      // this only executes when an atom/selector is dirty and the atom/selector
      // passed to the hook can dynamically change.

      prevLoadableRef.current = newLoadable;
    }, componentName);
    return subscription.release;
  }, [storeRef, recoilValue, componentName, getLoadable]);
  var source = useRecoilMutableSource$1();
  if (source == null) {
    throw Recoil_err('Recoil hooks must be used in components contained within a <RecoilRoot> component.');
  }
  var loadable = useMutableSource$1(source, getLoadableWithTesting, subscribe);
  var prevLoadableRef = useRef$4(loadable);
  useEffect$3(function () {
    prevLoadableRef.current = loadable;
  });
  return loadable;
}
function useRecoilValueLoadable_TRANSITION_SUPPORT(recoilValue) {
  var storeRef = useStoreRef$2();
  var componentName = Recoil_useComponentName(); // Accessors to get the current state

  var getLoadable = useCallback$1(function () {
    var _storeState$nextTree4;
    if (false) {}
    var store = storeRef.current;
    var storeState = store.getState();
    var treeState = reactMode$3().early ? (_storeState$nextTree4 = storeState.nextTree) !== null && _storeState$nextTree4 !== void 0 ? _storeState$nextTree4 : storeState.currentTree : storeState.currentTree;
    return getRecoilValueAsLoadable$2(store, recoilValue, treeState);
  }, [storeRef, recoilValue]);
  var getState = useCallback$1(function () {
    return {
      loadable: getLoadable(),
      key: recoilValue.key
    };
  }, [getLoadable, recoilValue.key]); // Memoize state snapshots

  var updateState = useCallback$1(function (prevState) {
    var nextState = getState();
    return prevState.loadable.is(nextState.loadable) && prevState.key === nextState.key ? prevState : nextState;
  }, [getState]); // Subscribe to Recoil state changes

  useEffect$3(function () {
    var subscription = subscribeToRecoilValue$1(storeRef.current, recoilValue, function (_state) {
      setState(updateState);
    }, componentName); // Update state in case we are using a different key

    setState(updateState);
    return subscription.release;
  }, [componentName, recoilValue, storeRef, updateState]); // Get the current state

  var _useState$3 = useState$1(getState),
    _useState$4 = (0,slicedToArray/* default */.Z)(_useState$3, 2),
    state = _useState$4[0],
    setState = _useState$4[1]; // If we changed keys, then return the state for the new key.
  // This is important in case the old key would cause the component to suspend.
  // We don't have to set the new state here since the subscribing effect above
  // will do that.

  return state.key !== recoilValue.key ? getState().loadable : state.loadable;
}
function useRecoilValueLoadable_LEGACY(recoilValue) {
  var storeRef = useStoreRef$2(); // eslint-disable-next-line fb-www/react-no-unused-state-hook

  var _useState$5 = useState$1([]),
    _useState$6 = (0,slicedToArray/* default */.Z)(_useState$5, 2),
    forceUpdate = _useState$6[1];
  var componentName = Recoil_useComponentName();
  var getLoadable = useCallback$1(function () {
    var _storeState$nextTree5;
    if (false) {}
    var store = storeRef.current;
    var storeState = store.getState();
    var treeState = reactMode$3().early ? (_storeState$nextTree5 = storeState.nextTree) !== null && _storeState$nextTree5 !== void 0 ? _storeState$nextTree5 : storeState.currentTree : storeState.currentTree;
    return getRecoilValueAsLoadable$2(store, recoilValue, treeState);
  }, [storeRef, recoilValue]);
  var loadable = getLoadable();
  var prevLoadableRef = useRef$4(loadable);
  useEffect$3(function () {
    prevLoadableRef.current = loadable;
  });
  useEffect$3(function () {
    var store = storeRef.current;
    var storeState = store.getState();
    var subscription = subscribeToRecoilValue$1(store, recoilValue, function (_state) {
      var _prevLoadableRef$curr;
      if (!Recoil_gkx('recoil_suppress_rerender_in_callback')) {
        return forceUpdate([]);
      }
      var newLoadable = getLoadable();
      if (!((_prevLoadableRef$curr = prevLoadableRef.current) !== null && _prevLoadableRef$curr !== void 0 && _prevLoadableRef$curr.is(newLoadable))) {
        // $FlowFixMe[incompatible-call]
        forceUpdate(newLoadable);
      }
      prevLoadableRef.current = newLoadable;
    }, componentName);
    /**
     * Since we're subscribing in an effect we need to update to the latest
     * value of the atom since it may have changed since we rendered. We can
     * go ahead and do that now, unless we're in the middle of a batch --
     * in which case we should do it at the end of the batch, due to the
     * following edge case: Suppose an atom is updated in another useEffect
     * of this same component. Then the following sequence of events occur:
     * 1. Atom is updated and subs fired (but we may not be subscribed
     *    yet depending on order of effects, so we miss this) Updated value
     *    is now in nextTree, but not currentTree.
     * 2. This effect happens. We subscribe and update.
     * 3. From the update we re-render and read currentTree, with old value.
     * 4. Batcher's effect sets currentTree to nextTree.
     * In this sequence we miss the update. To avoid that, add the update
     * to queuedComponentCallback if a batch is in progress.
     */

    if (storeState.nextTree) {
      store.getState().queuedComponentCallbacks_DEPRECATED.push(function () {
        // $FlowFixMe[incompatible-type]
        prevLoadableRef.current = null;
        forceUpdate([]);
      });
    } else {
      var _prevLoadableRef$curr2;
      if (!Recoil_gkx('recoil_suppress_rerender_in_callback')) {
        return forceUpdate([]);
      }
      var newLoadable = getLoadable();
      if (!((_prevLoadableRef$curr2 = prevLoadableRef.current) !== null && _prevLoadableRef$curr2 !== void 0 && _prevLoadableRef$curr2.is(newLoadable))) {
        // $FlowFixMe[incompatible-call]
        forceUpdate(newLoadable);
      }
      prevLoadableRef.current = newLoadable;
    }
    return subscription.release;
  }, [componentName, getLoadable, recoilValue, storeRef]);
  return loadable;
}
/**
  Like useRecoilValue(), but either returns the value if available or
  just undefined if not available for any reason, such as pending or error.
*/

function useRecoilValueLoadable(recoilValue) {
  if (false) {}
  if (Recoil_gkx('recoil_memory_managament_2020')) {
    // eslint-disable-next-line fb-www/react-hooks
    Recoil_useRetain(recoilValue);
  }
  return {
    TRANSITION_SUPPORT: useRecoilValueLoadable_TRANSITION_SUPPORT,
    // Recoil will attemp to detect if `useSyncExternalStore()` is supported with
    // `reactMode()` before calling it.  However, sometimes the host React
    // environment supports it but uses additional React renderers (such as with
    // `react-three-fiber`) which do not.  While this is technically a user issue
    // by using a renderer with React 18+ that doesn't fully support React 18 we
    // don't want to break users if it can be avoided. As the current renderer can
    // change at runtime, we need to dynamically check and fallback if necessary.
    SYNC_EXTERNAL_STORE: currentRendererSupportsUseSyncExternalStore$1() ? useRecoilValueLoadable_SYNC_EXTERNAL_STORE : useRecoilValueLoadable_TRANSITION_SUPPORT,
    MUTABLE_SOURCE: useRecoilValueLoadable_MUTABLE_SOURCE,
    LEGACY: useRecoilValueLoadable_LEGACY
  }[reactMode$3().mode](recoilValue);
}
/**
  Returns the value represented by the RecoilValue.
  If the value is pending, it will throw a Promise to suspend the component,
  if the value is an error it will throw it for the nearest React error boundary.
  This will also subscribe the component for any updates in the value.
  */

function useRecoilValue(recoilValue) {
  if (false) {}
  var storeRef = useStoreRef$2();
  var loadable = useRecoilValueLoadable(recoilValue);
  return handleLoadable(loadable, recoilValue, storeRef);
}
/**
  Returns a function that allows the value of a RecoilState to be updated, but does
  not subscribe the component to changes to that RecoilState.
*/

function useSetRecoilState(recoilState) {
  if (false) {}
  var storeRef = useStoreRef$2();
  return useCallback$1(function (newValueOrUpdater) {
    setRecoilValue$2(storeRef.current, recoilState, newValueOrUpdater);
  }, [storeRef, recoilState]);
}
/**
  Returns a function that will reset the value of a RecoilState to its default
*/

function useResetRecoilState(recoilState) {
  if (false) {}
  var storeRef = useStoreRef$2();
  return useCallback$1(function () {
    setRecoilValue$2(storeRef.current, recoilState, DEFAULT_VALUE$2);
  }, [storeRef, recoilState]);
}
/**
  Equivalent to useState(). Allows the value of the RecoilState to be read and written.
  Subsequent updates to the RecoilState will cause the component to re-render. If the
  RecoilState is pending, this will suspend the component and initiate the
  retrieval of the value. If evaluating the RecoilState resulted in an error, this will
  throw the error so that the nearest React error boundary can catch it.
*/

function useRecoilState(recoilState) {
  if (false) {}
  return [useRecoilValue(recoilState), useSetRecoilState(recoilState)];
}
/**
  Like useRecoilState(), but does not cause Suspense or React error handling. Returns
  an object that indicates whether the RecoilState is available, pending, or
  unavailable due to an error.
*/

function useRecoilStateLoadable(recoilState) {
  if (false) {}
  return [useRecoilValueLoadable(recoilState), useSetRecoilState(recoilState)];
}
function useSetUnvalidatedAtomValues() {
  var storeRef = useStoreRef$2();
  return function (values) {
    var transactionMetadata = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    batchUpdates$2(function () {
      storeRef.current.addTransactionMetadata(transactionMetadata);
      values.forEach(function (value, key) {
        return setUnvalidatedRecoilValue$2(storeRef.current, new AbstractRecoilValue$3(key), value);
      });
    });
  };
}
/**
 * Experimental variants of hooks with support for useTransition()
 */

function useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE(recoilValue) {
  if (false) {}
  if (Recoil_gkx('recoil_memory_managament_2020')) {
    // eslint-disable-next-line fb-www/react-hooks
    Recoil_useRetain(recoilValue);
  }
  return useRecoilValueLoadable_TRANSITION_SUPPORT(recoilValue);
}
function useRecoilValue_TRANSITION_SUPPORT_UNSTABLE(recoilValue) {
  if (false) {}
  var storeRef = useStoreRef$2();
  var loadable = useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE(recoilValue);
  return handleLoadable(loadable, recoilValue, storeRef);
}
function useRecoilState_TRANSITION_SUPPORT_UNSTABLE(recoilState) {
  if (false) {}
  return [useRecoilValue_TRANSITION_SUPPORT_UNSTABLE(recoilState), useSetRecoilState(recoilState)];
}
var Recoil_Hooks = {
  recoilComponentGetRecoilValueCount_FOR_TESTING: recoilComponentGetRecoilValueCount_FOR_TESTING,
  useRecoilInterface: useRecoilInterface_DEPRECATED,
  useRecoilState: useRecoilState,
  useRecoilStateLoadable: useRecoilStateLoadable,
  useRecoilValue: useRecoilValue,
  useRecoilValueLoadable: useRecoilValueLoadable,
  useResetRecoilState: useResetRecoilState,
  useSetRecoilState: useSetRecoilState,
  useSetUnvalidatedAtomValues: useSetUnvalidatedAtomValues,
  useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE: useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE,
  useRecoilValue_TRANSITION_SUPPORT_UNSTABLE: useRecoilValue_TRANSITION_SUPPORT_UNSTABLE,
  useRecoilState_TRANSITION_SUPPORT_UNSTABLE: useRecoilState_TRANSITION_SUPPORT_UNSTABLE
};

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * Returns a map containing all of the keys + values from the original map where
 * the given callback returned true.
 */

function filterMap(map, callback) {
  var result = new Map();
  var _iterator42 = _createForOfIteratorHelper(map),
    _step42;
  try {
    for (_iterator42.s(); !(_step42 = _iterator42.n()).done;) {
      var _step42$value = (0,slicedToArray/* default */.Z)(_step42.value, 2),
        key = _step42$value[0],
        value = _step42$value[1];
      if (callback(value, key)) {
        result.set(key, value);
      }
    }
  } catch (err) {
    _iterator42.e(err);
  } finally {
    _iterator42.f();
  }
  return result;
}
var Recoil_filterMap = filterMap;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
/**
 * Returns a set containing all of the values from the original set where
 * the given callback returned true.
 */

function filterSet(set, callback) {
  var result = new Set();
  var _iterator43 = _createForOfIteratorHelper(set),
    _step43;
  try {
    for (_iterator43.s(); !(_step43 = _iterator43.n()).done;) {
      var value = _step43.value;
      if (callback(value)) {
        result.add(value);
      }
    }
  } catch (err) {
    _iterator43.e(err);
  } finally {
    _iterator43.f();
  }
  return result;
}
var Recoil_filterSet = filterSet;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

function mergeMaps() {
  var result = new Map();
  for (var _len5 = arguments.length, maps = new Array(_len5), _key8 = 0; _key8 < _len5; _key8++) {
    maps[_key8] = arguments[_key8];
  }
  for (var i = 0; i < maps.length; i++) {
    var iterator = maps[i].keys();
    var nextKey = void 0;
    while (!(nextKey = iterator.next()).done) {
      // $FlowIssue[incompatible-call] - map/iterator knows nothing about flow types
      result.set(nextKey.value, maps[i].get(nextKey.value));
    }
  }
  return result;
}
var Recoil_mergeMaps = mergeMaps;
var batchUpdates$3 = Recoil_Batching.batchUpdates;
var DEFAULT_VALUE$3 = Recoil_Node.DEFAULT_VALUE,
  getNode$4 = Recoil_Node.getNode,
  nodes$1 = Recoil_Node.nodes;
var useStoreRef$3 = Recoil_RecoilRoot.useStoreRef;
var AbstractRecoilValue$4 = Recoil_RecoilValueInterface.AbstractRecoilValue,
  setRecoilValueLoadable$1 = Recoil_RecoilValueInterface.setRecoilValueLoadable;
var SUSPENSE_TIMEOUT_MS$2 = Recoil_Retention.SUSPENSE_TIMEOUT_MS;
var cloneSnapshot$1 = Recoil_Snapshot$1.cloneSnapshot;
var useCallback$2 = _react_18_2_0_react.useCallback,
  useEffect$4 = _react_18_2_0_react.useEffect,
  useRef$5 = _react_18_2_0_react.useRef,
  useState$2 = _react_18_2_0_react.useState;
var isSSR$4 = Recoil_Environment.isSSR;
function useTransactionSubscription(callback) {
  var storeRef = useStoreRef$3();
  useEffect$4(function () {
    var sub = storeRef.current.subscribeToTransactions(callback);
    return sub.release;
  }, [callback, storeRef]);
}
function externallyVisibleAtomValuesInState(state) {
  var atomValues = state.atomValues.toMap();
  var persistedAtomContentsValues = Recoil_mapMap(Recoil_filterMap(atomValues, function (v, k) {
    var node = getNode$4(k);
    var persistence = node.persistence_UNSTABLE;
    return persistence != null && persistence.type !== 'none' && v.state === 'hasValue';
  }), function (v) {
    return v.contents;
  }); // Merge in nonvalidated atoms; we may not have defs for them but they will
  // all have persistence on or they wouldn't be there in the first place.

  return Recoil_mergeMaps(state.nonvalidatedAtoms.toMap(), persistedAtomContentsValues);
}

/**
  Calls the given callback after any atoms have been modified and the consequent
  component re-renders have been committed. This is intended for persisting
  the values of the atoms to storage. The stored values can then be restored
  using the useSetUnvalidatedAtomValues hook.

  The callback receives the following info:

  atomValues: The current value of every atom that is both persistable (persistence
              type not set to 'none') and whose value is available (not in an
              error or loading state).

  previousAtomValues: The value of every persistable and available atom before
               the transaction began.

  atomInfo: A map containing the persistence settings for each atom. Every key
            that exists in atomValues will also exist in atomInfo.

  modifiedAtoms: The set of atoms that were written to during the transaction.

  transactionMetadata: Arbitrary information that was added via the
          useSetUnvalidatedAtomValues hook. Useful for ignoring the useSetUnvalidatedAtomValues
          transaction, to avoid loops.
*/
function useTransactionObservation_DEPRECATED(callback) {
  useTransactionSubscription(useCallback$2(function (store) {
    var previousTree = store.getState().previousTree;
    var currentTree = store.getState().currentTree;
    if (!previousTree) {
      Recoil_recoverableViolation('Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil');
      previousTree = store.getState().currentTree; // attempt to trundle on
    }

    var atomValues = externallyVisibleAtomValuesInState(currentTree);
    var previousAtomValues = externallyVisibleAtomValuesInState(previousTree);
    var atomInfo = Recoil_mapMap(nodes$1, function (node) {
      var _node$persistence_UNS, _node$persistence_UNS2, _node$persistence_UNS3, _node$persistence_UNS4;
      return {
        persistence_UNSTABLE: {
          type: (_node$persistence_UNS = (_node$persistence_UNS2 = node.persistence_UNSTABLE) === null || _node$persistence_UNS2 === void 0 ? void 0 : _node$persistence_UNS2.type) !== null && _node$persistence_UNS !== void 0 ? _node$persistence_UNS : 'none',
          backButton: (_node$persistence_UNS3 = (_node$persistence_UNS4 = node.persistence_UNSTABLE) === null || _node$persistence_UNS4 === void 0 ? void 0 : _node$persistence_UNS4.backButton) !== null && _node$persistence_UNS3 !== void 0 ? _node$persistence_UNS3 : false
        }
      };
    }); // Filter on existance in atomValues so that externally-visible rules
    // are also applied to modified atoms (specifically exclude selectors):

    var modifiedAtoms = Recoil_filterSet(currentTree.dirtyAtoms, function (k) {
      return atomValues.has(k) || previousAtomValues.has(k);
    });
    callback({
      atomValues: atomValues,
      previousAtomValues: previousAtomValues,
      atomInfo: atomInfo,
      modifiedAtoms: modifiedAtoms,
      transactionMetadata: (0,objectSpread2/* default */.Z)({}, currentTree.transactionMetadata)
    });
  }, [callback]));
}
function useRecoilTransactionObserver(callback) {
  useTransactionSubscription(useCallback$2(function (store) {
    var snapshot = cloneSnapshot$1(store, 'latest');
    var previousSnapshot = cloneSnapshot$1(store, 'previous');
    callback({
      snapshot: snapshot,
      previousSnapshot: previousSnapshot
    });
  }, [callback]));
} // Return a snapshot of the current state and subscribe to all state changes

function useRecoilSnapshot() {
  var storeRef = useStoreRef$3();
  var _useState$7 = useState$2(function () {
      return cloneSnapshot$1(storeRef.current);
    }),
    _useState$8 = (0,slicedToArray/* default */.Z)(_useState$7, 2),
    snapshot = _useState$8[0],
    setSnapshot = _useState$8[1];
  var previousSnapshot = Recoil_usePrevious(snapshot);
  var timeoutID = useRef$5();
  var releaseRef = useRef$5();
  useTransactionSubscription(useCallback$2(function (store) {
    return setSnapshot(cloneSnapshot$1(store));
  }, [])); // Retain snapshot for duration component is mounted

  useEffect$4(function () {
    var release = snapshot.retain(); // Release the retain from the rendering call

    if (timeoutID.current && !isSSR$4) {
      var _releaseRef$current;
      window.clearTimeout(timeoutID.current);
      timeoutID.current = null;
      (_releaseRef$current = releaseRef.current) === null || _releaseRef$current === void 0 ? void 0 : _releaseRef$current.call(releaseRef);
      releaseRef.current = null;
    }
    return function () {
      // Defer the release.  If "Fast Refresh"" is used then the component may
      // re-render with the same state.  The previous cleanup will then run and
      // then the new effect will run. We don't want the snapshot to be released
      // by that cleanup before the new effect has a chance to retain it again.
      // Use timeout of 10 to workaround Firefox issue: https://github.com/facebookexperimental/Recoil/issues/1936
      window.setTimeout(release, 10);
    };
  }, [snapshot]); // Retain snapshot until above effect is run.
  // Release after a threshold in case component is suspended.

  if (previousSnapshot !== snapshot && !isSSR$4) {
    // Release the previous snapshot
    if (timeoutID.current) {
      var _releaseRef$current2;
      window.clearTimeout(timeoutID.current);
      timeoutID.current = null;
      (_releaseRef$current2 = releaseRef.current) === null || _releaseRef$current2 === void 0 ? void 0 : _releaseRef$current2.call(releaseRef);
      releaseRef.current = null;
    }
    releaseRef.current = snapshot.retain();
    timeoutID.current = window.setTimeout(function () {
      var _releaseRef$current3;
      timeoutID.current = null;
      (_releaseRef$current3 = releaseRef.current) === null || _releaseRef$current3 === void 0 ? void 0 : _releaseRef$current3.call(releaseRef);
      releaseRef.current = null;
    }, SUSPENSE_TIMEOUT_MS$2);
  }
  return snapshot;
}
function gotoSnapshot(store, snapshot) {
  var _storeState$nextTree;
  var storeState = store.getState();
  var prev = (_storeState$nextTree = storeState.nextTree) !== null && _storeState$nextTree !== void 0 ? _storeState$nextTree : storeState.currentTree;
  var next = snapshot.getStore_INTERNAL().getState().currentTree;
  batchUpdates$3(function () {
    var keysToUpdate = new Set();
    for (var _i4 = 0, _arr = [prev.atomValues.keys(), next.atomValues.keys()]; _i4 < _arr.length; _i4++) {
      var keys = _arr[_i4];
      var _iterator44 = _createForOfIteratorHelper(keys),
        _step44;
      try {
        for (_iterator44.s(); !(_step44 = _iterator44.n()).done;) {
          var key = _step44.value;
          var _prev$atomValues$get, _next$atomValues$get;
          if (((_prev$atomValues$get = prev.atomValues.get(key)) === null || _prev$atomValues$get === void 0 ? void 0 : _prev$atomValues$get.contents) !== ((_next$atomValues$get = next.atomValues.get(key)) === null || _next$atomValues$get === void 0 ? void 0 : _next$atomValues$get.contents) && getNode$4(key).shouldRestoreFromSnapshots) {
            keysToUpdate.add(key);
          }
        }
      } catch (err) {
        _iterator44.e(err);
      } finally {
        _iterator44.f();
      }
    }
    keysToUpdate.forEach(function (key) {
      setRecoilValueLoadable$1(store, new AbstractRecoilValue$4(key), next.atomValues.has(key) ? Recoil_nullthrows(next.atomValues.get(key)) : DEFAULT_VALUE$3);
    });
    store.replaceState(function (state) {
      return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, state), {}, {
        stateID: snapshot.getID()
      });
    });
  });
}
function useGotoRecoilSnapshot() {
  var storeRef = useStoreRef$3();
  return useCallback$2(function (snapshot) {
    return gotoSnapshot(storeRef.current, snapshot);
  }, [storeRef]);
}
var Recoil_SnapshotHooks = {
  useRecoilSnapshot: useRecoilSnapshot,
  gotoSnapshot: gotoSnapshot,
  useGotoRecoilSnapshot: useGotoRecoilSnapshot,
  useRecoilTransactionObserver: useRecoilTransactionObserver,
  useTransactionObservation_DEPRECATED: useTransactionObservation_DEPRECATED,
  useTransactionSubscription_DEPRECATED: useTransactionSubscription
};
var peekNodeInfo$2 = Recoil_FunctionalCore.peekNodeInfo;
var useStoreRef$4 = Recoil_RecoilRoot.useStoreRef;
function useGetRecoilValueInfo() {
  var storeRef = useStoreRef$4(); // $FlowFixMe[incompatible-return]

  return function (_ref15) {
    var key = _ref15.key;
    return peekNodeInfo$2(storeRef.current, storeRef.current.getState().currentTree, key);
  };
}
var Recoil_useGetRecoilValueInfo = useGetRecoilValueInfo;
var reactMode$4 = Recoil_ReactMode.reactMode;
var RecoilRoot$1 = Recoil_RecoilRoot.RecoilRoot,
  useStoreRef$5 = Recoil_RecoilRoot.useStoreRef;
var useMemo$2 = _react_18_2_0_react.useMemo;
function useRecoilBridgeAcrossReactRoots() {
  // The test fails when using useMutableSource(), but only if act() is used
  // for the nested root.  So, this may only be a testing environment issue.
  if (reactMode$4().mode === 'MUTABLE_SOURCE') {
    // eslint-disable-next-line fb-www/no-console
    console.warn('Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode.  Please consider upgrading to recoil_sync_external_store mode.');
  }
  var store = useStoreRef$5().current;
  return useMemo$2(function () {
    // eslint-disable-next-line no-shadow
    function RecoilBridge(_ref16) {
      var children = _ref16.children;
      return /*#__PURE__*/_react_18_2_0_react.createElement(RecoilRoot$1, {
        store_INTERNAL: store
      }, children);
    }
    return RecoilBridge;
  }, [store]);
}
var Recoil_useRecoilBridgeAcrossReactRoots = useRecoilBridgeAcrossReactRoots;
var loadableWithValue$1 = Recoil_Loadable$1.loadableWithValue;
var initializeNode$3 = Recoil_FunctionalCore.initializeNode;
var DEFAULT_VALUE$4 = Recoil_Node.DEFAULT_VALUE,
  getNode$5 = Recoil_Node.getNode;
var copyTreeState$1 = Recoil_RecoilValueInterface.copyTreeState,
  getRecoilValueAsLoadable$3 = Recoil_RecoilValueInterface.getRecoilValueAsLoadable,
  invalidateDownstreams$1 = Recoil_RecoilValueInterface.invalidateDownstreams,
  writeLoadableToTreeState$1 = Recoil_RecoilValueInterface.writeLoadableToTreeState;
function isAtom(recoilValue) {
  return getNode$5(recoilValue.key).nodeType === 'atom';
}
var TransactionInterfaceImpl = /*#__PURE__*/function () {
  function TransactionInterfaceImpl(store, treeState) {
    var _this10 = this;
    (0,classCallCheck/* default */.Z)(this, TransactionInterfaceImpl);
    _defineProperty(this, "_store", void 0);
    _defineProperty(this, "_treeState", void 0);
    _defineProperty(this, "_changes", void 0);
    _defineProperty(this, "get", function (recoilValue) {
      if (_this10._changes.has(recoilValue.key)) {
        // $FlowIssue[incompatible-return]
        return _this10._changes.get(recoilValue.key);
      }
      if (!isAtom(recoilValue)) {
        throw Recoil_err('Reading selectors within atomicUpdate is not supported');
      }
      var loadable = getRecoilValueAsLoadable$3(_this10._store, recoilValue, _this10._treeState);
      if (loadable.state === 'hasValue') {
        return loadable.contents;
      } else if (loadable.state === 'hasError') {
        throw loadable.contents;
      } else {
        throw Recoil_err("Expected Recoil atom ".concat(recoilValue.key, " to have a value, but it is in a loading state."));
      }
    });
    _defineProperty(this, "set", function (recoilState, valueOrUpdater) {
      if (!isAtom(recoilState)) {
        throw Recoil_err('Setting selectors within atomicUpdate is not supported');
      }
      if (typeof valueOrUpdater === 'function') {
        var current = _this10.get(recoilState);
        _this10._changes.set(recoilState.key, valueOrUpdater(current)); // flowlint-line unclear-type:off
      } else {
        // Initialize atom and run effects if not initialized yet
        initializeNode$3(_this10._store, recoilState.key, 'set');
        _this10._changes.set(recoilState.key, valueOrUpdater);
      }
    });
    _defineProperty(this, "reset", function (recoilState) {
      _this10.set(recoilState, DEFAULT_VALUE$4);
    });
    this._store = store;
    this._treeState = treeState;
    this._changes = new Map();
  } // Allow destructing
  // eslint-disable-next-line fb-www/extra-arrow-initializer
  (0,createClass/* default */.Z)(TransactionInterfaceImpl, [{
    key: "newTreeState_INTERNAL",
    value: function newTreeState_INTERNAL() {
      if (this._changes.size === 0) {
        return this._treeState;
      }
      var newState = copyTreeState$1(this._treeState);
      var _iterator45 = _createForOfIteratorHelper(this._changes),
        _step45;
      try {
        for (_iterator45.s(); !(_step45 = _iterator45.n()).done;) {
          var _step45$value = (0,slicedToArray/* default */.Z)(_step45.value, 2),
            k = _step45$value[0],
            v = _step45$value[1];
          writeLoadableToTreeState$1(newState, k, loadableWithValue$1(v));
        }
      } catch (err) {
        _iterator45.e(err);
      } finally {
        _iterator45.f();
      }
      invalidateDownstreams$1(this._store, newState);
      return newState;
    }
  }]);
  return TransactionInterfaceImpl;
}();
function atomicUpdater(store) {
  return function (fn) {
    store.replaceState(function (treeState) {
      var changeset = new TransactionInterfaceImpl(store, treeState);
      fn(changeset);
      return changeset.newTreeState_INTERNAL();
    });
  };
}
var Recoil_AtomicUpdates = {
  atomicUpdater: atomicUpdater
};
var Recoil_AtomicUpdates_1 = Recoil_AtomicUpdates.atomicUpdater;
var Recoil_AtomicUpdates$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  atomicUpdater: Recoil_AtomicUpdates_1
});

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

function invariant(condition, message) {
  if (!condition) {
    throw new Error(message);
  }
}
var invariant_1 = invariant;

// @oss-only

var Recoil_invariant = invariant_1;
var atomicUpdater$1 = Recoil_AtomicUpdates$1.atomicUpdater;
var batchUpdates$4 = Recoil_Batching.batchUpdates;
var DEFAULT_VALUE$5 = Recoil_Node.DEFAULT_VALUE;
var useStoreRef$6 = Recoil_RecoilRoot.useStoreRef;
var refreshRecoilValue$1 = Recoil_RecoilValueInterface.refreshRecoilValue,
  setRecoilValue$3 = Recoil_RecoilValueInterface.setRecoilValue;
var cloneSnapshot$2 = Recoil_Snapshot$1.cloneSnapshot;
var gotoSnapshot$1 = Recoil_SnapshotHooks.gotoSnapshot;
var useCallback$3 = _react_18_2_0_react.useCallback;
var Sentinel = /*#__PURE__*/(0,createClass/* default */.Z)(function Sentinel() {
  (0,classCallCheck/* default */.Z)(this, Sentinel);
});
var SENTINEL = new Sentinel();
function recoilCallback(store, fn, args, extraInterface) {
  var ret = SENTINEL;
  var releaseSnapshot;
  batchUpdates$4(function () {
    var errMsg = 'useRecoilCallback() expects a function that returns a function: ' + 'it accepts a function of the type (RecoilInterface) => (Args) => ReturnType ' + 'and returns a callback function (Args) => ReturnType, where RecoilInterface is ' + 'an object {snapshot, set, ...} and Args and ReturnType are the argument and return ' + 'types of the callback you want to create.  Please see the docs ' + 'at recoiljs.org for details.';
    if (typeof fn !== 'function') {
      throw Recoil_err(errMsg);
    } // Clone the snapshot lazily to avoid overhead if the callback does not use it.
    // Note that this means the snapshot may represent later state from when
    // the callback was called if it first accesses the snapshot asynchronously.

    var callbackInterface = Recoil_lazyProxy((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, extraInterface !== null && extraInterface !== void 0 ? extraInterface : {}), {}, {
      // flowlint-line unclear-type:off
      // $FlowFixMe[missing-local-annot]
      set: function set(node, newValue) {
        return setRecoilValue$3(store, node, newValue);
      },
      // $FlowFixMe[missing-local-annot]
      reset: function reset(node) {
        return setRecoilValue$3(store, node, DEFAULT_VALUE$5);
      },
      // $FlowFixMe[missing-local-annot]
      refresh: function refresh(node) {
        return refreshRecoilValue$1(store, node);
      },
      gotoSnapshot: function gotoSnapshot(snapshot) {
        return gotoSnapshot$1(store, snapshot);
      },
      transact_UNSTABLE: function transact_UNSTABLE(transaction) {
        return atomicUpdater$1(store)(transaction);
      }
    }), {
      snapshot: function snapshot() {
        var snapshot = cloneSnapshot$2(store);
        releaseSnapshot = snapshot.retain();
        return snapshot;
      }
    });
    var callback = fn(callbackInterface);
    if (typeof callback !== 'function') {
      throw Recoil_err(errMsg);
    }
    ret = callback.apply(void 0, (0,toConsumableArray/* default */.Z)(args));
  });
  !!(ret instanceof Sentinel) ?  false ? 0 : Recoil_invariant(false) : void 0;
  if (Recoil_isPromise(ret)) {
    ret = ret.finally(function () {
      var _releaseSnapshot;
      (_releaseSnapshot = releaseSnapshot) === null || _releaseSnapshot === void 0 ? void 0 : _releaseSnapshot();
    });
  } else {
    var _releaseSnapshot2;
    (_releaseSnapshot2 = releaseSnapshot) === null || _releaseSnapshot2 === void 0 ? void 0 : _releaseSnapshot2();
  }
  return ret;
}
function useRecoilCallback(fn, deps) {
  var storeRef = useStoreRef$6();
  return useCallback$3(
  // $FlowIssue[incompatible-call]
  function () {
    for (var _len6 = arguments.length, args = new Array(_len6), _key9 = 0; _key9 < _len6; _key9++) {
      args[_key9] = arguments[_key9];
    }
    return recoilCallback(storeRef.current, fn, args);
  }, deps != null ? [].concat((0,toConsumableArray/* default */.Z)(deps), [storeRef]) : undefined // eslint-disable-line fb-www/react-hooks-deps
  );
}

var Recoil_useRecoilCallback = {
  recoilCallback: recoilCallback,
  useRecoilCallback: useRecoilCallback
};
var useStoreRef$7 = Recoil_RecoilRoot.useStoreRef;
var refreshRecoilValue$2 = Recoil_RecoilValueInterface.refreshRecoilValue;
var useCallback$4 = _react_18_2_0_react.useCallback;
function useRecoilRefresher(recoilValue) {
  var storeRef = useStoreRef$7();
  return useCallback$4(function () {
    var store = storeRef.current;
    refreshRecoilValue$2(store, recoilValue);
  }, [recoilValue, storeRef]);
}
var Recoil_useRecoilRefresher = useRecoilRefresher;
var atomicUpdater$2 = Recoil_AtomicUpdates$1.atomicUpdater;
var useStoreRef$8 = Recoil_RecoilRoot.useStoreRef;
var useMemo$3 = _react_18_2_0_react.useMemo;
function useRecoilTransaction(fn, deps) {
  var storeRef = useStoreRef$8();
  return useMemo$3(function () {
    return function () {
      for (var _len7 = arguments.length, args = new Array(_len7), _key10 = 0; _key10 < _len7; _key10++) {
        args[_key10] = arguments[_key10];
      }
      var atomicUpdate = atomicUpdater$2(storeRef.current);
      atomicUpdate(function (transactionInterface) {
        fn(transactionInterface).apply(void 0, args);
      });
    };
  }, deps != null ? [].concat((0,toConsumableArray/* default */.Z)(deps), [storeRef]) : undefined // eslint-disable-line fb-www/react-hooks-deps
  );
}

var Recoil_useRecoilTransaction = useRecoilTransaction;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
var WrappedValue = /*#__PURE__*/(0,createClass/* default */.Z)(function WrappedValue(value) {
  (0,classCallCheck/* default */.Z)(this, WrappedValue);
  _defineProperty(this, "value", void 0);
  this.value = value;
});
var Recoil_Wrapper = {
  WrappedValue: WrappedValue
};
var Recoil_Wrapper_1 = Recoil_Wrapper.WrappedValue;
var Recoil_Wrapper$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  WrappedValue: Recoil_Wrapper_1
});
var isFastRefreshEnabled$2 = Recoil_ReactMode.isFastRefreshEnabled;
var ChangedPathError = /*#__PURE__*/function (_Error3) {
  (0,inherits/* default */.Z)(ChangedPathError, _Error3);
  var _super9 = (0,createSuper/* default */.Z)(ChangedPathError);
  function ChangedPathError() {
    (0,classCallCheck/* default */.Z)(this, ChangedPathError);
    return _super9.apply(this, arguments);
  }
  return (0,createClass/* default */.Z)(ChangedPathError);
}( /*#__PURE__*/_wrapNativeSuper(Error));
var TreeCache = /*#__PURE__*/function () {
  // $FlowIssue[unclear-type]
  function TreeCache(options) {
    (0,classCallCheck/* default */.Z)(this, TreeCache);
    var _options$onHit, _options$onSet, _options$mapNodeValue;
    _defineProperty(this, "_name", void 0);
    _defineProperty(this, "_numLeafs", void 0);
    _defineProperty(this, "_root", void 0);
    _defineProperty(this, "_onHit", void 0);
    _defineProperty(this, "_onSet", void 0);
    _defineProperty(this, "_mapNodeValue", void 0);
    this._name = options === null || options === void 0 ? void 0 : options.name;
    this._numLeafs = 0;
    this._root = null;
    this._onHit = (_options$onHit = options === null || options === void 0 ? void 0 : options.onHit) !== null && _options$onHit !== void 0 ? _options$onHit : function () {};
    this._onSet = (_options$onSet = options === null || options === void 0 ? void 0 : options.onSet) !== null && _options$onSet !== void 0 ? _options$onSet : function () {};
    this._mapNodeValue = (_options$mapNodeValue = options === null || options === void 0 ? void 0 : options.mapNodeValue) !== null && _options$mapNodeValue !== void 0 ? _options$mapNodeValue : function (val) {
      return val;
    };
  }
  (0,createClass/* default */.Z)(TreeCache, [{
    key: "size",
    value: function size() {
      return this._numLeafs;
    } // $FlowIssue[unclear-type]
  }, {
    key: "root",
    value: function root() {
      return this._root;
    }
  }, {
    key: "get",
    value: function get(getNodeValue, handlers) {
      var _this$getLeafNode;
      return (_this$getLeafNode = this.getLeafNode(getNodeValue, handlers)) === null || _this$getLeafNode === void 0 ? void 0 : _this$getLeafNode.value;
    }
  }, {
    key: "getLeafNode",
    value: function getLeafNode(getNodeValue, handlers) {
      if (this._root == null) {
        return undefined;
      } // Iterate down the tree based on the current node values until we hit a leaf
      // $FlowIssue[unclear-type]

      var node = this._root;
      while (node) {
        handlers === null || handlers === void 0 ? void 0 : handlers.onNodeVisit(node);
        if (node.type === 'leaf') {
          this._onHit(node);
          return node;
        }
        var nodeValue = this._mapNodeValue(getNodeValue(node.nodeKey));
        node = node.branches.get(nodeValue);
      }
      return undefined;
    }
  }, {
    key: "set",
    value: function set(route, value, handlers) {
      var _this11 = this;
      var addLeaf = function addLeaf() {
        var _node2, _node3, _this$_root2, _handlers$onNodeVisit2;

        // First, setup the branch nodes for the route:
        // Iterate down the tree to find or add branch nodes following the route
        var node;
        var branchKey;
        var _iterator46 = _createForOfIteratorHelper(route),
          _step46;
        try {
          for (_iterator46.s(); !(_step46 = _iterator46.n()).done;) {
            var _step46$value = (0,slicedToArray/* default */.Z)(_step46.value, 2),
              nodeKey = _step46$value[0],
              nodeValue = _step46$value[1];
            var _node, _handlers$onNodeVisit, _this$_root;

            // If the previous root was a leaf, while we not have a get(), it means
            // the selector has inconsistent values or implementation changed.
            var root = _this11._root;
            if ((root === null || root === void 0 ? void 0 : root.type) === 'leaf') {
              throw _this11.invalidCacheError();
            } // node now refers to the next node down in the tree

            var parent = node; // $FlowFixMe[prop-missing]
            // $FlowFixMe[incompatible-type]

            node = parent ? parent.branches.get(branchKey) : root; // $FlowFixMe[prop-missing]
            // $FlowFixMe[incompatible-type]

            node = (_node = node) !== null && _node !== void 0 ? _node : {
              type: 'branch',
              nodeKey: nodeKey,
              parent: parent,
              branches: new Map(),
              branchKey: branchKey
            }; // If we found an existing node, confirm it has a consistent value

            if (node.type !== 'branch' || node.nodeKey !== nodeKey) {
              throw _this11.invalidCacheError();
            } // Add the branch node to the tree

            parent === null || parent === void 0 ? void 0 : parent.branches.set(branchKey, node);
            handlers === null || handlers === void 0 ? void 0 : (_handlers$onNodeVisit = handlers.onNodeVisit) === null || _handlers$onNodeVisit === void 0 ? void 0 : _handlers$onNodeVisit.call(handlers, node); // Prepare for next iteration and install root if it is new.

            branchKey = _this11._mapNodeValue(nodeValue);
            _this11._root = (_this$_root = _this11._root) !== null && _this$_root !== void 0 ? _this$_root : node;
          } // Second, setup the leaf node:
          // If there is an existing leaf for this route confirm it is consistent
        } catch (err) {
          _iterator46.e(err);
        } finally {
          _iterator46.f();
        }
        var oldLeaf = node ? (_node2 = node) === null || _node2 === void 0 ? void 0 : _node2.branches.get(branchKey) : _this11._root;
        if (oldLeaf != null && (oldLeaf.type !== 'leaf' || oldLeaf.branchKey !== branchKey)) {
          throw _this11.invalidCacheError();
        } // Create a new or replacement leaf.

        var leafNode = {
          type: 'leaf',
          value: value,
          parent: node,
          branchKey: branchKey
        }; // Install the leaf and call handlers

        (_node3 = node) === null || _node3 === void 0 ? void 0 : _node3.branches.set(branchKey, leafNode);
        _this11._root = (_this$_root2 = _this11._root) !== null && _this$_root2 !== void 0 ? _this$_root2 : leafNode;
        _this11._numLeafs++;
        _this11._onSet(leafNode);
        handlers === null || handlers === void 0 ? void 0 : (_handlers$onNodeVisit2 = handlers.onNodeVisit) === null || _handlers$onNodeVisit2 === void 0 ? void 0 : _handlers$onNodeVisit2.call(handlers, leafNode);
      };
      try {
        addLeaf();
      } catch (error) {
        // If the cache was stale or observed inconsistent values, such as with
        // Fast Refresh, then clear it and rebuild with the new values.
        if (error instanceof ChangedPathError) {
          this.clear();
          addLeaf();
        } else {
          throw error;
        }
      }
    } // Returns true if leaf was actually deleted from the tree
  }, {
    key: "delete",
    value: function _delete(leaf) {
      var root = this.root();
      if (!root) {
        return false;
      }
      if (leaf === root) {
        this._root = null;
        this._numLeafs = 0;
        return true;
      } // Iterate up from the leaf deleteing it from it's parent's branches.

      var node = leaf.parent;
      var branchKey = leaf.branchKey;
      while (node) {
        var _node4;
        node.branches.delete(branchKey); // Stop iterating if we hit the root.

        if (node === root) {
          if (node.branches.size === 0) {
            this._root = null;
            this._numLeafs = 0;
          } else {
            this._numLeafs--;
          }
          return true;
        } // Stop iterating if there are other branches since we don't need to
        // remove any more nodes.

        if (node.branches.size > 0) {
          break;
        } // Iterate up to our parent

        branchKey = (_node4 = node) === null || _node4 === void 0 ? void 0 : _node4.branchKey;
        node = node.parent;
      } // Confirm that the leaf we are deleting is actually attached to our tree

      for (; node !== root; node = node.parent) {
        if (node == null) {
          return false;
        }
      }
      this._numLeafs--;
      return true;
    }
  }, {
    key: "clear",
    value: function clear() {
      this._numLeafs = 0;
      this._root = null;
    }
  }, {
    key: "invalidCacheError",
    value: function invalidCacheError() {
      var CHANGED_PATH_ERROR_MESSAGE = isFastRefreshEnabled$2() ? 'Possible Fast Refresh module reload detected.  ' + 'This may also be caused by an selector returning inconsistent values. ' + 'Resetting cache.' : 'Invalid cache values.  This happens when selectors do not return ' + 'consistent values for the same input dependency values.  That may also ' + 'be caused when using Fast Refresh to change a selector implementation.  ' + 'Resetting cache.';
      Recoil_recoverableViolation(CHANGED_PATH_ERROR_MESSAGE + (this._name != null ? " - ".concat(this._name) : ''));
      throw new ChangedPathError();
    }
  }]);
  return TreeCache;
}();
var Recoil_TreeCache = {
  TreeCache: TreeCache
};
var Recoil_TreeCache_1 = Recoil_TreeCache.TreeCache;
var Recoil_TreeCache$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  TreeCache: Recoil_TreeCache_1
});
var LRUCache = /*#__PURE__*/function () {
  function LRUCache(options) {
    (0,classCallCheck/* default */.Z)(this, LRUCache);
    var _options$mapKey;
    _defineProperty(this, "_maxSize", void 0);
    _defineProperty(this, "_size", void 0);
    _defineProperty(this, "_head", void 0);
    _defineProperty(this, "_tail", void 0);
    _defineProperty(this, "_map", void 0);
    _defineProperty(this, "_keyMapper", void 0);
    this._maxSize = options.maxSize;
    this._size = 0;
    this._head = null;
    this._tail = null;
    this._map = new Map();
    this._keyMapper = (_options$mapKey = options.mapKey) !== null && _options$mapKey !== void 0 ? _options$mapKey : function (v) {
      return v;
    };
  }
  (0,createClass/* default */.Z)(LRUCache, [{
    key: "head",
    value: function head() {
      return this._head;
    }
  }, {
    key: "tail",
    value: function tail() {
      return this._tail;
    }
  }, {
    key: "size",
    value: function size() {
      return this._size;
    }
  }, {
    key: "maxSize",
    value: function maxSize() {
      return this._maxSize;
    }
  }, {
    key: "has",
    value: function has(key) {
      return this._map.has(this._keyMapper(key));
    }
  }, {
    key: "get",
    value: function get(key) {
      var mappedKey = this._keyMapper(key);
      var node = this._map.get(mappedKey);
      if (!node) {
        return undefined;
      }
      this.set(key, node.value);
      return node.value;
    }
  }, {
    key: "set",
    value: function set(key, val) {
      var mappedKey = this._keyMapper(key);
      var existingNode = this._map.get(mappedKey);
      if (existingNode) {
        this.delete(key);
      }
      var head = this.head();
      var node = {
        key: key,
        right: head,
        left: null,
        value: val
      };
      if (head) {
        head.left = node;
      } else {
        this._tail = node;
      }
      this._map.set(mappedKey, node);
      this._head = node;
      this._size++;
      this._maybeDeleteLRU();
    }
  }, {
    key: "_maybeDeleteLRU",
    value: function _maybeDeleteLRU() {
      if (this.size() > this.maxSize()) {
        this.deleteLru();
      }
    }
  }, {
    key: "deleteLru",
    value: function deleteLru() {
      var tail = this.tail();
      if (tail) {
        this.delete(tail.key);
      }
    }
  }, {
    key: "delete",
    value: function _delete(key) {
      var mappedKey = this._keyMapper(key);
      if (!this._size || !this._map.has(mappedKey)) {
        return;
      }
      var node = Recoil_nullthrows(this._map.get(mappedKey));
      var right = node.right;
      var left = node.left;
      if (right) {
        right.left = node.left;
      }
      if (left) {
        left.right = node.right;
      }
      if (node === this.head()) {
        this._head = right;
      }
      if (node === this.tail()) {
        this._tail = left;
      }
      this._map.delete(mappedKey);
      this._size--;
    }
  }, {
    key: "clear",
    value: function clear() {
      this._size = 0;
      this._head = null;
      this._tail = null;
      this._map = new Map();
    }
  }]);
  return LRUCache;
}();
var Recoil_LRUCache = {
  LRUCache: LRUCache
};
var Recoil_LRUCache_1 = Recoil_LRUCache.LRUCache;
var Recoil_LRUCache$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  LRUCache: Recoil_LRUCache_1
});
var LRUCache$1 = Recoil_LRUCache$1.LRUCache;
var TreeCache$1 = Recoil_TreeCache$1.TreeCache;
function treeCacheLRU(_ref17) {
  var name = _ref17.name,
    maxSize = _ref17.maxSize,
    _ref17$mapNodeValue = _ref17.mapNodeValue,
    mapNodeValue = _ref17$mapNodeValue === void 0 ? function (v) {
      return v;
    } : _ref17$mapNodeValue;
  var lruCache = new LRUCache$1({
    maxSize: maxSize
  });
  var cache = new TreeCache$1({
    name: name,
    mapNodeValue: mapNodeValue,
    onHit: function onHit(node) {
      lruCache.set(node, true);
    },
    onSet: function onSet(node) {
      var lruNode = lruCache.tail();
      lruCache.set(node, true);
      if (lruNode && cache.size() > maxSize) {
        // $FlowFixMe[incompatible-call]
        cache.delete(lruNode.key);
      }
    }
  });
  return cache;
}
var Recoil_treeCacheLRU = treeCacheLRU;
var TIME_WARNING_THRESHOLD_MS = 15;
function stringify(x, opt, key) {
  // A optimization to avoid the more expensive JSON.stringify() for simple strings
  // This may lose protection for u2028 and u2029, though.
  if (typeof x === 'string' && !x.includes('"') && !x.includes('\\')) {
    return "\"".concat(x, "\"");
  } // Handle primitive types

  switch (typeof x) {
    case 'undefined':
      return '';
    // JSON.stringify(undefined) returns undefined, but we always want to return a string

    case 'boolean':
      return x ? 'true' : 'false';
    case 'number':
    case 'symbol':
      // case 'bigint': // BigInt is not supported in www
      return String(x);
    case 'string':
      // Add surrounding quotes and escape internal quotes
      return JSON.stringify(x);
    case 'function':
      if ((opt === null || opt === void 0 ? void 0 : opt.allowFunctions) !== true) {
        throw Recoil_err('Attempt to serialize function in a Recoil cache key');
      }
      return "__FUNCTION(".concat(x.name, ")__");
  }
  if (x === null) {
    return 'null';
  } // Fallback case for unknown types

  if (typeof x !== 'object') {
    var _JSON$stringify;
    return (_JSON$stringify = JSON.stringify(x)) !== null && _JSON$stringify !== void 0 ? _JSON$stringify : '';
  } // Deal with all promises as equivalent for now.

  if (Recoil_isPromise(x)) {
    return '__PROMISE__';
  } // Arrays handle recursive stringification

  if (Array.isArray(x)) {
    // $FlowFixMe[missing-local-annot]
    return "[".concat(x.map(function (v, i) {
      return stringify(v, opt, i.toString());
    }), "]");
  } // If an object defines a toJSON() method, then use that to override the
  // serialization.  This matches the behavior of JSON.stringify().
  // Pass the key for compatibility.
  // Immutable.js collections define this method to allow us to serialize them.

  if (typeof x.toJSON === 'function') {
    // flowlint-next-line unclear-type: off
    return stringify(x.toJSON(key), opt, key);
  } // For built-in Maps, sort the keys in a stable order instead of the
  // default insertion order.  Support non-string keys.

  if (x instanceof Map) {
    var obj = {};
    var _iterator47 = _createForOfIteratorHelper(x),
      _step47;
    try {
      for (_iterator47.s(); !(_step47 = _iterator47.n()).done;) {
        var _step47$value = (0,slicedToArray/* default */.Z)(_step47.value, 2),
          k = _step47$value[0],
          v = _step47$value[1];
        // Stringify will escape any nested quotes
        obj[typeof k === 'string' ? k : stringify(k, opt)] = v;
      }
    } catch (err) {
      _iterator47.e(err);
    } finally {
      _iterator47.f();
    }
    return stringify(obj, opt, key);
  } // For built-in Sets, sort the keys in a stable order instead of the
  // default insertion order.

  if (x instanceof Set) {
    return stringify(
    // $FlowFixMe[missing-local-annot]
    Array.from(x).sort(function (a, b) {
      return stringify(a, opt).localeCompare(stringify(b, opt));
    }), opt, key);
  } // Anything else that is iterable serialize as an Array.

  if (Symbol !== undefined && x[Symbol.iterator] != null && typeof x[Symbol.iterator] === 'function') {
    // flowlint-next-line unclear-type: off
    return stringify(Array.from(x), opt, key);
  } // For all other Objects, sort the keys in a stable order.

  return "{".concat(Object.keys(x).filter(function (k) {
    return x[k] !== undefined;
  }).sort() // stringify the key to add quotes and escape any nested slashes or quotes.
  .map(function (k) {
    return "".concat(stringify(k, opt), ":").concat(stringify(x[k], opt, k));
  }).join(','), "}");
} // Utility similar to JSON.stringify() except:
// * Serialize built-in Sets as an Array
// * Serialize built-in Maps as an Object.  Supports non-string keys.
// * Serialize other iterables as arrays
// * Sort the keys of Objects and Maps to have a stable order based on string conversion.
//    This overrides their default insertion order.
// * Still uses toJSON() of any object to override serialization
// * Support Symbols (though don't guarantee uniqueness)
// * We could support BigInt, but Flow doesn't seem to like it.
// See Recoil_stableStringify-test.js for examples

function stableStringify(x) {
  var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
    allowFunctions: false
  };
  if (false) { var endTime, str, startTime; }
  return stringify(x, opt);
}
var Recoil_stableStringify = stableStringify;
var TreeCache$2 = Recoil_TreeCache$1.TreeCache;
var defaultPolicy = {
  equality: 'reference',
  eviction: 'keep-all',
  maxSize: Infinity
};
function treeCacheFromPolicy() {
  var _ref18 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultPolicy,
    _ref18$equality = _ref18.equality,
    equality = _ref18$equality === void 0 ? defaultPolicy.equality : _ref18$equality,
    _ref18$eviction = _ref18.eviction,
    eviction = _ref18$eviction === void 0 ? defaultPolicy.eviction : _ref18$eviction,
    _ref18$maxSize = _ref18.maxSize,
    maxSize = _ref18$maxSize === void 0 ? defaultPolicy.maxSize : _ref18$maxSize;
  var name = arguments.length > 1 ? arguments[1] : undefined;
  var valueMapper = getValueMapper(equality);
  return getTreeCache(eviction, maxSize, valueMapper, name);
}
function getValueMapper(equality) {
  switch (equality) {
    case 'reference':
      return function (val) {
        return val;
      };
    case 'value':
      return function (val) {
        return Recoil_stableStringify(val);
      };
  }
  throw Recoil_err("Unrecognized equality policy ".concat(equality));
}
function getTreeCache(eviction, maxSize, mapNodeValue, name) {
  switch (eviction) {
    case 'keep-all':
      return new TreeCache$2({
        name: name,
        mapNodeValue: mapNodeValue
      });
    case 'lru':
      return Recoil_treeCacheLRU({
        name: name,
        maxSize: Recoil_nullthrows(maxSize),
        mapNodeValue: mapNodeValue
      });
    case 'most-recent':
      return Recoil_treeCacheLRU({
        name: name,
        maxSize: 1,
        mapNodeValue: mapNodeValue
      });
  }
  throw Recoil_err("Unrecognized eviction policy ".concat(eviction));
}
var Recoil_treeCacheFromPolicy = treeCacheFromPolicy;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */

function isNode(object) {
  var _ownerDocument, _doc$defaultView;
  if (typeof window === 'undefined') {
    return false;
  }
  var doc = object != null ? (_ownerDocument = object.ownerDocument) !== null && _ownerDocument !== void 0 ? _ownerDocument : object : document;
  var defaultView = (_doc$defaultView = doc.defaultView) !== null && _doc$defaultView !== void 0 ? _doc$defaultView : window;
  return !!(object != null && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));
}
var Recoil_isNode = (/* unused pure expression or super */ null && (isNode));
var isReactNative$1 = Recoil_Environment.isReactNative,
  isWindow$1 = Recoil_Environment.isWindow;
function shouldNotBeFrozen(value) {
  // Primitives and functions:
  if (value === null || typeof value !== 'object') {
    return true;
  } // React elements:

  switch (typeof value.$$typeof) {
    case 'symbol':
      return true;
    case 'number':
      return true;
  } // Immutable structures:

  if (value['@@__IMMUTABLE_ITERABLE__@@'] != null || value['@@__IMMUTABLE_KEYED__@@'] != null || value['@@__IMMUTABLE_INDEXED__@@'] != null || value['@@__IMMUTABLE_ORDERED__@@'] != null || value['@@__IMMUTABLE_RECORD__@@'] != null) {
    return true;
  } // DOM nodes:

  if (Recoil_isNode(value)) {
    return true;
  }
  if (Recoil_isPromise(value)) {
    return true;
  }
  if (value instanceof Error) {
    return true;
  }
  if (ArrayBuffer.isView(value)) {
    return true;
  } // Some environments, just as Jest, don't work with the instanceof check

  if (!isReactNative$1 && isWindow$1(value)) {
    return true;
  }
  return false;
} // Recursively freeze a value to enforce it is read-only.
// This may also have minimal performance improvements for enumerating
// objects (based on browser implementations, of course)

function deepFreezeValue(value) {
  if (typeof value !== 'object' || shouldNotBeFrozen(value)) {
    return;
  }
  Object.freeze(value); // Make all properties read-only

  for (var key in value) {
    // $FlowIssue[method-unbinding] added when improving typing for this parameters
    if (Object.prototype.hasOwnProperty.call(value, key)) {
      var prop = value[key]; // Prevent infinite recurssion for circular references.

      if (typeof prop === 'object' && prop != null && !Object.isFrozen(prop)) {
        deepFreezeValue(prop);
      }
    }
  }
  Object.seal(value); // This also makes existing properties non-configurable.
}

var Recoil_deepFreezeValue = (/* unused pure expression or super */ null && (deepFreezeValue));

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * This is a stub for some integration into FB internal stuff
 *
 * 
 * @format
 * @oncall recoil
 */
function startPerfBlock(_id) {
  return function () {
    return null;
  };
}
var Recoil_PerformanceTimings = {
  startPerfBlock: startPerfBlock
};
var isLoadable$1 = Recoil_Loadable$1.isLoadable,
  loadableWithError$1 = Recoil_Loadable$1.loadableWithError,
  loadableWithPromise$1 = Recoil_Loadable$1.loadableWithPromise,
  loadableWithValue$2 = Recoil_Loadable$1.loadableWithValue;
var WrappedValue$1 = Recoil_Wrapper$1.WrappedValue;
var getNodeLoadable$2 = Recoil_FunctionalCore.getNodeLoadable,
  peekNodeLoadable$1 = Recoil_FunctionalCore.peekNodeLoadable,
  setNodeValue$3 = Recoil_FunctionalCore.setNodeValue;
var saveDepsToStore$1 = Recoil_Graph.saveDepsToStore;
var DEFAULT_VALUE$6 = Recoil_Node.DEFAULT_VALUE,
  getConfigDeletionHandler$1 = Recoil_Node.getConfigDeletionHandler,
  getNode$6 = Recoil_Node.getNode,
  registerNode$1 = Recoil_Node.registerNode;
var isRecoilValue$3 = Recoil_RecoilValue$1.isRecoilValue;
var markRecoilValueModified$1 = Recoil_RecoilValueInterface.markRecoilValueModified;
var retainedByOptionWithDefault$1 = Recoil_Retention.retainedByOptionWithDefault;
var recoilCallback$1 = Recoil_useRecoilCallback.recoilCallback;
var startPerfBlock$1 = Recoil_PerformanceTimings.startPerfBlock;
var Canceled = /*#__PURE__*/(0,createClass/* default */.Z)(function Canceled() {
  (0,classCallCheck/* default */.Z)(this, Canceled);
});
var CANCELED = new Canceled();
/**
 * An ExecutionID is an arbitrary ID that lets us distinguish executions from
 * each other. This is necessary as we need a way of solving this problem:
 * "given 3 async executions, only update state for the 'latest' execution when
 * it finishes running regardless of when the other 2 finish". ExecutionIDs
 * provide a convenient way of identifying executions so that we can track and
 * manage them over time.
 */

var dependencyStack = []; // for detecting circular dependencies.

var waitingStores = new Map();
var getNewExecutionID = function () {
  var executionID = 0;
  return function () {
    return executionID++;
  };
}();
/* eslint-disable no-redeclare */

function selector(options) {
  var recoilValue = null;
  var key = options.key,
    get = options.get,
    cachePolicy = options.cachePolicy_UNSTABLE;
  var set = options.set != null ? options.set : undefined; // flow

  if (false) {} // This is every discovered dependency across all executions

  var discoveredDependencyNodeKeys = new Set();
  var cache = Recoil_treeCacheFromPolicy(cachePolicy !== null && cachePolicy !== void 0 ? cachePolicy : {
    equality: 'reference',
    eviction: 'keep-all'
  }, key);
  var retainedBy = retainedByOptionWithDefault$1(options.retainedBy_UNSTABLE);
  var executionInfoMap = new Map();
  var liveStoresCount = 0;
  function selectorIsLive() {
    return !Recoil_gkx('recoil_memory_managament_2020') || liveStoresCount > 0;
  }
  function selectorInit(store) {
    store.getState().knownSelectors.add(key);
    liveStoresCount++;
    return function () {
      liveStoresCount--;
    };
  }
  function selectorShouldDeleteConfigOnRelease() {
    return getConfigDeletionHandler$1(key) !== undefined && !selectorIsLive();
  }
  function resolveAsync(store, state, executionID, loadable, depValues) {
    setCache(state, loadable, depValues);
    notifyStoresOfResolvedAsync(store, executionID);
  }
  function notifyStoresOfResolvedAsync(store, executionID) {
    if (isLatestExecution(store, executionID)) {
      clearExecutionInfo(store);
    }
    notifyWaitingStores(executionID, true);
  }
  /**
   * Notify stores to pull the selector again if a new async dep was discovered.
   * 1) Async selector adds a new dep but doesn't resolve yet.
   *    Note that deps for an async selector are based on the state when the
   *    evaluation started, in order to provide a consistent picture of state.
   * 2) But, new value of dep based on the current state might cause the selector
   *    to resolve or resolve differently.
   * 3) Therefore, this notification will pull the selector based on the current
   *    state for the components
   */

  function notifyStoresOfNewAsyncDep(store, executionID) {
    if (isLatestExecution(store, executionID)) {
      var executionInfo = Recoil_nullthrows(getExecutionInfo(store));
      executionInfo.stateVersions.clear();
      notifyWaitingStores(executionID, false);
    }
  }
  function notifyWaitingStores(executionID, clearWaitlist) {
    var stores = waitingStores.get(executionID);
    if (stores != null) {
      var _iterator48 = _createForOfIteratorHelper(stores),
        _step48;
      try {
        for (_iterator48.s(); !(_step48 = _iterator48.n()).done;) {
          var waitingStore = _step48.value;
          markRecoilValueModified$1(waitingStore, Recoil_nullthrows(recoilValue));
        }
      } catch (err) {
        _iterator48.e(err);
      } finally {
        _iterator48.f();
      }
      if (clearWaitlist) {
        waitingStores.delete(executionID);
      }
    }
  }
  function markStoreWaitingForResolvedAsync(store, executionID) {
    var stores = waitingStores.get(executionID);
    if (stores == null) {
      waitingStores.set(executionID, stores = new Set());
    }
    stores.add(store);
  }
  /**
   * This function attaches a then() and a catch() to a promise that was
   * returned from a selector's get() (either explicitly or implicitly by
   * running a function that uses the "async" keyword). If a selector's get()
   * returns a promise, we have two possibilities:
   *
   * 1. The promise will resolve, in which case it will have completely finished
   *    executing without any remaining pending dependencies. No more retries
   *    are needed and we can proceed with updating the cache and notifying
   *    subscribers (if it is the latest execution, otherwise only the cache
   *    will be updated and subscriptions will not be fired). This is the case
   *    handled by the attached then() handler.
   *
   * 2. The promise will throw because it either has an error or it came across
   *    an async dependency that has not yet resolved, in which case we will
   *    call wrapDepdencyPromise(), whose responsibility is to handle dependency
   *    promises. This case is handled by the attached catch() handler.
   *
   * Both branches will eventually resolve to the final result of the selector
   * (or an error if a real error occurred).
   *
   * The execution will run to completion even if it is stale, and its value
   * will be cached. But stale executions will not update global state or update
   * executionInfo as that is the responsibility of the 'latest' execution.
   *
   * Note this function should not be passed a promise that was thrown--AKA a
   * dependency promise. Dependency promises should be passed to
   * wrapPendingDependencyPromise()).
   */

  function wrapResultPromise(store, promise, state, depValues, executionID, loadingDepsState) {
    return promise.then(function (value) {
      if (!selectorIsLive()) {
        // The selector was released since the request began; ignore the response.
        clearExecutionInfo(store);
        throw CANCELED;
      }
      var loadable = loadableWithValue$2(value);
      resolveAsync(store, state, executionID, loadable, depValues);
      return value;
    }).catch(function (errorOrPromise) {
      if (!selectorIsLive()) {
        // The selector was released since the request began; ignore the response.
        clearExecutionInfo(store);
        throw CANCELED;
      }
      if (Recoil_isPromise(errorOrPromise)) {
        return wrapPendingDependencyPromise(store, errorOrPromise, state, depValues, executionID, loadingDepsState);
      }
      var loadable = loadableWithError$1(errorOrPromise);
      resolveAsync(store, state, executionID, loadable, depValues);
      throw errorOrPromise;
    });
  }
  /**
   * This function attaches a then() and a catch() to a promise that was
   * thrown from a selector's get(). If a selector's get() throws a promise,
   * we have two possibilities:
   *
   * 1. The promise will resolve, meaning one of our selector's dependencies is
   *    now available and we should "retry" our get() by running it again. This
   *    is the case handled by the attached then() handler.
   *
   * 2. The promise will throw because something went wrong with the dependency
   *    promise (in other words a real error occurred). This case is handled by
   *    the attached catch() handler. If the dependency promise throws, it is
   *    _always_ a real error and not another dependency promise (any dependency
   *    promises would have been handled upstream).
   *
   * The then() branch will eventually resolve to the final result of the
   * selector (or an error if a real error occurs), and the catch() will always
   * resolve to an error because the dependency promise is a promise that was
   * wrapped upstream, meaning it will only resolve to its real value or to a
   * real error.
   *
   * The execution will run to completion even if it is stale, and its value
   * will be cached. But stale executions will not update global state or update
   * executionInfo as that is the responsibility of the 'latest' execution.
   *
   * Note this function should not be passed a promise that was returned from
   * get(). The intention is that this function is only passed promises that
   * were thrown due to a pending dependency. Promises returned by get() should
   * be passed to wrapResultPromise() instead.
   */

  function wrapPendingDependencyPromise(store, promise, state, existingDeps, executionID, loadingDepsState) {
    return promise.then(function (resolvedDep) {
      if (!selectorIsLive()) {
        // The selector was released since the request began; ignore the response.
        clearExecutionInfo(store);
        throw CANCELED;
      } // Check if we are handling a pending Recoil dependency or if the user
      // threw their own Promise to "suspend" a selector evaluation.  We need
      // to check that the loadingDepPromise actually matches the promise that
      // we caught in case the selector happened to catch the promise we threw
      // for a pending Recoil dependency from `getRecoilValue()` and threw
      // their own promise instead.

      if (loadingDepsState.loadingDepKey != null && loadingDepsState.loadingDepPromise === promise) {
        /**
         * Note for async atoms, this means we are changing the atom's value
         * in the store for the given version. This should be alright because
         * the version of state is now stale and a new version will have
         * already been triggered by the atom being resolved (see this logic
         * in Recoil_atom.js)
         */
        state.atomValues.set(loadingDepsState.loadingDepKey, loadableWithValue$2(resolvedDep));
      } else {
        /**
         * If resolvedDepKey is not defined, the promise was a user-thrown
         * promise. User-thrown promises are an advanced feature and they
         * should be avoided in almost all cases. Using `loadable.map()` inside
         * of selectors for loading loadables and then throwing that mapped
         * loadable's promise is an example of a user-thrown promise.
         *
         * When we hit a user-thrown promise, we have to bail out of an optimization
         * where we bypass calculating selector cache keys for selectors that
         * have been previously seen for a given state (these selectors are saved in
         * state.atomValues) to avoid stale state as we have no way of knowing
         * what state changes happened (if any) in result to the promise resolving.
         *
         * Ideally we would only bail out selectors that are in the chain of
         * dependencies for this selector, but there's currently no way to get
         * a full list of a selector's downstream nodes because the state that
         * is executing may be a discarded tree (so store.getGraph(state.version)
         * will be empty), and the full dep tree may not be in the selector
         * caches in the case where the selector's cache was cleared. To solve
         * for this we would have to keep track of all running selector
         * executions and their downstream deps. Because this only covers edge
         * cases, that complexity might not be justifyable.
         */
        store.getState().knownSelectors.forEach(function (nodeKey) {
          state.atomValues.delete(nodeKey);
        });
      }
      /**
       * Optimization: Now that the dependency has resolved, let's try hitting
       * the cache in case the dep resolved to a value we have previously seen.
       *
       * TODO:
       * Note this optimization is not perfect because it only prevents re-executions
       * _after_ the point where an async dependency is found. Any code leading
       * up to the async dependency may have run unnecessarily. The ideal case
       * would be to wait for the async dependency to resolve first, check the
       * cache, and prevent _any_ execution of the selector if the resulting
       * value of the dependency leads to a path that is found in the cache.
       * The ideal case is more difficult to implement as it would require that
       * we capture and wait for the the async dependency right after checking
       * the cache. The current approach takes advantage of the fact that running
       * the selector already has a code path that lets us exit early when
       * an async dep resolves.
       */

      var cachedLoadable = getLoadableFromCacheAndUpdateDeps(store, state);
      if (cachedLoadable && cachedLoadable.state !== 'loading') {
        /**
         * This has to notify stores of a resolved async, even if there is no
         * current pending execution for the following case:
         * 1) A component renders with this pending loadable.
         * 2) The upstream dependency resolves.
         * 3) While processing some other selector it reads this one, such as
         *    while traversing its dependencies.  At this point it gets the
         *    new resolved value synchronously and clears the current
         *    execution ID.  The component wasn't getting the value itself,
         *    though, so it still has the pending loadable.
         * 4) When this code executes the current execution id was cleared
         *    and it wouldn't notify the component of the new value.
         *
         * I think this is only an issue with "early" rendering since the
         * components got their value using the in-progress execution.
         * We don't have a unit test for this case yet.  I'm not sure it is
         * necessary with recoil_transition_support mode.
         */
        if (isLatestExecution(store, executionID) || getExecutionInfo(store) == null) {
          notifyStoresOfResolvedAsync(store, executionID);
        }
        if (cachedLoadable.state === 'hasValue') {
          return cachedLoadable.contents;
        } else {
          throw cachedLoadable.contents;
        }
      }
      /**
       * If this execution is stale, let's check to see if there is some in
       * progress execution with a matching state. If we find a match, then
       * we can take the value from that in-progress execution. Note this may
       * sound like an edge case, but may be very common in cases where a
       * loading dependency resolves from loading to having a value (thus
       * possibly triggering a re-render), and React re-renders before the
       * chained .then() functions run, thus starting a new execution as the
       * dep has changed value. Without this check we will run the selector
       * twice (once in the new execution and once again in this .then(), so
       * this check is necessary to keep unnecessary re-executions to a
       * minimum).
       *
       * Also note this code does not check across all executions that may be
       * running. It only optimizes for the _latest_ execution per store as
       * we currently do not maintain a list of all currently running executions.
       * This means in some cases we may run selectors more than strictly
       * necessary when there are multiple executions running for the same
       * selector. This may be a valid tradeoff as checking for dep changes
       * across all in-progress executions may take longer than just
       * re-running the selector. This will be app-dependent, and maybe in the
       * future we can make the behavior configurable. An ideal fix may be
       * to extend the tree cache to support caching loading states.
       */

      if (!isLatestExecution(store, executionID)) {
        var executionInfo = getInProgressExecutionInfo(store, state);
        if (executionInfo != null) {
          /**
           * Returning promise here without wrapping as the wrapper logic was
           * already done upstream when this promise was generated.
           */
          return executionInfo.loadingLoadable.contents;
        }
      } // Retry the selector evaluation now that the dependency has resolved

      var _evaluateSelectorGett = evaluateSelectorGetter(store, state, executionID),
        _evaluateSelectorGett2 = (0,slicedToArray/* default */.Z)(_evaluateSelectorGett, 2),
        loadable = _evaluateSelectorGett2[0],
        depValues = _evaluateSelectorGett2[1];
      if (loadable.state !== 'loading') {
        resolveAsync(store, state, executionID, loadable, depValues);
      }
      if (loadable.state === 'hasError') {
        throw loadable.contents;
      }
      return loadable.contents;
    }).catch(function (error) {
      // The selector was released since the request began; ignore the response.
      if (error instanceof Canceled) {
        throw CANCELED;
      }
      if (!selectorIsLive()) {
        clearExecutionInfo(store);
        throw CANCELED;
      }
      var loadable = loadableWithError$1(error);
      resolveAsync(store, state, executionID, loadable, existingDeps);
      throw error;
    });
  }
  function updateDeps(store, state, deps, executionID) {
    var _store$getState, _store$getState$curre, _store$getState2, _store$getState2$next;
    if (isLatestExecution(store, executionID) || state.version === ((_store$getState = store.getState()) === null || _store$getState === void 0 ? void 0 : (_store$getState$curre = _store$getState.currentTree) === null || _store$getState$curre === void 0 ? void 0 : _store$getState$curre.version) || state.version === ((_store$getState2 = store.getState()) === null || _store$getState2 === void 0 ? void 0 : (_store$getState2$next = _store$getState2.nextTree) === null || _store$getState2$next === void 0 ? void 0 : _store$getState2$next.version)) {
      var _store$getState$nextT, _store$getState3, _store$getState3$next;
      saveDepsToStore$1(key, deps, store, (_store$getState$nextT = (_store$getState3 = store.getState()) === null || _store$getState3 === void 0 ? void 0 : (_store$getState3$next = _store$getState3.nextTree) === null || _store$getState3$next === void 0 ? void 0 : _store$getState3$next.version) !== null && _store$getState$nextT !== void 0 ? _store$getState$nextT : store.getState().currentTree.version);
    }
    var _iterator49 = _createForOfIteratorHelper(deps),
      _step49;
    try {
      for (_iterator49.s(); !(_step49 = _iterator49.n()).done;) {
        var nodeKey = _step49.value;
        discoveredDependencyNodeKeys.add(nodeKey);
      }
    } catch (err) {
      _iterator49.e(err);
    } finally {
      _iterator49.f();
    }
  }
  function evaluateSelectorGetter(store, state, executionID) {
    var endPerfBlock = startPerfBlock$1(key); // TODO T63965866: use execution ID here

    var duringSynchronousExecution = true;
    var duringAsynchronousExecution = true;
    var finishEvaluation = function finishEvaluation() {
      endPerfBlock();
      duringAsynchronousExecution = false;
    };
    var result;
    var resultIsError = false;
    var loadable;
    var loadingDepsState = {
      loadingDepKey: null,
      loadingDepPromise: null
    };
    /**
     * Starting a fresh set of deps that we'll be using to update state. We're
     * starting a new set versus adding it in existing state deps because
     * the version of state that we update deps for may be a more recent version
     * than the version the selector was called with. This is because the latest
     * execution will update the deps of the current/latest version of state
     * (This is safe to do because the fact that the selector is the latest
     * execution means the deps we discover below are our best guess at the
     * deps for the current/latest state in the store)
     */

    var depValues = new Map();
    function getRecoilValue(_ref19) {
      var depKey = _ref19.key;
      var depLoadable = getNodeLoadable$2(store, state, depKey);
      depValues.set(depKey, depLoadable); // We need to update asynchronous dependencies as we go so the selector
      // knows if it has to restart evaluation if one of them is updated before
      // the asynchronous selector completely resolves.

      if (!duringSynchronousExecution) {
        updateDeps(store, state, new Set(depValues.keys()), executionID);
        notifyStoresOfNewAsyncDep(store, executionID);
      }
      switch (depLoadable.state) {
        case 'hasValue':
          return depLoadable.contents;
        case 'hasError':
          throw depLoadable.contents;
        case 'loading':
          loadingDepsState.loadingDepKey = depKey;
          loadingDepsState.loadingDepPromise = depLoadable.contents;
          throw depLoadable.contents;
      }
      throw Recoil_err('Invalid Loadable state');
    }
    var getCallback = function getCallback(fn) {
      return function () {
        if (duringAsynchronousExecution) {
          throw Recoil_err('Callbacks from getCallback() should only be called asynchronously after the selector is evalutated.  It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.');
        }
        !(recoilValue != null) ?  false ? 0 : Recoil_invariant(false) : void 0;
        for (var _len8 = arguments.length, args = new Array(_len8), _key11 = 0; _key11 < _len8; _key11++) {
          args[_key11] = arguments[_key11];
        }
        return recoilCallback$1(store, fn, args, {
          node: recoilValue
        } // flowlint-line unclear-type:off
        );
      };
    };

    try {
      result = get({
        get: getRecoilValue,
        getCallback: getCallback
      });
      result = isRecoilValue$3(result) ? getRecoilValue(result) : result;
      if (isLoadable$1(result)) {
        if (result.state === 'hasError') {
          resultIsError = true;
        }
        result = result.contents;
      }
      if (Recoil_isPromise(result)) {
        result = wrapResultPromise(store, result, state, depValues, executionID, loadingDepsState).finally(finishEvaluation);
      } else {
        finishEvaluation();
      }
      result = result instanceof WrappedValue$1 ? result.value : result;
    } catch (errorOrDepPromise) {
      result = errorOrDepPromise;
      if (Recoil_isPromise(result)) {
        result = wrapPendingDependencyPromise(store, result, state, depValues, executionID, loadingDepsState).finally(finishEvaluation);
      } else {
        resultIsError = true;
        finishEvaluation();
      }
    }
    if (resultIsError) {
      loadable = loadableWithError$1(result);
    } else if (Recoil_isPromise(result)) {
      loadable = loadableWithPromise$1(result);
    } else {
      loadable = loadableWithValue$2(result);
    }
    duringSynchronousExecution = false;
    updateExecutionInfoDepValues(store, executionID, depValues);
    updateDeps(store, state, new Set(depValues.keys()), executionID);
    return [loadable, depValues];
  }
  function getLoadableFromCacheAndUpdateDeps(store, state) {
    // First, look up in the state cache
    // If it's here, then the deps in the store should already be valid.
    var cachedLoadable = state.atomValues.get(key);
    if (cachedLoadable != null) {
      return cachedLoadable;
    } // Second, look up in the selector cache and update the deps in the store

    var depsAfterCacheLookup = new Set();
    try {
      cachedLoadable = cache.get(function (nodeKey) {
        !(typeof nodeKey === 'string') ?  false ? 0 : Recoil_invariant(false) : void 0;
        return getNodeLoadable$2(store, state, nodeKey).contents;
      }, {
        onNodeVisit: function onNodeVisit(node) {
          if (node.type === 'branch' && node.nodeKey !== key) {
            depsAfterCacheLookup.add(node.nodeKey);
          }
        }
      });
    } catch (error) {
      throw Recoil_err("Problem with cache lookup for selector \"".concat(key, "\": ").concat(error.message));
    }
    if (cachedLoadable) {
      var _getExecutionInfo;

      // Cache the results in the state to allow for cheaper lookup than
      // iterating the tree cache of dependencies.
      state.atomValues.set(key, cachedLoadable);
      /**
       * Ensure store contains correct dependencies if we hit the cache so that
       * the store deps and cache are in sync for a given state. This is important
       * because store deps are normally updated when new executions are created,
       * but cache hits don't trigger new executions but they still _may_ signify
       * a change in deps in the store if the store deps for this state are empty
       * or stale.
       */

      updateDeps(store, state, depsAfterCacheLookup, (_getExecutionInfo = getExecutionInfo(store)) === null || _getExecutionInfo === void 0 ? void 0 : _getExecutionInfo.executionID);
    }
    return cachedLoadable;
  }
  /**
   * Given a tree state, this function returns a Loadable of the current state.
   *
   * The selector's get() function will only be re-evaluated if _both_ of the
   * following statements are true:
   *
   * 1. The current dep values from the given state produced a cache key that
   *    was not found in the cache.
   * 2. There is no currently running async execution OR there is an
   *    async execution that is running, but after comparing the dep values in
   *    the given state with the dep values that the execution has discovered so
   *    far we find that at least one dep value has changed, in which case we
   *    start a new execution (the previously running execution will continue to
   *    run to completion, but only the new execution will be deemed the
   *    'latest' execution, meaning it will be the only execution that will
   *    update global state when it is finished. Any non-latest executions will
   *    run to completion and update the selector cache but not global state).
   */

  function getSelectorLoadableAndUpdateDeps(store, state) {
    // First, see if our current state is cached
    var cachedVal = getLoadableFromCacheAndUpdateDeps(store, state);
    if (cachedVal != null) {
      clearExecutionInfo(store);
      return cachedVal;
    } // Second, check if there is already an ongoing execution based on the current state

    var inProgressExecutionInfo = getInProgressExecutionInfo(store, state);
    if (inProgressExecutionInfo != null) {
      var _inProgressExecutionI;
      if (((_inProgressExecutionI = inProgressExecutionInfo.loadingLoadable) === null || _inProgressExecutionI === void 0 ? void 0 : _inProgressExecutionI.state) === 'loading') {
        markStoreWaitingForResolvedAsync(store, inProgressExecutionInfo.executionID);
      } // FIXME: check after the fact to see if we made the right choice by waiting

      return inProgressExecutionInfo.loadingLoadable;
    } // Third, start a new evaluation of the selector

    var newExecutionID = getNewExecutionID();
    var _evaluateSelectorGett3 = evaluateSelectorGetter(store, state, newExecutionID),
      _evaluateSelectorGett4 = (0,slicedToArray/* default */.Z)(_evaluateSelectorGett3, 2),
      loadable = _evaluateSelectorGett4[0],
      newDepValues = _evaluateSelectorGett4[1];
    /**
     * Conditionally updates the cache with a given loadable.
     *
     * We only cache loadables that are not loading because our cache keys are
     * based on dep values, which are in an unfinished state for loadables that
     * have a 'loading' state (new deps may be discovered while the selector
     * runs its async code). We never want to cache partial dependencies b/c it
     * could lead to errors, such as prematurely returning the result based on a
     * partial list of deps-- we need the full list of deps to ensure that we
     * are returning the correct result from cache.
     */

    if (loadable.state === 'loading') {
      setExecutionInfo(store, newExecutionID, loadable, newDepValues, state);
      markStoreWaitingForResolvedAsync(store, newExecutionID);
    } else {
      clearExecutionInfo(store);
      setCache(state, loadable, newDepValues);
    }
    return loadable;
  }
  /**
   * Searches execution info across all stores to see if there is an in-progress
   * execution whose dependency values match the values of the requesting store.
   */

  function getInProgressExecutionInfo(store, state) {
    // Sort the pending executions so that our current store is checked first.
    var pendingExecutions = Recoil_concatIterables([executionInfoMap.has(store) ? [Recoil_nullthrows(executionInfoMap.get(store))] : [], Recoil_mapIterable(Recoil_filterIterable(executionInfoMap, function (_ref20) {
      var _ref21 = (0,slicedToArray/* default */.Z)(_ref20, 1),
        s = _ref21[0];
      return s !== store;
    }), function (_ref22) {
      var _ref23 = (0,slicedToArray/* default */.Z)(_ref22, 2),
        execInfo = _ref23[1];
      return execInfo;
    })]);
    function anyDepChanged(execDepValues) {
      var _iterator50 = _createForOfIteratorHelper(execDepValues),
        _step50;
      try {
        for (_iterator50.s(); !(_step50 = _iterator50.n()).done;) {
          var _step50$value = (0,slicedToArray/* default */.Z)(_step50.value, 2),
            depKey = _step50$value[0],
            execLoadable = _step50$value[1];
          if (!getNodeLoadable$2(store, state, depKey).is(execLoadable)) {
            return true;
          }
        }
      } catch (err) {
        _iterator50.e(err);
      } finally {
        _iterator50.f();
      }
      return false;
    }
    var _iterator51 = _createForOfIteratorHelper(pendingExecutions),
      _step51;
    try {
      for (_iterator51.s(); !(_step51 = _iterator51.n()).done;) {
        var execInfo = _step51.value;
        if (
        // If this execution was already checked to be valid with this version
        // of state, then let's use it!
        execInfo.stateVersions.get(state.version) ||
        // If the deps for the execution match our current state, then it's valid
        !anyDepChanged(execInfo.depValuesDiscoveredSoFarDuringAsyncWork)) {
          execInfo.stateVersions.set(state.version, true);
          return execInfo;
        } else {
          execInfo.stateVersions.set(state.version, false);
        }
      }
    } catch (err) {
      _iterator51.e(err);
    } finally {
      _iterator51.f();
    }
    return undefined;
  }
  function getExecutionInfo(store) {
    return executionInfoMap.get(store);
  }
  /**
   * This function will update the selector's execution info when the selector
   * has either finished running an execution or has started a new execution. If
   * the given loadable is in a 'loading' state, the intention is that a new
   * execution has started. Otherwise, the intention is that an execution has
   * just finished.
   */

  function setExecutionInfo(store, newExecutionID, loadable, depValues, state) {
    executionInfoMap.set(store, {
      depValuesDiscoveredSoFarDuringAsyncWork: depValues,
      executionID: newExecutionID,
      loadingLoadable: loadable,
      stateVersions: new Map([[state.version, true]])
    });
  }
  function updateExecutionInfoDepValues(store, executionID, depValues) {
    // We only need to bother updating the deps for the latest execution because
    // that's all getInProgressExecutionInfo() will be looking for.
    if (isLatestExecution(store, executionID)) {
      var executionInfo = getExecutionInfo(store);
      if (executionInfo != null) {
        executionInfo.depValuesDiscoveredSoFarDuringAsyncWork = depValues;
      }
    }
  }
  function clearExecutionInfo(store) {
    executionInfoMap.delete(store);
  }
  function isLatestExecution(store, executionID) {
    var _getExecutionInfo2;
    return executionID === ((_getExecutionInfo2 = getExecutionInfo(store)) === null || _getExecutionInfo2 === void 0 ? void 0 : _getExecutionInfo2.executionID);
  }
  /**
   * FIXME: dep keys should take into account the state of the loadable to
   * prevent the edge case where a loadable with an error and a loadable with
   * an error as a value are treated as the same thing incorrectly. For example
   * these two should be treated differently:
   *
   * selector({key: '', get: () => new Error('hi')});
   * selector({key: '', get () => {throw new Error('hi')}});
   *
   * With current implementation they are treated the same
   */

  function depValuesToDepRoute(depValues) {
    return Array.from(depValues.entries()).map(function (_ref24) {
      var _ref25 = (0,slicedToArray/* default */.Z)(_ref24, 2),
        depKey = _ref25[0],
        valLoadable = _ref25[1];
      return [depKey, valLoadable.contents];
    });
  }
  function setCache(state, loadable, depValues) {
    if (false) {}
    state.atomValues.set(key, loadable);
    try {
      cache.set(depValuesToDepRoute(depValues), loadable);
    } catch (error) {
      throw Recoil_err("Problem with setting cache for selector \"".concat(key, "\": ").concat(error.message));
    }
  }
  function detectCircularDependencies(fn) {
    if (dependencyStack.includes(key)) {
      var message = "Recoil selector has circular dependencies: ".concat(dependencyStack.slice(dependencyStack.indexOf(key)).join(" \u2192 "));
      return loadableWithError$1(Recoil_err(message));
    }
    dependencyStack.push(key);
    try {
      return fn();
    } finally {
      dependencyStack.pop();
    }
  }
  function selectorPeek(store, state) {
    var cachedLoadable = state.atomValues.get(key);
    if (cachedLoadable != null) {
      return cachedLoadable;
    }
    return cache.get(function (nodeKey) {
      var _peekNodeLoadable;
      !(typeof nodeKey === 'string') ?  false ? 0 : Recoil_invariant(false) : void 0;
      return (_peekNodeLoadable = peekNodeLoadable$1(store, state, nodeKey)) === null || _peekNodeLoadable === void 0 ? void 0 : _peekNodeLoadable.contents;
    });
  }
  function selectorGet(store, state) {
    return detectCircularDependencies(function () {
      return getSelectorLoadableAndUpdateDeps(store, state);
    });
  }
  function invalidateSelector(state) {
    state.atomValues.delete(key);
  }
  function clearSelectorCache(store, treeState) {
    !(recoilValue != null) ?  false ? 0 : Recoil_invariant(false) : void 0;
    var _iterator52 = _createForOfIteratorHelper(discoveredDependencyNodeKeys),
      _step52;
    try {
      for (_iterator52.s(); !(_step52 = _iterator52.n()).done;) {
        var nodeKey = _step52.value;
        var _node$clearCache;
        var node = getNode$6(nodeKey);
        (_node$clearCache = node.clearCache) === null || _node$clearCache === void 0 ? void 0 : _node$clearCache.call(node, store, treeState);
      }
    } catch (err) {
      _iterator52.e(err);
    } finally {
      _iterator52.f();
    }
    discoveredDependencyNodeKeys.clear();
    invalidateSelector(treeState);
    cache.clear();
    markRecoilValueModified$1(store, recoilValue);
  }
  if (set != null) {
    /**
     * ES5 strict mode prohibits defining non-top-level function declarations,
     * so don't use function declaration syntax here
     */
    var selectorSet = function selectorSet(store, state, newValue) {
      var syncSelectorSetFinished = false;
      var writes = new Map();
      function getRecoilValue(_ref26) {
        var depKey = _ref26.key;
        if (syncSelectorSetFinished) {
          throw Recoil_err('Recoil: Async selector sets are not currently supported.');
        }
        var loadable = getNodeLoadable$2(store, state, depKey);
        if (loadable.state === 'hasValue') {
          return loadable.contents;
        } else if (loadable.state === 'loading') {
          var msg = "Getting value of asynchronous atom or selector \"".concat(depKey, "\" in a pending state while setting selector \"").concat(key, "\" is not yet supported.");
          Recoil_recoverableViolation(msg);
          throw Recoil_err(msg);
        } else {
          throw loadable.contents;
        }
      }
      function setRecoilState(recoilState, valueOrUpdater // $FlowFixMe[missing-local-annot]
      ) {
        if (syncSelectorSetFinished) {
          var msg = 'Recoil: Async selector sets are not currently supported.';
          Recoil_recoverableViolation(msg);
          throw Recoil_err(msg);
        }
        var setValue = typeof valueOrUpdater === 'function' ?
        // cast to any because we can't restrict type S from being a function itself without losing support for opaque types
        // flowlint-next-line unclear-type:off
        valueOrUpdater(getRecoilValue(recoilState)) : valueOrUpdater;
        var upstreamWrites = setNodeValue$3(store, state, recoilState.key, setValue);
        upstreamWrites.forEach(function (v, k) {
          return writes.set(k, v);
        });
      }
      function resetRecoilState(recoilState) {
        setRecoilState(recoilState, DEFAULT_VALUE$6);
      }
      var ret = set({
        set: setRecoilState,
        get: getRecoilValue,
        reset: resetRecoilState
      }, newValue); // set should be a void method, but if the user makes it `async`, then it
      // will return a Promise, which we don't currently support.

      if (ret !== undefined) {
        throw Recoil_isPromise(ret) ? Recoil_err('Recoil: Async selector sets are not currently supported.') : Recoil_err('Recoil: selector set should be a void function.');
      }
      syncSelectorSetFinished = true;
      return writes;
    };
    return recoilValue = registerNode$1({
      key: key,
      nodeType: 'selector',
      peek: selectorPeek,
      get: selectorGet,
      set: selectorSet,
      init: selectorInit,
      invalidate: invalidateSelector,
      clearCache: clearSelectorCache,
      shouldDeleteConfigOnRelease: selectorShouldDeleteConfigOnRelease,
      dangerouslyAllowMutability: options.dangerouslyAllowMutability,
      shouldRestoreFromSnapshots: false,
      retainedBy: retainedBy
    });
  } else {
    return recoilValue = registerNode$1({
      key: key,
      nodeType: 'selector',
      peek: selectorPeek,
      get: selectorGet,
      init: selectorInit,
      invalidate: invalidateSelector,
      clearCache: clearSelectorCache,
      shouldDeleteConfigOnRelease: selectorShouldDeleteConfigOnRelease,
      dangerouslyAllowMutability: options.dangerouslyAllowMutability,
      shouldRestoreFromSnapshots: false,
      retainedBy: retainedBy
    });
  }
}
/* eslint-enable no-redeclare */
// $FlowIssue[incompatible-use]
// $FlowFixMe[missing-local-annot]

selector.value = function (value) {
  return new WrappedValue$1(value);
};
var Recoil_selector = selector;

// @fb-only: import type {ScopeRules} from 'Recoil_ScopedAtom';
// @fb-only: const {scopedAtom} = require('Recoil_ScopedAtom');
var isLoadable$2 = Recoil_Loadable$1.isLoadable,
  loadableWithError$2 = Recoil_Loadable$1.loadableWithError,
  loadableWithPromise$2 = Recoil_Loadable$1.loadableWithPromise,
  loadableWithValue$3 = Recoil_Loadable$1.loadableWithValue;
var WrappedValue$2 = Recoil_Wrapper$1.WrappedValue;
var peekNodeInfo$3 = Recoil_FunctionalCore.peekNodeInfo;
var DEFAULT_VALUE$7 = Recoil_Node.DEFAULT_VALUE,
  DefaultValue$2 = Recoil_Node.DefaultValue,
  getConfigDeletionHandler$2 = Recoil_Node.getConfigDeletionHandler,
  registerNode$2 = Recoil_Node.registerNode,
  setConfigDeletionHandler$1 = Recoil_Node.setConfigDeletionHandler;
var isRecoilValue$4 = Recoil_RecoilValue$1.isRecoilValue;
var getRecoilValueAsLoadable$4 = Recoil_RecoilValueInterface.getRecoilValueAsLoadable,
  markRecoilValueModified$2 = Recoil_RecoilValueInterface.markRecoilValueModified,
  setRecoilValue$4 = Recoil_RecoilValueInterface.setRecoilValue,
  setRecoilValueLoadable$2 = Recoil_RecoilValueInterface.setRecoilValueLoadable;
var retainedByOptionWithDefault$2 = Recoil_Retention.retainedByOptionWithDefault;
var unwrap = function unwrap(x) {
  return x instanceof WrappedValue$2 ? x.value : x;
};
function baseAtom(options) {
  var key = options.key,
    persistence = options.persistence_UNSTABLE;
  var retainedBy = retainedByOptionWithDefault$2(options.retainedBy_UNSTABLE);
  var liveStoresCount = 0;
  function unwrapPromise(promise) {
    return loadableWithPromise$2(promise.then(function (value) {
      defaultLoadable = loadableWithValue$3(value);
      return value;
    }).catch(function (error) {
      defaultLoadable = loadableWithError$2(error);
      throw error;
    }));
  }
  var defaultLoadable = Recoil_isPromise(options.default) ? unwrapPromise(options.default) : isLoadable$2(options.default) ? options.default.state === 'loading' ? unwrapPromise(options.default.contents) : options.default :
  // $FlowFixMe[incompatible-call]
  loadableWithValue$3(unwrap(options.default));
  maybeFreezeValueOrPromise(defaultLoadable.contents);
  var cachedAnswerForUnvalidatedValue = undefined; // Cleanup handlers for this atom
  // Rely on stable reference equality of the store to use it as a key per <RecoilRoot>

  var cleanupEffectsByStore = new Map();
  function maybeFreezeValueOrPromise(valueOrPromise) {
    if (false) {}
    return valueOrPromise;
  }
  function wrapPendingPromise(store, promise) {
    var wrappedPromise = promise.then(function (value) {
      var _store$getState$nextT, _state$atomValues$get;
      var state = (_store$getState$nextT = store.getState().nextTree) !== null && _store$getState$nextT !== void 0 ? _store$getState$nextT : store.getState().currentTree;
      if (((_state$atomValues$get = state.atomValues.get(key)) === null || _state$atomValues$get === void 0 ? void 0 : _state$atomValues$get.contents) === wrappedPromise) {
        setRecoilValue$4(store, node, value);
      }
      return value;
    }).catch(function (error) {
      var _store$getState$nextT2, _state$atomValues$get2;
      var state = (_store$getState$nextT2 = store.getState().nextTree) !== null && _store$getState$nextT2 !== void 0 ? _store$getState$nextT2 : store.getState().currentTree;
      if (((_state$atomValues$get2 = state.atomValues.get(key)) === null || _state$atomValues$get2 === void 0 ? void 0 : _state$atomValues$get2.contents) === wrappedPromise) {
        setRecoilValueLoadable$2(store, node, loadableWithError$2(error));
      }
      throw error;
    });
    return wrappedPromise;
  }
  function initAtom(store, initState, trigger) {
    var _options$effects;
    liveStoresCount++;
    var cleanupAtom = function cleanupAtom() {
      var _cleanupEffectsByStor;
      liveStoresCount--;
      (_cleanupEffectsByStor = cleanupEffectsByStore.get(store)) === null || _cleanupEffectsByStor === void 0 ? void 0 : _cleanupEffectsByStor.forEach(function (cleanup) {
        return cleanup();
      });
      cleanupEffectsByStore.delete(store);
    };
    store.getState().knownAtoms.add(key); // Setup async defaults to notify subscribers when they resolve

    if (defaultLoadable.state === 'loading') {
      var notifyDefaultSubscribers = function notifyDefaultSubscribers() {
        var _store$getState$nextT3;
        var state = (_store$getState$nextT3 = store.getState().nextTree) !== null && _store$getState$nextT3 !== void 0 ? _store$getState$nextT3 : store.getState().currentTree;
        if (!state.atomValues.has(key)) {
          markRecoilValueModified$2(store, node);
        }
      };
      defaultLoadable.contents.finally(notifyDefaultSubscribers);
    } ///////////////////
    // Run Atom Effects
    ///////////////////

    var effects = (_options$effects = options.effects) !== null && _options$effects !== void 0 ? _options$effects : options.effects_UNSTABLE;
    if (effects != null) {
      var getLoadable = function getLoadable(recoilValue) {
        // Normally we can just get the current value of another atom.
        // But for our own value we need to check if there is a pending
        // initialized value or get the fallback default value.
        if (isDuringInit && recoilValue.key === key) {
          // Cast T to S
          var retValue = initValue; // flowlint-line unclear-type:off

          return retValue instanceof DefaultValue$2 ? peekAtom(store, initState) // flowlint-line unclear-type:off
          : Recoil_isPromise(retValue) ? loadableWithPromise$2(retValue.then(function (v) {
            return v instanceof DefaultValue$2 ?
            // Cast T to S
            defaultLoadable.toPromise() // flowlint-line unclear-type:off
            : v;
          })) :
          // $FlowFixMe[incompatible-call]
          loadableWithValue$3(retValue);
        }
        return getRecoilValueAsLoadable$4(store, recoilValue);
      };
      var getPromise = function getPromise(recoilValue) {
        return getLoadable(recoilValue).toPromise();
      };
      var getInfo_UNSTABLE = function getInfo_UNSTABLE(recoilValue) {
        var _store$getState$nextT4;
        var info = peekNodeInfo$3(store, (_store$getState$nextT4 = store.getState().nextTree) !== null && _store$getState$nextT4 !== void 0 ? _store$getState$nextT4 : store.getState().currentTree, recoilValue.key);
        return isDuringInit && recoilValue.key === key && !(initValue instanceof DefaultValue$2) ? (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, info), {}, {
          isSet: true,
          loadable: getLoadable(recoilValue)
        }) : info;
      };
      // This state is scoped by Store, since this is in the initAtom() closure
      var initValue = DEFAULT_VALUE$7;
      var isDuringInit = true;
      var isInitError = false;
      var pendingSetSelf = null;
      var setSelf = function setSelf(effect) {
        return function (valueOrUpdater) {
          if (isDuringInit) {
            var currentLoadable = getLoadable(node);
            var currentValue = currentLoadable.state === 'hasValue' ? currentLoadable.contents : DEFAULT_VALUE$7;
            initValue = typeof valueOrUpdater === 'function' ?
            // cast to any because we can't restrict T from being a function without losing support for opaque types
            valueOrUpdater(currentValue) // flowlint-line unclear-type:off
            : valueOrUpdater;
            if (Recoil_isPromise(initValue)) {
              initValue = initValue.then(function (value) {
                // Avoid calling onSet() when setSelf() initializes with a Promise
                pendingSetSelf = {
                  effect: effect,
                  value: value
                };
                return value;
              });
            }
          } else {
            if (Recoil_isPromise(valueOrUpdater)) {
              throw Recoil_err('Setting atoms to async values is not implemented.');
            }
            if (typeof valueOrUpdater !== 'function') {
              pendingSetSelf = {
                effect: effect,
                value: unwrap(valueOrUpdater)
              };
            }
            setRecoilValue$4(store, node, typeof valueOrUpdater === 'function' ? function (currentValue) {
              var newValue = unwrap(
              // cast to any because we can't restrict T from being a function without losing support for opaque types
              valueOrUpdater(currentValue) // flowlint-line unclear-type:off
              ); // $FlowFixMe[incompatible-type]

              pendingSetSelf = {
                effect: effect,
                value: newValue
              };
              return newValue;
            } : unwrap(valueOrUpdater));
          }
        };
      };
      var resetSelf = function resetSelf(effect) {
        return function () {
          return setSelf(effect)(DEFAULT_VALUE$7);
        };
      };
      var onSet = function onSet(effect) {
        return function (handler) {
          var _cleanupEffectsByStor2;
          var _store$subscribeToTra = store.subscribeToTransactions(function (currentStore) {
              var _currentTree$atomValu;

              // eslint-disable-next-line prefer-const
              var _currentStore$getStat = currentStore.getState(),
                currentTree = _currentStore$getStat.currentTree,
                previousTree = _currentStore$getStat.previousTree;
              if (!previousTree) {
                Recoil_recoverableViolation('Transaction subscribers notified without a next tree being present -- this is a bug in Recoil');
                previousTree = currentTree; // attempt to trundle on
              }

              var newLoadable = (_currentTree$atomValu = currentTree.atomValues.get(key)) !== null && _currentTree$atomValu !== void 0 ? _currentTree$atomValu : defaultLoadable;
              if (newLoadable.state === 'hasValue') {
                var _previousTree$atomVal, _pendingSetSelf, _pendingSetSelf2, _pendingSetSelf3;
                var newValue = newLoadable.contents;
                var oldLoadable = (_previousTree$atomVal = previousTree.atomValues.get(key)) !== null && _previousTree$atomVal !== void 0 ? _previousTree$atomVal : defaultLoadable;
                var oldValue = oldLoadable.state === 'hasValue' ? oldLoadable.contents : DEFAULT_VALUE$7; // TODO This isn't actually valid, use as a placeholder for now.
                // Ignore atom value changes that were set via setSelf() in the same effect.
                // We will still properly call the handler if there was a subsequent
                // set from something other than an atom effect which was batched
                // with the `setSelf()` call.  However, we may incorrectly ignore
                // the handler if the subsequent batched call happens to set the
                // atom to the exact same value as the `setSelf()`.   But, in that
                // case, it was kind of a noop, so the semantics are debatable..

                if (((_pendingSetSelf = pendingSetSelf) === null || _pendingSetSelf === void 0 ? void 0 : _pendingSetSelf.effect) !== effect || ((_pendingSetSelf2 = pendingSetSelf) === null || _pendingSetSelf2 === void 0 ? void 0 : _pendingSetSelf2.value) !== newValue) {
                  handler(newValue, oldValue, !currentTree.atomValues.has(key));
                } else if (((_pendingSetSelf3 = pendingSetSelf) === null || _pendingSetSelf3 === void 0 ? void 0 : _pendingSetSelf3.effect) === effect) {
                  pendingSetSelf = null;
                }
              }
            }, key),
            release = _store$subscribeToTra.release;
          cleanupEffectsByStore.set(store, [].concat((0,toConsumableArray/* default */.Z)((_cleanupEffectsByStor2 = cleanupEffectsByStore.get(store)) !== null && _cleanupEffectsByStor2 !== void 0 ? _cleanupEffectsByStor2 : []), [release]));
        };
      };
      var _iterator53 = _createForOfIteratorHelper(effects),
        _step53;
      try {
        for (_iterator53.s(); !(_step53 = _iterator53.n()).done;) {
          var effect = _step53.value;
          try {
            var cleanup = effect({
              node: node,
              storeID: store.storeID,
              parentStoreID_UNSTABLE: store.parentStoreID,
              trigger: trigger,
              setSelf: setSelf(effect),
              resetSelf: resetSelf(effect),
              onSet: onSet(effect),
              getPromise: getPromise,
              getLoadable: getLoadable,
              getInfo_UNSTABLE: getInfo_UNSTABLE
            });
            if (cleanup != null) {
              var _cleanupEffectsByStor3;
              cleanupEffectsByStore.set(store, [].concat((0,toConsumableArray/* default */.Z)((_cleanupEffectsByStor3 = cleanupEffectsByStore.get(store)) !== null && _cleanupEffectsByStor3 !== void 0 ? _cleanupEffectsByStor3 : []), [cleanup]));
            }
          } catch (error) {
            initValue = error;
            isInitError = true;
          }
        }
      } catch (err) {
        _iterator53.e(err);
      } finally {
        _iterator53.f();
      }
      isDuringInit = false; // Mutate initial state in place since we know there are no other subscribers
      // since we are the ones initializing on first use.

      if (!(initValue instanceof DefaultValue$2)) {
        var _store$getState$nextT5;
        var initLoadable = isInitError ? loadableWithError$2(initValue) : Recoil_isPromise(initValue) ? loadableWithPromise$2(wrapPendingPromise(store, initValue)) : loadableWithValue$3(unwrap(initValue));
        maybeFreezeValueOrPromise(initLoadable.contents);
        initState.atomValues.set(key, initLoadable); // If there is a pending transaction, then also mutate the next state tree.
        // This could happen if the atom was first initialized in an action that
        // also updated some other atom's state.

        (_store$getState$nextT5 = store.getState().nextTree) === null || _store$getState$nextT5 === void 0 ? void 0 : _store$getState$nextT5.atomValues.set(key, initLoadable);
      }
    }
    return cleanupAtom;
  }
  function peekAtom(_store, state) {
    var _ref, _state$atomValues$get3;
    return (_ref = (_state$atomValues$get3 = state.atomValues.get(key)) !== null && _state$atomValues$get3 !== void 0 ? _state$atomValues$get3 : cachedAnswerForUnvalidatedValue) !== null && _ref !== void 0 ? _ref : defaultLoadable;
  }
  function getAtom(_store, state) {
    if (state.atomValues.has(key)) {
      // Atom value is stored in state:
      return Recoil_nullthrows(state.atomValues.get(key));
    } else if (state.nonvalidatedAtoms.has(key)) {
      // Atom value is stored but needs validation before use.
      // We might have already validated it and have a cached validated value:
      if (cachedAnswerForUnvalidatedValue != null) {
        return cachedAnswerForUnvalidatedValue;
      }
      if (persistence == null) {
        Recoil_expectationViolation("Tried to restore a persisted value for atom ".concat(key, " but it has no persistence settings."));
        return defaultLoadable;
      }
      var nonvalidatedValue = state.nonvalidatedAtoms.get(key);
      var validatorResult = persistence.validator(nonvalidatedValue, DEFAULT_VALUE$7);
      var validatedValueLoadable = validatorResult instanceof DefaultValue$2 ? defaultLoadable : loadableWithValue$3(validatorResult);
      cachedAnswerForUnvalidatedValue = validatedValueLoadable;
      return cachedAnswerForUnvalidatedValue;
    } else {
      return defaultLoadable;
    }
  }
  function invalidateAtom() {
    cachedAnswerForUnvalidatedValue = undefined;
  }
  function setAtom(_store, state, newValue) {
    // Bail out if we're being set to the existing value, or if we're being
    // reset but have no stored value (validated or unvalidated) to reset from:
    if (state.atomValues.has(key)) {
      var existing = Recoil_nullthrows(state.atomValues.get(key));
      if (existing.state === 'hasValue' && newValue === existing.contents) {
        return new Map();
      }
    } else if (!state.nonvalidatedAtoms.has(key) && newValue instanceof DefaultValue$2) {
      return new Map();
    }
    maybeFreezeValueOrPromise(newValue);
    cachedAnswerForUnvalidatedValue = undefined; // can be released now if it was previously in use

    return new Map().set(key, loadableWithValue$3(newValue));
  }
  function shouldDeleteConfigOnReleaseAtom() {
    return getConfigDeletionHandler$2(key) !== undefined && liveStoresCount <= 0;
  }
  var node = registerNode$2({
    key: key,
    nodeType: 'atom',
    peek: peekAtom,
    get: getAtom,
    set: setAtom,
    init: initAtom,
    invalidate: invalidateAtom,
    shouldDeleteConfigOnRelease: shouldDeleteConfigOnReleaseAtom,
    dangerouslyAllowMutability: options.dangerouslyAllowMutability,
    persistence_UNSTABLE: options.persistence_UNSTABLE ? {
      type: options.persistence_UNSTABLE.type,
      backButton: options.persistence_UNSTABLE.backButton
    } : undefined,
    shouldRestoreFromSnapshots: true,
    retainedBy: retainedBy
  });
  return node;
} // prettier-ignore

function atom(options) {
  if (false) {}
  var restOptions = Object.assign({}, (_objectDestructuringEmpty(options), options));
  var optionsDefault = 'default' in options ?
  // $FlowIssue[incompatible-type] No way to refine in Flow that property is not defined
  options.default : new Promise(function () {});
  if (isRecoilValue$4(optionsDefault) // Continue to use atomWithFallback for promise defaults for scoped atoms
  // for now, since scoped atoms don't support async defaults
  // @fb-only: || (isPromise(optionsDefault) && scopeRules_APPEND_ONLY_READ_THE_DOCS)
  // @fb-only: || (isLoadable(optionsDefault) && scopeRules_APPEND_ONLY_READ_THE_DOCS)
  ) {
    return atomWithFallback((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, restOptions), {}, {
      default: optionsDefault // @fb-only: scopeRules_APPEND_ONLY_READ_THE_DOCS,
    })); // @fb-only: } else if (scopeRules_APPEND_ONLY_READ_THE_DOCS
    // @fb-only: && !isPromise(optionsDefault)
    // @fb-only: && !isLoadable(optionsDefault)
    // @fb-only: ) {
    // @fb-only: return scopedAtom<T>({
    // @fb-only: ...restOptions,
    // @fb-only: default: unwrap<T>(optionsDefault),
    // @fb-only: scopeRules_APPEND_ONLY_READ_THE_DOCS,
    // @fb-only: });
  } else {
    return baseAtom((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, restOptions), {}, {
      default: optionsDefault
    }));
  }
}
function atomWithFallback(options) {
  var base = atom((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, options), {}, {
    default: DEFAULT_VALUE$7,
    persistence_UNSTABLE: options.persistence_UNSTABLE === undefined ? undefined : (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, options.persistence_UNSTABLE), {}, {
      validator: function validator(storedValue) {
        return storedValue instanceof DefaultValue$2 ? storedValue : Recoil_nullthrows(options.persistence_UNSTABLE).validator(storedValue, DEFAULT_VALUE$7);
      }
    }),
    // TODO Hack for now.
    effects: options.effects,
    // flowlint-line unclear-type: off
    effects_UNSTABLE: options.effects_UNSTABLE // flowlint-line unclear-type: off
  })); // $FlowFixMe[incompatible-call]

  var sel = Recoil_selector({
    key: "".concat(options.key, "__withFallback"),
    get: function get(_ref27) {
      var _get = _ref27.get;
      var baseValue = _get(base);
      return baseValue instanceof DefaultValue$2 ? options.default : baseValue;
    },
    // $FlowFixMe[incompatible-call]
    set: function set(_ref28, newValue) {
      var _set = _ref28.set;
      return _set(base, newValue);
    },
    // This selector does not need to cache as it is a wrapper selector
    // and the selector within the wrapper selector will have a cache
    // option by default
    cachePolicy_UNSTABLE: {
      eviction: 'most-recent'
    },
    dangerouslyAllowMutability: options.dangerouslyAllowMutability
  });
  setConfigDeletionHandler$1(sel.key, getConfigDeletionHandler$2(options.key));
  return sel;
} // $FlowFixMe[missing-local-annot]

atom.value = function (value) {
  return new WrappedValue$2(value);
};
var Recoil_atom = atom;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * 
 * @format
 * @oncall recoil
 */
var MapCache = /*#__PURE__*/function () {
  function MapCache(options) {
    (0,classCallCheck/* default */.Z)(this, MapCache);
    var _options$mapKey;
    _defineProperty(this, "_map", void 0);
    _defineProperty(this, "_keyMapper", void 0);
    this._map = new Map();
    this._keyMapper = (_options$mapKey = options === null || options === void 0 ? void 0 : options.mapKey) !== null && _options$mapKey !== void 0 ? _options$mapKey : function (v) {
      return v;
    };
  }
  (0,createClass/* default */.Z)(MapCache, [{
    key: "size",
    value: function size() {
      return this._map.size;
    }
  }, {
    key: "has",
    value: function has(key) {
      return this._map.has(this._keyMapper(key));
    }
  }, {
    key: "get",
    value: function get(key) {
      return this._map.get(this._keyMapper(key));
    }
  }, {
    key: "set",
    value: function set(key, val) {
      this._map.set(this._keyMapper(key), val);
    }
  }, {
    key: "delete",
    value: function _delete(key) {
      this._map.delete(this._keyMapper(key));
    }
  }, {
    key: "clear",
    value: function clear() {
      this._map.clear();
    }
  }]);
  return MapCache;
}();
var Recoil_MapCache = {
  MapCache: MapCache
};
var Recoil_MapCache_1 = Recoil_MapCache.MapCache;
var Recoil_MapCache$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  MapCache: Recoil_MapCache_1
});
var LRUCache$2 = Recoil_LRUCache$1.LRUCache;
var MapCache$1 = Recoil_MapCache$1.MapCache;
var defaultPolicy$1 = {
  equality: 'reference',
  eviction: 'none',
  maxSize: Infinity
};
function cacheFromPolicy() {
  var _ref29 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultPolicy$1,
    _ref29$equality = _ref29.equality,
    equality = _ref29$equality === void 0 ? defaultPolicy$1.equality : _ref29$equality,
    _ref29$eviction = _ref29.eviction,
    eviction = _ref29$eviction === void 0 ? defaultPolicy$1.eviction : _ref29$eviction,
    _ref29$maxSize = _ref29.maxSize,
    maxSize = _ref29$maxSize === void 0 ? defaultPolicy$1.maxSize : _ref29$maxSize;
  var valueMapper = getValueMapper$1(equality);
  var cache = getCache(eviction, maxSize, valueMapper);
  return cache;
}
function getValueMapper$1(equality) {
  switch (equality) {
    case 'reference':
      return function (val) {
        return val;
      };
    case 'value':
      return function (val) {
        return Recoil_stableStringify(val);
      };
  }
  throw Recoil_err("Unrecognized equality policy ".concat(equality));
}
function getCache(eviction, maxSize, mapKey) {
  switch (eviction) {
    case 'keep-all':
      return new MapCache$1({
        mapKey: mapKey
      });
    case 'lru':
      return new LRUCache$2({
        mapKey: mapKey,
        maxSize: Recoil_nullthrows(maxSize)
      });
    case 'most-recent':
      return new LRUCache$2({
        mapKey: mapKey,
        maxSize: 1
      });
  }
  throw Recoil_err("Unrecognized eviction policy ".concat(eviction));
}
var Recoil_cacheFromPolicy = cacheFromPolicy;

// @fb-only: import type {ScopeRules} from 'Recoil_ScopedAtom';

var setConfigDeletionHandler$2 = Recoil_Node.setConfigDeletionHandler;

// Process scopeRules to handle any entries which are functions taking parameters
// prettier-ignore
// @fb-only: function mapScopeRules<P>(
// @fb-only: scopeRules?: ParameterizedScopeRules<P>,
// @fb-only: param: P,
// @fb-only: ): ScopeRules | void {
// @fb-only: return scopeRules?.map(rule =>
// @fb-only: Array.isArray(rule)
// @fb-only: ? rule.map(entry => (typeof entry === 'function' ? entry(param) : entry))
// @fb-only: : rule,
// @fb-only: );
// @fb-only: }

/*
A function which returns an atom based on the input parameter.

Each unique parameter returns a unique atom. E.g.,

  const f = atomFamily(...);
  f({a: 1}) => an atom
  f({a: 2}) => a different atom

This allows components to persist local, private state using atoms.  Each
instance of the component may have a different key, which it uses as the
parameter for a family of atoms; in this way, each component will have
its own atom not shared by other instances.  These state keys may be composed
into children's state keys as well.
*/
function atomFamily(options) {
  var _options$cachePolicyF, _options$cachePolicyF2;
  var atomCache = Recoil_cacheFromPolicy({
    equality: (_options$cachePolicyF = (_options$cachePolicyF2 = options.cachePolicyForParams_UNSTABLE) === null || _options$cachePolicyF2 === void 0 ? void 0 : _options$cachePolicyF2.equality) !== null && _options$cachePolicyF !== void 0 ? _options$cachePolicyF : 'value',
    eviction: 'keep-all'
  }); // Simple atomFamily implementation to cache individual atoms based
  // on the parameter value equality.

  return function (params) {
    var _stableStringify, _options$effects;
    var cachedAtom = atomCache.get(params);
    if (cachedAtom != null) {
      return cachedAtom;
    }
    var cachePolicyForParams_UNSTABLE = options.cachePolicyForParams_UNSTABLE,
      atomOptions = (0,objectWithoutProperties/* default */.Z)(options, _excluded2);
    var optionsDefault = 'default' in options ?
    // $FlowIssue[incompatible-type] No way to refine in Flow that property is not defined
    options.default : new Promise(function () {});
    var newAtom = Recoil_atom((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, atomOptions), {}, {
      key: "".concat(options.key, "__").concat((_stableStringify = Recoil_stableStringify(params)) !== null && _stableStringify !== void 0 ? _stableStringify : 'void'),
      default: typeof optionsDefault === 'function' ?
      // The default was parameterized
      // Flow doesn't know that T isn't a function, so we need to case to any
      // $FlowIssue[incompatible-use]
      optionsDefault(params) :
      // Default may be a static value, promise, or RecoilValue
      optionsDefault,
      retainedBy_UNSTABLE: typeof options.retainedBy_UNSTABLE === 'function' ? options.retainedBy_UNSTABLE(params) : options.retainedBy_UNSTABLE,
      effects: typeof options.effects === 'function' ? options.effects(params) : typeof options.effects_UNSTABLE === 'function' ? options.effects_UNSTABLE(params) : (_options$effects = options.effects) !== null && _options$effects !== void 0 ? _options$effects : options.effects_UNSTABLE // prettier-ignore
      // @fb-only: scopeRules_APPEND_ONLY_READ_THE_DOCS: mapScopeRules(
      // @fb-only: options.scopeRules_APPEND_ONLY_READ_THE_DOCS,
      // @fb-only: params,
      // @fb-only: ),
    }));

    atomCache.set(params, newAtom);
    setConfigDeletionHandler$2(newAtom.key, function () {
      atomCache.delete(params);
    });
    return newAtom;
  };
}
var Recoil_atomFamily = atomFamily;
var setConfigDeletionHandler$3 = Recoil_Node.setConfigDeletionHandler;

// Keep in mind the parameter needs to be serializable as a cahche key
// using Recoil_stableStringify

// Add a unique index to each selector in case the cache implementation allows
// duplicate keys based on equivalent stringified parameters
var nextIndex = 0;
/* eslint-disable no-redeclare */

// Return a function that returns members of a family of selectors of the same type
// E.g.,
//
// const s = selectorFamily(...);
// s({a: 1}) => a selector
// s({a: 2}) => a different selector
//
// By default, the selectors are distinguished by distinct values of the
// parameter based on value equality, not reference equality.  This allows using
// object literals or other equivalent objects at callsites to not create
// duplicate cache entries.  This behavior may be overridden with the
// cacheImplementationForParams option.
function selectorFamily(options) {
  var _options$cachePolicyF, _options$cachePolicyF2;
  var selectorCache = Recoil_cacheFromPolicy({
    equality: (_options$cachePolicyF = (_options$cachePolicyF2 = options.cachePolicyForParams_UNSTABLE) === null || _options$cachePolicyF2 === void 0 ? void 0 : _options$cachePolicyF2.equality) !== null && _options$cachePolicyF !== void 0 ? _options$cachePolicyF : 'value',
    eviction: 'keep-all'
  });
  return function (params) {
    var _stableStringify;

    // Throw an error with selector key so that it is clear which
    // selector is causing an error
    var cachedSelector;
    try {
      cachedSelector = selectorCache.get(params);
    } catch (error) {
      throw Recoil_err("Problem with cache lookup for selector ".concat(options.key, ": ").concat(error.message));
    }
    if (cachedSelector != null) {
      return cachedSelector;
    }
    var myKey = "".concat(options.key, "__selectorFamily/").concat((_stableStringify = Recoil_stableStringify(params, {
      // It is possible to use functions in parameters if the user uses
      // a cache with reference equality thanks to the incrementing index.
      allowFunctions: true
    })) !== null && _stableStringify !== void 0 ? _stableStringify : 'void', "/").concat(nextIndex++); // Append index in case values serialize to the same key string

    var myGet = function myGet(callbacks) {
      return options.get(params)(callbacks);
    };
    var myCachePolicy = options.cachePolicy_UNSTABLE;
    var retainedBy = typeof options.retainedBy_UNSTABLE === 'function' ? options.retainedBy_UNSTABLE(params) : options.retainedBy_UNSTABLE;
    var newSelector;
    if (options.set != null) {
      var set = options.set;
      var mySet = function mySet(callbacks, newValue) {
        return set(params)(callbacks, newValue);
      };
      newSelector = Recoil_selector({
        key: myKey,
        get: myGet,
        set: mySet,
        cachePolicy_UNSTABLE: myCachePolicy,
        dangerouslyAllowMutability: options.dangerouslyAllowMutability,
        retainedBy_UNSTABLE: retainedBy
      });
    } else {
      newSelector = Recoil_selector({
        key: myKey,
        get: myGet,
        cachePolicy_UNSTABLE: myCachePolicy,
        dangerouslyAllowMutability: options.dangerouslyAllowMutability,
        retainedBy_UNSTABLE: retainedBy
      });
    }
    selectorCache.set(params, newSelector);
    setConfigDeletionHandler$3(newSelector.key, function () {
      selectorCache.delete(params);
    });
    return newSelector;
  };
}
/* eslint-enable no-redeclare */

var Recoil_selectorFamily = selectorFamily;

// flowlint-next-line unclear-type:off

var constantSelector = Recoil_selectorFamily({
  key: '__constant',
  get: function get(constant) {
    return function () {
      return constant;
    };
  },
  cachePolicyForParams_UNSTABLE: {
    equality: 'reference'
  }
}); // Function that returns a selector which always produces the
// same constant value.  It may be called multiple times with the
// same value, based on reference equality, and will provide the
// same selector.

function constSelector(constant) {
  return constantSelector(constant);
}
var Recoil_constSelector = constSelector;

// flowlint-next-line unclear-type:off

var throwingSelector = Recoil_selectorFamily({
  key: '__error',
  get: function get(message) {
    return function () {
      throw Recoil_err(message);
    };
  },
  // TODO Why?
  cachePolicyForParams_UNSTABLE: {
    equality: 'reference'
  }
}); // Function that returns a selector which always throws an error
// with the provided message.

function errorSelector(message) {
  return throwingSelector(message);
}
var Recoil_errorSelector = errorSelector;

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * Wraps another recoil value and prevents writing to it.
 *
 * 
 * @format
 * @oncall recoil
 */

function readOnlySelector(atom) {
  // flowlint-next-line unclear-type: off
  return atom;
}
var Recoil_readOnlySelector = readOnlySelector;
var loadableWithError$3 = Recoil_Loadable$1.loadableWithError,
  loadableWithPromise$3 = Recoil_Loadable$1.loadableWithPromise,
  loadableWithValue$4 = Recoil_Loadable$1.loadableWithValue;

/////////////////
//  TRUTH TABLE
/////////////////
// Dependencies        waitForNone         waitForAny        waitForAll       waitForAllSettled
//  [loading, loading]  [Promise, Promise]  Promise           Promise         Promise
//  [value, loading]    [value, Promise]    [value, Promise]  Promise         Promise
//  [value, value]      [value, value]      [value, value]    [value, value]  [value, value]
//
//  [error, loading]    [Error, Promise]    [Error, Promise]  Error           Promise
//  [error, error]      [Error, Error]      [Error, Error]    Error           [error, error]
//  [value, error]      [value, Error]      [value, Error]    Error           [value, error]
// Issue parallel requests for all dependencies and return the current
// status if they have results, have some error, or are still pending.

function concurrentRequests(getRecoilValue, deps) {
  var results = Array(deps.length).fill(undefined);
  var exceptions = Array(deps.length).fill(undefined);
  var _iterator54 = _createForOfIteratorHelper(deps.entries()),
    _step54;
  try {
    for (_iterator54.s(); !(_step54 = _iterator54.n()).done;) {
      var _step54$value = (0,slicedToArray/* default */.Z)(_step54.value, 2),
        i = _step54$value[0],
        dep = _step54$value[1];
      try {
        results[i] = getRecoilValue(dep);
      } catch (e) {
        // exceptions can either be Promises of pending results or real errors
        exceptions[i] = e;
      }
    }
  } catch (err) {
    _iterator54.e(err);
  } finally {
    _iterator54.f();
  }
  return [results, exceptions];
}
function isError(exp) {
  return exp != null && !Recoil_isPromise(exp);
}
function unwrapDependencies(dependencies) {
  return Array.isArray(dependencies) ? dependencies : Object.getOwnPropertyNames(dependencies).map(function (key) {
    return dependencies[key];
  });
}
function wrapResults(dependencies,
/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
 * LTI update could not be added via codemod */
results) {
  return Array.isArray(dependencies) ? results :
  // Object.getOwnPropertyNames() has consistent key ordering with ES6
  Object.getOwnPropertyNames(dependencies).reduce(function (out, key, idx) {
    return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, out), {}, (0,defineProperty/* default */.Z)({}, key, results[idx]));
  }, {});
}
function wrapLoadables(dependencies, results, exceptions) {
  var output = exceptions.map(function (exception, idx) {
    return exception == null ? loadableWithValue$4(results[idx]) : Recoil_isPromise(exception) ? loadableWithPromise$3(exception) : loadableWithError$3(exception);
  });
  return wrapResults(dependencies, output);
}
function combineAsyncResultsWithSyncResults(syncResults, asyncResults) {
  return asyncResults.map(function (result, idx) {
    return (
      /**
       * it's important we use === undefined as opposed to == null, because the
       * resolved value of the async promise could be `null`, in which case we
       * don't want to use syncResults[idx], which would be undefined. If async
       * promise resolves to `undefined`, that's ok because `syncResults[idx]`
       * will also be `undefined`. That's a little hacky, but it works.
       */
      result === undefined ? syncResults[idx] : result
    );
  });
} // Selector that requests all dependencies in parallel and immediately returns
// current results without waiting.

var waitForNone = Recoil_selectorFamily({
  key: '__waitForNone',
  get: function get(dependencies) {
    return function (_ref30) {
      var get = _ref30.get;
      // Issue requests for all dependencies in parallel.
      var deps = unwrapDependencies(dependencies);
      var _concurrentRequests = concurrentRequests(get, deps),
        _concurrentRequests2 = (0,slicedToArray/* default */.Z)(_concurrentRequests, 2),
        results = _concurrentRequests2[0],
        exceptions = _concurrentRequests2[1]; // Always return the current status of the results; never block.

      return wrapLoadables(dependencies, results, exceptions);
    };
  },
  dangerouslyAllowMutability: true
}); // Selector that requests all dependencies in parallel and waits for at least
// one to be available before returning results.  It will only error if all
// dependencies have errors.

var waitForAny = Recoil_selectorFamily({
  key: '__waitForAny',
  get: function get(dependencies) {
    return function (_ref31) {
      var get = _ref31.get;
      // Issue requests for all dependencies in parallel.
      // Exceptions can either be Promises of pending results or real errors
      var deps = unwrapDependencies(dependencies);
      var _concurrentRequests3 = concurrentRequests(get, deps),
        _concurrentRequests4 = (0,slicedToArray/* default */.Z)(_concurrentRequests3, 2),
        results = _concurrentRequests4[0],
        exceptions = _concurrentRequests4[1]; // If any results are available, value or error, return the current status

      if (exceptions.some(function (exp) {
        return !Recoil_isPromise(exp);
      })) {
        return wrapLoadables(dependencies, results, exceptions);
      } // Otherwise, return a promise that will resolve when the next result is
      // available, whichever one happens to be next.  But, if all pending
      // dependencies end up with errors, then reject the promise.

      return new Promise(function (resolve) {
        var _iterator55 = _createForOfIteratorHelper(exceptions.entries()),
          _step55;
        try {
          var _loop = function _loop() {
            var _step55$value = (0,slicedToArray/* default */.Z)(_step55.value, 2),
              i = _step55$value[0],
              exp = _step55$value[1];
            if (Recoil_isPromise(exp)) {
              exp.then(function (result) {
                results[i] = result;
                exceptions[i] = undefined;
                resolve(wrapLoadables(dependencies, results, exceptions));
              }).catch(function (error) {
                exceptions[i] = error;
                resolve(wrapLoadables(dependencies, results, exceptions));
              });
            }
          };
          for (_iterator55.s(); !(_step55 = _iterator55.n()).done;) {
            _loop();
          }
        } catch (err) {
          _iterator55.e(err);
        } finally {
          _iterator55.f();
        }
      });
    };
  },
  dangerouslyAllowMutability: true
}); // Selector that requests all dependencies in parallel and waits for all to be
// available before returning a value.  It will error if any dependencies error.

var waitForAll = Recoil_selectorFamily({
  key: '__waitForAll',
  get: function get(dependencies) {
    return function (_ref32) {
      var get = _ref32.get;
      // Issue requests for all dependencies in parallel.
      // Exceptions can either be Promises of pending results or real errors
      var deps = unwrapDependencies(dependencies);
      var _concurrentRequests5 = concurrentRequests(get, deps),
        _concurrentRequests6 = (0,slicedToArray/* default */.Z)(_concurrentRequests5, 2),
        results = _concurrentRequests6[0],
        exceptions = _concurrentRequests6[1]; // If all results are available, return the results

      if (exceptions.every(function (exp) {
        return exp == null;
      })) {
        return wrapResults(dependencies, results);
      } // If we have any errors, throw the first error

      var error = exceptions.find(isError);
      if (error != null) {
        throw error;
      } // Otherwise, return a promise that will resolve when all results are available

      return Promise.all(exceptions).then(function (exceptionResults) {
        return wrapResults(dependencies, combineAsyncResultsWithSyncResults(results, exceptionResults));
      });
    };
  },
  dangerouslyAllowMutability: true
});
var waitForAllSettled = Recoil_selectorFamily({
  key: '__waitForAllSettled',
  get: function get(dependencies) {
    return function (_ref33) {
      var get = _ref33.get;
      // Issue requests for all dependencies in parallel.
      // Exceptions can either be Promises of pending results or real errors
      var deps = unwrapDependencies(dependencies);
      var _concurrentRequests7 = concurrentRequests(get, deps),
        _concurrentRequests8 = (0,slicedToArray/* default */.Z)(_concurrentRequests7, 2),
        results = _concurrentRequests8[0],
        exceptions = _concurrentRequests8[1]; // If all results are available, return the results

      if (exceptions.every(function (exp) {
        return !Recoil_isPromise(exp);
      })) {
        return wrapLoadables(dependencies, results, exceptions);
      } // Wait for all results to settle

      return Promise.all(exceptions.map(function (exp, i) {
        return Recoil_isPromise(exp) ? exp.then(function (result) {
          results[i] = result;
          exceptions[i] = undefined;
        }).catch(function (error) {
          results[i] = undefined;
          exceptions[i] = error;
        }) : null;
      })) // Then wrap them as loadables
      .then(function () {
        return wrapLoadables(dependencies, results, exceptions);
      });
    };
  },
  dangerouslyAllowMutability: true
});
var noWait = Recoil_selectorFamily({
  key: '__noWait',
  get: function get(dependency) {
    return function (_ref34) {
      var get = _ref34.get;
      try {
        return Recoil_selector.value(loadableWithValue$4(get(dependency)));
      } catch (exception) {
        return Recoil_selector.value(Recoil_isPromise(exception) ? loadableWithPromise$3(exception) : loadableWithError$3(exception));
      }
    };
  },
  dangerouslyAllowMutability: true
});
var Recoil_WaitFor = {
  waitForNone: waitForNone,
  waitForAny: waitForAny,
  waitForAll: waitForAll,
  waitForAllSettled: waitForAllSettled,
  noWait: noWait
};
var RecoilLoadable = Recoil_Loadable$1.RecoilLoadable;
var DefaultValue$3 = Recoil_Node.DefaultValue;
var RecoilRoot$2 = Recoil_RecoilRoot.RecoilRoot,
  useRecoilStoreID$1 = Recoil_RecoilRoot.useRecoilStoreID;
var isRecoilValue$5 = Recoil_RecoilValue$1.isRecoilValue;
var retentionZone$1 = Recoil_RetentionZone.retentionZone;
var freshSnapshot$2 = Recoil_Snapshot$1.freshSnapshot;
var useRecoilState$1 = Recoil_Hooks.useRecoilState,
  useRecoilState_TRANSITION_SUPPORT_UNSTABLE$1 = Recoil_Hooks.useRecoilState_TRANSITION_SUPPORT_UNSTABLE,
  useRecoilStateLoadable$1 = Recoil_Hooks.useRecoilStateLoadable,
  useRecoilValue$1 = Recoil_Hooks.useRecoilValue,
  useRecoilValue_TRANSITION_SUPPORT_UNSTABLE$1 = Recoil_Hooks.useRecoilValue_TRANSITION_SUPPORT_UNSTABLE,
  useRecoilValueLoadable$1 = Recoil_Hooks.useRecoilValueLoadable,
  useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE$1 = Recoil_Hooks.useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE,
  useResetRecoilState$1 = Recoil_Hooks.useResetRecoilState,
  useSetRecoilState$1 = Recoil_Hooks.useSetRecoilState;
var useGotoRecoilSnapshot$1 = Recoil_SnapshotHooks.useGotoRecoilSnapshot,
  useRecoilSnapshot$1 = Recoil_SnapshotHooks.useRecoilSnapshot,
  useRecoilTransactionObserver$1 = Recoil_SnapshotHooks.useRecoilTransactionObserver;
var useRecoilCallback$1 = Recoil_useRecoilCallback.useRecoilCallback;
var noWait$1 = Recoil_WaitFor.noWait,
  waitForAll$1 = Recoil_WaitFor.waitForAll,
  waitForAllSettled$1 = Recoil_WaitFor.waitForAllSettled,
  waitForAny$1 = Recoil_WaitFor.waitForAny,
  waitForNone$1 = Recoil_WaitFor.waitForNone;
var Recoil_index = {
  // Types
  DefaultValue: DefaultValue$3,
  isRecoilValue: isRecoilValue$5,
  RecoilLoadable: RecoilLoadable,
  // Global Recoil environment settiongs
  RecoilEnv: Recoil_RecoilEnv,
  // Recoil Root
  RecoilRoot: RecoilRoot$2,
  useRecoilStoreID: useRecoilStoreID$1,
  useRecoilBridgeAcrossReactRoots_UNSTABLE: Recoil_useRecoilBridgeAcrossReactRoots,
  // Atoms/Selectors
  atom: Recoil_atom,
  selector: Recoil_selector,
  // Convenience Atoms/Selectors
  atomFamily: Recoil_atomFamily,
  selectorFamily: Recoil_selectorFamily,
  constSelector: Recoil_constSelector,
  errorSelector: Recoil_errorSelector,
  readOnlySelector: Recoil_readOnlySelector,
  // Concurrency Helpers for Atoms/Selectors
  noWait: noWait$1,
  waitForNone: waitForNone$1,
  waitForAny: waitForAny$1,
  waitForAll: waitForAll$1,
  waitForAllSettled: waitForAllSettled$1,
  // Hooks for Atoms/Selectors
  useRecoilValue: useRecoilValue$1,
  useRecoilValueLoadable: useRecoilValueLoadable$1,
  useRecoilState: useRecoilState$1,
  useRecoilStateLoadable: useRecoilStateLoadable$1,
  useSetRecoilState: useSetRecoilState$1,
  useResetRecoilState: useResetRecoilState$1,
  useGetRecoilValueInfo_UNSTABLE: Recoil_useGetRecoilValueInfo,
  useRecoilRefresher_UNSTABLE: Recoil_useRecoilRefresher,
  useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE: useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE$1,
  useRecoilValue_TRANSITION_SUPPORT_UNSTABLE: useRecoilValue_TRANSITION_SUPPORT_UNSTABLE$1,
  useRecoilState_TRANSITION_SUPPORT_UNSTABLE: useRecoilState_TRANSITION_SUPPORT_UNSTABLE$1,
  // Hooks for complex operations
  useRecoilCallback: useRecoilCallback$1,
  useRecoilTransaction_UNSTABLE: Recoil_useRecoilTransaction,
  // Snapshots
  useGotoRecoilSnapshot: useGotoRecoilSnapshot$1,
  useRecoilSnapshot: useRecoilSnapshot$1,
  useRecoilTransactionObserver_UNSTABLE: useRecoilTransactionObserver$1,
  snapshot_UNSTABLE: freshSnapshot$2,
  // Memory Management
  useRetain: Recoil_useRetain,
  retentionZone: retentionZone$1
};
var Recoil_index_1 = Recoil_index.DefaultValue;
var Recoil_index_2 = Recoil_index.isRecoilValue;
var Recoil_index_3 = Recoil_index.RecoilLoadable;
var Recoil_index_4 = Recoil_index.RecoilEnv;
var Recoil_index_5 = Recoil_index.RecoilRoot;
var Recoil_index_6 = Recoil_index.useRecoilStoreID;
var Recoil_index_7 = Recoil_index.useRecoilBridgeAcrossReactRoots_UNSTABLE;
var Recoil_index_8 = Recoil_index.atom;
var Recoil_index_9 = Recoil_index.selector;
var Recoil_index_10 = Recoil_index.atomFamily;
var Recoil_index_11 = Recoil_index.selectorFamily;
var Recoil_index_12 = Recoil_index.constSelector;
var Recoil_index_13 = Recoil_index.errorSelector;
var Recoil_index_14 = Recoil_index.readOnlySelector;
var Recoil_index_15 = Recoil_index.noWait;
var Recoil_index_16 = Recoil_index.waitForNone;
var Recoil_index_17 = Recoil_index.waitForAny;
var Recoil_index_18 = Recoil_index.waitForAll;
var Recoil_index_19 = Recoil_index.waitForAllSettled;
var Recoil_index_20 = Recoil_index.useRecoilValue;
var Recoil_index_21 = Recoil_index.useRecoilValueLoadable;
var Recoil_index_22 = Recoil_index.useRecoilState;
var Recoil_index_23 = Recoil_index.useRecoilStateLoadable;
var Recoil_index_24 = Recoil_index.useSetRecoilState;
var Recoil_index_25 = Recoil_index.useResetRecoilState;
var Recoil_index_26 = Recoil_index.useGetRecoilValueInfo_UNSTABLE;
var Recoil_index_27 = Recoil_index.useRecoilRefresher_UNSTABLE;
var Recoil_index_28 = Recoil_index.useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE;
var Recoil_index_29 = Recoil_index.useRecoilValue_TRANSITION_SUPPORT_UNSTABLE;
var Recoil_index_30 = Recoil_index.useRecoilState_TRANSITION_SUPPORT_UNSTABLE;
var Recoil_index_31 = Recoil_index.useRecoilCallback;
var Recoil_index_32 = Recoil_index.useRecoilTransaction_UNSTABLE;
var Recoil_index_33 = Recoil_index.useGotoRecoilSnapshot;
var Recoil_index_34 = Recoil_index.useRecoilSnapshot;
var Recoil_index_35 = Recoil_index.useRecoilTransactionObserver_UNSTABLE;
var Recoil_index_36 = Recoil_index.snapshot_UNSTABLE;
var Recoil_index_37 = Recoil_index.useRetain;
var Recoil_index_38 = Recoil_index.retentionZone;
/* harmony default export */ var es = ((/* unused pure expression or super */ null && (Recoil_index)));


/***/ }),

/***/ 875:
/***/ (function(__unused_webpack_module, exports) {

"use strict";
/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */


function f(a, b) {
  var c = a.length;
  a.push(b);
  a: for (; 0 < c;) {
    var d = c - 1 >>> 1,
      e = a[d];
    if (0 < g(e, b)) a[d] = b, a[c] = e, c = d;else break a;
  }
}
function h(a) {
  return 0 === a.length ? null : a[0];
}
function k(a) {
  if (0 === a.length) return null;
  var b = a[0],
    c = a.pop();
  if (c !== b) {
    a[0] = c;
    a: for (var d = 0, e = a.length, w = e >>> 1; d < w;) {
      var m = 2 * (d + 1) - 1,
        C = a[m],
        n = m + 1,
        x = a[n];
      if (0 > g(C, c)) n < e && 0 > g(x, C) ? (a[d] = x, a[n] = c, d = n) : (a[d] = C, a[m] = c, d = m);else if (n < e && 0 > g(x, c)) a[d] = x, a[n] = c, d = n;else break a;
    }
  }
  return b;
}
function g(a, b) {
  var c = a.sortIndex - b.sortIndex;
  return 0 !== c ? c : a.id - b.id;
}
if ("object" === typeof performance && "function" === typeof performance.now) {
  var l = performance;
  exports.unstable_now = function () {
    return l.now();
  };
} else {
  var p = Date,
    q = p.now();
  exports.unstable_now = function () {
    return p.now() - q;
  };
}
var r = [],
  t = [],
  u = 1,
  v = null,
  y = 3,
  z = !1,
  A = !1,
  B = !1,
  D = "function" === typeof setTimeout ? setTimeout : null,
  E = "function" === typeof clearTimeout ? clearTimeout : null,
  F = "undefined" !== typeof setImmediate ? setImmediate : null;
"undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
function G(a) {
  for (var b = h(t); null !== b;) {
    if (null === b.callback) k(t);else if (b.startTime <= a) k(t), b.sortIndex = b.expirationTime, f(r, b);else break;
    b = h(t);
  }
}
function H(a) {
  B = !1;
  G(a);
  if (!A) if (null !== h(r)) A = !0, I(J);else {
    var b = h(t);
    null !== b && K(H, b.startTime - a);
  }
}
function J(a, b) {
  A = !1;
  B && (B = !1, E(L), L = -1);
  z = !0;
  var c = y;
  try {
    G(b);
    for (v = h(r); null !== v && (!(v.expirationTime > b) || a && !M());) {
      var d = v.callback;
      if ("function" === typeof d) {
        v.callback = null;
        y = v.priorityLevel;
        var e = d(v.expirationTime <= b);
        b = exports.unstable_now();
        "function" === typeof e ? v.callback = e : v === h(r) && k(r);
        G(b);
      } else k(r);
      v = h(r);
    }
    if (null !== v) var w = !0;else {
      var m = h(t);
      null !== m && K(H, m.startTime - b);
      w = !1;
    }
    return w;
  } finally {
    v = null, y = c, z = !1;
  }
}
var N = !1,
  O = null,
  L = -1,
  P = 5,
  Q = -1;
function M() {
  return exports.unstable_now() - Q < P ? !1 : !0;
}
function R() {
  if (null !== O) {
    var a = exports.unstable_now();
    Q = a;
    var b = !0;
    try {
      b = O(!0, a);
    } finally {
      b ? S() : (N = !1, O = null);
    }
  } else N = !1;
}
var S;
if ("function" === typeof F) S = function S() {
  F(R);
};else if ("undefined" !== typeof MessageChannel) {
  var T = new MessageChannel(),
    U = T.port2;
  T.port1.onmessage = R;
  S = function S() {
    U.postMessage(null);
  };
} else S = function S() {
  D(R, 0);
};
function I(a) {
  O = a;
  N || (N = !0, S());
}
function K(a, b) {
  L = D(function () {
    a(exports.unstable_now());
  }, b);
}
exports.unstable_IdlePriority = 5;
exports.unstable_ImmediatePriority = 1;
exports.unstable_LowPriority = 4;
exports.unstable_NormalPriority = 3;
exports.unstable_Profiling = null;
exports.unstable_UserBlockingPriority = 2;
exports.unstable_cancelCallback = function (a) {
  a.callback = null;
};
exports.unstable_continueExecution = function () {
  A || z || (A = !0, I(J));
};
exports.unstable_forceFrameRate = function (a) {
  0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1E3 / a) : 5;
};
exports.unstable_getCurrentPriorityLevel = function () {
  return y;
};
exports.unstable_getFirstCallbackNode = function () {
  return h(r);
};
exports.unstable_next = function (a) {
  switch (y) {
    case 1:
    case 2:
    case 3:
      var b = 3;
      break;
    default:
      b = y;
  }
  var c = y;
  y = b;
  try {
    return a();
  } finally {
    y = c;
  }
};
exports.unstable_pauseExecution = function () {};
exports.unstable_requestPaint = function () {};
exports.unstable_runWithPriority = function (a, b) {
  switch (a) {
    case 1:
    case 2:
    case 3:
    case 4:
    case 5:
      break;
    default:
      a = 3;
  }
  var c = y;
  y = a;
  try {
    return b();
  } finally {
    y = c;
  }
};
exports.unstable_scheduleCallback = function (a, b, c) {
  var d = exports.unstable_now();
  "object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
  switch (a) {
    case 1:
      var e = -1;
      break;
    case 2:
      e = 250;
      break;
    case 5:
      e = 1073741823;
      break;
    case 4:
      e = 1E4;
      break;
    default:
      e = 5E3;
  }
  e = c + e;
  a = {
    id: u++,
    callback: b,
    priorityLevel: a,
    startTime: c,
    expirationTime: e,
    sortIndex: -1
  };
  c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E(L), L = -1) : B = !0, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = !0, I(J)));
  return a;
};
exports.unstable_shouldYield = M;
exports.unstable_wrapCallback = function (a) {
  var b = y;
  return function () {
    var c = y;
    y = b;
    try {
      return a.apply(this, arguments);
    } finally {
      y = c;
    }
  };
};

/***/ }),

/***/ 4086:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


if (true) {
  module.exports = __webpack_require__(875);
} else {}

/***/ }),

/***/ 4776:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var _classCallCheck = (__webpack_require__(8388)["default"]);
var _createClass = (__webpack_require__(6553)["default"]);
var ANY = Symbol('SemVer ANY');
// hoisted class for cyclic dependency
var Comparator = /*#__PURE__*/function () {
  "use strict";

  function Comparator(comp, options) {
    _classCallCheck(this, Comparator);
    options = parseOptions(options);
    if (comp instanceof Comparator) {
      if (comp.loose === !!options.loose) {
        return comp;
      } else {
        comp = comp.value;
      }
    }
    debug('comparator', comp, options);
    this.options = options;
    this.loose = !!options.loose;
    this.parse(comp);
    if (this.semver === ANY) {
      this.value = '';
    } else {
      this.value = this.operator + this.semver.version;
    }
    debug('comp', this);
  }
  _createClass(Comparator, [{
    key: "parse",
    value: function parse(comp) {
      var r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
      var m = comp.match(r);
      if (!m) {
        throw new TypeError("Invalid comparator: ".concat(comp));
      }
      this.operator = m[1] !== undefined ? m[1] : '';
      if (this.operator === '=') {
        this.operator = '';
      }

      // if it literally is just '>' or '' then allow anything.
      if (!m[2]) {
        this.semver = ANY;
      } else {
        this.semver = new SemVer(m[2], this.options.loose);
      }
    }
  }, {
    key: "toString",
    value: function toString() {
      return this.value;
    }
  }, {
    key: "test",
    value: function test(version) {
      debug('Comparator.test', version, this.options.loose);
      if (this.semver === ANY || version === ANY) {
        return true;
      }
      if (typeof version === 'string') {
        try {
          version = new SemVer(version, this.options);
        } catch (er) {
          return false;
        }
      }
      return cmp(version, this.operator, this.semver, this.options);
    }
  }, {
    key: "intersects",
    value: function intersects(comp, options) {
      if (!(comp instanceof Comparator)) {
        throw new TypeError('a Comparator is required');
      }
      if (this.operator === '') {
        if (this.value === '') {
          return true;
        }
        return new Range(comp.value, options).test(this.value);
      } else if (comp.operator === '') {
        if (comp.value === '') {
          return true;
        }
        return new Range(this.value, options).test(comp.semver);
      }
      options = parseOptions(options);

      // Special cases where nothing can possibly be lower
      if (options.includePrerelease && (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {
        return false;
      }
      if (!options.includePrerelease && (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {
        return false;
      }

      // Same direction increasing (> or >=)
      if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {
        return true;
      }
      // Same direction decreasing (< or <=)
      if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {
        return true;
      }
      // same SemVer and both sides are inclusive (<= or >=)
      if (this.semver.version === comp.semver.version && this.operator.includes('=') && comp.operator.includes('=')) {
        return true;
      }
      // opposite directions less than
      if (cmp(this.semver, '<', comp.semver, options) && this.operator.startsWith('>') && comp.operator.startsWith('<')) {
        return true;
      }
      // opposite directions greater than
      if (cmp(this.semver, '>', comp.semver, options) && this.operator.startsWith('<') && comp.operator.startsWith('>')) {
        return true;
      }
      return false;
    }
  }], [{
    key: "ANY",
    get: function get() {
      return ANY;
    }
  }]);
  return Comparator;
}();
module.exports = Comparator;
var parseOptions = __webpack_require__(9295);
var _require = __webpack_require__(9242),
  re = _require.re,
  t = _require.t;
var cmp = __webpack_require__(6815);
var debug = __webpack_require__(6899);
var SemVer = __webpack_require__(8940);
var Range = __webpack_require__(55);

/***/ }),

/***/ 55:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var _toConsumableArray = (__webpack_require__(8913)["default"]);
var _createForOfIteratorHelper = (__webpack_require__(3042)["default"]);
var _classCallCheck = (__webpack_require__(8388)["default"]);
var _createClass = (__webpack_require__(6553)["default"]);
// hoisted class for cyclic dependency
var Range = /*#__PURE__*/function () {
  "use strict";

  function Range(range, options) {
    var _this = this;
    _classCallCheck(this, Range);
    options = parseOptions(options);
    if (range instanceof Range) {
      if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
        return range;
      } else {
        return new Range(range.raw, options);
      }
    }
    if (range instanceof Comparator) {
      // just put it in the set and return
      this.raw = range.value;
      this.set = [[range]];
      this.format();
      return this;
    }
    this.options = options;
    this.loose = !!options.loose;
    this.includePrerelease = !!options.includePrerelease;

    // First, split based on boolean or ||
    this.raw = range;
    this.set = range.split('||')
    // map the range to a 2d array of comparators
    .map(function (r) {
      return _this.parseRange(r.trim());
    })
    // throw out any comparator lists that are empty
    // this generally means that it was not a valid range, which is allowed
    // in loose mode, but will still throw if the WHOLE range is invalid.
    .filter(function (c) {
      return c.length;
    });
    if (!this.set.length) {
      throw new TypeError("Invalid SemVer Range: ".concat(range));
    }

    // if we have any that are not the null set, throw out null sets.
    if (this.set.length > 1) {
      // keep the first one, in case they're all null sets
      var first = this.set[0];
      this.set = this.set.filter(function (c) {
        return !isNullSet(c[0]);
      });
      if (this.set.length === 0) {
        this.set = [first];
      } else if (this.set.length > 1) {
        // if we have any that are *, then the range is just *
        var _iterator = _createForOfIteratorHelper(this.set),
          _step;
        try {
          for (_iterator.s(); !(_step = _iterator.n()).done;) {
            var c = _step.value;
            if (c.length === 1 && isAny(c[0])) {
              this.set = [c];
              break;
            }
          }
        } catch (err) {
          _iterator.e(err);
        } finally {
          _iterator.f();
        }
      }
    }
    this.format();
  }
  _createClass(Range, [{
    key: "format",
    value: function format() {
      this.range = this.set.map(function (comps) {
        return comps.join(' ').trim();
      }).join('||').trim();
      return this.range;
    }
  }, {
    key: "toString",
    value: function toString() {
      return this.range;
    }
  }, {
    key: "parseRange",
    value: function parseRange(range) {
      var _this2 = this;
      range = range.trim();

      // memoize range parsing for performance.
      // this is a very hot path, and fully deterministic.
      var memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
      var memoKey = memoOpts + ':' + range;
      var cached = cache.get(memoKey);
      if (cached) {
        return cached;
      }
      var loose = this.options.loose;
      // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
      var hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
      range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
      debug('hyphen replace', range);
      // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
      range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
      debug('comparator trim', range);

      // `~ 1.2.3` => `~1.2.3`
      range = range.replace(re[t.TILDETRIM], tildeTrimReplace);

      // `^ 1.2.3` => `^1.2.3`
      range = range.replace(re[t.CARETTRIM], caretTrimReplace);

      // normalize spaces
      range = range.split(/\s+/).join(' ');

      // At this point, the range is completely trimmed and
      // ready to be split into comparators.

      var rangeList = range.split(' ').map(function (comp) {
        return parseComparator(comp, _this2.options);
      }).join(' ').split(/\s+/)
      // >=0.0.0 is equivalent to *
      .map(function (comp) {
        return replaceGTE0(comp, _this2.options);
      });
      if (loose) {
        // in loose mode, throw out any that are not valid comparators
        rangeList = rangeList.filter(function (comp) {
          debug('loose invalid filter', comp, _this2.options);
          return !!comp.match(re[t.COMPARATORLOOSE]);
        });
      }
      debug('range list', rangeList);

      // if any comparators are the null set, then replace with JUST null set
      // if more than one comparator, remove any * comparators
      // also, don't include the same comparator more than once
      var rangeMap = new Map();
      var comparators = rangeList.map(function (comp) {
        return new Comparator(comp, _this2.options);
      });
      var _iterator2 = _createForOfIteratorHelper(comparators),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var comp = _step2.value;
          if (isNullSet(comp)) {
            return [comp];
          }
          rangeMap.set(comp.value, comp);
        }
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      if (rangeMap.size > 1 && rangeMap.has('')) {
        rangeMap.delete('');
      }
      var result = _toConsumableArray(rangeMap.values());
      cache.set(memoKey, result);
      return result;
    }
  }, {
    key: "intersects",
    value: function intersects(range, options) {
      if (!(range instanceof Range)) {
        throw new TypeError('a Range is required');
      }
      return this.set.some(function (thisComparators) {
        return isSatisfiable(thisComparators, options) && range.set.some(function (rangeComparators) {
          return isSatisfiable(rangeComparators, options) && thisComparators.every(function (thisComparator) {
            return rangeComparators.every(function (rangeComparator) {
              return thisComparator.intersects(rangeComparator, options);
            });
          });
        });
      });
    }

    // if ANY of the sets match ALL of its comparators, then pass
  }, {
    key: "test",
    value: function test(version) {
      if (!version) {
        return false;
      }
      if (typeof version === 'string') {
        try {
          version = new SemVer(version, this.options);
        } catch (er) {
          return false;
        }
      }
      for (var i = 0; i < this.set.length; i++) {
        if (testSet(this.set[i], version, this.options)) {
          return true;
        }
      }
      return false;
    }
  }]);
  return Range;
}();
module.exports = Range;
var LRU = __webpack_require__(2346);
var cache = new LRU({
  max: 1000
});
var parseOptions = __webpack_require__(9295);
var Comparator = __webpack_require__(4776);
var debug = __webpack_require__(6899);
var SemVer = __webpack_require__(8940);
var _require = __webpack_require__(9242),
  re = _require.re,
  t = _require.t,
  comparatorTrimReplace = _require.comparatorTrimReplace,
  tildeTrimReplace = _require.tildeTrimReplace,
  caretTrimReplace = _require.caretTrimReplace;
var _require2 = __webpack_require__(1709),
  FLAG_INCLUDE_PRERELEASE = _require2.FLAG_INCLUDE_PRERELEASE,
  FLAG_LOOSE = _require2.FLAG_LOOSE;
var isNullSet = function isNullSet(c) {
  return c.value === '<0.0.0-0';
};
var isAny = function isAny(c) {
  return c.value === '';
};

// take a set of comparators and determine whether there
// exists a version which can satisfy it
var isSatisfiable = function isSatisfiable(comparators, options) {
  var result = true;
  var remainingComparators = comparators.slice();
  var testComparator = remainingComparators.pop();
  while (result && remainingComparators.length) {
    result = remainingComparators.every(function (otherComparator) {
      return testComparator.intersects(otherComparator, options);
    });
    testComparator = remainingComparators.pop();
  }
  return result;
};

// comprised of xranges, tildes, stars, and gtlt's at this point.
// already replaced the hyphen ranges
// turn into a set of JUST comparators.
var parseComparator = function parseComparator(comp, options) {
  debug('comp', comp, options);
  comp = replaceCarets(comp, options);
  debug('caret', comp);
  comp = replaceTildes(comp, options);
  debug('tildes', comp);
  comp = replaceXRanges(comp, options);
  debug('xrange', comp);
  comp = replaceStars(comp, options);
  debug('stars', comp);
  return comp;
};
var isX = function isX(id) {
  return !id || id.toLowerCase() === 'x' || id === '*';
};

// ~, ~> --> * (any, kinda silly)
// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
// ~0.0.1 --> >=0.0.1 <0.1.0-0
var replaceTildes = function replaceTildes(comp, options) {
  return comp.trim().split(/\s+/).map(function (c) {
    return replaceTilde(c, options);
  }).join(' ');
};
var replaceTilde = function replaceTilde(comp, options) {
  var r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
  return comp.replace(r, function (_, M, m, p, pr) {
    debug('tilde', comp, _, M, m, p, pr);
    var ret;
    if (isX(M)) {
      ret = '';
    } else if (isX(m)) {
      ret = ">=".concat(M, ".0.0 <").concat(+M + 1, ".0.0-0");
    } else if (isX(p)) {
      // ~1.2 == >=1.2.0 <1.3.0-0
      ret = ">=".concat(M, ".").concat(m, ".0 <").concat(M, ".").concat(+m + 1, ".0-0");
    } else if (pr) {
      debug('replaceTilde pr', pr);
      ret = ">=".concat(M, ".").concat(m, ".").concat(p, "-").concat(pr, " <").concat(M, ".").concat(+m + 1, ".0-0");
    } else {
      // ~1.2.3 == >=1.2.3 <1.3.0-0
      ret = ">=".concat(M, ".").concat(m, ".").concat(p, " <").concat(M, ".").concat(+m + 1, ".0-0");
    }
    debug('tilde return', ret);
    return ret;
  });
};

// ^ --> * (any, kinda silly)
// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
// ^1.2.3 --> >=1.2.3 <2.0.0-0
// ^1.2.0 --> >=1.2.0 <2.0.0-0
// ^0.0.1 --> >=0.0.1 <0.0.2-0
// ^0.1.0 --> >=0.1.0 <0.2.0-0
var replaceCarets = function replaceCarets(comp, options) {
  return comp.trim().split(/\s+/).map(function (c) {
    return replaceCaret(c, options);
  }).join(' ');
};
var replaceCaret = function replaceCaret(comp, options) {
  debug('caret', comp, options);
  var r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
  var z = options.includePrerelease ? '-0' : '';
  return comp.replace(r, function (_, M, m, p, pr) {
    debug('caret', comp, _, M, m, p, pr);
    var ret;
    if (isX(M)) {
      ret = '';
    } else if (isX(m)) {
      ret = ">=".concat(M, ".0.0").concat(z, " <").concat(+M + 1, ".0.0-0");
    } else if (isX(p)) {
      if (M === '0') {
        ret = ">=".concat(M, ".").concat(m, ".0").concat(z, " <").concat(M, ".").concat(+m + 1, ".0-0");
      } else {
        ret = ">=".concat(M, ".").concat(m, ".0").concat(z, " <").concat(+M + 1, ".0.0-0");
      }
    } else if (pr) {
      debug('replaceCaret pr', pr);
      if (M === '0') {
        if (m === '0') {
          ret = ">=".concat(M, ".").concat(m, ".").concat(p, "-").concat(pr, " <").concat(M, ".").concat(m, ".").concat(+p + 1, "-0");
        } else {
          ret = ">=".concat(M, ".").concat(m, ".").concat(p, "-").concat(pr, " <").concat(M, ".").concat(+m + 1, ".0-0");
        }
      } else {
        ret = ">=".concat(M, ".").concat(m, ".").concat(p, "-").concat(pr, " <").concat(+M + 1, ".0.0-0");
      }
    } else {
      debug('no pr');
      if (M === '0') {
        if (m === '0') {
          ret = ">=".concat(M, ".").concat(m, ".").concat(p).concat(z, " <").concat(M, ".").concat(m, ".").concat(+p + 1, "-0");
        } else {
          ret = ">=".concat(M, ".").concat(m, ".").concat(p).concat(z, " <").concat(M, ".").concat(+m + 1, ".0-0");
        }
      } else {
        ret = ">=".concat(M, ".").concat(m, ".").concat(p, " <").concat(+M + 1, ".0.0-0");
      }
    }
    debug('caret return', ret);
    return ret;
  });
};
var replaceXRanges = function replaceXRanges(comp, options) {
  debug('replaceXRanges', comp, options);
  return comp.split(/\s+/).map(function (c) {
    return replaceXRange(c, options);
  }).join(' ');
};
var replaceXRange = function replaceXRange(comp, options) {
  comp = comp.trim();
  var r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
  return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
    debug('xRange', comp, ret, gtlt, M, m, p, pr);
    var xM = isX(M);
    var xm = xM || isX(m);
    var xp = xm || isX(p);
    var anyX = xp;
    if (gtlt === '=' && anyX) {
      gtlt = '';
    }

    // if we're including prereleases in the match, then we need
    // to fix this to -0, the lowest possible prerelease value
    pr = options.includePrerelease ? '-0' : '';
    if (xM) {
      if (gtlt === '>' || gtlt === '<') {
        // nothing is allowed
        ret = '<0.0.0-0';
      } else {
        // nothing is forbidden
        ret = '*';
      }
    } else if (gtlt && anyX) {
      // we know patch is an x, because we have any x at all.
      // replace X with 0
      if (xm) {
        m = 0;
      }
      p = 0;
      if (gtlt === '>') {
        // >1 => >=2.0.0
        // >1.2 => >=1.3.0
        gtlt = '>=';
        if (xm) {
          M = +M + 1;
          m = 0;
          p = 0;
        } else {
          m = +m + 1;
          p = 0;
        }
      } else if (gtlt === '<=') {
        // <=0.7.x is actually <0.8.0, since any 0.7.x should
        // pass.  Similarly, <=7.x is actually <8.0.0, etc.
        gtlt = '<';
        if (xm) {
          M = +M + 1;
        } else {
          m = +m + 1;
        }
      }
      if (gtlt === '<') {
        pr = '-0';
      }
      ret = "".concat(gtlt + M, ".").concat(m, ".").concat(p).concat(pr);
    } else if (xm) {
      ret = ">=".concat(M, ".0.0").concat(pr, " <").concat(+M + 1, ".0.0-0");
    } else if (xp) {
      ret = ">=".concat(M, ".").concat(m, ".0").concat(pr, " <").concat(M, ".").concat(+m + 1, ".0-0");
    }
    debug('xRange return', ret);
    return ret;
  });
};

// Because * is AND-ed with everything else in the comparator,
// and '' means "any version", just remove the *s entirely.
var replaceStars = function replaceStars(comp, options) {
  debug('replaceStars', comp, options);
  // Looseness is ignored here.  star is always as loose as it gets!
  return comp.trim().replace(re[t.STAR], '');
};
var replaceGTE0 = function replaceGTE0(comp, options) {
  debug('replaceGTE0', comp, options);
  return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '');
};

// This function is passed to string.replace(re[t.HYPHENRANGE])
// M, m, patch, prerelease, build
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
var hyphenReplace = function hyphenReplace(incPr) {
  return function ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {
    if (isX(fM)) {
      from = '';
    } else if (isX(fm)) {
      from = ">=".concat(fM, ".0.0").concat(incPr ? '-0' : '');
    } else if (isX(fp)) {
      from = ">=".concat(fM, ".").concat(fm, ".0").concat(incPr ? '-0' : '');
    } else if (fpr) {
      from = ">=".concat(from);
    } else {
      from = ">=".concat(from).concat(incPr ? '-0' : '');
    }
    if (isX(tM)) {
      to = '';
    } else if (isX(tm)) {
      to = "<".concat(+tM + 1, ".0.0-0");
    } else if (isX(tp)) {
      to = "<".concat(tM, ".").concat(+tm + 1, ".0-0");
    } else if (tpr) {
      to = "<=".concat(tM, ".").concat(tm, ".").concat(tp, "-").concat(tpr);
    } else if (incPr) {
      to = "<".concat(tM, ".").concat(tm, ".").concat(+tp + 1, "-0");
    } else {
      to = "<=".concat(to);
    }
    return "".concat(from, " ").concat(to).trim();
  };
};
var testSet = function testSet(set, version, options) {
  for (var i = 0; i < set.length; i++) {
    if (!set[i].test(version)) {
      return false;
    }
  }
  if (version.prerelease.length && !options.includePrerelease) {
    // Find the set of versions that are allowed to have prereleases
    // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
    // That should allow `1.2.3-pr.2` to pass.
    // However, `1.2.4-alpha.notready` should NOT be allowed,
    // even though it's within the range set by the comparators.
    for (var _i = 0; _i < set.length; _i++) {
      debug(set[_i].semver);
      if (set[_i].semver === Comparator.ANY) {
        continue;
      }
      if (set[_i].semver.prerelease.length > 0) {
        var allowed = set[_i].semver;
        if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
          return true;
        }
      }
    }

    // Version has a -pre, but it's not one of the ones we like.
    return false;
  }
  return true;
};

/***/ }),

/***/ 8940:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var _classCallCheck = (__webpack_require__(8388)["default"]);
var _createClass = (__webpack_require__(6553)["default"]);
var debug = __webpack_require__(6899);
var _require = __webpack_require__(1709),
  MAX_LENGTH = _require.MAX_LENGTH,
  MAX_SAFE_INTEGER = _require.MAX_SAFE_INTEGER;
var _require2 = __webpack_require__(9242),
  re = _require2.re,
  t = _require2.t;
var parseOptions = __webpack_require__(9295);
var _require3 = __webpack_require__(4055),
  compareIdentifiers = _require3.compareIdentifiers;
var SemVer = /*#__PURE__*/function () {
  "use strict";

  function SemVer(version, options) {
    _classCallCheck(this, SemVer);
    options = parseOptions(options);
    if (version instanceof SemVer) {
      if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
        return version;
      } else {
        version = version.version;
      }
    } else if (typeof version !== 'string') {
      throw new TypeError("Invalid version. Must be a string. Got type \"".concat(typeof version, "\"."));
    }
    if (version.length > MAX_LENGTH) {
      throw new TypeError("version is longer than ".concat(MAX_LENGTH, " characters"));
    }
    debug('SemVer', version, options);
    this.options = options;
    this.loose = !!options.loose;
    // this isn't actually relevant for versions, but keep it so that we
    // don't run into trouble passing this.options around.
    this.includePrerelease = !!options.includePrerelease;
    var m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
    if (!m) {
      throw new TypeError("Invalid Version: ".concat(version));
    }
    this.raw = version;

    // these are actually numbers
    this.major = +m[1];
    this.minor = +m[2];
    this.patch = +m[3];
    if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
      throw new TypeError('Invalid major version');
    }
    if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
      throw new TypeError('Invalid minor version');
    }
    if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
      throw new TypeError('Invalid patch version');
    }

    // numberify any prerelease numeric ids
    if (!m[4]) {
      this.prerelease = [];
    } else {
      this.prerelease = m[4].split('.').map(function (id) {
        if (/^[0-9]+$/.test(id)) {
          var num = +id;
          if (num >= 0 && num < MAX_SAFE_INTEGER) {
            return num;
          }
        }
        return id;
      });
    }
    this.build = m[5] ? m[5].split('.') : [];
    this.format();
  }
  _createClass(SemVer, [{
    key: "format",
    value: function format() {
      this.version = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch);
      if (this.prerelease.length) {
        this.version += "-".concat(this.prerelease.join('.'));
      }
      return this.version;
    }
  }, {
    key: "toString",
    value: function toString() {
      return this.version;
    }
  }, {
    key: "compare",
    value: function compare(other) {
      debug('SemVer.compare', this.version, this.options, other);
      if (!(other instanceof SemVer)) {
        if (typeof other === 'string' && other === this.version) {
          return 0;
        }
        other = new SemVer(other, this.options);
      }
      if (other.version === this.version) {
        return 0;
      }
      return this.compareMain(other) || this.comparePre(other);
    }
  }, {
    key: "compareMain",
    value: function compareMain(other) {
      if (!(other instanceof SemVer)) {
        other = new SemVer(other, this.options);
      }
      return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
    }
  }, {
    key: "comparePre",
    value: function comparePre(other) {
      if (!(other instanceof SemVer)) {
        other = new SemVer(other, this.options);
      }

      // NOT having a prerelease is > having one
      if (this.prerelease.length && !other.prerelease.length) {
        return -1;
      } else if (!this.prerelease.length && other.prerelease.length) {
        return 1;
      } else if (!this.prerelease.length && !other.prerelease.length) {
        return 0;
      }
      var i = 0;
      do {
        var a = this.prerelease[i];
        var b = other.prerelease[i];
        debug('prerelease compare', i, a, b);
        if (a === undefined && b === undefined) {
          return 0;
        } else if (b === undefined) {
          return 1;
        } else if (a === undefined) {
          return -1;
        } else if (a === b) {
          continue;
        } else {
          return compareIdentifiers(a, b);
        }
      } while (++i);
    }
  }, {
    key: "compareBuild",
    value: function compareBuild(other) {
      if (!(other instanceof SemVer)) {
        other = new SemVer(other, this.options);
      }
      var i = 0;
      do {
        var a = this.build[i];
        var b = other.build[i];
        debug('prerelease compare', i, a, b);
        if (a === undefined && b === undefined) {
          return 0;
        } else if (b === undefined) {
          return 1;
        } else if (a === undefined) {
          return -1;
        } else if (a === b) {
          continue;
        } else {
          return compareIdentifiers(a, b);
        }
      } while (++i);
    }

    // preminor will bump the version up to the next minor release, and immediately
    // down to pre-release. premajor and prepatch work the same way.
  }, {
    key: "inc",
    value: function inc(release, identifier, identifierBase) {
      switch (release) {
        case 'premajor':
          this.prerelease.length = 0;
          this.patch = 0;
          this.minor = 0;
          this.major++;
          this.inc('pre', identifier, identifierBase);
          break;
        case 'preminor':
          this.prerelease.length = 0;
          this.patch = 0;
          this.minor++;
          this.inc('pre', identifier, identifierBase);
          break;
        case 'prepatch':
          // If this is already a prerelease, it will bump to the next version
          // drop any prereleases that might already exist, since they are not
          // relevant at this point.
          this.prerelease.length = 0;
          this.inc('patch', identifier, identifierBase);
          this.inc('pre', identifier, identifierBase);
          break;
        // If the input is a non-prerelease version, this acts the same as
        // prepatch.
        case 'prerelease':
          if (this.prerelease.length === 0) {
            this.inc('patch', identifier, identifierBase);
          }
          this.inc('pre', identifier, identifierBase);
          break;
        case 'major':
          // If this is a pre-major version, bump up to the same major version.
          // Otherwise increment major.
          // 1.0.0-5 bumps to 1.0.0
          // 1.1.0 bumps to 2.0.0
          if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
            this.major++;
          }
          this.minor = 0;
          this.patch = 0;
          this.prerelease = [];
          break;
        case 'minor':
          // If this is a pre-minor version, bump up to the same minor version.
          // Otherwise increment minor.
          // 1.2.0-5 bumps to 1.2.0
          // 1.2.1 bumps to 1.3.0
          if (this.patch !== 0 || this.prerelease.length === 0) {
            this.minor++;
          }
          this.patch = 0;
          this.prerelease = [];
          break;
        case 'patch':
          // If this is not a pre-release version, it will increment the patch.
          // If it is a pre-release it will bump up to the same patch version.
          // 1.2.0-5 patches to 1.2.0
          // 1.2.0 patches to 1.2.1
          if (this.prerelease.length === 0) {
            this.patch++;
          }
          this.prerelease = [];
          break;
        // This probably shouldn't be used publicly.
        // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
        case 'pre':
          {
            var base = Number(identifierBase) ? 1 : 0;
            if (!identifier && identifierBase === false) {
              throw new Error('invalid increment argument: identifier is empty');
            }
            if (this.prerelease.length === 0) {
              this.prerelease = [base];
            } else {
              var i = this.prerelease.length;
              while (--i >= 0) {
                if (typeof this.prerelease[i] === 'number') {
                  this.prerelease[i]++;
                  i = -2;
                }
              }
              if (i === -1) {
                // didn't increment anything
                if (identifier === this.prerelease.join('.') && identifierBase === false) {
                  throw new Error('invalid increment argument: identifier already exists');
                }
                this.prerelease.push(base);
              }
            }
            if (identifier) {
              // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
              // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
              var prerelease = [identifier, base];
              if (identifierBase === false) {
                prerelease = [identifier];
              }
              if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
                if (isNaN(this.prerelease[1])) {
                  this.prerelease = prerelease;
                }
              } else {
                this.prerelease = prerelease;
              }
            }
            break;
          }
        default:
          throw new Error("invalid increment argument: ".concat(release));
      }
      this.format();
      this.raw = this.version;
      return this;
    }
  }]);
  return SemVer;
}();
module.exports = SemVer;

/***/ }),

/***/ 6369:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var parse = __webpack_require__(9063);
var clean = function clean(version, options) {
  var s = parse(version.trim().replace(/^[=v]+/, ''), options);
  return s ? s.version : null;
};
module.exports = clean;

/***/ }),

/***/ 6815:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var eq = __webpack_require__(8485);
var neq = __webpack_require__(8447);
var gt = __webpack_require__(2066);
var gte = __webpack_require__(9813);
var lt = __webpack_require__(861);
var lte = __webpack_require__(8166);
var cmp = function cmp(a, op, b, loose) {
  switch (op) {
    case '===':
      if (typeof a === 'object') {
        a = a.version;
      }
      if (typeof b === 'object') {
        b = b.version;
      }
      return a === b;
    case '!==':
      if (typeof a === 'object') {
        a = a.version;
      }
      if (typeof b === 'object') {
        b = b.version;
      }
      return a !== b;
    case '':
    case '=':
    case '==':
      return eq(a, b, loose);
    case '!=':
      return neq(a, b, loose);
    case '>':
      return gt(a, b, loose);
    case '>=':
      return gte(a, b, loose);
    case '<':
      return lt(a, b, loose);
    case '<=':
      return lte(a, b, loose);
    default:
      throw new TypeError("Invalid operator: ".concat(op));
  }
};
module.exports = cmp;

/***/ }),

/***/ 9308:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var parse = __webpack_require__(9063);
var _require = __webpack_require__(9242),
  re = _require.re,
  t = _require.t;
var coerce = function coerce(version, options) {
  if (version instanceof SemVer) {
    return version;
  }
  if (typeof version === 'number') {
    version = String(version);
  }
  if (typeof version !== 'string') {
    return null;
  }
  options = options || {};
  var match = null;
  if (!options.rtl) {
    match = version.match(re[t.COERCE]);
  } else {
    // Find the right-most coercible string that does not share
    // a terminus with a more left-ward coercible string.
    // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
    //
    // Walk through the string checking with a /g regexp
    // Manually set the index so as to pick up overlapping matches.
    // Stop when we get a match that ends at the string end, since no
    // coercible string can be more right-ward without the same terminus.
    var next;
    while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
      if (!match || next.index + next[0].length !== match.index + match[0].length) {
        match = next;
      }
      re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
    }
    // leave it in a clean state
    re[t.COERCERTL].lastIndex = -1;
  }
  if (match === null) {
    return null;
  }
  return parse("".concat(match[2], ".").concat(match[3] || '0', ".").concat(match[4] || '0'), options);
};
module.exports = coerce;

/***/ }),

/***/ 9032:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var compareBuild = function compareBuild(a, b, loose) {
  var versionA = new SemVer(a, loose);
  var versionB = new SemVer(b, loose);
  return versionA.compare(versionB) || versionA.compareBuild(versionB);
};
module.exports = compareBuild;

/***/ }),

/***/ 5913:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compare = __webpack_require__(9451);
var compareLoose = function compareLoose(a, b) {
  return compare(a, b, true);
};
module.exports = compareLoose;

/***/ }),

/***/ 9451:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var compare = function compare(a, b, loose) {
  return new SemVer(a, loose).compare(new SemVer(b, loose));
};
module.exports = compare;

/***/ }),

/***/ 8901:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var parse = __webpack_require__(9063);
var diff = function diff(version1, version2) {
  var v1 = parse(version1, null, true);
  var v2 = parse(version2, null, true);
  var comparison = v1.compare(v2);
  if (comparison === 0) {
    return null;
  }
  var v1Higher = comparison > 0;
  var highVersion = v1Higher ? v1 : v2;
  var lowVersion = v1Higher ? v2 : v1;
  var highHasPre = !!highVersion.prerelease.length;

  // add the `pre` prefix if we are going to a prerelease version
  var prefix = highHasPre ? 'pre' : '';
  if (v1.major !== v2.major) {
    return prefix + 'major';
  }
  if (v1.minor !== v2.minor) {
    return prefix + 'minor';
  }
  if (v1.patch !== v2.patch) {
    return prefix + 'patch';
  }

  // at this point we know stable versions match but overall versions are not equal,
  // so either they are both prereleases, or the lower version is a prerelease

  if (highHasPre) {
    // high and low are preleases
    return 'prerelease';
  }
  if (lowVersion.patch) {
    // anything higher than a patch bump would result in the wrong version
    return 'patch';
  }
  if (lowVersion.minor) {
    // anything higher than a minor bump would result in the wrong version
    return 'minor';
  }

  // bumping major/minor/patch all have same result
  return 'major';
};
module.exports = diff;

/***/ }),

/***/ 8485:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compare = __webpack_require__(9451);
var eq = function eq(a, b, loose) {
  return compare(a, b, loose) === 0;
};
module.exports = eq;

/***/ }),

/***/ 2066:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compare = __webpack_require__(9451);
var gt = function gt(a, b, loose) {
  return compare(a, b, loose) > 0;
};
module.exports = gt;

/***/ }),

/***/ 9813:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compare = __webpack_require__(9451);
var gte = function gte(a, b, loose) {
  return compare(a, b, loose) >= 0;
};
module.exports = gte;

/***/ }),

/***/ 9846:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var inc = function inc(version, release, options, identifier, identifierBase) {
  if (typeof options === 'string') {
    identifierBase = identifier;
    identifier = options;
    options = undefined;
  }
  try {
    return new SemVer(version instanceof SemVer ? version.version : version, options).inc(release, identifier, identifierBase).version;
  } catch (er) {
    return null;
  }
};
module.exports = inc;

/***/ }),

/***/ 861:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compare = __webpack_require__(9451);
var lt = function lt(a, b, loose) {
  return compare(a, b, loose) < 0;
};
module.exports = lt;

/***/ }),

/***/ 8166:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compare = __webpack_require__(9451);
var lte = function lte(a, b, loose) {
  return compare(a, b, loose) <= 0;
};
module.exports = lte;

/***/ }),

/***/ 1401:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var major = function major(a, loose) {
  return new SemVer(a, loose).major;
};
module.exports = major;

/***/ }),

/***/ 1444:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var minor = function minor(a, loose) {
  return new SemVer(a, loose).minor;
};
module.exports = minor;

/***/ }),

/***/ 8447:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compare = __webpack_require__(9451);
var neq = function neq(a, b, loose) {
  return compare(a, b, loose) !== 0;
};
module.exports = neq;

/***/ }),

/***/ 9063:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var parse = function parse(version, options) {
  var throwErrors = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  if (version instanceof SemVer) {
    return version;
  }
  try {
    return new SemVer(version, options);
  } catch (er) {
    if (!throwErrors) {
      return null;
    }
    throw er;
  }
};
module.exports = parse;

/***/ }),

/***/ 3150:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var patch = function patch(a, loose) {
  return new SemVer(a, loose).patch;
};
module.exports = patch;

/***/ }),

/***/ 3115:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var parse = __webpack_require__(9063);
var prerelease = function prerelease(version, options) {
  var parsed = parse(version, options);
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
};
module.exports = prerelease;

/***/ }),

/***/ 4523:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compare = __webpack_require__(9451);
var rcompare = function rcompare(a, b, loose) {
  return compare(b, a, loose);
};
module.exports = rcompare;

/***/ }),

/***/ 9595:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compareBuild = __webpack_require__(9032);
var rsort = function rsort(list, loose) {
  return list.sort(function (a, b) {
    return compareBuild(b, a, loose);
  });
};
module.exports = rsort;

/***/ }),

/***/ 229:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var Range = __webpack_require__(55);
var satisfies = function satisfies(version, range, options) {
  try {
    range = new Range(range, options);
  } catch (er) {
    return false;
  }
  return range.test(version);
};
module.exports = satisfies;

/***/ }),

/***/ 8700:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var compareBuild = __webpack_require__(9032);
var sort = function sort(list, loose) {
  return list.sort(function (a, b) {
    return compareBuild(a, b, loose);
  });
};
module.exports = sort;

/***/ }),

/***/ 5154:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var parse = __webpack_require__(9063);
var valid = function valid(version, options) {
  var v = parse(version, options);
  return v ? v.version : null;
};
module.exports = valid;

/***/ }),

/***/ 3779:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

// just pre-load all the stuff that index.js lazily exports
var internalRe = __webpack_require__(9242);
var constants = __webpack_require__(1709);
var SemVer = __webpack_require__(8940);
var identifiers = __webpack_require__(4055);
var parse = __webpack_require__(9063);
var valid = __webpack_require__(5154);
var clean = __webpack_require__(6369);
var inc = __webpack_require__(9846);
var diff = __webpack_require__(8901);
var major = __webpack_require__(1401);
var minor = __webpack_require__(1444);
var patch = __webpack_require__(3150);
var prerelease = __webpack_require__(3115);
var compare = __webpack_require__(9451);
var rcompare = __webpack_require__(4523);
var compareLoose = __webpack_require__(5913);
var compareBuild = __webpack_require__(9032);
var sort = __webpack_require__(8700);
var rsort = __webpack_require__(9595);
var gt = __webpack_require__(2066);
var lt = __webpack_require__(861);
var eq = __webpack_require__(8485);
var neq = __webpack_require__(8447);
var gte = __webpack_require__(9813);
var lte = __webpack_require__(8166);
var cmp = __webpack_require__(6815);
var coerce = __webpack_require__(9308);
var Comparator = __webpack_require__(4776);
var Range = __webpack_require__(55);
var satisfies = __webpack_require__(229);
var toComparators = __webpack_require__(1126);
var maxSatisfying = __webpack_require__(3853);
var minSatisfying = __webpack_require__(8918);
var minVersion = __webpack_require__(8946);
var validRange = __webpack_require__(2605);
var outside = __webpack_require__(8661);
var gtr = __webpack_require__(6712);
var ltr = __webpack_require__(4240);
var intersects = __webpack_require__(8033);
var simplifyRange = __webpack_require__(7374);
var subset = __webpack_require__(5410);
module.exports = {
  parse: parse,
  valid: valid,
  clean: clean,
  inc: inc,
  diff: diff,
  major: major,
  minor: minor,
  patch: patch,
  prerelease: prerelease,
  compare: compare,
  rcompare: rcompare,
  compareLoose: compareLoose,
  compareBuild: compareBuild,
  sort: sort,
  rsort: rsort,
  gt: gt,
  lt: lt,
  eq: eq,
  neq: neq,
  gte: gte,
  lte: lte,
  cmp: cmp,
  coerce: coerce,
  Comparator: Comparator,
  Range: Range,
  satisfies: satisfies,
  toComparators: toComparators,
  maxSatisfying: maxSatisfying,
  minSatisfying: minSatisfying,
  minVersion: minVersion,
  validRange: validRange,
  outside: outside,
  gtr: gtr,
  ltr: ltr,
  intersects: intersects,
  simplifyRange: simplifyRange,
  subset: subset,
  SemVer: SemVer,
  re: internalRe.re,
  src: internalRe.src,
  tokens: internalRe.t,
  SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
  RELEASE_TYPES: constants.RELEASE_TYPES,
  compareIdentifiers: identifiers.compareIdentifiers,
  rcompareIdentifiers: identifiers.rcompareIdentifiers
};

/***/ }),

/***/ 1709:
/***/ (function(module) {

// Note: this is the semver.org version of the spec that it implements
// Not necessarily the package version of this code.
var SEMVER_SPEC_VERSION = '2.0.0';
var MAX_LENGTH = 256;
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */9007199254740991;

// Max safe segment length for coercion.
var MAX_SAFE_COMPONENT_LENGTH = 16;
var RELEASE_TYPES = ['major', 'premajor', 'minor', 'preminor', 'patch', 'prepatch', 'prerelease'];
module.exports = {
  MAX_LENGTH: MAX_LENGTH,
  MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH,
  MAX_SAFE_INTEGER: MAX_SAFE_INTEGER,
  RELEASE_TYPES: RELEASE_TYPES,
  SEMVER_SPEC_VERSION: SEMVER_SPEC_VERSION,
  FLAG_INCLUDE_PRERELEASE: 1,
  FLAG_LOOSE: 2
};

/***/ }),

/***/ 6899:
/***/ (function(module) {

var debug = typeof process === 'object' && ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}) && ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).NODE_DEBUG && /\bsemver\b/i.test(({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).NODE_DEBUG) ? function () {
  var _console;
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
    args[_key] = arguments[_key];
  }
  return (_console = console).error.apply(_console, ['SEMVER'].concat(args));
} : function () {};
module.exports = debug;

/***/ }),

/***/ 4055:
/***/ (function(module) {

var numeric = /^[0-9]+$/;
var compareIdentifiers = function compareIdentifiers(a, b) {
  var anum = numeric.test(a);
  var bnum = numeric.test(b);
  if (anum && bnum) {
    a = +a;
    b = +b;
  }
  return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
};
var rcompareIdentifiers = function rcompareIdentifiers(a, b) {
  return compareIdentifiers(b, a);
};
module.exports = {
  compareIdentifiers: compareIdentifiers,
  rcompareIdentifiers: rcompareIdentifiers
};

/***/ }),

/***/ 9295:
/***/ (function(module) {

// parse out just the options we care about
var looseOption = Object.freeze({
  loose: true
});
var emptyOpts = Object.freeze({});
var parseOptions = function parseOptions(options) {
  if (!options) {
    return emptyOpts;
  }
  if (typeof options !== 'object') {
    return looseOption;
  }
  return options;
};
module.exports = parseOptions;

/***/ }),

/***/ 9242:
/***/ (function(module, exports, __webpack_require__) {

var _require = __webpack_require__(1709),
  MAX_SAFE_COMPONENT_LENGTH = _require.MAX_SAFE_COMPONENT_LENGTH;
var debug = __webpack_require__(6899);
exports = module.exports = {};

// The actual regexps go on exports.re
var re = exports.re = [];
var src = exports.src = [];
var t = exports.t = {};
var R = 0;
var createToken = function createToken(name, value, isGlobal) {
  var index = R++;
  debug(name, index, value);
  t[name] = index;
  src[index] = value;
  re[index] = new RegExp(value, isGlobal ? 'g' : undefined);
};

// The following Regular Expressions can be used for tokenizing,
// validating, and parsing SemVer version strings.

// ## Numeric Identifier
// A single `0`, or a non-zero digit followed by zero or more digits.

createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*');
createToken('NUMERICIDENTIFIERLOOSE', '[0-9]+');

// ## Non-numeric Identifier
// Zero or more digits, followed by a letter or hyphen, and then zero or
// more letters, digits, or hyphens.

createToken('NONNUMERICIDENTIFIER', '\\d*[a-zA-Z-][a-zA-Z0-9-]*');

// ## Main Version
// Three dot-separated numeric identifiers.

createToken('MAINVERSION', "(".concat(src[t.NUMERICIDENTIFIER], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIER], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIER], ")"));
createToken('MAINVERSIONLOOSE', "(".concat(src[t.NUMERICIDENTIFIERLOOSE], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIERLOOSE], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIERLOOSE], ")"));

// ## Pre-release Version Identifier
// A numeric identifier, or a non-numeric identifier.

createToken('PRERELEASEIDENTIFIER', "(?:".concat(src[t.NUMERICIDENTIFIER], "|").concat(src[t.NONNUMERICIDENTIFIER], ")"));
createToken('PRERELEASEIDENTIFIERLOOSE', "(?:".concat(src[t.NUMERICIDENTIFIERLOOSE], "|").concat(src[t.NONNUMERICIDENTIFIER], ")"));

// ## Pre-release Version
// Hyphen, followed by one or more dot-separated pre-release version
// identifiers.

createToken('PRERELEASE', "(?:-(".concat(src[t.PRERELEASEIDENTIFIER], "(?:\\.").concat(src[t.PRERELEASEIDENTIFIER], ")*))"));
createToken('PRERELEASELOOSE', "(?:-?(".concat(src[t.PRERELEASEIDENTIFIERLOOSE], "(?:\\.").concat(src[t.PRERELEASEIDENTIFIERLOOSE], ")*))"));

// ## Build Metadata Identifier
// Any combination of digits, letters, or hyphens.

createToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+');

// ## Build Metadata
// Plus sign, followed by one or more period-separated build metadata
// identifiers.

createToken('BUILD', "(?:\\+(".concat(src[t.BUILDIDENTIFIER], "(?:\\.").concat(src[t.BUILDIDENTIFIER], ")*))"));

// ## Full Version String
// A main version, followed optionally by a pre-release version and
// build metadata.

// Note that the only major, minor, patch, and pre-release sections of
// the version string are capturing groups.  The build metadata is not a
// capturing group, because it should not ever be used in version
// comparison.

createToken('FULLPLAIN', "v?".concat(src[t.MAINVERSION]).concat(src[t.PRERELEASE], "?").concat(src[t.BUILD], "?"));
createToken('FULL', "^".concat(src[t.FULLPLAIN], "$"));

// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
// common in the npm registry.
createToken('LOOSEPLAIN', "[v=\\s]*".concat(src[t.MAINVERSIONLOOSE]).concat(src[t.PRERELEASELOOSE], "?").concat(src[t.BUILD], "?"));
createToken('LOOSE', "^".concat(src[t.LOOSEPLAIN], "$"));
createToken('GTLT', '((?:<|>)?=?)');

// Something like "2.*" or "1.2.x".
// Note that "x.x" is a valid xRange identifer, meaning "any version"
// Only the first item is strictly required.
createToken('XRANGEIDENTIFIERLOOSE', "".concat(src[t.NUMERICIDENTIFIERLOOSE], "|x|X|\\*"));
createToken('XRANGEIDENTIFIER', "".concat(src[t.NUMERICIDENTIFIER], "|x|X|\\*"));
createToken('XRANGEPLAIN', "[v=\\s]*(".concat(src[t.XRANGEIDENTIFIER], ")") + "(?:\\.(".concat(src[t.XRANGEIDENTIFIER], ")") + "(?:\\.(".concat(src[t.XRANGEIDENTIFIER], ")") + "(?:".concat(src[t.PRERELEASE], ")?").concat(src[t.BUILD], "?") + ")?)?");
createToken('XRANGEPLAINLOOSE', "[v=\\s]*(".concat(src[t.XRANGEIDENTIFIERLOOSE], ")") + "(?:\\.(".concat(src[t.XRANGEIDENTIFIERLOOSE], ")") + "(?:\\.(".concat(src[t.XRANGEIDENTIFIERLOOSE], ")") + "(?:".concat(src[t.PRERELEASELOOSE], ")?").concat(src[t.BUILD], "?") + ")?)?");
createToken('XRANGE', "^".concat(src[t.GTLT], "\\s*").concat(src[t.XRANGEPLAIN], "$"));
createToken('XRANGELOOSE', "^".concat(src[t.GTLT], "\\s*").concat(src[t.XRANGEPLAINLOOSE], "$"));

// Coercion.
// Extract anything that could conceivably be a part of a valid semver
createToken('COERCE', "".concat('(^|[^\\d])' + '(\\d{1,').concat(MAX_SAFE_COMPONENT_LENGTH, "})") + "(?:\\.(\\d{1,".concat(MAX_SAFE_COMPONENT_LENGTH, "}))?") + "(?:\\.(\\d{1,".concat(MAX_SAFE_COMPONENT_LENGTH, "}))?") + "(?:$|[^\\d])");
createToken('COERCERTL', src[t.COERCE], true);

// Tilde ranges.
// Meaning is "reasonably at or greater than"
createToken('LONETILDE', '(?:~>?)');
createToken('TILDETRIM', "(\\s*)".concat(src[t.LONETILDE], "\\s+"), true);
exports.tildeTrimReplace = '$1~';
createToken('TILDE', "^".concat(src[t.LONETILDE]).concat(src[t.XRANGEPLAIN], "$"));
createToken('TILDELOOSE', "^".concat(src[t.LONETILDE]).concat(src[t.XRANGEPLAINLOOSE], "$"));

// Caret ranges.
// Meaning is "at least and backwards compatible with"
createToken('LONECARET', '(?:\\^)');
createToken('CARETTRIM', "(\\s*)".concat(src[t.LONECARET], "\\s+"), true);
exports.caretTrimReplace = '$1^';
createToken('CARET', "^".concat(src[t.LONECARET]).concat(src[t.XRANGEPLAIN], "$"));
createToken('CARETLOOSE', "^".concat(src[t.LONECARET]).concat(src[t.XRANGEPLAINLOOSE], "$"));

// A simple gt/lt/eq thing, or just "" to indicate "any version"
createToken('COMPARATORLOOSE', "^".concat(src[t.GTLT], "\\s*(").concat(src[t.LOOSEPLAIN], ")$|^$"));
createToken('COMPARATOR', "^".concat(src[t.GTLT], "\\s*(").concat(src[t.FULLPLAIN], ")$|^$"));

// An expression to strip any whitespace between the gtlt and the thing
// it modifies, so that `> 1.2.3` ==> `>1.2.3`
createToken('COMPARATORTRIM', "(\\s*)".concat(src[t.GTLT], "\\s*(").concat(src[t.LOOSEPLAIN], "|").concat(src[t.XRANGEPLAIN], ")"), true);
exports.comparatorTrimReplace = '$1$2$3';

// Something like `1.2.3 - 1.2.4`
// Note that these all use the loose form, because they'll be
// checked against either the strict or loose comparator form
// later.
createToken('HYPHENRANGE', "^\\s*(".concat(src[t.XRANGEPLAIN], ")") + "\\s+-\\s+" + "(".concat(src[t.XRANGEPLAIN], ")") + "\\s*$");
createToken('HYPHENRANGELOOSE', "^\\s*(".concat(src[t.XRANGEPLAINLOOSE], ")") + "\\s+-\\s+" + "(".concat(src[t.XRANGEPLAINLOOSE], ")") + "\\s*$");

// Star ranges basically just allow anything at all.
createToken('STAR', '(<|>)?=?\\s*\\*');
// >=0.0.0 is like a star
createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$');
createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$');

/***/ }),

/***/ 6712:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

// Determine if version is greater than all the versions possible in the range.
var outside = __webpack_require__(8661);
var gtr = function gtr(version, range, options) {
  return outside(version, range, '>', options);
};
module.exports = gtr;

/***/ }),

/***/ 8033:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var Range = __webpack_require__(55);
var intersects = function intersects(r1, r2, options) {
  r1 = new Range(r1, options);
  r2 = new Range(r2, options);
  return r1.intersects(r2, options);
};
module.exports = intersects;

/***/ }),

/***/ 4240:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var outside = __webpack_require__(8661);
// Determine if version is less than all the versions possible in the range
var ltr = function ltr(version, range, options) {
  return outside(version, range, '<', options);
};
module.exports = ltr;

/***/ }),

/***/ 3853:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var Range = __webpack_require__(55);
var maxSatisfying = function maxSatisfying(versions, range, options) {
  var max = null;
  var maxSV = null;
  var rangeObj = null;
  try {
    rangeObj = new Range(range, options);
  } catch (er) {
    return null;
  }
  versions.forEach(function (v) {
    if (rangeObj.test(v)) {
      // satisfies(v, range, options)
      if (!max || maxSV.compare(v) === -1) {
        // compare(max, v, true)
        max = v;
        maxSV = new SemVer(max, options);
      }
    }
  });
  return max;
};
module.exports = maxSatisfying;

/***/ }),

/***/ 8918:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var Range = __webpack_require__(55);
var minSatisfying = function minSatisfying(versions, range, options) {
  var min = null;
  var minSV = null;
  var rangeObj = null;
  try {
    rangeObj = new Range(range, options);
  } catch (er) {
    return null;
  }
  versions.forEach(function (v) {
    if (rangeObj.test(v)) {
      // satisfies(v, range, options)
      if (!min || minSV.compare(v) === 1) {
        // compare(min, v, true)
        min = v;
        minSV = new SemVer(min, options);
      }
    }
  });
  return min;
};
module.exports = minSatisfying;

/***/ }),

/***/ 8946:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var Range = __webpack_require__(55);
var gt = __webpack_require__(2066);
var minVersion = function minVersion(range, loose) {
  range = new Range(range, loose);
  var minver = new SemVer('0.0.0');
  if (range.test(minver)) {
    return minver;
  }
  minver = new SemVer('0.0.0-0');
  if (range.test(minver)) {
    return minver;
  }
  minver = null;
  var _loop = function _loop() {
    var comparators = range.set[i];
    var setMin = null;
    comparators.forEach(function (comparator) {
      // Clone to avoid manipulating the comparator's semver object.
      var compver = new SemVer(comparator.semver.version);
      switch (comparator.operator) {
        case '>':
          if (compver.prerelease.length === 0) {
            compver.patch++;
          } else {
            compver.prerelease.push(0);
          }
          compver.raw = compver.format();
        /* fallthrough */
        case '':
        case '>=':
          if (!setMin || gt(compver, setMin)) {
            setMin = compver;
          }
          break;
        case '<':
        case '<=':
          /* Ignore maximum versions */
          break;
        /* istanbul ignore next */
        default:
          throw new Error("Unexpected operation: ".concat(comparator.operator));
      }
    });
    if (setMin && (!minver || gt(minver, setMin))) {
      minver = setMin;
    }
  };
  for (var i = 0; i < range.set.length; ++i) {
    _loop();
  }
  if (minver && range.test(minver)) {
    return minver;
  }
  return null;
};
module.exports = minVersion;

/***/ }),

/***/ 8661:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var SemVer = __webpack_require__(8940);
var Comparator = __webpack_require__(4776);
var ANY = Comparator.ANY;
var Range = __webpack_require__(55);
var satisfies = __webpack_require__(229);
var gt = __webpack_require__(2066);
var lt = __webpack_require__(861);
var lte = __webpack_require__(8166);
var gte = __webpack_require__(9813);
var outside = function outside(version, range, hilo, options) {
  version = new SemVer(version, options);
  range = new Range(range, options);
  var gtfn, ltefn, ltfn, comp, ecomp;
  switch (hilo) {
    case '>':
      gtfn = gt;
      ltefn = lte;
      ltfn = lt;
      comp = '>';
      ecomp = '>=';
      break;
    case '<':
      gtfn = lt;
      ltefn = gte;
      ltfn = gt;
      comp = '<';
      ecomp = '<=';
      break;
    default:
      throw new TypeError('Must provide a hilo val of "<" or ">"');
  }

  // If it satisfies the range it is not outside
  if (satisfies(version, range, options)) {
    return false;
  }

  // From now on, variable terms are as if we're in "gtr" mode.
  // but note that everything is flipped for the "ltr" function.
  var _loop = function _loop() {
    var comparators = range.set[i];
    var high = null;
    var low = null;
    comparators.forEach(function (comparator) {
      if (comparator.semver === ANY) {
        comparator = new Comparator('>=0.0.0');
      }
      high = high || comparator;
      low = low || comparator;
      if (gtfn(comparator.semver, high.semver, options)) {
        high = comparator;
      } else if (ltfn(comparator.semver, low.semver, options)) {
        low = comparator;
      }
    });

    // If the edge version comparator has a operator then our version
    // isn't outside it
    if (high.operator === comp || high.operator === ecomp) {
      return {
        v: false
      };
    }

    // If the lowest version comparator has an operator and our version
    // is less than it then it isn't higher than the range
    if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
      return {
        v: false
      };
    } else if (low.operator === ecomp && ltfn(version, low.semver)) {
      return {
        v: false
      };
    }
  };
  for (var i = 0; i < range.set.length; ++i) {
    var _ret = _loop();
    if (typeof _ret === "object") return _ret.v;
  }
  return true;
};
module.exports = outside;

/***/ }),

/***/ 7374:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var _slicedToArray = (__webpack_require__(3036)["default"]);
var _createForOfIteratorHelper = (__webpack_require__(3042)["default"]);
// given a set of versions and a range, create a "simplified" range
// that includes the same versions that the original range does
// If the original range is shorter than the simplified one, return that.
var satisfies = __webpack_require__(229);
var compare = __webpack_require__(9451);
module.exports = function (versions, range, options) {
  var set = [];
  var first = null;
  var prev = null;
  var v = versions.sort(function (a, b) {
    return compare(a, b, options);
  });
  var _iterator = _createForOfIteratorHelper(v),
    _step;
  try {
    for (_iterator.s(); !(_step = _iterator.n()).done;) {
      var version = _step.value;
      var included = satisfies(version, range, options);
      if (included) {
        prev = version;
        if (!first) {
          first = version;
        }
      } else {
        if (prev) {
          set.push([first, prev]);
        }
        prev = null;
        first = null;
      }
    }
  } catch (err) {
    _iterator.e(err);
  } finally {
    _iterator.f();
  }
  if (first) {
    set.push([first, null]);
  }
  var ranges = [];
  for (var _i = 0, _set = set; _i < _set.length; _i++) {
    var _set$_i = _slicedToArray(_set[_i], 2),
      min = _set$_i[0],
      max = _set$_i[1];
    if (min === max) {
      ranges.push(min);
    } else if (!max && min === v[0]) {
      ranges.push('*');
    } else if (!max) {
      ranges.push(">=".concat(min));
    } else if (min === v[0]) {
      ranges.push("<=".concat(max));
    } else {
      ranges.push("".concat(min, " - ").concat(max));
    }
  }
  var simplified = ranges.join(' || ');
  var original = typeof range.raw === 'string' ? range.raw : String(range);
  return simplified.length < original.length ? simplified : range;
};

/***/ }),

/***/ 5410:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var _createForOfIteratorHelper = (__webpack_require__(3042)["default"]);
var Range = __webpack_require__(55);
var Comparator = __webpack_require__(4776);
var ANY = Comparator.ANY;
var satisfies = __webpack_require__(229);
var compare = __webpack_require__(9451);

// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
// - Every simple range `r1, r2, ...` is a null set, OR
// - Every simple range `r1, r2, ...` which is not a null set is a subset of
//   some `R1, R2, ...`
//
// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
// - If c is only the ANY comparator
//   - If C is only the ANY comparator, return true
//   - Else if in prerelease mode, return false
//   - else replace c with `[>=0.0.0]`
// - If C is only the ANY comparator
//   - if in prerelease mode, return true
//   - else replace C with `[>=0.0.0]`
// - Let EQ be the set of = comparators in c
// - If EQ is more than one, return true (null set)
// - Let GT be the highest > or >= comparator in c
// - Let LT be the lowest < or <= comparator in c
// - If GT and LT, and GT.semver > LT.semver, return true (null set)
// - If any C is a = range, and GT or LT are set, return false
// - If EQ
//   - If GT, and EQ does not satisfy GT, return true (null set)
//   - If LT, and EQ does not satisfy LT, return true (null set)
//   - If EQ satisfies every C, return true
//   - Else return false
// - If GT
//   - If GT.semver is lower than any > or >= comp in C, return false
//   - If GT is >=, and GT.semver does not satisfy every C, return false
//   - If GT.semver has a prerelease, and not in prerelease mode
//     - If no C has a prerelease and the GT.semver tuple, return false
// - If LT
//   - If LT.semver is greater than any < or <= comp in C, return false
//   - If LT is <=, and LT.semver does not satisfy every C, return false
//   - If GT.semver has a prerelease, and not in prerelease mode
//     - If no C has a prerelease and the LT.semver tuple, return false
// - Else return true

var subset = function subset(sub, dom) {
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  if (sub === dom) {
    return true;
  }
  sub = new Range(sub, options);
  dom = new Range(dom, options);
  var sawNonNull = false;
  var _iterator = _createForOfIteratorHelper(sub.set),
    _step;
  try {
    OUTER: for (_iterator.s(); !(_step = _iterator.n()).done;) {
      var simpleSub = _step.value;
      var _iterator2 = _createForOfIteratorHelper(dom.set),
        _step2;
      try {
        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
          var simpleDom = _step2.value;
          var isSub = simpleSubset(simpleSub, simpleDom, options);
          sawNonNull = sawNonNull || isSub !== null;
          if (isSub) {
            continue OUTER;
          }
        }
        // the null set is a subset of everything, but null simple ranges in
        // a complex range should be ignored.  so if we saw a non-null range,
        // then we know this isn't a subset, but if EVERY simple range was null,
        // then it is a subset.
      } catch (err) {
        _iterator2.e(err);
      } finally {
        _iterator2.f();
      }
      if (sawNonNull) {
        return false;
      }
    }
  } catch (err) {
    _iterator.e(err);
  } finally {
    _iterator.f();
  }
  return true;
};
var minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')];
var minimumVersion = [new Comparator('>=0.0.0')];
var simpleSubset = function simpleSubset(sub, dom, options) {
  if (sub === dom) {
    return true;
  }
  if (sub.length === 1 && sub[0].semver === ANY) {
    if (dom.length === 1 && dom[0].semver === ANY) {
      return true;
    } else if (options.includePrerelease) {
      sub = minimumVersionWithPreRelease;
    } else {
      sub = minimumVersion;
    }
  }
  if (dom.length === 1 && dom[0].semver === ANY) {
    if (options.includePrerelease) {
      return true;
    } else {
      dom = minimumVersion;
    }
  }
  var eqSet = new Set();
  var gt, lt;
  var _iterator3 = _createForOfIteratorHelper(sub),
    _step3;
  try {
    for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
      var c = _step3.value;
      if (c.operator === '>' || c.operator === '>=') {
        gt = higherGT(gt, c, options);
      } else if (c.operator === '<' || c.operator === '<=') {
        lt = lowerLT(lt, c, options);
      } else {
        eqSet.add(c.semver);
      }
    }
  } catch (err) {
    _iterator3.e(err);
  } finally {
    _iterator3.f();
  }
  if (eqSet.size > 1) {
    return null;
  }
  var gtltComp;
  if (gt && lt) {
    gtltComp = compare(gt.semver, lt.semver, options);
    if (gtltComp > 0) {
      return null;
    } else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {
      return null;
    }
  }

  // will iterate one or zero times
  var _iterator4 = _createForOfIteratorHelper(eqSet),
    _step4;
  try {
    for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
      var eq = _step4.value;
      if (gt && !satisfies(eq, String(gt), options)) {
        return null;
      }
      if (lt && !satisfies(eq, String(lt), options)) {
        return null;
      }
      var _iterator6 = _createForOfIteratorHelper(dom),
        _step6;
      try {
        for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
          var _c = _step6.value;
          if (!satisfies(eq, String(_c), options)) {
            return false;
          }
        }
      } catch (err) {
        _iterator6.e(err);
      } finally {
        _iterator6.f();
      }
      return true;
    }
  } catch (err) {
    _iterator4.e(err);
  } finally {
    _iterator4.f();
  }
  var higher, lower;
  var hasDomLT, hasDomGT;
  // if the subset has a prerelease, we need a comparator in the superset
  // with the same tuple and a prerelease, or it's not a subset
  var needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
  var needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
  // exception: <1.2.3-0 is the same as <1.2.3
  if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
    needDomLTPre = false;
  }
  var _iterator5 = _createForOfIteratorHelper(dom),
    _step5;
  try {
    for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
      var _c2 = _step5.value;
      hasDomGT = hasDomGT || _c2.operator === '>' || _c2.operator === '>=';
      hasDomLT = hasDomLT || _c2.operator === '<' || _c2.operator === '<=';
      if (gt) {
        if (needDomGTPre) {
          if (_c2.semver.prerelease && _c2.semver.prerelease.length && _c2.semver.major === needDomGTPre.major && _c2.semver.minor === needDomGTPre.minor && _c2.semver.patch === needDomGTPre.patch) {
            needDomGTPre = false;
          }
        }
        if (_c2.operator === '>' || _c2.operator === '>=') {
          higher = higherGT(gt, _c2, options);
          if (higher === _c2 && higher !== gt) {
            return false;
          }
        } else if (gt.operator === '>=' && !satisfies(gt.semver, String(_c2), options)) {
          return false;
        }
      }
      if (lt) {
        if (needDomLTPre) {
          if (_c2.semver.prerelease && _c2.semver.prerelease.length && _c2.semver.major === needDomLTPre.major && _c2.semver.minor === needDomLTPre.minor && _c2.semver.patch === needDomLTPre.patch) {
            needDomLTPre = false;
          }
        }
        if (_c2.operator === '<' || _c2.operator === '<=') {
          lower = lowerLT(lt, _c2, options);
          if (lower === _c2 && lower !== lt) {
            return false;
          }
        } else if (lt.operator === '<=' && !satisfies(lt.semver, String(_c2), options)) {
          return false;
        }
      }
      if (!_c2.operator && (lt || gt) && gtltComp !== 0) {
        return false;
      }
    }

    // if there was a < or >, and nothing in the dom, then must be false
    // UNLESS it was limited by another range in the other direction.
    // Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
  } catch (err) {
    _iterator5.e(err);
  } finally {
    _iterator5.f();
  }
  if (gt && hasDomLT && !lt && gtltComp !== 0) {
    return false;
  }
  if (lt && hasDomGT && !gt && gtltComp !== 0) {
    return false;
  }

  // we needed a prerelease range in a specific tuple, but didn't get one
  // then this isn't a subset.  eg >=1.2.3-pre is not a subset of >=1.0.0,
  // because it includes prereleases in the 1.2.3 tuple
  if (needDomGTPre || needDomLTPre) {
    return false;
  }
  return true;
};

// >=1.2.3 is lower than >1.2.3
var higherGT = function higherGT(a, b, options) {
  if (!a) {
    return b;
  }
  var comp = compare(a.semver, b.semver, options);
  return comp > 0 ? a : comp < 0 ? b : b.operator === '>' && a.operator === '>=' ? b : a;
};

// <=1.2.3 is higher than <1.2.3
var lowerLT = function lowerLT(a, b, options) {
  if (!a) {
    return b;
  }
  var comp = compare(a.semver, b.semver, options);
  return comp < 0 ? a : comp > 0 ? b : b.operator === '<' && a.operator === '<=' ? b : a;
};
module.exports = subset;

/***/ }),

/***/ 1126:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var Range = __webpack_require__(55);

// Mostly just for testing and legacy API reasons
var toComparators = function toComparators(range, options) {
  return new Range(range, options).set.map(function (comp) {
    return comp.map(function (c) {
      return c.value;
    }).join(' ').trim().split(' ');
  });
};
module.exports = toComparators;

/***/ }),

/***/ 2605:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var Range = __webpack_require__(55);
var validRange = function validRange(range, options) {
  try {
    // Return '*' instead of '' so that truthiness works.
    // This will throw if it's invalid anyway
    return new Range(range, options).range || '*';
  } catch (er) {
    return null;
  }
};
module.exports = validRange;

/***/ }),

/***/ 7537:
/***/ (function(module) {

//

module.exports = function shallowEqual(objA, objB, compare, compareContext) {
  var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
  if (ret !== void 0) {
    return !!ret;
  }
  if (objA === objB) {
    return true;
  }
  if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
    return false;
  }
  var keysA = Object.keys(objA);
  var keysB = Object.keys(objB);
  if (keysA.length !== keysB.length) {
    return false;
  }
  var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);

  // Test for A's keys different from B.
  for (var idx = 0; idx < keysA.length; idx++) {
    var key = keysA[idx];
    if (!bHasOwnProperty(key)) {
      return false;
    }
    var valueA = objA[key];
    var valueB = objB[key];
    ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
    if (ret === false || ret === void 0 && valueA !== valueB) {
      return false;
    }
  }
  return true;
};

/***/ }),

/***/ 2010:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  f6: function() { return /* binding */ Le; },
  vJ: function() { return /* binding */ $e; },
  iv: function() { return /* binding */ Ae; },
  ZP: function() { return /* binding */ styled_components_browser_esm; },
  F4: function() { return /* binding */ We; }
});

// UNUSED EXPORTS: ServerStyleSheet, StyleSheetConsumer, StyleSheetContext, StyleSheetManager, ThemeConsumer, ThemeContext, __PRIVATE__, isStyledComponent, useTheme, version, withTheme

// EXTERNAL MODULE: ./node_modules/_react-is@18.2.0@react-is/index.js
var _react_is_18_2_0_react_is = __webpack_require__(9827);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_shallowequal@1.1.0@shallowequal/index.js
var _shallowequal_1_1_0_shallowequal = __webpack_require__(7537);
var _shallowequal_1_1_0_shallowequal_default = /*#__PURE__*/__webpack_require__.n(_shallowequal_1_1_0_shallowequal);
;// CONCATENATED MODULE: ./node_modules/_@emotion_stylis@0.8.5@@emotion/stylis/dist/stylis.browser.esm.js
function stylis_min(W) {
  function M(d, c, e, h, a) {
    for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
      g = e.charCodeAt(l);
      l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
      if (0 === b + n + v + m) {
        if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
          switch (g) {
            case 32:
            case 9:
            case 59:
            case 13:
            case 10:
              break;
            default:
              f += e.charAt(l);
          }
          g = 59;
        }
        switch (g) {
          case 123:
            f = f.trim();
            q = f.charCodeAt(0);
            k = 1;
            for (t = ++l; l < B;) {
              switch (g = e.charCodeAt(l)) {
                case 123:
                  k++;
                  break;
                case 125:
                  k--;
                  break;
                case 47:
                  switch (g = e.charCodeAt(l + 1)) {
                    case 42:
                    case 47:
                      a: {
                        for (u = l + 1; u < J; ++u) {
                          switch (e.charCodeAt(u)) {
                            case 47:
                              if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
                                l = u + 1;
                                break a;
                              }
                              break;
                            case 10:
                              if (47 === g) {
                                l = u + 1;
                                break a;
                              }
                          }
                        }
                        l = u;
                      }
                  }
                  break;
                case 91:
                  g++;
                case 40:
                  g++;
                case 34:
                case 39:
                  for (; l++ < J && e.charCodeAt(l) !== g;) {}
              }
              if (0 === k) break;
              l++;
            }
            k = e.substring(t, l);
            0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
            switch (q) {
              case 64:
                0 < r && (f = f.replace(N, ''));
                g = f.charCodeAt(1);
                switch (g) {
                  case 100:
                  case 109:
                  case 115:
                  case 45:
                    r = c;
                    break;
                  default:
                    r = O;
                }
                k = M(c, r, k, g, a + 1);
                t = k.length;
                0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
                if (0 < t) switch (g) {
                  case 115:
                    f = f.replace(da, ea);
                  case 100:
                  case 109:
                  case 45:
                    k = f + '{' + k + '}';
                    break;
                  case 107:
                    f = f.replace(fa, '$1 $2');
                    k = f + '{' + k + '}';
                    k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
                    break;
                  default:
                    k = f + k, 112 === h && (k = (p += k, ''));
                } else k = '';
                break;
              default:
                k = M(c, X(c, f, I), k, h, a + 1);
            }
            F += k;
            k = I = r = u = q = 0;
            f = '';
            g = e.charCodeAt(++l);
            break;
          case 125:
          case 59:
            f = (0 < r ? f.replace(N, '') : f).trim();
            if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
              case 0:
                break;
              case 64:
                if (105 === g || 99 === g) {
                  G += f + e.charAt(l);
                  break;
                }
              default:
                58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
            }
            I = r = u = q = 0;
            f = '';
            g = e.charCodeAt(++l);
        }
      }
      switch (g) {
        case 13:
        case 10:
          47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
          0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
          z = 1;
          D++;
          break;
        case 59:
        case 125:
          if (0 === b + n + v + m) {
            z++;
            break;
          }
        default:
          z++;
          y = e.charAt(l);
          switch (g) {
            case 9:
            case 32:
              if (0 === n + m + b) switch (x) {
                case 44:
                case 58:
                case 9:
                case 32:
                  y = '';
                  break;
                default:
                  32 !== g && (y = ' ');
              }
              break;
            case 0:
              y = '\\0';
              break;
            case 12:
              y = '\\f';
              break;
            case 11:
              y = '\\v';
              break;
            case 38:
              0 === n + b + m && (r = I = 1, y = '\f' + y);
              break;
            case 108:
              if (0 === n + b + m + E && 0 < u) switch (l - u) {
                case 2:
                  112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
                case 8:
                  111 === K && (E = K);
              }
              break;
            case 58:
              0 === n + b + m && (u = l);
              break;
            case 44:
              0 === b + v + n + m && (r = 1, y += '\r');
              break;
            case 34:
            case 39:
              0 === b && (n = n === g ? 0 : 0 === n ? g : n);
              break;
            case 91:
              0 === n + b + v && m++;
              break;
            case 93:
              0 === n + b + v && m--;
              break;
            case 41:
              0 === n + b + m && v--;
              break;
            case 40:
              if (0 === n + b + m) {
                if (0 === q) switch (2 * x + 3 * K) {
                  case 533:
                    break;
                  default:
                    q = 1;
                }
                v++;
              }
              break;
            case 64:
              0 === b + v + n + m + u + k && (k = 1);
              break;
            case 42:
            case 47:
              if (!(0 < n + m + v)) switch (b) {
                case 0:
                  switch (2 * g + 3 * e.charCodeAt(l + 1)) {
                    case 235:
                      b = 47;
                      break;
                    case 220:
                      t = l, b = 42;
                  }
                  break;
                case 42:
                  47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
              }
          }
          0 === b && (f += y);
      }
      K = x;
      x = g;
      l++;
    }
    t = p.length;
    if (0 < t) {
      r = c;
      if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
      p = r.join(',') + '{' + p + '}';
      if (0 !== w * E) {
        2 !== w || L(p, 2) || (E = 0);
        switch (E) {
          case 111:
            p = p.replace(ha, ':-moz-$1') + p;
            break;
          case 112:
            p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
        }
        E = 0;
      }
    }
    return G + p + F;
  }
  function X(d, c, e) {
    var h = c.trim().split(ia);
    c = h;
    var a = h.length,
      m = d.length;
    switch (m) {
      case 0:
      case 1:
        var b = 0;
        for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
          c[b] = Z(d, c[b], e).trim();
        }
        break;
      default:
        var v = b = 0;
        for (c = []; b < a; ++b) {
          for (var n = 0; n < m; ++n) {
            c[v++] = Z(d[n] + ' ', h[b], e).trim();
          }
        }
    }
    return c;
  }
  function Z(d, c, e) {
    var h = c.charCodeAt(0);
    33 > h && (h = (c = c.trim()).charCodeAt(0));
    switch (h) {
      case 38:
        return c.replace(F, '$1' + d.trim());
      case 58:
        return d.trim() + c.replace(F, '$1' + d.trim());
      default:
        if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
    }
    return d + c;
  }
  function P(d, c, e, h) {
    var a = d + ';',
      m = 2 * c + 3 * e + 4 * h;
    if (944 === m) {
      d = a.indexOf(':', 9) + 1;
      var b = a.substring(d, a.length - 1).trim();
      b = a.substring(0, d).trim() + b + ';';
      return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
    }
    if (0 === w || 2 === w && !L(a, 1)) return a;
    switch (m) {
      case 1015:
        return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
      case 951:
        return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
      case 963:
        return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
      case 1009:
        if (100 !== a.charCodeAt(4)) break;
      case 969:
      case 942:
        return '-webkit-' + a + a;
      case 978:
        return '-webkit-' + a + '-moz-' + a + a;
      case 1019:
      case 983:
        return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
      case 883:
        if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
        if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
        break;
      case 932:
        if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
          case 103:
            return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
          case 115:
            return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
          case 98:
            return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
        }
        return '-webkit-' + a + '-ms-' + a + a;
      case 964:
        return '-webkit-' + a + '-ms-flex-' + a + a;
      case 1023:
        if (99 !== a.charCodeAt(8)) break;
        b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
        return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
      case 1005:
        return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
      case 1e3:
        b = a.substring(13).trim();
        c = b.indexOf('-') + 1;
        switch (b.charCodeAt(0) + b.charCodeAt(c)) {
          case 226:
            b = a.replace(G, 'tb');
            break;
          case 232:
            b = a.replace(G, 'tb-rl');
            break;
          case 220:
            b = a.replace(G, 'lr');
            break;
          default:
            return a;
        }
        return '-webkit-' + a + '-ms-' + b + a;
      case 1017:
        if (-1 === a.indexOf('sticky', 9)) break;
      case 975:
        c = (a = d).length - 10;
        b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
        switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
          case 203:
            if (111 > b.charCodeAt(8)) break;
          case 115:
            a = a.replace(b, '-webkit-' + b) + ';' + a;
            break;
          case 207:
          case 102:
            a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
        }
        return a + ';';
      case 938:
        if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
          case 105:
            return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
          case 115:
            return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
          default:
            return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
        }
        break;
      case 973:
      case 989:
        if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
      case 931:
      case 953:
        if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
        break;
      case 962:
        if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
    }
    return a;
  }
  function L(d, c) {
    var e = d.indexOf(1 === c ? ':' : '{'),
      h = d.substring(0, 3 !== c ? e : 10);
    e = d.substring(e + 1, d.length - 1);
    return R(2 !== c ? h : h.replace(na, '$1'), e, c);
  }
  function ea(d, c) {
    var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
    return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
  }
  function H(d, c, e, h, a, m, b, v, n, q) {
    for (var g = 0, x = c, w; g < A; ++g) {
      switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
        case void 0:
        case !1:
        case !0:
        case null:
          break;
        default:
          x = w;
      }
    }
    if (x !== c) return x;
  }
  function T(d) {
    switch (d) {
      case void 0:
      case null:
        A = S.length = 0;
        break;
      default:
        if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
          T(d[c]);
        } else Y = !!d | 0;
    }
    return T;
  }
  function U(d) {
    d = d.prefix;
    void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
    return U;
  }
  function B(d, c) {
    var e = d;
    33 > e.charCodeAt(0) && (e = e.trim());
    V = e;
    e = [V];
    if (0 < A) {
      var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
      void 0 !== h && 'string' === typeof h && (c = h);
    }
    var a = M(O, e, c, 0, 0);
    0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
    V = '';
    E = 0;
    z = D = 1;
    return a;
  }
  var ca = /^\0+/g,
    N = /[\0\r\f]/g,
    aa = /: */g,
    ka = /zoo|gra/,
    ma = /([,: ])(transform)/g,
    ia = /,\r+?/g,
    F = /([\t\r\n ])*\f?&/g,
    fa = /@(k\w+)\s*(\S*)\s*/,
    Q = /::(place)/g,
    ha = /:(read-only)/g,
    G = /[svh]\w+-[tblr]{2}/,
    da = /\(\s*(.*)\s*\)/g,
    oa = /([\s\S]*?);/g,
    ba = /-self|flex-/g,
    na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
    la = /stretch|:\s*\w+\-(?:conte|avail)/,
    ja = /([^-])(image-set\()/,
    z = 1,
    D = 1,
    E = 0,
    w = 1,
    O = [],
    S = [],
    A = 0,
    R = null,
    Y = 0,
    V = '';
  B.use = T;
  B.set = U;
  void 0 !== W && U(W);
  return B;
}
/* harmony default export */ var stylis_browser_esm = (stylis_min);
;// CONCATENATED MODULE: ./node_modules/_@emotion_unitless@0.7.5@@emotion/unitless/dist/unitless.browser.esm.js
var unitlessKeys = {
  animationIterationCount: 1,
  borderImageOutset: 1,
  borderImageSlice: 1,
  borderImageWidth: 1,
  boxFlex: 1,
  boxFlexGroup: 1,
  boxOrdinalGroup: 1,
  columnCount: 1,
  columns: 1,
  flex: 1,
  flexGrow: 1,
  flexPositive: 1,
  flexShrink: 1,
  flexNegative: 1,
  flexOrder: 1,
  gridRow: 1,
  gridRowEnd: 1,
  gridRowSpan: 1,
  gridRowStart: 1,
  gridColumn: 1,
  gridColumnEnd: 1,
  gridColumnSpan: 1,
  gridColumnStart: 1,
  msGridRow: 1,
  msGridRowSpan: 1,
  msGridColumn: 1,
  msGridColumnSpan: 1,
  fontWeight: 1,
  lineHeight: 1,
  opacity: 1,
  order: 1,
  orphans: 1,
  tabSize: 1,
  widows: 1,
  zIndex: 1,
  zoom: 1,
  WebkitLineClamp: 1,
  // SVG-related properties
  fillOpacity: 1,
  floodOpacity: 1,
  stopOpacity: 1,
  strokeDasharray: 1,
  strokeDashoffset: 1,
  strokeMiterlimit: 1,
  strokeOpacity: 1,
  strokeWidth: 1
};
/* harmony default export */ var unitless_browser_esm = (unitlessKeys);
;// CONCATENATED MODULE: ./node_modules/_@emotion_memoize@0.8.1@@emotion/memoize/dist/emotion-memoize.esm.js
function memoize(fn) {
  var cache = Object.create(null);
  return function (arg) {
    if (cache[arg] === undefined) cache[arg] = fn(arg);
    return cache[arg];
  };
}

;// CONCATENATED MODULE: ./node_modules/_@emotion_is-prop-valid@1.2.1@@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js

var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23

var isPropValid = /* #__PURE__ */memoize(function (prop) {
  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
  /* o */ && prop.charCodeAt(1) === 110
  /* n */ && prop.charCodeAt(2) < 91;
}
/* Z+1 */);


// EXTERNAL MODULE: ./node_modules/_hoist-non-react-statics@3.3.2@hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
var hoist_non_react_statics_cjs = __webpack_require__(7029);
var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
;// CONCATENATED MODULE: ./node_modules/_styled-components@5.3.11@styled-components/dist/styled-components.browser.esm.js







function y() {
  return (y = Object.assign || function (e) {
    for (var t = 1; t < arguments.length; t++) {
      var n = arguments[t];
      for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
    }
    return e;
  }).apply(this, arguments);
}
var v = function v(e, t) {
    for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
    return n;
  },
  g = function g(t) {
    return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !(0,_react_is_18_2_0_react_is.typeOf)(t);
  },
  S = Object.freeze([]),
  w = Object.freeze({});
function E(e) {
  return "function" == typeof e;
}
function b(e) {
  return  false || e.displayName || e.name || "Component";
}
function _(e) {
  return e && "string" == typeof e.styledComponentId;
}
var N = "undefined" != typeof process && void 0 !== ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}) && (({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).REACT_APP_SC_ATTR || ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).SC_ATTR) || "data-styled",
  A = "5.3.11",
  C = "undefined" != typeof window && "HTMLElement" in window,
  I = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}) && (void 0 !== ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).REACT_APP_SC_DISABLE_SPEEDY && "" !== ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).REACT_APP_SC_DISABLE_SPEEDY ? "false" !== ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).REACT_APP_SC_DISABLE_SPEEDY && ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).REACT_APP_SC_DISABLE_SPEEDY : void 0 !== ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).SC_DISABLE_SPEEDY && "" !== ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).SC_DISABLE_SPEEDY ? "false" !== ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).SC_DISABLE_SPEEDY && ({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_SERVER_ENV":"prod","REACT_APP_INSTALL_MODE":"developer","REACT_APP_PUBLISH_NAME":"publicServer"}).SC_DISABLE_SPEEDY : "production" !== "production")),
  P = {},
  O =  false ? 0 : {};
function R() {
  for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r = arguments.length; n < r; n += 1) t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]);
  return t.forEach(function (t) {
    e = e.replace(/%[a-z]/, t);
  }), e;
}
function D(e) {
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
  throw  true ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : "")) : 0;
}
var j = function () {
    function e(e) {
      this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
    }
    var t = e.prototype;
    return t.indexOfGroup = function (e) {
      for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
      return t;
    }, t.insertRules = function (e, t) {
      if (e >= this.groupSizes.length) {
        for (var n = this.groupSizes, r = n.length, o = r; e >= o;) (o <<= 1) < 0 && D(16, "" + e);
        this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
        for (var s = r; s < o; s++) this.groupSizes[s] = 0;
      }
      for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++);
    }, t.clearGroup = function (e) {
      if (e < this.length) {
        var t = this.groupSizes[e],
          n = this.indexOfGroup(e),
          r = n + t;
        this.groupSizes[e] = 0;
        for (var o = n; o < r; o++) this.tag.deleteRule(n);
      }
    }, t.getGroup = function (e) {
      var t = "";
      if (e >= this.length || 0 === this.groupSizes[e]) return t;
      for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += this.tag.getRule(s) + "/*!sc*/\n";
      return t;
    }, e;
  }(),
  T = new Map(),
  x = new Map(),
  k = 1,
  V = function V(e) {
    if (T.has(e)) return T.get(e);
    for (; x.has(k);) k++;
    var t = k++;
    return  false && 0, T.set(e, t), x.set(t, e), t;
  },
  B = function B(e) {
    return x.get(e);
  },
  z = function z(e, t) {
    t >= k && (k = t + 1), T.set(e, t), x.set(t, e);
  },
  M = "style[" + N + '][data-styled-version="5.3.11"]',
  G = new RegExp("^" + N + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),
  L = function L(e, t, n) {
    for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
  },
  F = function F(e, t) {
    for (var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++) {
      var i = n[o].trim();
      if (i) {
        var a = i.match(G);
        if (a) {
          var c = 0 | parseInt(a[1], 10),
            u = a[2];
          0 !== c && (z(u, c), L(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0;
        } else r.push(i);
      }
    }
  },
  Y = function Y() {
    return  true ? __webpack_require__.nc : 0;
  },
  q = function q(e) {
    var t = document.head,
      n = e || t,
      r = document.createElement("style"),
      o = function (e) {
        for (var t = e.childNodes, n = t.length; n >= 0; n--) {
          var r = t[n];
          if (r && 1 === r.nodeType && r.hasAttribute(N)) return r;
        }
      }(n),
      s = void 0 !== o ? o.nextSibling : null;
    r.setAttribute(N, "active"), r.setAttribute("data-styled-version", "5.3.11");
    var i = Y();
    return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
  },
  H = function () {
    function e(e) {
      var t = this.element = q(e);
      t.appendChild(document.createTextNode("")), this.sheet = function (e) {
        if (e.sheet) return e.sheet;
        for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
          var o = t[n];
          if (o.ownerNode === e) return o;
        }
        D(17);
      }(t), this.length = 0;
    }
    var t = e.prototype;
    return t.insertRule = function (e, t) {
      try {
        return this.sheet.insertRule(t, e), this.length++, !0;
      } catch (e) {
        return !1;
      }
    }, t.deleteRule = function (e) {
      this.sheet.deleteRule(e), this.length--;
    }, t.getRule = function (e) {
      var t = this.sheet.cssRules[e];
      return void 0 !== t && "string" == typeof t.cssText ? t.cssText : "";
    }, e;
  }(),
  $ = function () {
    function e(e) {
      var t = this.element = q(e);
      this.nodes = t.childNodes, this.length = 0;
    }
    var t = e.prototype;
    return t.insertRule = function (e, t) {
      if (e <= this.length && e >= 0) {
        var n = document.createTextNode(t),
          r = this.nodes[e];
        return this.element.insertBefore(n, r || null), this.length++, !0;
      }
      return !1;
    }, t.deleteRule = function (e) {
      this.element.removeChild(this.nodes[e]), this.length--;
    }, t.getRule = function (e) {
      return e < this.length ? this.nodes[e].textContent : "";
    }, e;
  }(),
  W = function () {
    function e(e) {
      this.rules = [], this.length = 0;
    }
    var t = e.prototype;
    return t.insertRule = function (e, t) {
      return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
    }, t.deleteRule = function (e) {
      this.rules.splice(e, 1), this.length--;
    }, t.getRule = function (e) {
      return e < this.length ? this.rules[e] : "";
    }, e;
  }(),
  U = C,
  J = {
    isServer: !C,
    useCSSOMInjection: !I
  },
  X = function () {
    function e(e, t, n) {
      void 0 === e && (e = w), void 0 === t && (t = {}), this.options = y({}, J, {}, e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && C && U && (U = !1, function (e) {
        for (var t = document.querySelectorAll(M), n = 0, r = t.length; n < r; n++) {
          var o = t[n];
          o && "active" !== o.getAttribute(N) && (F(e, o), o.parentNode && o.parentNode.removeChild(o));
        }
      }(this));
    }
    e.registerId = function (e) {
      return V(e);
    };
    var t = e.prototype;
    return t.reconstructWithOptions = function (t, n) {
      return void 0 === n && (n = !0), new e(y({}, this.options, {}, t), this.gs, n && this.names || void 0);
    }, t.allocateGSInstance = function (e) {
      return this.gs[e] = (this.gs[e] || 0) + 1;
    }, t.getTag = function () {
      return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new W(o) : r ? new H(o) : new $(o), new j(e)));
      var e, t, n, r, o;
    }, t.hasNameForId = function (e, t) {
      return this.names.has(e) && this.names.get(e).has(t);
    }, t.registerName = function (e, t) {
      if (V(e), this.names.has(e)) this.names.get(e).add(t);else {
        var n = new Set();
        n.add(t), this.names.set(e, n);
      }
    }, t.insertRules = function (e, t, n) {
      this.registerName(e, t), this.getTag().insertRules(V(e), n);
    }, t.clearNames = function (e) {
      this.names.has(e) && this.names.get(e).clear();
    }, t.clearRules = function (e) {
      this.getTag().clearGroup(V(e)), this.clearNames(e);
    }, t.clearTag = function () {
      this.tag = void 0;
    }, t.toString = function () {
      return function (e) {
        for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
          var s = B(o);
          if (void 0 !== s) {
            var i = e.names.get(s),
              a = t.getGroup(o);
            if (i && a && i.size) {
              var c = N + ".g" + o + '[id="' + s + '"]',
                u = "";
              void 0 !== i && i.forEach(function (e) {
                e.length > 0 && (u += e + ",");
              }), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n';
            }
          }
        }
        return r;
      }(this);
    }, e;
  }(),
  Z = /(a)(d)/gi,
  K = function K(e) {
    return String.fromCharCode(e + (e > 25 ? 39 : 97));
  };
function Q(e) {
  var t,
    n = "";
  for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = K(t % 52) + n;
  return (K(t % 52) + n).replace(Z, "$1-$2");
}
var ee = function ee(e, t) {
    for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
    return e;
  },
  te = function te(e) {
    return ee(5381, e);
  };
function ne(e) {
  for (var t = 0; t < e.length; t += 1) {
    var n = e[t];
    if (E(n) && !_(n)) return !1;
  }
  return !0;
}
var re = te("5.3.11"),
  oe = function () {
    function e(e, t, n) {
      this.rules = e, this.staticRulesId = "", this.isStatic =  true && (void 0 === n || n.isStatic) && ne(e), this.componentId = t, this.baseHash = ee(re, t), this.baseStyle = n, X.registerId(t);
    }
    return e.prototype.generateAndInjectStyles = function (e, t, n) {
      var r = this.componentId,
        o = [];
      if (this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash) {
        if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId);else {
          var s = _e(this.rules, e, t, n).join(""),
            i = Q(ee(this.baseHash, s) >>> 0);
          if (!t.hasNameForId(r, i)) {
            var a = n(s, "." + i, void 0, r);
            t.insertRules(r, i, a);
          }
          o.push(i), this.staticRulesId = i;
        }
      } else {
        for (var c = this.rules.length, u = ee(this.baseHash, n.hash), l = "", d = 0; d < c; d++) {
          var h = this.rules[d];
          if ("string" == typeof h) l += h,  false && (0);else if (h) {
            var p = _e(h, e, t, n),
              f = Array.isArray(p) ? p.join("") : p;
            u = ee(u, f + d), l += f;
          }
        }
        if (l) {
          var m = Q(u >>> 0);
          if (!t.hasNameForId(r, m)) {
            var y = n(l, "." + m, void 0, r);
            t.insertRules(r, m, y);
          }
          o.push(m);
        }
      }
      return o.join(" ");
    }, e;
  }(),
  se = /^\s*\/\/.*$/gm,
  ie = [":", "[", ".", "#"];
function ae(e) {
  var t,
    n,
    r,
    o,
    s = void 0 === e ? w : e,
    i = s.options,
    a = void 0 === i ? w : i,
    c = s.plugins,
    u = void 0 === c ? S : c,
    l = new stylis_browser_esm(a),
    d = [],
    p = function (e) {
      function t(t) {
        if (t) try {
          e(t + "}");
        } catch (e) {}
      }
      return function (n, r, o, s, i, a, c, u, l, d) {
        switch (n) {
          case 1:
            if (0 === l && 64 === r.charCodeAt(0)) return e(r + ";"), "";
            break;
          case 2:
            if (0 === u) return r + "/*|*/";
            break;
          case 3:
            switch (u) {
              case 102:
              case 112:
                return e(o[0] + r), "";
              default:
                return r + (0 === d ? "/*|*/" : "");
            }
          case -2:
            r.split("/*|*/}").forEach(t);
        }
      };
    }(function (e) {
      d.push(e);
    }),
    f = function f(e, r, s) {
      return 0 === r && -1 !== ie.indexOf(s[n.length]) || s.match(o) ? e : "." + t;
    };
  function m(e, s, i, a) {
    void 0 === a && (a = "&");
    var c = e.replace(se, ""),
      u = s && i ? i + " " + s + " { " + c + " }" : c;
    return t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u);
  }
  return l.use([].concat(u, [function (e, t, o) {
    2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
  }, p, function (e) {
    if (-2 === e) {
      var t = d;
      return d = [], t;
    }
  }])), m.hash = u.length ? u.reduce(function (e, t) {
    return t.name || D(15), ee(e, t.name);
  }, 5381).toString() : "", m;
}
var ce = _react_18_2_0_react.createContext(),
  ue = ce.Consumer,
  le = _react_18_2_0_react.createContext(),
  de = (le.Consumer, new X()),
  he = ae();
function pe() {
  return (0,_react_18_2_0_react.useContext)(ce) || de;
}
function fe() {
  return (0,_react_18_2_0_react.useContext)(le) || he;
}
function me(e) {
  var t = (0,_react_18_2_0_react.useState)(e.stylisPlugins),
    n = t[0],
    s = t[1],
    c = pe(),
    u = (0,_react_18_2_0_react.useMemo)(function () {
      var t = c;
      return e.sheet ? t = e.sheet : e.target && (t = t.reconstructWithOptions({
        target: e.target
      }, !1)), e.disableCSSOMInjection && (t = t.reconstructWithOptions({
        useCSSOMInjection: !1
      })), t;
    }, [e.disableCSSOMInjection, e.sheet, e.target]),
    l = (0,_react_18_2_0_react.useMemo)(function () {
      return ae({
        options: {
          prefix: !e.disableVendorPrefixes
        },
        plugins: n
      });
    }, [e.disableVendorPrefixes, n]);
  return (0,_react_18_2_0_react.useEffect)(function () {
    _shallowequal_1_1_0_shallowequal_default()(n, e.stylisPlugins) || s(e.stylisPlugins);
  }, [e.stylisPlugins]), _react_18_2_0_react.createElement(ce.Provider, {
    value: u
  }, _react_18_2_0_react.createElement(le.Provider, {
    value: l
  },  false ? 0 : e.children));
}
var ye = function () {
    function e(e, t) {
      var n = this;
      this.inject = function (e, t) {
        void 0 === t && (t = he);
        var r = n.name + t.hash;
        e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
      }, this.toString = function () {
        return D(12, String(n.name));
      }, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t;
    }
    return e.prototype.getName = function (e) {
      return void 0 === e && (e = he), this.name + e.hash;
    }, e;
  }(),
  ve = /([A-Z])/,
  ge = /([A-Z])/g,
  Se = /^ms-/,
  we = function we(e) {
    return "-" + e.toLowerCase();
  };
function Ee(e) {
  return ve.test(e) ? e.replace(ge, we).replace(Se, "-ms-") : e;
}
var be = function be(e) {
  return null == e || !1 === e || "" === e;
};
function _e(e, n, r, o) {
  if (Array.isArray(e)) {
    for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = _e(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
    return i;
  }
  if (be(e)) return "";
  if (_(e)) return "." + e.styledComponentId;
  if (E(e)) {
    if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
    var u = e(n);
    return  false && 0, _e(u, n, r, o);
  }
  var l;
  return e instanceof ye ? r ? (e.inject(r, o), e.getName(o)) : e : g(e) ? function e(t, n) {
    var r,
      o,
      s = [];
    for (var i in t) t.hasOwnProperty(i) && !be(t[i]) && (Array.isArray(t[i]) && t[i].isCss || E(t[i]) ? s.push(Ee(i) + ":", t[i], ";") : g(t[i]) ? s.push.apply(s, e(t[i], i)) : s.push(Ee(i) + ": " + (r = i, null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || r in unitless_browser_esm || r.startsWith("--") ? String(o).trim() : o + "px") + ";"));
    return n ? [n + " {"].concat(s, ["}"]) : s;
  }(e) : e.toString();
}
var Ne = function Ne(e) {
  return Array.isArray(e) && (e.isCss = !0), e;
};
function Ae(e) {
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
  return E(e) || g(e) ? Ne(_e(v(S, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ne(_e(v(e, n)));
}
var Ce = /invalid hook call/i,
  Ie = new Set(),
  Pe = function Pe(e, t) {
    if (false) { var o, n, r; }
  },
  Oe = function Oe(e, t, n) {
    return void 0 === n && (n = w), e.theme !== n.theme && e.theme || t || n.theme;
  },
  Re = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
  De = /(^-|-$)/g;
function je(e) {
  return e.replace(Re, "-").replace(De, "");
}
var Te = function Te(e) {
  return Q(te(e) >>> 0);
};
function xe(e) {
  return "string" == typeof e && ( true || 0);
}
var ke = function ke(e) {
    return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
  },
  Ve = function Ve(e) {
    return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
  };
function Be(e, t, n) {
  var r = e[n];
  ke(t) && ke(r) ? ze(r, t) : e[n] = t;
}
function ze(e) {
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
  for (var o = 0, s = n; o < s.length; o++) {
    var i = s[o];
    if (ke(i)) for (var a in i) Ve(a) && Be(e, i[a], a);
  }
  return e;
}
var Me = _react_18_2_0_react.createContext(),
  Ge = Me.Consumer;
function Le(e) {
  var t = (0,_react_18_2_0_react.useContext)(Me),
    n = (0,_react_18_2_0_react.useMemo)(function () {
      return function (e, t) {
        if (!e) return D(14);
        if (E(e)) {
          var n = e(t);
          return  true ? n : 0;
        }
        return Array.isArray(e) || "object" != typeof e ? D(8) : t ? y({}, t, {}, e) : e;
      }(e.theme, t);
    }, [e.theme, t]);
  return e.children ? _react_18_2_0_react.createElement(Me.Provider, {
    value: n
  }, e.children) : null;
}
var Fe = {};
function Ye(e, t, n) {
  var o = _(e),
    i = !xe(e),
    a = t.attrs,
    c = void 0 === a ? S : a,
    l = t.componentId,
    d = void 0 === l ? function (e, t) {
      var n = "string" != typeof e ? "sc" : je(e);
      Fe[n] = (Fe[n] || 0) + 1;
      var r = n + "-" + Te("5.3.11" + n + Fe[n]);
      return t ? t + "-" + r : r;
    }(t.displayName, t.parentComponentId) : l,
    h = t.displayName,
    p = void 0 === h ? function (e) {
      return xe(e) ? "styled." + e : "Styled(" + b(e) + ")";
    }(e) : h,
    v = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || d,
    g = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c,
    N = t.shouldForwardProp;
  o && e.shouldForwardProp && (N = t.shouldForwardProp ? function (n, r, o) {
    return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
  } : e.shouldForwardProp);
  var A,
    C = new oe(n, v, o ? e.componentStyle : void 0),
    I = C.isStatic && 0 === c.length,
    P = function P(e, t) {
      return function (e, t, n, r) {
        var o = e.attrs,
          i = e.componentStyle,
          a = e.defaultProps,
          c = e.foldedComponentIds,
          l = e.shouldForwardProp,
          d = e.styledComponentId,
          h = e.target,
          p = function (e, t, n) {
            void 0 === e && (e = w);
            var r = y({}, t, {
                theme: e
              }),
              o = {};
            return n.forEach(function (e) {
              var t,
                n,
                s,
                i = e;
              for (t in E(i) && (i = i(r)), i) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
            }), [r, o];
          }(Oe(t, (0,_react_18_2_0_react.useContext)(Me), a) || w, t, o),
          m = p[0],
          v = p[1],
          g = function (e, t, n, r) {
            var o = pe(),
              s = fe(),
              i = t ? e.generateAndInjectStyles(w, o, s) : e.generateAndInjectStyles(n, o, s);
            return  false && 0, i;
          }(i, r, m,  false ? 0 : void 0),
          S = n,
          b = v.$as || t.$as || v.as || t.as || h,
          _ = xe(b),
          N = v !== t ? y({}, t, {}, v) : t,
          A = {};
        for (var C in N) "$" !== C[0] && "as" !== C && ("forwardedAs" === C ? A.as = N[C] : (l ? l(C, isPropValid, b) : !_ || isPropValid(C)) && (A[C] = N[C]));
        return t.style && v.style !== t.style && (A.style = y({}, t.style, {}, v.style)), A.className = Array.prototype.concat(c, d, g !== d ? g : null, t.className, v.className).filter(Boolean).join(" "), A.ref = S, (0,_react_18_2_0_react.createElement)(b, A);
      }(A, e, t, I);
    };
  return P.displayName = p, (A = _react_18_2_0_react.forwardRef(P)).attrs = g, A.componentStyle = C, A.displayName = p, A.shouldForwardProp = N, A.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : S, A.styledComponentId = v, A.target = o ? e.target : e, A.withComponent = function (e) {
    var r = t.componentId,
      o = function (e, t) {
        if (null == e) return {};
        var n,
          r,
          o = {},
          s = Object.keys(e);
        for (r = 0; r < s.length; r++) n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
        return o;
      }(t, ["componentId"]),
      s = r && r + "-" + (xe(e) ? e : je(b(e)));
    return Ye(e, y({}, o, {
      attrs: g,
      componentId: s
    }), n);
  }, Object.defineProperty(A, "defaultProps", {
    get: function get() {
      return this._foldedDefaultProps;
    },
    set: function set(t) {
      this._foldedDefaultProps = o ? ze({}, e.defaultProps, t) : t;
    }
  }),  false && (0), Object.defineProperty(A, "toString", {
    value: function value() {
      return "." + A.styledComponentId;
    }
  }), i && hoist_non_react_statics_cjs_default()(A, e, {
    attrs: !0,
    componentStyle: !0,
    displayName: !0,
    foldedComponentIds: !0,
    shouldForwardProp: !0,
    styledComponentId: !0,
    target: !0,
    withComponent: !0
  }), A;
}
var qe = function qe(e) {
  return function e(t, r, o) {
    if (void 0 === o && (o = w), !(0,_react_is_18_2_0_react_is.isValidElementType)(r)) return D(1, String(r));
    var s = function s() {
      return t(r, o, Ae.apply(void 0, arguments));
    };
    return s.withConfig = function (n) {
      return e(t, r, y({}, o, {}, n));
    }, s.attrs = function (n) {
      return e(t, r, y({}, o, {
        attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
      }));
    }, s;
  }(Ye, e);
};
["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function (e) {
  qe[e] = qe(e);
});
var He = function () {
  function e(e, t) {
    this.rules = e, this.componentId = t, this.isStatic = ne(e), X.registerId(this.componentId + 1);
  }
  var t = e.prototype;
  return t.createStyles = function (e, t, n, r) {
    var o = r(_e(this.rules, t, n, r).join(""), ""),
      s = this.componentId + e;
    n.insertRules(s, s, o);
  }, t.removeStyles = function (e, t) {
    t.clearRules(this.componentId + e);
  }, t.renderStyles = function (e, t, n, r) {
    e > 2 && X.registerId(this.componentId + e), this.removeStyles(e, n), this.createStyles(e, t, n, r);
  }, e;
}();
function $e(e) {
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) n[o - 1] = arguments[o];
  var i = Ae.apply(void 0, [e].concat(n)),
    a = "sc-global-" + Te(JSON.stringify(i)),
    u = new He(i, a);
  function d(e) {
    var t = pe(),
      n = fe(),
      o = (0,_react_18_2_0_react.useContext)(Me),
      d = (0,_react_18_2_0_react.useRef)(t.allocateGSInstance(a)).current;
    return  false && 0,  false && 0, t.server && h(d, e, t, o, n), (0,_react_18_2_0_react.useLayoutEffect)(function () {
      if (!t.server) return h(d, e, t, o, n), function () {
        return u.removeStyles(d, t);
      };
    }, [d, e, t, o, n]), null;
  }
  function h(e, t, n, r, o) {
    if (u.isStatic) u.renderStyles(e, P, n, o);else {
      var s = y({}, t, {
        theme: Oe(t, r, d.defaultProps)
      });
      u.renderStyles(e, s, n, o);
    }
  }
  return  false && 0, _react_18_2_0_react.memo(d);
}
function We(e) {
   false && 0;
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
  var o = Ae.apply(void 0, [e].concat(n)).join(""),
    s = Te(o);
  return new ye(s, o);
}
var Ue = function () {
    function e() {
      var e = this;
      this._emitSheetCSS = function () {
        var t = e.instance.toString();
        if (!t) return "";
        var n = Y();
        return "<style " + [n && 'nonce="' + n + '"', N + '="true"', 'data-styled-version="5.3.11"'].filter(Boolean).join(" ") + ">" + t + "</style>";
      }, this.getStyleTags = function () {
        return e.sealed ? D(2) : e._emitSheetCSS();
      }, this.getStyleElement = function () {
        var t;
        if (e.sealed) return D(2);
        var n = ((t = {})[N] = "", t["data-styled-version"] = "5.3.11", t.dangerouslySetInnerHTML = {
            __html: e.instance.toString()
          }, t),
          o = Y();
        return o && (n.nonce = o), [_react_18_2_0_react.createElement("style", y({}, n, {
          key: "sc-0-0"
        }))];
      }, this.seal = function () {
        e.sealed = !0;
      }, this.instance = new X({
        isServer: !0
      }), this.sealed = !1;
    }
    var t = e.prototype;
    return t.collectStyles = function (e) {
      return this.sealed ? D(2) : _react_18_2_0_react.createElement(me, {
        sheet: this.instance
      }, e);
    }, t.interleaveWithNodeStream = function (e) {
      return D(3);
    }, e;
  }(),
  Je = function Je(e) {
    var t = r.forwardRef(function (t, n) {
      var o = s(Me),
        i = e.defaultProps,
        a = Oe(t, o, i);
      return  false && 0, r.createElement(e, y({}, t, {
        theme: a,
        ref: n
      }));
    });
    return m(t, e), t.displayName = "WithTheme(" + b(e) + ")", t;
  },
  Xe = function Xe() {
    return s(Me);
  },
  Ze = {
    StyleSheet: X,
    masterSheet: de
  };
 false && 0,  false && (0);
/* harmony default export */ var styled_components_browser_esm = (qe);


/***/ }),

/***/ 9984:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


var _regeneratorRuntime = (__webpack_require__(2727)["default"]);
module.exports = function (Yallist) {
  Yallist.prototype[Symbol.iterator] = /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
    var walker;
    return _regeneratorRuntime().wrap(function _callee$(_context) {
      while (1) switch (_context.prev = _context.next) {
        case 0:
          walker = this.head;
        case 1:
          if (!walker) {
            _context.next = 7;
            break;
          }
          _context.next = 4;
          return walker.value;
        case 4:
          walker = walker.next;
          _context.next = 1;
          break;
        case 7:
        case "end":
          return _context.stop();
      }
    }, _callee, this);
  });
};

/***/ }),

/***/ 6451:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

"use strict";


module.exports = Yallist;
Yallist.Node = Node;
Yallist.create = Yallist;
function Yallist(list) {
  var self = this;
  if (!(self instanceof Yallist)) {
    self = new Yallist();
  }
  self.tail = null;
  self.head = null;
  self.length = 0;
  if (list && typeof list.forEach === 'function') {
    list.forEach(function (item) {
      self.push(item);
    });
  } else if (arguments.length > 0) {
    for (var i = 0, l = arguments.length; i < l; i++) {
      self.push(arguments[i]);
    }
  }
  return self;
}
Yallist.prototype.removeNode = function (node) {
  if (node.list !== this) {
    throw new Error('removing node which does not belong to this list');
  }
  var next = node.next;
  var prev = node.prev;
  if (next) {
    next.prev = prev;
  }
  if (prev) {
    prev.next = next;
  }
  if (node === this.head) {
    this.head = next;
  }
  if (node === this.tail) {
    this.tail = prev;
  }
  node.list.length--;
  node.next = null;
  node.prev = null;
  node.list = null;
  return next;
};
Yallist.prototype.unshiftNode = function (node) {
  if (node === this.head) {
    return;
  }
  if (node.list) {
    node.list.removeNode(node);
  }
  var head = this.head;
  node.list = this;
  node.next = head;
  if (head) {
    head.prev = node;
  }
  this.head = node;
  if (!this.tail) {
    this.tail = node;
  }
  this.length++;
};
Yallist.prototype.pushNode = function (node) {
  if (node === this.tail) {
    return;
  }
  if (node.list) {
    node.list.removeNode(node);
  }
  var tail = this.tail;
  node.list = this;
  node.prev = tail;
  if (tail) {
    tail.next = node;
  }
  this.tail = node;
  if (!this.head) {
    this.head = node;
  }
  this.length++;
};
Yallist.prototype.push = function () {
  for (var i = 0, l = arguments.length; i < l; i++) {
    push(this, arguments[i]);
  }
  return this.length;
};
Yallist.prototype.unshift = function () {
  for (var i = 0, l = arguments.length; i < l; i++) {
    unshift(this, arguments[i]);
  }
  return this.length;
};
Yallist.prototype.pop = function () {
  if (!this.tail) {
    return undefined;
  }
  var res = this.tail.value;
  this.tail = this.tail.prev;
  if (this.tail) {
    this.tail.next = null;
  } else {
    this.head = null;
  }
  this.length--;
  return res;
};
Yallist.prototype.shift = function () {
  if (!this.head) {
    return undefined;
  }
  var res = this.head.value;
  this.head = this.head.next;
  if (this.head) {
    this.head.prev = null;
  } else {
    this.tail = null;
  }
  this.length--;
  return res;
};
Yallist.prototype.forEach = function (fn, thisp) {
  thisp = thisp || this;
  for (var walker = this.head, i = 0; walker !== null; i++) {
    fn.call(thisp, walker.value, i, this);
    walker = walker.next;
  }
};
Yallist.prototype.forEachReverse = function (fn, thisp) {
  thisp = thisp || this;
  for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
    fn.call(thisp, walker.value, i, this);
    walker = walker.prev;
  }
};
Yallist.prototype.get = function (n) {
  for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
    // abort out of the list early if we hit a cycle
    walker = walker.next;
  }
  if (i === n && walker !== null) {
    return walker.value;
  }
};
Yallist.prototype.getReverse = function (n) {
  for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
    // abort out of the list early if we hit a cycle
    walker = walker.prev;
  }
  if (i === n && walker !== null) {
    return walker.value;
  }
};
Yallist.prototype.map = function (fn, thisp) {
  thisp = thisp || this;
  var res = new Yallist();
  for (var walker = this.head; walker !== null;) {
    res.push(fn.call(thisp, walker.value, this));
    walker = walker.next;
  }
  return res;
};
Yallist.prototype.mapReverse = function (fn, thisp) {
  thisp = thisp || this;
  var res = new Yallist();
  for (var walker = this.tail; walker !== null;) {
    res.push(fn.call(thisp, walker.value, this));
    walker = walker.prev;
  }
  return res;
};
Yallist.prototype.reduce = function (fn, initial) {
  var acc;
  var walker = this.head;
  if (arguments.length > 1) {
    acc = initial;
  } else if (this.head) {
    walker = this.head.next;
    acc = this.head.value;
  } else {
    throw new TypeError('Reduce of empty list with no initial value');
  }
  for (var i = 0; walker !== null; i++) {
    acc = fn(acc, walker.value, i);
    walker = walker.next;
  }
  return acc;
};
Yallist.prototype.reduceReverse = function (fn, initial) {
  var acc;
  var walker = this.tail;
  if (arguments.length > 1) {
    acc = initial;
  } else if (this.tail) {
    walker = this.tail.prev;
    acc = this.tail.value;
  } else {
    throw new TypeError('Reduce of empty list with no initial value');
  }
  for (var i = this.length - 1; walker !== null; i--) {
    acc = fn(acc, walker.value, i);
    walker = walker.prev;
  }
  return acc;
};
Yallist.prototype.toArray = function () {
  var arr = new Array(this.length);
  for (var i = 0, walker = this.head; walker !== null; i++) {
    arr[i] = walker.value;
    walker = walker.next;
  }
  return arr;
};
Yallist.prototype.toArrayReverse = function () {
  var arr = new Array(this.length);
  for (var i = 0, walker = this.tail; walker !== null; i++) {
    arr[i] = walker.value;
    walker = walker.prev;
  }
  return arr;
};
Yallist.prototype.slice = function (from, to) {
  to = to || this.length;
  if (to < 0) {
    to += this.length;
  }
  from = from || 0;
  if (from < 0) {
    from += this.length;
  }
  var ret = new Yallist();
  if (to < from || to < 0) {
    return ret;
  }
  if (from < 0) {
    from = 0;
  }
  if (to > this.length) {
    to = this.length;
  }
  for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
    walker = walker.next;
  }
  for (; walker !== null && i < to; i++, walker = walker.next) {
    ret.push(walker.value);
  }
  return ret;
};
Yallist.prototype.sliceReverse = function (from, to) {
  to = to || this.length;
  if (to < 0) {
    to += this.length;
  }
  from = from || 0;
  if (from < 0) {
    from += this.length;
  }
  var ret = new Yallist();
  if (to < from || to < 0) {
    return ret;
  }
  if (from < 0) {
    from = 0;
  }
  if (to > this.length) {
    to = this.length;
  }
  for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
    walker = walker.prev;
  }
  for (; walker !== null && i > from; i--, walker = walker.prev) {
    ret.push(walker.value);
  }
  return ret;
};
Yallist.prototype.splice = function (start, deleteCount) {
  if (start > this.length) {
    start = this.length - 1;
  }
  if (start < 0) {
    start = this.length + start;
  }
  for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
    walker = walker.next;
  }
  var ret = [];
  for (var i = 0; walker && i < deleteCount; i++) {
    ret.push(walker.value);
    walker = this.removeNode(walker);
  }
  if (walker === null) {
    walker = this.tail;
  }
  if (walker !== this.head && walker !== this.tail) {
    walker = walker.prev;
  }
  for (var i = 0; i < (arguments.length <= 2 ? 0 : arguments.length - 2); i++) {
    walker = insert(this, walker, i + 2 < 2 || arguments.length <= i + 2 ? undefined : arguments[i + 2]);
  }
  return ret;
};
Yallist.prototype.reverse = function () {
  var head = this.head;
  var tail = this.tail;
  for (var walker = head; walker !== null; walker = walker.prev) {
    var p = walker.prev;
    walker.prev = walker.next;
    walker.next = p;
  }
  this.head = tail;
  this.tail = head;
  return this;
};
function insert(self, node, value) {
  var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self);
  if (inserted.next === null) {
    self.tail = inserted;
  }
  if (inserted.prev === null) {
    self.head = inserted;
  }
  self.length++;
  return inserted;
}
function push(self, item) {
  self.tail = new Node(item, self.tail, null, self);
  if (!self.head) {
    self.head = self.tail;
  }
  self.length++;
}
function unshift(self, item) {
  self.head = new Node(item, null, self.head, self);
  if (!self.tail) {
    self.tail = self.head;
  }
  self.length++;
}
function Node(value, prev, next, list) {
  if (!(this instanceof Node)) {
    return new Node(value, prev, next, list);
  }
  this.list = list;
  this.value = value;
  if (prev) {
    prev.next = this;
    this.prev = prev;
  } else {
    this.prev = null;
  }
  if (next) {
    next.prev = this;
    this.next = next;
  } else {
    this.next = null;
  }
}
try {
  // add if support for Symbol.iterator is present
  __webpack_require__(9984)(Yallist);
} catch (er) {}

/***/ }),

/***/ 4676:
/***/ (function() {

"use strict";
// extracted by mini-css-extract-plugin
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({});

/***/ }),

/***/ 8724:
/***/ (function(module) {

function _arrayLikeToArray(arr, len) {
  if (len == null || len > arr.length) len = arr.length;
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  return arr2;
}
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 2078:
/***/ (function(module) {

function _arrayWithHoles(arr) {
  if (Array.isArray(arr)) return arr;
}
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 1783:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var arrayLikeToArray = __webpack_require__(8724);
function _arrayWithoutHoles(arr) {
  if (Array.isArray(arr)) return arrayLikeToArray(arr);
}
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 8388:
/***/ (function(module) {

function _classCallCheck(instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
}
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 6553:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var toPropertyKey = __webpack_require__(5290);
function _defineProperties(target, props) {
  for (var i = 0; i < props.length; i++) {
    var descriptor = props[i];
    descriptor.enumerable = descriptor.enumerable || false;
    descriptor.configurable = true;
    if ("value" in descriptor) descriptor.writable = true;
    Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  }
}
function _createClass(Constructor, protoProps, staticProps) {
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  if (staticProps) _defineProperties(Constructor, staticProps);
  Object.defineProperty(Constructor, "prototype", {
    writable: false
  });
  return Constructor;
}
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 3042:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var unsupportedIterableToArray = __webpack_require__(2291);
function _createForOfIteratorHelper(o, allowArrayLike) {
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  if (!it) {
    if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
      if (it) o = it;
      var i = 0;
      var F = function F() {};
      return {
        s: F,
        n: function n() {
          if (i >= o.length) return {
            done: true
          };
          return {
            done: false,
            value: o[i++]
          };
        },
        e: function e(_e) {
          throw _e;
        },
        f: F
      };
    }
    throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  }
  var normalCompletion = true,
    didErr = false,
    err;
  return {
    s: function s() {
      it = it.call(o);
    },
    n: function n() {
      var step = it.next();
      normalCompletion = step.done;
      return step;
    },
    e: function e(_e2) {
      didErr = true;
      err = _e2;
    },
    f: function f() {
      try {
        if (!normalCompletion && it["return"] != null) it["return"]();
      } finally {
        if (didErr) throw err;
      }
    }
  };
}
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 6279:
/***/ (function(module) {

function _iterableToArray(iter) {
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 3178:
/***/ (function(module) {

function _iterableToArrayLimit(arr, i) {
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  if (null != _i) {
    var _s,
      _e,
      _x,
      _r,
      _arr = [],
      _n = !0,
      _d = !1;
    try {
      if (_x = (_i = _i.call(arr)).next, 0 === i) {
        if (Object(_i) !== _i) return;
        _n = !1;
      } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
    } catch (err) {
      _d = !0, _e = err;
    } finally {
      try {
        if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
      } finally {
        if (_d) throw _e;
      }
    }
    return _arr;
  }
}
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 36:
/***/ (function(module) {

function _nonIterableRest() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 1486:
/***/ (function(module) {

function _nonIterableSpread() {
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 2727:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var _typeof = (__webpack_require__(5551)["default"]);
function _regeneratorRuntime() {
  "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
    return exports;
  }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  var exports = {},
    Op = Object.prototype,
    hasOwn = Op.hasOwnProperty,
    defineProperty = Object.defineProperty || function (obj, key, desc) {
      obj[key] = desc.value;
    },
    $Symbol = "function" == typeof Symbol ? Symbol : {},
    iteratorSymbol = $Symbol.iterator || "@@iterator",
    asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
    toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  function define(obj, key, value) {
    return Object.defineProperty(obj, key, {
      value: value,
      enumerable: !0,
      configurable: !0,
      writable: !0
    }), obj[key];
  }
  try {
    define({}, "");
  } catch (err) {
    define = function define(obj, key, value) {
      return obj[key] = value;
    };
  }
  function wrap(innerFn, outerFn, self, tryLocsList) {
    var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
      generator = Object.create(protoGenerator.prototype),
      context = new Context(tryLocsList || []);
    return defineProperty(generator, "_invoke", {
      value: makeInvokeMethod(innerFn, self, context)
    }), generator;
  }
  function tryCatch(fn, obj, arg) {
    try {
      return {
        type: "normal",
        arg: fn.call(obj, arg)
      };
    } catch (err) {
      return {
        type: "throw",
        arg: err
      };
    }
  }
  exports.wrap = wrap;
  var ContinueSentinel = {};
  function Generator() {}
  function GeneratorFunction() {}
  function GeneratorFunctionPrototype() {}
  var IteratorPrototype = {};
  define(IteratorPrototype, iteratorSymbol, function () {
    return this;
  });
  var getProto = Object.getPrototypeOf,
    NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  function defineIteratorMethods(prototype) {
    ["next", "throw", "return"].forEach(function (method) {
      define(prototype, method, function (arg) {
        return this._invoke(method, arg);
      });
    });
  }
  function AsyncIterator(generator, PromiseImpl) {
    function invoke(method, arg, resolve, reject) {
      var record = tryCatch(generator[method], generator, arg);
      if ("throw" !== record.type) {
        var result = record.arg,
          value = result.value;
        return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
          invoke("next", value, resolve, reject);
        }, function (err) {
          invoke("throw", err, resolve, reject);
        }) : PromiseImpl.resolve(value).then(function (unwrapped) {
          result.value = unwrapped, resolve(result);
        }, function (error) {
          return invoke("throw", error, resolve, reject);
        });
      }
      reject(record.arg);
    }
    var previousPromise;
    defineProperty(this, "_invoke", {
      value: function value(method, arg) {
        function callInvokeWithMethodAndArg() {
          return new PromiseImpl(function (resolve, reject) {
            invoke(method, arg, resolve, reject);
          });
        }
        return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
      }
    });
  }
  function makeInvokeMethod(innerFn, self, context) {
    var state = "suspendedStart";
    return function (method, arg) {
      if ("executing" === state) throw new Error("Generator is already running");
      if ("completed" === state) {
        if ("throw" === method) throw arg;
        return doneResult();
      }
      for (context.method = method, context.arg = arg;;) {
        var delegate = context.delegate;
        if (delegate) {
          var delegateResult = maybeInvokeDelegate(delegate, context);
          if (delegateResult) {
            if (delegateResult === ContinueSentinel) continue;
            return delegateResult;
          }
        }
        if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
          if ("suspendedStart" === state) throw state = "completed", context.arg;
          context.dispatchException(context.arg);
        } else "return" === context.method && context.abrupt("return", context.arg);
        state = "executing";
        var record = tryCatch(innerFn, self, context);
        if ("normal" === record.type) {
          if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
          return {
            value: record.arg,
            done: context.done
          };
        }
        "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
      }
    };
  }
  function maybeInvokeDelegate(delegate, context) {
    var methodName = context.method,
      method = delegate.iterator[methodName];
    if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
    var record = tryCatch(method, delegate.iterator, context.arg);
    if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
    var info = record.arg;
    return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  }
  function pushTryEntry(locs) {
    var entry = {
      tryLoc: locs[0]
    };
    1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  }
  function resetTryEntry(entry) {
    var record = entry.completion || {};
    record.type = "normal", delete record.arg, entry.completion = record;
  }
  function Context(tryLocsList) {
    this.tryEntries = [{
      tryLoc: "root"
    }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  }
  function values(iterable) {
    if (iterable) {
      var iteratorMethod = iterable[iteratorSymbol];
      if (iteratorMethod) return iteratorMethod.call(iterable);
      if ("function" == typeof iterable.next) return iterable;
      if (!isNaN(iterable.length)) {
        var i = -1,
          next = function next() {
            for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
            return next.value = undefined, next.done = !0, next;
          };
        return next.next = next;
      }
    }
    return {
      next: doneResult
    };
  }
  function doneResult() {
    return {
      value: undefined,
      done: !0
    };
  }
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
    value: GeneratorFunctionPrototype,
    configurable: !0
  }), defineProperty(GeneratorFunctionPrototype, "constructor", {
    value: GeneratorFunction,
    configurable: !0
  }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
    var ctor = "function" == typeof genFun && genFun.constructor;
    return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  }, exports.mark = function (genFun) {
    return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  }, exports.awrap = function (arg) {
    return {
      __await: arg
    };
  }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
    return this;
  }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
    void 0 === PromiseImpl && (PromiseImpl = Promise);
    var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
    return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
      return result.done ? result.value : iter.next();
    });
  }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
    return this;
  }), define(Gp, "toString", function () {
    return "[object Generator]";
  }), exports.keys = function (val) {
    var object = Object(val),
      keys = [];
    for (var key in object) keys.push(key);
    return keys.reverse(), function next() {
      for (; keys.length;) {
        var key = keys.pop();
        if (key in object) return next.value = key, next.done = !1, next;
      }
      return next.done = !0, next;
    };
  }, exports.values = values, Context.prototype = {
    constructor: Context,
    reset: function reset(skipTempReset) {
      if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
    },
    stop: function stop() {
      this.done = !0;
      var rootRecord = this.tryEntries[0].completion;
      if ("throw" === rootRecord.type) throw rootRecord.arg;
      return this.rval;
    },
    dispatchException: function dispatchException(exception) {
      if (this.done) throw exception;
      var context = this;
      function handle(loc, caught) {
        return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
      }
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i],
          record = entry.completion;
        if ("root" === entry.tryLoc) return handle("end");
        if (entry.tryLoc <= this.prev) {
          var hasCatch = hasOwn.call(entry, "catchLoc"),
            hasFinally = hasOwn.call(entry, "finallyLoc");
          if (hasCatch && hasFinally) {
            if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
            if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
          } else if (hasCatch) {
            if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
          } else {
            if (!hasFinally) throw new Error("try statement without catch or finally");
            if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
          }
        }
      }
    },
    abrupt: function abrupt(type, arg) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
          var finallyEntry = entry;
          break;
        }
      }
      finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
      var record = finallyEntry ? finallyEntry.completion : {};
      return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
    },
    complete: function complete(record, afterLoc) {
      if ("throw" === record.type) throw record.arg;
      return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
    },
    finish: function finish(finallyLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
      }
    },
    "catch": function _catch(tryLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.tryLoc === tryLoc) {
          var record = entry.completion;
          if ("throw" === record.type) {
            var thrown = record.arg;
            resetTryEntry(entry);
          }
          return thrown;
        }
      }
      throw new Error("illegal catch attempt");
    },
    delegateYield: function delegateYield(iterable, resultName, nextLoc) {
      return this.delegate = {
        iterator: values(iterable),
        resultName: resultName,
        nextLoc: nextLoc
      }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
    }
  }, exports;
}
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 3036:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var arrayWithHoles = __webpack_require__(2078);
var iterableToArrayLimit = __webpack_require__(3178);
var unsupportedIterableToArray = __webpack_require__(2291);
var nonIterableRest = __webpack_require__(36);
function _slicedToArray(arr, i) {
  return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
}
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 8913:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var arrayWithoutHoles = __webpack_require__(1783);
var iterableToArray = __webpack_require__(6279);
var unsupportedIterableToArray = __webpack_require__(2291);
var nonIterableSpread = __webpack_require__(1486);
function _toConsumableArray(arr) {
  return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
}
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 615:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var _typeof = (__webpack_require__(5551)["default"]);
function _toPrimitive(input, hint) {
  if (_typeof(input) !== "object" || input === null) return input;
  var prim = input[Symbol.toPrimitive];
  if (prim !== undefined) {
    var res = prim.call(input, hint || "default");
    if (_typeof(res) !== "object") return res;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (hint === "string" ? String : Number)(input);
}
module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 5290:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var _typeof = (__webpack_require__(5551)["default"]);
var toPrimitive = __webpack_require__(615);
function _toPropertyKey(arg) {
  var key = toPrimitive(arg, "string");
  return _typeof(key) === "symbol" ? key : String(key);
}
module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 5551:
/***/ (function(module) {

function _typeof(obj) {
  "@babel/helpers - typeof";

  return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
}
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 2291:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

var arrayLikeToArray = __webpack_require__(8724);
function _unsupportedIterableToArray(o, minLen) {
  if (!o) return;
  if (typeof o === "string") return arrayLikeToArray(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor) n = o.constructor.name;
  if (n === "Map" || n === "Set") return Array.from(o);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
}
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ }),

/***/ 919:
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

// TODO(Babel 8): Remove this file.

var runtime = __webpack_require__(2727)();
module.exports = runtime;

// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
try {
  regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
  if (typeof globalThis === "object") {
    globalThis.regeneratorRuntime = runtime;
  } else {
    Function("r", "regeneratorRuntime = r")(runtime);
  }
}


/***/ }),

/***/ 3381:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _arrayLikeToArray; }
/* harmony export */ });
function _arrayLikeToArray(arr, len) {
  if (len == null || len > arr.length) len = arr.length;
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  return arr2;
}

/***/ }),

/***/ 9683:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _arrayWithHoles; }
/* harmony export */ });
function _arrayWithHoles(arr) {
  if (Array.isArray(arr)) return arr;
}

/***/ }),

/***/ 2901:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _assertThisInitialized; }
/* harmony export */ });
function _assertThisInitialized(self) {
  if (self === void 0) {
    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  }
  return self;
}

/***/ }),

/***/ 2171:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _asyncToGenerator; }
/* harmony export */ });
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  try {
    var info = gen[key](arg);
    var value = info.value;
  } catch (error) {
    reject(error);
    return;
  }
  if (info.done) {
    resolve(value);
  } else {
    Promise.resolve(value).then(_next, _throw);
  }
}
function _asyncToGenerator(fn) {
  return function () {
    var self = this,
      args = arguments;
    return new Promise(function (resolve, reject) {
      var gen = fn.apply(self, args);
      function _next(value) {
        asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
      }
      function _throw(err) {
        asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
      }
      _next(undefined);
    });
  };
}

/***/ }),

/***/ 4816:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _classCallCheck; }
/* harmony export */ });
function _classCallCheck(instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    throw new TypeError("Cannot call a class as a function");
  }
}

/***/ }),

/***/ 5292:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _createClass; }
/* harmony export */ });
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3123);

function _defineProperties(target, props) {
  for (var i = 0; i < props.length; i++) {
    var descriptor = props[i];
    descriptor.enumerable = descriptor.enumerable || false;
    descriptor.configurable = true;
    if ("value" in descriptor) descriptor.writable = true;
    Object.defineProperty(target, (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(descriptor.key), descriptor);
  }
}
function _createClass(Constructor, protoProps, staticProps) {
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  if (staticProps) _defineProperties(Constructor, staticProps);
  Object.defineProperty(Constructor, "prototype", {
    writable: false
  });
  return Constructor;
}

/***/ }),

/***/ 8271:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _createSuper; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/getPrototypeOf.js
var getPrototypeOf = __webpack_require__(6072);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/isNativeReflectConstruct.js
var isNativeReflectConstruct = __webpack_require__(5348);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(2782);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/assertThisInitialized.js
var assertThisInitialized = __webpack_require__(2901);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/possibleConstructorReturn.js


function _possibleConstructorReturn(self, call) {
  if (call && ((0,esm_typeof/* default */.Z)(call) === "object" || typeof call === "function")) {
    return call;
  } else if (call !== void 0) {
    throw new TypeError("Derived constructors may only return object or undefined");
  }
  return (0,assertThisInitialized/* default */.Z)(self);
}
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/createSuper.js



function _createSuper(Derived) {
  var hasNativeReflectConstruct = (0,isNativeReflectConstruct/* default */.Z)();
  return function _createSuperInternal() {
    var Super = (0,getPrototypeOf/* default */.Z)(Derived),
      result;
    if (hasNativeReflectConstruct) {
      var NewTarget = (0,getPrototypeOf/* default */.Z)(this).constructor;
      result = Reflect.construct(Super, arguments, NewTarget);
    } else {
      result = Super.apply(this, arguments);
    }
    return _possibleConstructorReturn(this, result);
  };
}

/***/ }),

/***/ 994:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _defineProperty; }
/* harmony export */ });
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3123);

function _defineProperty(obj, key, value) {
  key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(key);
  if (key in obj) {
    Object.defineProperty(obj, key, {
      value: value,
      enumerable: true,
      configurable: true,
      writable: true
    });
  } else {
    obj[key] = value;
  }
  return obj;
}

/***/ }),

/***/ 4904:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _extends; }
/* harmony export */ });
function _extends() {
  _extends = Object.assign ? Object.assign.bind() : function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];
      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }
    return target;
  };
  return _extends.apply(this, arguments);
}

/***/ }),

/***/ 6072:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _getPrototypeOf; }
/* harmony export */ });
function _getPrototypeOf(o) {
  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
    return o.__proto__ || Object.getPrototypeOf(o);
  };
  return _getPrototypeOf(o);
}

/***/ }),

/***/ 8863:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _inherits; }
/* harmony export */ });
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7513);

function _inherits(subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function");
  }
  subClass.prototype = Object.create(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      writable: true,
      configurable: true
    }
  });
  Object.defineProperty(subClass, "prototype", {
    writable: false
  });
  if (superClass) (0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(subClass, superClass);
}

/***/ }),

/***/ 2918:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _inheritsLoose; }
/* harmony export */ });
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7513);

function _inheritsLoose(subClass, superClass) {
  subClass.prototype = Object.create(superClass.prototype);
  subClass.prototype.constructor = subClass;
  (0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(subClass, superClass);
}

/***/ }),

/***/ 5348:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _isNativeReflectConstruct; }
/* harmony export */ });
function _isNativeReflectConstruct() {
  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  if (Reflect.construct.sham) return false;
  if (typeof Proxy === "function") return true;
  try {
    Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
    return true;
  } catch (e) {
    return false;
  }
}

/***/ }),

/***/ 3953:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _iterableToArray; }
/* harmony export */ });
function _iterableToArray(iter) {
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}

/***/ }),

/***/ 7335:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _nonIterableRest; }
/* harmony export */ });
function _nonIterableRest() {
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

/***/ }),

/***/ 2648:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _objectSpread2; }
/* harmony export */ });
/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(994);

function ownKeys(object, enumerableOnly) {
  var keys = Object.keys(object);
  if (Object.getOwnPropertySymbols) {
    var symbols = Object.getOwnPropertySymbols(object);
    enumerableOnly && (symbols = symbols.filter(function (sym) {
      return Object.getOwnPropertyDescriptor(object, sym).enumerable;
    })), keys.push.apply(keys, symbols);
  }
  return keys;
}
function _objectSpread2(target) {
  for (var i = 1; i < arguments.length; i++) {
    var source = null != arguments[i] ? arguments[i] : {};
    i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
      (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target, key, source[key]);
    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
      Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
    });
  }
  return target;
}

/***/ }),

/***/ 9686:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _objectWithoutProperties; }
/* harmony export */ });
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3108);

function _objectWithoutProperties(source, excluded) {
  if (source == null) return {};
  var target = (0,_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(source, excluded);
  var key, i;
  if (Object.getOwnPropertySymbols) {
    var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
    for (i = 0; i < sourceSymbolKeys.length; i++) {
      key = sourceSymbolKeys[i];
      if (excluded.indexOf(key) >= 0) continue;
      if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
      target[key] = source[key];
    }
  }
  return target;
}

/***/ }),

/***/ 3108:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _objectWithoutPropertiesLoose; }
/* harmony export */ });
function _objectWithoutPropertiesLoose(source, excluded) {
  if (source == null) return {};
  var target = {};
  var sourceKeys = Object.keys(source);
  var key, i;
  for (i = 0; i < sourceKeys.length; i++) {
    key = sourceKeys[i];
    if (excluded.indexOf(key) >= 0) continue;
    target[key] = source[key];
  }
  return target;
}

/***/ }),

/***/ 7921:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _regeneratorRuntime; }
/* harmony export */ });
/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2782);

function _regeneratorRuntime() {
  "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  _regeneratorRuntime = function _regeneratorRuntime() {
    return exports;
  };
  var exports = {},
    Op = Object.prototype,
    hasOwn = Op.hasOwnProperty,
    defineProperty = Object.defineProperty || function (obj, key, desc) {
      obj[key] = desc.value;
    },
    $Symbol = "function" == typeof Symbol ? Symbol : {},
    iteratorSymbol = $Symbol.iterator || "@@iterator",
    asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
    toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  function define(obj, key, value) {
    return Object.defineProperty(obj, key, {
      value: value,
      enumerable: !0,
      configurable: !0,
      writable: !0
    }), obj[key];
  }
  try {
    define({}, "");
  } catch (err) {
    define = function define(obj, key, value) {
      return obj[key] = value;
    };
  }
  function wrap(innerFn, outerFn, self, tryLocsList) {
    var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
      generator = Object.create(protoGenerator.prototype),
      context = new Context(tryLocsList || []);
    return defineProperty(generator, "_invoke", {
      value: makeInvokeMethod(innerFn, self, context)
    }), generator;
  }
  function tryCatch(fn, obj, arg) {
    try {
      return {
        type: "normal",
        arg: fn.call(obj, arg)
      };
    } catch (err) {
      return {
        type: "throw",
        arg: err
      };
    }
  }
  exports.wrap = wrap;
  var ContinueSentinel = {};
  function Generator() {}
  function GeneratorFunction() {}
  function GeneratorFunctionPrototype() {}
  var IteratorPrototype = {};
  define(IteratorPrototype, iteratorSymbol, function () {
    return this;
  });
  var getProto = Object.getPrototypeOf,
    NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  function defineIteratorMethods(prototype) {
    ["next", "throw", "return"].forEach(function (method) {
      define(prototype, method, function (arg) {
        return this._invoke(method, arg);
      });
    });
  }
  function AsyncIterator(generator, PromiseImpl) {
    function invoke(method, arg, resolve, reject) {
      var record = tryCatch(generator[method], generator, arg);
      if ("throw" !== record.type) {
        var result = record.arg,
          value = result.value;
        return value && "object" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
          invoke("next", value, resolve, reject);
        }, function (err) {
          invoke("throw", err, resolve, reject);
        }) : PromiseImpl.resolve(value).then(function (unwrapped) {
          result.value = unwrapped, resolve(result);
        }, function (error) {
          return invoke("throw", error, resolve, reject);
        });
      }
      reject(record.arg);
    }
    var previousPromise;
    defineProperty(this, "_invoke", {
      value: function value(method, arg) {
        function callInvokeWithMethodAndArg() {
          return new PromiseImpl(function (resolve, reject) {
            invoke(method, arg, resolve, reject);
          });
        }
        return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
      }
    });
  }
  function makeInvokeMethod(innerFn, self, context) {
    var state = "suspendedStart";
    return function (method, arg) {
      if ("executing" === state) throw new Error("Generator is already running");
      if ("completed" === state) {
        if ("throw" === method) throw arg;
        return doneResult();
      }
      for (context.method = method, context.arg = arg;;) {
        var delegate = context.delegate;
        if (delegate) {
          var delegateResult = maybeInvokeDelegate(delegate, context);
          if (delegateResult) {
            if (delegateResult === ContinueSentinel) continue;
            return delegateResult;
          }
        }
        if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
          if ("suspendedStart" === state) throw state = "completed", context.arg;
          context.dispatchException(context.arg);
        } else "return" === context.method && context.abrupt("return", context.arg);
        state = "executing";
        var record = tryCatch(innerFn, self, context);
        if ("normal" === record.type) {
          if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
          return {
            value: record.arg,
            done: context.done
          };
        }
        "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
      }
    };
  }
  function maybeInvokeDelegate(delegate, context) {
    var methodName = context.method,
      method = delegate.iterator[methodName];
    if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
    var record = tryCatch(method, delegate.iterator, context.arg);
    if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
    var info = record.arg;
    return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  }
  function pushTryEntry(locs) {
    var entry = {
      tryLoc: locs[0]
    };
    1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  }
  function resetTryEntry(entry) {
    var record = entry.completion || {};
    record.type = "normal", delete record.arg, entry.completion = record;
  }
  function Context(tryLocsList) {
    this.tryEntries = [{
      tryLoc: "root"
    }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  }
  function values(iterable) {
    if (iterable) {
      var iteratorMethod = iterable[iteratorSymbol];
      if (iteratorMethod) return iteratorMethod.call(iterable);
      if ("function" == typeof iterable.next) return iterable;
      if (!isNaN(iterable.length)) {
        var i = -1,
          next = function next() {
            for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
            return next.value = undefined, next.done = !0, next;
          };
        return next.next = next;
      }
    }
    return {
      next: doneResult
    };
  }
  function doneResult() {
    return {
      value: undefined,
      done: !0
    };
  }
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
    value: GeneratorFunctionPrototype,
    configurable: !0
  }), defineProperty(GeneratorFunctionPrototype, "constructor", {
    value: GeneratorFunction,
    configurable: !0
  }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
    var ctor = "function" == typeof genFun && genFun.constructor;
    return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  }, exports.mark = function (genFun) {
    return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  }, exports.awrap = function (arg) {
    return {
      __await: arg
    };
  }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
    return this;
  }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
    void 0 === PromiseImpl && (PromiseImpl = Promise);
    var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
    return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
      return result.done ? result.value : iter.next();
    });
  }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
    return this;
  }), define(Gp, "toString", function () {
    return "[object Generator]";
  }), exports.keys = function (val) {
    var object = Object(val),
      keys = [];
    for (var key in object) keys.push(key);
    return keys.reverse(), function next() {
      for (; keys.length;) {
        var key = keys.pop();
        if (key in object) return next.value = key, next.done = !1, next;
      }
      return next.done = !0, next;
    };
  }, exports.values = values, Context.prototype = {
    constructor: Context,
    reset: function reset(skipTempReset) {
      if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
    },
    stop: function stop() {
      this.done = !0;
      var rootRecord = this.tryEntries[0].completion;
      if ("throw" === rootRecord.type) throw rootRecord.arg;
      return this.rval;
    },
    dispatchException: function dispatchException(exception) {
      if (this.done) throw exception;
      var context = this;
      function handle(loc, caught) {
        return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
      }
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i],
          record = entry.completion;
        if ("root" === entry.tryLoc) return handle("end");
        if (entry.tryLoc <= this.prev) {
          var hasCatch = hasOwn.call(entry, "catchLoc"),
            hasFinally = hasOwn.call(entry, "finallyLoc");
          if (hasCatch && hasFinally) {
            if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
            if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
          } else if (hasCatch) {
            if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
          } else {
            if (!hasFinally) throw new Error("try statement without catch or finally");
            if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
          }
        }
      }
    },
    abrupt: function abrupt(type, arg) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
          var finallyEntry = entry;
          break;
        }
      }
      finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
      var record = finallyEntry ? finallyEntry.completion : {};
      return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
    },
    complete: function complete(record, afterLoc) {
      if ("throw" === record.type) throw record.arg;
      return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
    },
    finish: function finish(finallyLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
      }
    },
    "catch": function _catch(tryLoc) {
      for (var i = this.tryEntries.length - 1; i >= 0; --i) {
        var entry = this.tryEntries[i];
        if (entry.tryLoc === tryLoc) {
          var record = entry.completion;
          if ("throw" === record.type) {
            var thrown = record.arg;
            resetTryEntry(entry);
          }
          return thrown;
        }
      }
      throw new Error("illegal catch attempt");
    },
    delegateYield: function delegateYield(iterable, resultName, nextLoc) {
      return this.delegate = {
        iterator: values(iterable),
        resultName: resultName,
        nextLoc: nextLoc
      }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
    }
  }, exports;
}

/***/ }),

/***/ 7513:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _setPrototypeOf; }
/* harmony export */ });
function _setPrototypeOf(o, p) {
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
    o.__proto__ = p;
    return o;
  };
  return _setPrototypeOf(o, p);
}

/***/ }),

/***/ 8935:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _slicedToArray; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/arrayWithHoles.js
var arrayWithHoles = __webpack_require__(9683);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/iterableToArrayLimit.js
function _iterableToArrayLimit(arr, i) {
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  if (null != _i) {
    var _s,
      _e,
      _x,
      _r,
      _arr = [],
      _n = !0,
      _d = !1;
    try {
      if (_x = (_i = _i.call(arr)).next, 0 === i) {
        if (Object(_i) !== _i) return;
        _n = !1;
      } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
    } catch (err) {
      _d = !0, _e = err;
    } finally {
      try {
        if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
      } finally {
        if (_d) throw _e;
      }
    }
    return _arr;
  }
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/unsupportedIterableToArray.js
var unsupportedIterableToArray = __webpack_require__(9154);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/nonIterableRest.js
var nonIterableRest = __webpack_require__(7335);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/slicedToArray.js




function _slicedToArray(arr, i) {
  return (0,arrayWithHoles/* default */.Z)(arr) || _iterableToArrayLimit(arr, i) || (0,unsupportedIterableToArray/* default */.Z)(arr, i) || (0,nonIterableRest/* default */.Z)();
}

/***/ }),

/***/ 9008:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _taggedTemplateLiteral; }
/* harmony export */ });
function _taggedTemplateLiteral(strings, raw) {
  if (!raw) {
    raw = strings.slice(0);
  }
  return Object.freeze(Object.defineProperties(strings, {
    raw: {
      value: Object.freeze(raw)
    }
  }));
}

/***/ }),

/***/ 6408:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _toArray; }
/* harmony export */ });
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9683);
/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3953);
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9154);
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7335);




function _toArray(arr) {
  return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(arr) || (0,_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)();
}

/***/ }),

/***/ 372:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _toConsumableArray; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/arrayLikeToArray.js
var arrayLikeToArray = __webpack_require__(3381);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/arrayWithoutHoles.js

function _arrayWithoutHoles(arr) {
  if (Array.isArray(arr)) return (0,arrayLikeToArray/* default */.Z)(arr);
}
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/iterableToArray.js
var iterableToArray = __webpack_require__(3953);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/unsupportedIterableToArray.js
var unsupportedIterableToArray = __webpack_require__(9154);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/nonIterableSpread.js
function _nonIterableSpread() {
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/toConsumableArray.js




function _toConsumableArray(arr) {
  return _arrayWithoutHoles(arr) || (0,iterableToArray/* default */.Z)(arr) || (0,unsupportedIterableToArray/* default */.Z)(arr) || _nonIterableSpread();
}

/***/ }),

/***/ 3123:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _toPropertyKey; }
});

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/typeof.js
var esm_typeof = __webpack_require__(2782);
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/toPrimitive.js

function _toPrimitive(input, hint) {
  if ((0,esm_typeof/* default */.Z)(input) !== "object" || input === null) return input;
  var prim = input[Symbol.toPrimitive];
  if (prim !== undefined) {
    var res = prim.call(input, hint || "default");
    if ((0,esm_typeof/* default */.Z)(res) !== "object") return res;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return (hint === "string" ? String : Number)(input);
}
;// CONCATENATED MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/toPropertyKey.js


function _toPropertyKey(arg) {
  var key = _toPrimitive(arg, "string");
  return (0,esm_typeof/* default */.Z)(key) === "symbol" ? key : String(key);
}

/***/ }),

/***/ 2782:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _typeof; }
/* harmony export */ });
function _typeof(obj) {
  "@babel/helpers - typeof";

  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  }, _typeof(obj);
}

/***/ }),

/***/ 9154:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   Z: function() { return /* binding */ _unsupportedIterableToArray; }
/* harmony export */ });
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3381);

function _unsupportedIterableToArray(o, minLen) {
  if (!o) return;
  if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(o, minLen);
  var n = Object.prototype.toString.call(o).slice(8, -1);
  if (n === "Object" && o.constructor) n = o.constructor.name;
  if (n === "Map" || n === "Set") return Array.from(o);
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(o, minLen);
}

/***/ }),

/***/ 8294:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _ListCache; }
});

;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheClear.js
/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */
function listCacheClear() {
  this.__data__ = [];
  this.size = 0;
}
/* harmony default export */ var _listCacheClear = (listCacheClear);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/eq.js
var eq = __webpack_require__(9522);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_assocIndexOf.js


/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function assocIndexOf(array, key) {
  var length = array.length;
  while (length--) {
    if ((0,eq/* default */.Z)(array[length][0], key)) {
      return length;
    }
  }
  return -1;
}
/* harmony default export */ var _assocIndexOf = (assocIndexOf);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheDelete.js


/** Used for built-in method references. */
var arrayProto = Array.prototype;

/** Built-in value references. */
var splice = arrayProto.splice;

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function listCacheDelete(key) {
  var data = this.__data__,
    index = _assocIndexOf(data, key);
  if (index < 0) {
    return false;
  }
  var lastIndex = data.length - 1;
  if (index == lastIndex) {
    data.pop();
  } else {
    splice.call(data, index, 1);
  }
  --this.size;
  return true;
}
/* harmony default export */ var _listCacheDelete = (listCacheDelete);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheGet.js


/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function listCacheGet(key) {
  var data = this.__data__,
    index = _assocIndexOf(data, key);
  return index < 0 ? undefined : data[index][1];
}
/* harmony default export */ var _listCacheGet = (listCacheGet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheHas.js


/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function listCacheHas(key) {
  return _assocIndexOf(this.__data__, key) > -1;
}
/* harmony default export */ var _listCacheHas = (listCacheHas);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_listCacheSet.js


/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */
function listCacheSet(key, value) {
  var data = this.__data__,
    index = _assocIndexOf(data, key);
  if (index < 0) {
    ++this.size;
    data.push([key, value]);
  } else {
    data[index][1] = value;
  }
  return this;
}
/* harmony default export */ var _listCacheSet = (listCacheSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_ListCache.js






/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function ListCache(entries) {
  var index = -1,
    length = entries == null ? 0 : entries.length;
  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `ListCache`.
ListCache.prototype.clear = _listCacheClear;
ListCache.prototype['delete'] = _listCacheDelete;
ListCache.prototype.get = _listCacheGet;
ListCache.prototype.has = _listCacheHas;
ListCache.prototype.set = _listCacheSet;
/* harmony default export */ var _ListCache = (ListCache);

/***/ }),

/***/ 1360:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9332);
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8751);



/* Built-in method references that are verified to be native. */
var Map = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_root_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, 'Map');
/* harmony default export */ __webpack_exports__.Z = (Map);

/***/ }),

/***/ 4660:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _MapCache; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getNative.js + 4 modules
var _getNative = __webpack_require__(9332);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_nativeCreate.js


/* Built-in method references that are verified to be native. */
var nativeCreate = (0,_getNative/* default */.Z)(Object, 'create');
/* harmony default export */ var _nativeCreate = (nativeCreate);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashClear.js


/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */
function hashClear() {
  this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
  this.size = 0;
}
/* harmony default export */ var _hashClear = (hashClear);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashDelete.js
/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function hashDelete(key) {
  var result = this.has(key) && delete this.__data__[key];
  this.size -= result ? 1 : 0;
  return result;
}
/* harmony default export */ var _hashDelete = (hashDelete);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashGet.js


/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var _hashGet_hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function hashGet(key) {
  var data = this.__data__;
  if (_nativeCreate) {
    var result = data[key];
    return result === HASH_UNDEFINED ? undefined : result;
  }
  return _hashGet_hasOwnProperty.call(data, key) ? data[key] : undefined;
}
/* harmony default export */ var _hashGet = (hashGet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashHas.js


/** Used for built-in method references. */
var _hashHas_objectProto = Object.prototype;

/** Used to check objects for own properties. */
var _hashHas_hasOwnProperty = _hashHas_objectProto.hasOwnProperty;

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function hashHas(key) {
  var data = this.__data__;
  return _nativeCreate ? data[key] !== undefined : _hashHas_hasOwnProperty.call(data, key);
}
/* harmony default export */ var _hashHas = (hashHas);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_hashSet.js


/** Used to stand-in for `undefined` hash values. */
var _hashSet_HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */
function hashSet(key, value) {
  var data = this.__data__;
  this.size += this.has(key) ? 0 : 1;
  data[key] = _nativeCreate && value === undefined ? _hashSet_HASH_UNDEFINED : value;
  return this;
}
/* harmony default export */ var _hashSet = (hashSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Hash.js






/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Hash(entries) {
  var index = -1,
    length = entries == null ? 0 : entries.length;
  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `Hash`.
Hash.prototype.clear = _hashClear;
Hash.prototype['delete'] = _hashDelete;
Hash.prototype.get = _hashGet;
Hash.prototype.has = _hashHas;
Hash.prototype.set = _hashSet;
/* harmony default export */ var _Hash = (Hash);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_ListCache.js + 6 modules
var _ListCache = __webpack_require__(8294);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Map.js
var _Map = __webpack_require__(1360);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheClear.js




/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
function mapCacheClear() {
  this.size = 0;
  this.__data__ = {
    'hash': new _Hash(),
    'map': new (_Map/* default */.Z || _ListCache/* default */.Z)(),
    'string': new _Hash()
  };
}
/* harmony default export */ var _mapCacheClear = (mapCacheClear);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isKeyable.js
/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */
function isKeyable(value) {
  var type = typeof value;
  return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;
}
/* harmony default export */ var _isKeyable = (isKeyable);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getMapData.js


/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */
function getMapData(map, key) {
  var data = map.__data__;
  return _isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;
}
/* harmony default export */ var _getMapData = (getMapData);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheDelete.js


/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function mapCacheDelete(key) {
  var result = _getMapData(this, key)['delete'](key);
  this.size -= result ? 1 : 0;
  return result;
}
/* harmony default export */ var _mapCacheDelete = (mapCacheDelete);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheGet.js


/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function mapCacheGet(key) {
  return _getMapData(this, key).get(key);
}
/* harmony default export */ var _mapCacheGet = (mapCacheGet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheHas.js


/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function mapCacheHas(key) {
  return _getMapData(this, key).has(key);
}
/* harmony default export */ var _mapCacheHas = (mapCacheHas);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_mapCacheSet.js


/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */
function mapCacheSet(key, value) {
  var data = _getMapData(this, key),
    size = data.size;
  data.set(key, value);
  this.size += data.size == size ? 0 : 1;
  return this;
}
/* harmony default export */ var _mapCacheSet = (mapCacheSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_MapCache.js






/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function MapCache(entries) {
  var index = -1,
    length = entries == null ? 0 : entries.length;
  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}

// Add methods to `MapCache`.
MapCache.prototype.clear = _mapCacheClear;
MapCache.prototype['delete'] = _mapCacheDelete;
MapCache.prototype.get = _mapCacheGet;
MapCache.prototype.has = _mapCacheHas;
MapCache.prototype.set = _mapCacheSet;
/* harmony default export */ var _MapCache = (MapCache);

/***/ }),

/***/ 1987:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9332);
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8751);



/* Built-in method references that are verified to be native. */
var Set = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_root_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, 'Set');
/* harmony default export */ __webpack_exports__.Z = (Set);

/***/ }),

/***/ 8668:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _SetCache; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_MapCache.js + 14 modules
var _MapCache = __webpack_require__(4660);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_setCacheAdd.js
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';

/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */
function setCacheAdd(value) {
  this.__data__.set(value, HASH_UNDEFINED);
  return this;
}
/* harmony default export */ var _setCacheAdd = (setCacheAdd);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_setCacheHas.js
/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */
function setCacheHas(value) {
  return this.__data__.has(value);
}
/* harmony default export */ var _setCacheHas = (setCacheHas);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_SetCache.js




/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */
function SetCache(values) {
  var index = -1,
    length = values == null ? 0 : values.length;
  this.__data__ = new _MapCache/* default */.Z();
  while (++index < length) {
    this.add(values[index]);
  }
}

// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd;
SetCache.prototype.has = _setCacheHas;
/* harmony default export */ var _SetCache = (SetCache);

/***/ }),

/***/ 3306:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _Stack; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_ListCache.js + 6 modules
var _ListCache = __webpack_require__(8294);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackClear.js


/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */
function stackClear() {
  this.__data__ = new _ListCache/* default */.Z();
  this.size = 0;
}
/* harmony default export */ var _stackClear = (stackClear);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackDelete.js
/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */
function stackDelete(key) {
  var data = this.__data__,
    result = data['delete'](key);
  this.size = data.size;
  return result;
}
/* harmony default export */ var _stackDelete = (stackDelete);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackGet.js
/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */
function stackGet(key) {
  return this.__data__.get(key);
}
/* harmony default export */ var _stackGet = (stackGet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackHas.js
/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function stackHas(key) {
  return this.__data__.has(key);
}
/* harmony default export */ var _stackHas = (stackHas);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Map.js
var _Map = __webpack_require__(1360);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_MapCache.js + 14 modules
var _MapCache = __webpack_require__(4660);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_stackSet.js




/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;

/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */
function stackSet(key, value) {
  var data = this.__data__;
  if (data instanceof _ListCache/* default */.Z) {
    var pairs = data.__data__;
    if (!_Map/* default */.Z || pairs.length < LARGE_ARRAY_SIZE - 1) {
      pairs.push([key, value]);
      this.size = ++data.size;
      return this;
    }
    data = this.__data__ = new _MapCache/* default */.Z(pairs);
  }
  data.set(key, value);
  this.size = data.size;
  return this;
}
/* harmony default export */ var _stackSet = (stackSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Stack.js







/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */
function Stack(entries) {
  var data = this.__data__ = new _ListCache/* default */.Z(entries);
  this.size = data.size;
}

// Add methods to `Stack`.
Stack.prototype.clear = _stackClear;
Stack.prototype['delete'] = _stackDelete;
Stack.prototype.get = _stackGet;
Stack.prototype.has = _stackHas;
Stack.prototype.set = _stackSet;
/* harmony default export */ var _Stack = (Stack);

/***/ }),

/***/ 7462:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8751);


/** Built-in value references. */
var Symbol = _root_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Symbol;
/* harmony default export */ __webpack_exports__.Z = (Symbol);

/***/ }),

/***/ 2832:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8751);


/** Built-in value references. */
var Uint8Array = _root_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Uint8Array;
/* harmony default export */ __webpack_exports__.Z = (Uint8Array);

/***/ }),

/***/ 4700:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _arrayLikeKeys; }
});

;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseTimes.js
/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */
function baseTimes(n, iteratee) {
  var index = -1,
    result = Array(n);
  while (++index < n) {
    result[index] = iteratee(index);
  }
  return result;
}
/* harmony default export */ var _baseTimes = (baseTimes);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js + 1 modules
var isArguments = __webpack_require__(7989);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js
var isArray = __webpack_require__(4263);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js + 1 modules
var isBuffer = __webpack_require__(9131);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isIndex.js
var _isIndex = __webpack_require__(3374);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js + 1 modules
var isTypedArray = __webpack_require__(6957);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayLikeKeys.js







/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var _arrayLikeKeys_hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */
function arrayLikeKeys(value, inherited) {
  var isArr = (0,isArray/* default */.Z)(value),
    isArg = !isArr && (0,isArguments/* default */.Z)(value),
    isBuff = !isArr && !isArg && (0,isBuffer/* default */.Z)(value),
    isType = !isArr && !isArg && !isBuff && (0,isTypedArray/* default */.Z)(value),
    skipIndexes = isArr || isArg || isBuff || isType,
    result = skipIndexes ? _baseTimes(value.length, String) : [],
    length = result.length;
  for (var key in value) {
    if ((inherited || _arrayLikeKeys_hasOwnProperty.call(value, key)) && !(skipIndexes && (
    // Safari 9 has enumerable `arguments.length` in strict mode.
    key == 'length' ||
    // Node.js 0.10 has enumerable non-index properties on buffers.
    isBuff && (key == 'offset' || key == 'parent') ||
    // PhantomJS 2 has enumerable non-index properties on typed arrays.
    isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') ||
    // Skip index properties.
    (0,_isIndex/* default */.Z)(key, length)))) {
      result.push(key);
    }
  }
  return result;
}
/* harmony default export */ var _arrayLikeKeys = (arrayLikeKeys);

/***/ }),

/***/ 9371:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */
function arrayMap(array, iteratee) {
  var index = -1,
    length = array == null ? 0 : array.length,
    result = Array(length);
  while (++index < length) {
    result[index] = iteratee(array[index], index, array);
  }
  return result;
}
/* harmony default export */ __webpack_exports__.Z = (arrayMap);

/***/ }),

/***/ 4698:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */
function arrayPush(array, values) {
  var index = -1,
    length = values.length,
    offset = array.length;
  while (++index < length) {
    array[offset + index] = values[index];
  }
  return array;
}
/* harmony default export */ __webpack_exports__.Z = (arrayPush);

/***/ }),

/***/ 6349:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _baseAssignValue_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(719);
/* harmony import */ var _eq_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9522);



/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignValue(object, key, value) {
  var objValue = object[key];
  if (!(hasOwnProperty.call(object, key) && (0,_eq_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(objValue, value)) || value === undefined && !(key in object)) {
    (0,_baseAssignValue_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(object, key, value);
  }
}
/* harmony default export */ __webpack_exports__.Z = (assignValue);

/***/ }),

/***/ 719:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7656);


/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function baseAssignValue(object, key, value) {
  if (key == '__proto__' && _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z) {
    (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(object, key, {
      'configurable': true,
      'enumerable': true,
      'value': value,
      'writable': true
    });
  } else {
    object[key] = value;
  }
}
/* harmony default export */ __webpack_exports__.Z = (baseAssignValue);

/***/ }),

/***/ 5903:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * The base implementation of `_.clamp` which doesn't coerce arguments.
 *
 * @private
 * @param {number} number The number to clamp.
 * @param {number} [lower] The lower bound.
 * @param {number} upper The upper bound.
 * @returns {number} Returns the clamped number.
 */
function baseClamp(number, lower, upper) {
  if (number === number) {
    if (upper !== undefined) {
      number = number <= upper ? number : upper;
    }
    if (lower !== undefined) {
      number = number >= lower ? number : lower;
    }
  }
  return number;
}
/* harmony default export */ __webpack_exports__.Z = (baseClamp);

/***/ }),

/***/ 3043:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _arrayPush_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4698);
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4263);



/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  var result = keysFunc(object);
  return (0,_isArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(object) ? result : (0,_arrayPush_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(result, symbolsFunc(object));
}
/* harmony default export */ __webpack_exports__.Z = (baseGetAllKeys);

/***/ }),

/***/ 1837:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _baseGetTag; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Symbol.js
var _Symbol = __webpack_require__(7462);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getRawTag.js


/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var _getRawTag_hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var nativeObjectToString = objectProto.toString;

/** Built-in value references. */
var symToStringTag = _Symbol/* default */.Z ? _Symbol/* default */.Z.toStringTag : undefined;

/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */
function getRawTag(value) {
  var isOwn = _getRawTag_hasOwnProperty.call(value, symToStringTag),
    tag = value[symToStringTag];
  try {
    value[symToStringTag] = undefined;
    var unmasked = true;
  } catch (e) {}
  var result = nativeObjectToString.call(value);
  if (unmasked) {
    if (isOwn) {
      value[symToStringTag] = tag;
    } else {
      delete value[symToStringTag];
    }
  }
  return result;
}
/* harmony default export */ var _getRawTag = (getRawTag);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_objectToString.js
/** Used for built-in method references. */
var _objectToString_objectProto = Object.prototype;

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */
var _objectToString_nativeObjectToString = _objectToString_objectProto.toString;

/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */
function objectToString(value) {
  return _objectToString_nativeObjectToString.call(value);
}
/* harmony default export */ var _objectToString = (objectToString);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGetTag.js




/** `Object#toString` result references. */
var nullTag = '[object Null]',
  undefinedTag = '[object Undefined]';

/** Built-in value references. */
var _baseGetTag_symToStringTag = _Symbol/* default */.Z ? _Symbol/* default */.Z.toStringTag : undefined;

/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
function baseGetTag(value) {
  if (value == null) {
    return value === undefined ? undefinedTag : nullTag;
  }
  return _baseGetTag_symToStringTag && _baseGetTag_symToStringTag in Object(value) ? _getRawTag(value) : _objectToString(value);
}
/* harmony default export */ var _baseGetTag = (baseGetTag);

/***/ }),

/***/ 2084:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _baseIndexOf; }
});

;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseFindIndex.js
/**
 * The base implementation of `_.findIndex` and `_.findLastIndex` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {number} fromIndex The index to search from.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function baseFindIndex(array, predicate, fromIndex, fromRight) {
  var length = array.length,
    index = fromIndex + (fromRight ? 1 : -1);
  while (fromRight ? index-- : ++index < length) {
    if (predicate(array[index], index, array)) {
      return index;
    }
  }
  return -1;
}
/* harmony default export */ var _baseFindIndex = (baseFindIndex);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsNaN.js
/**
 * The base implementation of `_.isNaN` without support for number objects.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
 */
function baseIsNaN(value) {
  return value !== value;
}
/* harmony default export */ var _baseIsNaN = (baseIsNaN);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_strictIndexOf.js
/**
 * A specialized version of `_.indexOf` which performs strict equality
 * comparisons of values, i.e. `===`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function strictIndexOf(array, value, fromIndex) {
  var index = fromIndex - 1,
    length = array.length;
  while (++index < length) {
    if (array[index] === value) {
      return index;
    }
  }
  return -1;
}
/* harmony default export */ var _strictIndexOf = (strictIndexOf);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIndexOf.js




/**
 * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */
function baseIndexOf(array, value, fromIndex) {
  return value === value ? _strictIndexOf(array, value, fromIndex) : _baseFindIndex(array, _baseIsNaN, fromIndex);
}
/* harmony default export */ var _baseIndexOf = (baseIndexOf);

/***/ }),

/***/ 1554:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _baseMerge; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Stack.js + 5 modules
var _Stack = __webpack_require__(3306);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseAssignValue.js
var _baseAssignValue = __webpack_require__(719);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/eq.js
var eq = __webpack_require__(9522);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_assignMergeValue.js



/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */
function assignMergeValue(object, key, value) {
  if (value !== undefined && !(0,eq/* default */.Z)(object[key], value) || value === undefined && !(key in object)) {
    (0,_baseAssignValue/* default */.Z)(object, key, value);
  }
}
/* harmony default export */ var _assignMergeValue = (assignMergeValue);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_createBaseFor.js
/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */
function createBaseFor(fromRight) {
  return function (object, iteratee, keysFunc) {
    var index = -1,
      iterable = Object(object),
      props = keysFunc(object),
      length = props.length;
    while (length--) {
      var key = props[fromRight ? length : ++index];
      if (iteratee(iterable[key], key, iterable) === false) {
        break;
      }
    }
    return object;
  };
}
/* harmony default export */ var _createBaseFor = (createBaseFor);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseFor.js


/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */
var baseFor = _createBaseFor();
/* harmony default export */ var _baseFor = (baseFor);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneBuffer.js
var _cloneBuffer = __webpack_require__(8860);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneTypedArray.js
var _cloneTypedArray = __webpack_require__(1617);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_copyArray.js
var _copyArray = __webpack_require__(6043);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_initCloneObject.js + 1 modules
var _initCloneObject = __webpack_require__(7704);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js + 1 modules
var isArguments = __webpack_require__(7989);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js
var isArray = __webpack_require__(4263);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLike.js
var isArrayLike = __webpack_require__(6203);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObjectLike.js
var isObjectLike = __webpack_require__(2096);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLikeObject.js



/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */
function isArrayLikeObject(value) {
  return (0,isObjectLike/* default */.Z)(value) && (0,isArrayLike/* default */.Z)(value);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isArrayLikeObject = (isArrayLikeObject);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js + 1 modules
var isBuffer = __webpack_require__(9131);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isFunction.js
var isFunction = __webpack_require__(5496);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(3648);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGetTag.js + 2 modules
var _baseGetTag = __webpack_require__(1837);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getPrototype.js
var _getPrototype = __webpack_require__(6193);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isPlainObject.js




/** `Object#toString` result references. */
var objectTag = '[object Object]';

/** Used for built-in method references. */
var funcProto = Function.prototype,
  objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var isPlainObject_hasOwnProperty = objectProto.hasOwnProperty;

/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);

/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */
function isPlainObject(value) {
  if (!(0,isObjectLike/* default */.Z)(value) || (0,_baseGetTag/* default */.Z)(value) != objectTag) {
    return false;
  }
  var proto = (0,_getPrototype/* default */.Z)(value);
  if (proto === null) {
    return true;
  }
  var Ctor = isPlainObject_hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isPlainObject = (isPlainObject);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js + 1 modules
var isTypedArray = __webpack_require__(6957);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_safeGet.js
/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function safeGet(object, key) {
  if (key === 'constructor' && typeof object[key] === 'function') {
    return;
  }
  if (key == '__proto__') {
    return;
  }
  return object[key];
}
/* harmony default export */ var _safeGet = (safeGet);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_copyObject.js
var _copyObject = __webpack_require__(7713);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/keysIn.js + 2 modules
var keysIn = __webpack_require__(964);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toPlainObject.js



/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */
function toPlainObject(value) {
  return (0,_copyObject/* default */.Z)(value, (0,keysIn/* default */.Z)(value));
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_toPlainObject = (toPlainObject);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseMergeDeep.js
















/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  var objValue = _safeGet(object, key),
    srcValue = _safeGet(source, key),
    stacked = stack.get(srcValue);
  if (stacked) {
    _assignMergeValue(object, key, stacked);
    return;
  }
  var newValue = customizer ? customizer(objValue, srcValue, key + '', object, source, stack) : undefined;
  var isCommon = newValue === undefined;
  if (isCommon) {
    var isArr = (0,isArray/* default */.Z)(srcValue),
      isBuff = !isArr && (0,isBuffer/* default */.Z)(srcValue),
      isTyped = !isArr && !isBuff && (0,isTypedArray/* default */.Z)(srcValue);
    newValue = srcValue;
    if (isArr || isBuff || isTyped) {
      if ((0,isArray/* default */.Z)(objValue)) {
        newValue = objValue;
      } else if (_lodash_es_4_17_21_lodash_es_isArrayLikeObject(objValue)) {
        newValue = (0,_copyArray/* default */.Z)(objValue);
      } else if (isBuff) {
        isCommon = false;
        newValue = (0,_cloneBuffer/* default */.Z)(srcValue, true);
      } else if (isTyped) {
        isCommon = false;
        newValue = (0,_cloneTypedArray/* default */.Z)(srcValue, true);
      } else {
        newValue = [];
      }
    } else if (_lodash_es_4_17_21_lodash_es_isPlainObject(srcValue) || (0,isArguments/* default */.Z)(srcValue)) {
      newValue = objValue;
      if ((0,isArguments/* default */.Z)(objValue)) {
        newValue = _lodash_es_4_17_21_lodash_es_toPlainObject(objValue);
      } else if (!(0,isObject/* default */.Z)(objValue) || (0,isFunction/* default */.Z)(objValue)) {
        newValue = (0,_initCloneObject/* default */.Z)(srcValue);
      }
    } else {
      isCommon = false;
    }
  }
  if (isCommon) {
    // Recursively merge objects and arrays (susceptible to call stack limits).
    stack.set(srcValue, newValue);
    mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
    stack['delete'](srcValue);
  }
  _assignMergeValue(object, key, newValue);
}
/* harmony default export */ var _baseMergeDeep = (baseMergeDeep);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseMerge.js








/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */
function baseMerge(object, source, srcIndex, customizer, stack) {
  if (object === source) {
    return;
  }
  _baseFor(source, function (srcValue, key) {
    stack || (stack = new _Stack/* default */.Z());
    if ((0,isObject/* default */.Z)(srcValue)) {
      _baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
    } else {
      var newValue = customizer ? customizer(_safeGet(object, key), srcValue, key + '', object, source, stack) : undefined;
      if (newValue === undefined) {
        newValue = srcValue;
      }
      _assignMergeValue(object, key, newValue);
    }
  }, keysIn/* default */.Z);
}
/* harmony default export */ var _baseMerge = (baseMerge);

/***/ }),

/***/ 4937:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _Symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7462);
/* harmony import */ var _arrayMap_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9371);
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4263);
/* harmony import */ var _isSymbol_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3550);





/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;

/** Used to convert symbols to primitives and strings. */
var symbolProto = _Symbol_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z ? _Symbol_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.prototype : undefined,
  symbolToString = symbolProto ? symbolProto.toString : undefined;

/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */
function baseToString(value) {
  // Exit early for strings to avoid a performance hit in some environments.
  if (typeof value == 'string') {
    return value;
  }
  if ((0,_isArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(value)) {
    // Recursively convert values (susceptible to call stack limits).
    return (0,_arrayMap_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(value, baseToString) + '';
  }
  if ((0,_isSymbol_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(value)) {
    return symbolToString ? symbolToString.call(value) : '';
  }
  var result = value + '';
  return result == '0' && 1 / value == -INFINITY ? '-0' : result;
}
/* harmony default export */ __webpack_exports__.Z = (baseToString);

/***/ }),

/***/ 6481:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */
function baseUnary(func) {
  return function (value) {
    return func(value);
  };
}
/* harmony default export */ __webpack_exports__.Z = (baseUnary);

/***/ }),

/***/ 4117:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */
function cacheHas(cache, key) {
  return cache.has(key);
}
/* harmony default export */ __webpack_exports__.Z = (cacheHas);

/***/ }),

/***/ 6830:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _Uint8Array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2832);


/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */
function cloneArrayBuffer(arrayBuffer) {
  var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  new _Uint8Array_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z(result).set(new _Uint8Array_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z(arrayBuffer));
  return result;
}
/* harmony default export */ __webpack_exports__.Z = (cloneArrayBuffer);

/***/ }),

/***/ 8860:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _root_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8751);


/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? _root_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.Buffer : undefined,
  allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;

/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */
function cloneBuffer(buffer, isDeep) {
  if (isDeep) {
    return buffer.slice();
  }
  var length = buffer.length,
    result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  buffer.copy(result);
  return result;
}
/* harmony default export */ __webpack_exports__.Z = (cloneBuffer);

/***/ }),

/***/ 1617:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _cloneArrayBuffer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6830);


/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */
function cloneTypedArray(typedArray, isDeep) {
  var buffer = isDeep ? (0,_cloneArrayBuffer_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(typedArray.buffer) : typedArray.buffer;
  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}
/* harmony default export */ __webpack_exports__.Z = (cloneTypedArray);

/***/ }),

/***/ 6043:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */
function copyArray(source, array) {
  var index = -1,
    length = source.length;
  array || (array = Array(length));
  while (++index < length) {
    array[index] = source[index];
  }
  return array;
}
/* harmony default export */ __webpack_exports__.Z = (copyArray);

/***/ }),

/***/ 7713:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _assignValue_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6349);
/* harmony import */ var _baseAssignValue_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(719);



/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */
function copyObject(source, props, object, customizer) {
  var isNew = !object;
  object || (object = {});
  var index = -1,
    length = props.length;
  while (++index < length) {
    var key = props[index];
    var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;
    if (newValue === undefined) {
      newValue = source[key];
    }
    if (isNew) {
      (0,_baseAssignValue_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(object, key, newValue);
    } else {
      (0,_assignValue_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(object, key, newValue);
    }
  }
  return object;
}
/* harmony default export */ __webpack_exports__.Z = (copyObject);

/***/ }),

/***/ 9755:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _createAssigner; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/identity.js
var identity = __webpack_require__(5621);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_overRest.js + 1 modules
var _overRest = __webpack_require__(5724);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_setToString.js + 3 modules
var _setToString = __webpack_require__(7174);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseRest.js




/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */
function baseRest(func, start) {
  return (0,_setToString/* default */.Z)((0,_overRest/* default */.Z)(func, start, identity/* default */.Z), func + '');
}
/* harmony default export */ var _baseRest = (baseRest);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isIterateeCall.js
var _isIterateeCall = __webpack_require__(2863);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_createAssigner.js



/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */
function createAssigner(assigner) {
  return _baseRest(function (object, sources) {
    var index = -1,
      length = sources.length,
      customizer = length > 1 ? sources[length - 1] : undefined,
      guard = length > 2 ? sources[2] : undefined;
    customizer = assigner.length > 3 && typeof customizer == 'function' ? (length--, customizer) : undefined;
    if (guard && (0,_isIterateeCall/* default */.Z)(sources[0], sources[1], guard)) {
      customizer = length < 3 ? undefined : customizer;
      length = 1;
    }
    object = Object(object);
    while (++index < length) {
      var source = sources[index];
      if (source) {
        assigner(object, source, index, customizer);
      }
    }
    return object;
  });
}
/* harmony default export */ var _createAssigner = (createAssigner);

/***/ }),

/***/ 7656:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _getNative_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9332);

var defineProperty = function () {
  try {
    var func = (0,_getNative_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Object, 'defineProperty');
    func({}, '', {});
    return func;
  } catch (e) {}
}();
/* harmony default export */ __webpack_exports__.Z = (defineProperty);

/***/ }),

/***/ 3948:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/* harmony default export */ __webpack_exports__.Z = (freeGlobal);

/***/ }),

/***/ 1697:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _baseGetAllKeys_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3043);
/* harmony import */ var _getSymbols_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1850);
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(420);




/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeys(object) {
  return (0,_baseGetAllKeys_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(object, _keys_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, _getSymbols_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z);
}
/* harmony default export */ __webpack_exports__.Z = (getAllKeys);

/***/ }),

/***/ 3847:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _baseGetAllKeys_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3043);
/* harmony import */ var _getSymbolsIn_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4854);
/* harmony import */ var _keysIn_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(964);




/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */
function getAllKeysIn(object) {
  return (0,_baseGetAllKeys_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(object, _keysIn_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z, _getSymbolsIn_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z);
}
/* harmony default export */ __webpack_exports__.Z = (getAllKeysIn);

/***/ }),

/***/ 9332:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _getNative; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isFunction.js
var isFunction = __webpack_require__(5496);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_root.js
var _root = __webpack_require__(8751);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_coreJsData.js


/** Used to detect overreaching core-js shims. */
var coreJsData = _root/* default */.Z['__core-js_shared__'];
/* harmony default export */ var _coreJsData = (coreJsData);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isMasked.js


/** Used to detect methods masquerading as native. */
var maskSrcKey = function () {
  var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
  return uid ? 'Symbol(src)_1.' + uid : '';
}();

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */
function isMasked(func) {
  return !!maskSrcKey && maskSrcKey in func;
}
/* harmony default export */ var _isMasked = (isMasked);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(3648);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_toSource.js
var _toSource = __webpack_require__(3631);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsNative.js





/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;

/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;

/** Used for built-in method references. */
var funcProto = Function.prototype,
  objectProto = Object.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/** Used to check objects for own properties. */
var _baseIsNative_hasOwnProperty = objectProto.hasOwnProperty;

/** Used to detect if a method is native. */
var reIsNative = RegExp('^' + funcToString.call(_baseIsNative_hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */
function baseIsNative(value) {
  if (!(0,isObject/* default */.Z)(value) || _isMasked(value)) {
    return false;
  }
  var pattern = (0,isFunction/* default */.Z)(value) ? reIsNative : reIsHostCtor;
  return pattern.test((0,_toSource/* default */.Z)(value));
}
/* harmony default export */ var _baseIsNative = (baseIsNative);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getValue.js
/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */
function getValue(object, key) {
  return object == null ? undefined : object[key];
}
/* harmony default export */ var _getValue = (getValue);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getNative.js



/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */
function getNative(object, key) {
  var value = _getValue(object, key);
  return _baseIsNative(value) ? value : undefined;
}
/* harmony default export */ var _getNative = (getNative);

/***/ }),

/***/ 6193:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _overArg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4565);


/** Built-in value references. */
var getPrototype = (0,_overArg_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(Object.getPrototypeOf, Object);
/* harmony default export */ __webpack_exports__.Z = (getPrototype);

/***/ }),

/***/ 1850:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _getSymbols; }
});

;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayFilter.js
/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */
function arrayFilter(array, predicate) {
  var index = -1,
    length = array == null ? 0 : array.length,
    resIndex = 0,
    result = [];
  while (++index < length) {
    var value = array[index];
    if (predicate(value, index, array)) {
      result[resIndex++] = value;
    }
  }
  return result;
}
/* harmony default export */ var _arrayFilter = (arrayFilter);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/stubArray.js
var stubArray = __webpack_require__(2322);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getSymbols.js



/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbols = !nativeGetSymbols ? stubArray/* default */.Z : function (object) {
  if (object == null) {
    return [];
  }
  object = Object(object);
  return _arrayFilter(nativeGetSymbols(object), function (symbol) {
    return propertyIsEnumerable.call(object, symbol);
  });
};
/* harmony default export */ var _getSymbols = (getSymbols);

/***/ }),

/***/ 4854:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _arrayPush_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4698);
/* harmony import */ var _getPrototype_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6193);
/* harmony import */ var _getSymbols_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1850);
/* harmony import */ var _stubArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2322);





/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;

/**
 * Creates an array of the own and inherited enumerable symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */
var getSymbolsIn = !nativeGetSymbols ? _stubArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z : function (object) {
  var result = [];
  while (object) {
    (0,_arrayPush_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(result, (0,_getSymbols_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(object));
    object = (0,_getPrototype_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(object);
  }
  return result;
};
/* harmony default export */ __webpack_exports__.Z = (getSymbolsIn);

/***/ }),

/***/ 5063:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _getTag; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getNative.js + 4 modules
var _getNative = __webpack_require__(9332);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_root.js
var _root = __webpack_require__(8751);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_DataView.js



/* Built-in method references that are verified to be native. */
var DataView = (0,_getNative/* default */.Z)(_root/* default */.Z, 'DataView');
/* harmony default export */ var _DataView = (DataView);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Map.js
var _Map = __webpack_require__(1360);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Promise.js



/* Built-in method references that are verified to be native. */
var Promise = (0,_getNative/* default */.Z)(_root/* default */.Z, 'Promise');
/* harmony default export */ var _Promise = (Promise);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Set.js
var _Set = __webpack_require__(1987);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_WeakMap.js



/* Built-in method references that are verified to be native. */
var WeakMap = (0,_getNative/* default */.Z)(_root/* default */.Z, 'WeakMap');
/* harmony default export */ var _WeakMap = (WeakMap);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGetTag.js + 2 modules
var _baseGetTag = __webpack_require__(1837);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_toSource.js
var _toSource = __webpack_require__(3631);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getTag.js








/** `Object#toString` result references. */
var mapTag = '[object Map]',
  objectTag = '[object Object]',
  promiseTag = '[object Promise]',
  setTag = '[object Set]',
  weakMapTag = '[object WeakMap]';
var dataViewTag = '[object DataView]';

/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = (0,_toSource/* default */.Z)(_DataView),
  mapCtorString = (0,_toSource/* default */.Z)(_Map/* default */.Z),
  promiseCtorString = (0,_toSource/* default */.Z)(_Promise),
  setCtorString = (0,_toSource/* default */.Z)(_Set/* default */.Z),
  weakMapCtorString = (0,_toSource/* default */.Z)(_WeakMap);

/**
 * Gets the `toStringTag` of `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */
var getTag = _baseGetTag/* default */.Z;

// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
if (_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag || _Map/* default */.Z && getTag(new _Map/* default */.Z()) != mapTag || _Promise && getTag(_Promise.resolve()) != promiseTag || _Set/* default */.Z && getTag(new _Set/* default */.Z()) != setTag || _WeakMap && getTag(new _WeakMap()) != weakMapTag) {
  getTag = function getTag(value) {
    var result = (0,_baseGetTag/* default */.Z)(value),
      Ctor = result == objectTag ? value.constructor : undefined,
      ctorString = Ctor ? (0,_toSource/* default */.Z)(Ctor) : '';
    if (ctorString) {
      switch (ctorString) {
        case dataViewCtorString:
          return dataViewTag;
        case mapCtorString:
          return mapTag;
        case promiseCtorString:
          return promiseTag;
        case setCtorString:
          return setTag;
        case weakMapCtorString:
          return weakMapTag;
      }
    }
    return result;
  };
}
/* harmony default export */ var _getTag = (getTag);

/***/ }),

/***/ 7704:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _initCloneObject; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(3648);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseCreate.js


/** Built-in value references. */
var objectCreate = Object.create;

/**
 * The base implementation of `_.create` without support for assigning
 * properties to the created object.
 *
 * @private
 * @param {Object} proto The object to inherit from.
 * @returns {Object} Returns the new object.
 */
var baseCreate = function () {
  function object() {}
  return function (proto) {
    if (!(0,isObject/* default */.Z)(proto)) {
      return {};
    }
    if (objectCreate) {
      return objectCreate(proto);
    }
    object.prototype = proto;
    var result = new object();
    object.prototype = undefined;
    return result;
  };
}();
/* harmony default export */ var _baseCreate = (baseCreate);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getPrototype.js
var _getPrototype = __webpack_require__(6193);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isPrototype.js
var _isPrototype = __webpack_require__(5298);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_initCloneObject.js




/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneObject(object) {
  return typeof object.constructor == 'function' && !(0,_isPrototype/* default */.Z)(object) ? _baseCreate((0,_getPrototype/* default */.Z)(object)) : {};
}
/* harmony default export */ var _initCloneObject = (initCloneObject);

/***/ }),

/***/ 3374:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */
function isIndex(value, length) {
  var type = typeof value;
  length = length == null ? MAX_SAFE_INTEGER : length;
  return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
}
/* harmony default export */ __webpack_exports__.Z = (isIndex);

/***/ }),

/***/ 2863:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _eq_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9522);
/* harmony import */ var _isArrayLike_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6203);
/* harmony import */ var _isIndex_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3374);
/* harmony import */ var _isObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3648);





/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */
function isIterateeCall(value, index, object) {
  if (!(0,_isObject_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(object)) {
    return false;
  }
  var type = typeof index;
  if (type == 'number' ? (0,_isArrayLike_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(object) && (0,_isIndex_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(index, object.length) : type == 'string' && index in object) {
    return (0,_eq_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(object[index], value);
  }
  return false;
}
/* harmony default export */ __webpack_exports__.Z = (isIterateeCall);

/***/ }),

/***/ 5298:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/** Used for built-in method references. */
var objectProto = Object.prototype;

/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */
function isPrototype(value) {
  var Ctor = value && value.constructor,
    proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;
  return value === proto;
}
/* harmony default export */ __webpack_exports__.Z = (isPrototype);

/***/ }),

/***/ 2975:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3948);


/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z.process;

/** Used to access faster Node.js helpers. */
var nodeUtil = function () {
  try {
    // Use `util.types` for Node.js 10+.
    var types = freeModule && freeModule.require && freeModule.require('util').types;
    if (types) {
      return types;
    }

    // Legacy `process.binding('util')` for Node.js < 10.
    return freeProcess && freeProcess.binding && freeProcess.binding('util');
  } catch (e) {}
}();
/* harmony default export */ __webpack_exports__.Z = (nodeUtil);

/***/ }),

/***/ 4565:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */
function overArg(func, transform) {
  return function (arg) {
    return func(transform(arg));
  };
}
/* harmony default export */ __webpack_exports__.Z = (overArg);

/***/ }),

/***/ 5724:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _overRest; }
});

;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_apply.js
/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */
function apply(func, thisArg, args) {
  switch (args.length) {
    case 0:
      return func.call(thisArg);
    case 1:
      return func.call(thisArg, args[0]);
    case 2:
      return func.call(thisArg, args[0], args[1]);
    case 3:
      return func.call(thisArg, args[0], args[1], args[2]);
  }
  return func.apply(thisArg, args);
}
/* harmony default export */ var _apply = (apply);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_overRest.js


/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;

/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */
function overRest(func, start, transform) {
  start = nativeMax(start === undefined ? func.length - 1 : start, 0);
  return function () {
    var args = arguments,
      index = -1,
      length = nativeMax(args.length - start, 0),
      array = Array(length);
    while (++index < length) {
      array[index] = args[start + index];
    }
    index = -1;
    var otherArgs = Array(start + 1);
    while (++index < start) {
      otherArgs[index] = args[index];
    }
    otherArgs[start] = transform(array);
    return _apply(func, this, otherArgs);
  };
}
/* harmony default export */ var _overRest = (overRest);

/***/ }),

/***/ 8751:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3948);


/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;

/** Used as a reference to the global object. */
var root = _freeGlobal_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z || freeSelf || Function('return this')();
/* harmony default export */ __webpack_exports__.Z = (root);

/***/ }),

/***/ 94:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */
function setToArray(set) {
  var index = -1,
    result = Array(set.size);
  set.forEach(function (value) {
    result[++index] = value;
  });
  return result;
}
/* harmony default export */ __webpack_exports__.Z = (setToArray);

/***/ }),

/***/ 7174:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _setToString; }
});

;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/constant.js
/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */
function constant(value) {
  return function () {
    return value;
  };
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_constant = (constant);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_defineProperty.js
var _defineProperty = __webpack_require__(7656);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/identity.js
var identity = __webpack_require__(5621);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseSetToString.js




/**
 * The base implementation of `setToString` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var baseSetToString = !_defineProperty/* default */.Z ? identity/* default */.Z : function (func, string) {
  return (0,_defineProperty/* default */.Z)(func, 'toString', {
    'configurable': true,
    'enumerable': false,
    'value': _lodash_es_4_17_21_lodash_es_constant(string),
    'writable': true
  });
};
/* harmony default export */ var _baseSetToString = (baseSetToString);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_shortOut.js
/** Used to detect hot functions by number of calls within a span of milliseconds. */
var HOT_COUNT = 800,
  HOT_SPAN = 16;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeNow = Date.now;

/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */
function shortOut(func) {
  var count = 0,
    lastCalled = 0;
  return function () {
    var stamp = nativeNow(),
      remaining = HOT_SPAN - (stamp - lastCalled);
    lastCalled = stamp;
    if (remaining > 0) {
      if (++count >= HOT_COUNT) {
        return arguments[0];
      }
    } else {
      count = 0;
    }
    return func.apply(undefined, arguments);
  };
}
/* harmony default export */ var _shortOut = (shortOut);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_setToString.js



/**
 * Sets the `toString` method of `func` to return `string`.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */
var setToString = _shortOut(_baseSetToString);
/* harmony default export */ var _setToString = (setToString);

/***/ }),

/***/ 3631:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/** Used for built-in method references. */
var funcProto = Function.prototype;

/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */
function toSource(func) {
  if (func != null) {
    try {
      return funcToString.call(func);
    } catch (e) {}
    try {
      return func + '';
    } catch (e) {}
  }
  return '';
}
/* harmony default export */ __webpack_exports__.Z = (toSource);

/***/ }),

/***/ 5648:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _assignValue_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6349);
/* harmony import */ var _copyObject_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7713);
/* harmony import */ var _createAssigner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9755);
/* harmony import */ var _isArrayLike_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6203);
/* harmony import */ var _isPrototype_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5298);
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(420);







/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Assigns own enumerable string keyed properties of source objects to the
 * destination object. Source objects are applied from left to right.
 * Subsequent sources overwrite property assignments of previous sources.
 *
 * **Note:** This method mutates `object` and is loosely based on
 * [`Object.assign`](https://mdn.io/Object/assign).
 *
 * @static
 * @memberOf _
 * @since 0.10.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @see _.assignIn
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * function Bar() {
 *   this.c = 3;
 * }
 *
 * Foo.prototype.b = 2;
 * Bar.prototype.d = 4;
 *
 * _.assign({ 'a': 0 }, new Foo, new Bar);
 * // => { 'a': 1, 'c': 3 }
 */
var assign = (0,_createAssigner_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(function (object, source) {
  if ((0,_isPrototype_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(source) || (0,_isArrayLike_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(source)) {
    (0,_copyObject_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(source, (0,_keys_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(source), object);
    return;
  }
  for (var key in source) {
    if (hasOwnProperty.call(source, key)) {
      (0,_assignValue_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(object, key, source[key]);
    }
  }
});
/* harmony default export */ __webpack_exports__.Z = (assign);

/***/ }),

/***/ 3557:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_cloneDeep; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Stack.js + 5 modules
var _Stack = __webpack_require__(3306);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayEach.js
/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */
function arrayEach(array, iteratee) {
  var index = -1,
    length = array == null ? 0 : array.length;
  while (++index < length) {
    if (iteratee(array[index], index, array) === false) {
      break;
    }
  }
  return array;
}
/* harmony default export */ var _arrayEach = (arrayEach);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_assignValue.js
var _assignValue = __webpack_require__(6349);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_copyObject.js
var _copyObject = __webpack_require__(7713);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/keys.js + 2 modules
var keys = __webpack_require__(420);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseAssign.js



/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssign(object, source) {
  return object && (0,_copyObject/* default */.Z)(source, (0,keys/* default */.Z)(source), object);
}
/* harmony default export */ var _baseAssign = (baseAssign);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/keysIn.js + 2 modules
var keysIn = __webpack_require__(964);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseAssignIn.js



/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */
function baseAssignIn(object, source) {
  return object && (0,_copyObject/* default */.Z)(source, (0,keysIn/* default */.Z)(source), object);
}
/* harmony default export */ var _baseAssignIn = (baseAssignIn);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneBuffer.js
var _cloneBuffer = __webpack_require__(8860);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_copyArray.js
var _copyArray = __webpack_require__(6043);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getSymbols.js + 1 modules
var _getSymbols = __webpack_require__(1850);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_copySymbols.js



/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbols(source, object) {
  return (0,_copyObject/* default */.Z)(source, (0,_getSymbols/* default */.Z)(source), object);
}
/* harmony default export */ var _copySymbols = (copySymbols);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getSymbolsIn.js
var _getSymbolsIn = __webpack_require__(4854);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_copySymbolsIn.js



/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */
function copySymbolsIn(source, object) {
  return (0,_copyObject/* default */.Z)(source, (0,_getSymbolsIn/* default */.Z)(source), object);
}
/* harmony default export */ var _copySymbolsIn = (copySymbolsIn);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getAllKeys.js
var _getAllKeys = __webpack_require__(1697);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getAllKeysIn.js
var _getAllKeysIn = __webpack_require__(3847);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_getTag.js + 3 modules
var _getTag = __webpack_require__(5063);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_initCloneArray.js
/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var _initCloneArray_hasOwnProperty = objectProto.hasOwnProperty;

/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */
function initCloneArray(array) {
  var length = array.length,
    result = new array.constructor(length);

  // Add properties assigned by `RegExp#exec`.
  if (length && typeof array[0] == 'string' && _initCloneArray_hasOwnProperty.call(array, 'index')) {
    result.index = array.index;
    result.input = array.input;
  }
  return result;
}
/* harmony default export */ var _initCloneArray = (initCloneArray);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneArrayBuffer.js
var _cloneArrayBuffer = __webpack_require__(6830);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneDataView.js


/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */
function cloneDataView(dataView, isDeep) {
  var buffer = isDeep ? (0,_cloneArrayBuffer/* default */.Z)(dataView.buffer) : dataView.buffer;
  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
}
/* harmony default export */ var _cloneDataView = (cloneDataView);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneRegExp.js
/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;

/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */
function cloneRegExp(regexp) {
  var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  result.lastIndex = regexp.lastIndex;
  return result;
}
/* harmony default export */ var _cloneRegExp = (cloneRegExp);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_Symbol.js
var _Symbol = __webpack_require__(7462);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneSymbol.js


/** Used to convert symbols to primitives and strings. */
var symbolProto = _Symbol/* default */.Z ? _Symbol/* default */.Z.prototype : undefined,
  symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;

/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */
function cloneSymbol(symbol) {
  return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}
/* harmony default export */ var _cloneSymbol = (cloneSymbol);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_cloneTypedArray.js
var _cloneTypedArray = __webpack_require__(1617);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_initCloneByTag.js






/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
  dateTag = '[object Date]',
  mapTag = '[object Map]',
  numberTag = '[object Number]',
  regexpTag = '[object RegExp]',
  setTag = '[object Set]',
  stringTag = '[object String]',
  symbolTag = '[object Symbol]';
var arrayBufferTag = '[object ArrayBuffer]',
  dataViewTag = '[object DataView]',
  float32Tag = '[object Float32Array]',
  float64Tag = '[object Float64Array]',
  int8Tag = '[object Int8Array]',
  int16Tag = '[object Int16Array]',
  int32Tag = '[object Int32Array]',
  uint8Tag = '[object Uint8Array]',
  uint8ClampedTag = '[object Uint8ClampedArray]',
  uint16Tag = '[object Uint16Array]',
  uint32Tag = '[object Uint32Array]';

/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */
function initCloneByTag(object, tag, isDeep) {
  var Ctor = object.constructor;
  switch (tag) {
    case arrayBufferTag:
      return (0,_cloneArrayBuffer/* default */.Z)(object);
    case boolTag:
    case dateTag:
      return new Ctor(+object);
    case dataViewTag:
      return _cloneDataView(object, isDeep);
    case float32Tag:
    case float64Tag:
    case int8Tag:
    case int16Tag:
    case int32Tag:
    case uint8Tag:
    case uint8ClampedTag:
    case uint16Tag:
    case uint32Tag:
      return (0,_cloneTypedArray/* default */.Z)(object, isDeep);
    case mapTag:
      return new Ctor();
    case numberTag:
    case stringTag:
      return new Ctor(object);
    case regexpTag:
      return _cloneRegExp(object);
    case setTag:
      return new Ctor();
    case symbolTag:
      return _cloneSymbol(object);
  }
}
/* harmony default export */ var _initCloneByTag = (initCloneByTag);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_initCloneObject.js + 1 modules
var _initCloneObject = __webpack_require__(7704);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArray.js
var isArray = __webpack_require__(4263);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js + 1 modules
var isBuffer = __webpack_require__(9131);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObjectLike.js
var isObjectLike = __webpack_require__(2096);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsMap.js



/** `Object#toString` result references. */
var _baseIsMap_mapTag = '[object Map]';

/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */
function baseIsMap(value) {
  return (0,isObjectLike/* default */.Z)(value) && (0,_getTag/* default */.Z)(value) == _baseIsMap_mapTag;
}
/* harmony default export */ var _baseIsMap = (baseIsMap);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseUnary.js
var _baseUnary = __webpack_require__(6481);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_nodeUtil.js
var _nodeUtil = __webpack_require__(2975);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isMap.js




/* Node.js helper references. */
var nodeIsMap = _nodeUtil/* default */.Z && _nodeUtil/* default */.Z.isMap;

/**
 * Checks if `value` is classified as a `Map` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 * @example
 *
 * _.isMap(new Map);
 * // => true
 *
 * _.isMap(new WeakMap);
 * // => false
 */
var isMap = nodeIsMap ? (0,_baseUnary/* default */.Z)(nodeIsMap) : _baseIsMap;
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isMap = (isMap);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(3648);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsSet.js



/** `Object#toString` result references. */
var _baseIsSet_setTag = '[object Set]';

/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */
function baseIsSet(value) {
  return (0,isObjectLike/* default */.Z)(value) && (0,_getTag/* default */.Z)(value) == _baseIsSet_setTag;
}
/* harmony default export */ var _baseIsSet = (baseIsSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isSet.js




/* Node.js helper references. */
var nodeIsSet = _nodeUtil/* default */.Z && _nodeUtil/* default */.Z.isSet;

/**
 * Checks if `value` is classified as a `Set` object.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 * @example
 *
 * _.isSet(new Set);
 * // => true
 *
 * _.isSet(new WeakSet);
 * // => false
 */
var isSet = nodeIsSet ? (0,_baseUnary/* default */.Z)(nodeIsSet) : _baseIsSet;
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isSet = (isSet);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseClone.js























/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
  CLONE_FLAT_FLAG = 2,
  CLONE_SYMBOLS_FLAG = 4;

/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
  arrayTag = '[object Array]',
  _baseClone_boolTag = '[object Boolean]',
  _baseClone_dateTag = '[object Date]',
  errorTag = '[object Error]',
  funcTag = '[object Function]',
  genTag = '[object GeneratorFunction]',
  _baseClone_mapTag = '[object Map]',
  _baseClone_numberTag = '[object Number]',
  objectTag = '[object Object]',
  _baseClone_regexpTag = '[object RegExp]',
  _baseClone_setTag = '[object Set]',
  _baseClone_stringTag = '[object String]',
  _baseClone_symbolTag = '[object Symbol]',
  weakMapTag = '[object WeakMap]';
var _baseClone_arrayBufferTag = '[object ArrayBuffer]',
  _baseClone_dataViewTag = '[object DataView]',
  _baseClone_float32Tag = '[object Float32Array]',
  _baseClone_float64Tag = '[object Float64Array]',
  _baseClone_int8Tag = '[object Int8Array]',
  _baseClone_int16Tag = '[object Int16Array]',
  _baseClone_int32Tag = '[object Int32Array]',
  _baseClone_uint8Tag = '[object Uint8Array]',
  _baseClone_uint8ClampedTag = '[object Uint8ClampedArray]',
  _baseClone_uint16Tag = '[object Uint16Array]',
  _baseClone_uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[_baseClone_arrayBufferTag] = cloneableTags[_baseClone_dataViewTag] = cloneableTags[_baseClone_boolTag] = cloneableTags[_baseClone_dateTag] = cloneableTags[_baseClone_float32Tag] = cloneableTags[_baseClone_float64Tag] = cloneableTags[_baseClone_int8Tag] = cloneableTags[_baseClone_int16Tag] = cloneableTags[_baseClone_int32Tag] = cloneableTags[_baseClone_mapTag] = cloneableTags[_baseClone_numberTag] = cloneableTags[objectTag] = cloneableTags[_baseClone_regexpTag] = cloneableTags[_baseClone_setTag] = cloneableTags[_baseClone_stringTag] = cloneableTags[_baseClone_symbolTag] = cloneableTags[_baseClone_uint8Tag] = cloneableTags[_baseClone_uint8ClampedTag] = cloneableTags[_baseClone_uint16Tag] = cloneableTags[_baseClone_uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;

/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */
function baseClone(value, bitmask, customizer, key, object, stack) {
  var result,
    isDeep = bitmask & CLONE_DEEP_FLAG,
    isFlat = bitmask & CLONE_FLAT_FLAG,
    isFull = bitmask & CLONE_SYMBOLS_FLAG;
  if (customizer) {
    result = object ? customizer(value, key, object, stack) : customizer(value);
  }
  if (result !== undefined) {
    return result;
  }
  if (!(0,isObject/* default */.Z)(value)) {
    return value;
  }
  var isArr = (0,isArray/* default */.Z)(value);
  if (isArr) {
    result = _initCloneArray(value);
    if (!isDeep) {
      return (0,_copyArray/* default */.Z)(value, result);
    }
  } else {
    var tag = (0,_getTag/* default */.Z)(value),
      isFunc = tag == funcTag || tag == genTag;
    if ((0,isBuffer/* default */.Z)(value)) {
      return (0,_cloneBuffer/* default */.Z)(value, isDeep);
    }
    if (tag == objectTag || tag == argsTag || isFunc && !object) {
      result = isFlat || isFunc ? {} : (0,_initCloneObject/* default */.Z)(value);
      if (!isDeep) {
        return isFlat ? _copySymbolsIn(value, _baseAssignIn(result, value)) : _copySymbols(value, _baseAssign(result, value));
      }
    } else {
      if (!cloneableTags[tag]) {
        return object ? value : {};
      }
      result = _initCloneByTag(value, tag, isDeep);
    }
  }
  // Check for circular references and return its corresponding clone.
  stack || (stack = new _Stack/* default */.Z());
  var stacked = stack.get(value);
  if (stacked) {
    return stacked;
  }
  stack.set(value, result);
  if (_lodash_es_4_17_21_lodash_es_isSet(value)) {
    value.forEach(function (subValue) {
      result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
    });
  } else if (_lodash_es_4_17_21_lodash_es_isMap(value)) {
    value.forEach(function (subValue, key) {
      result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
    });
  }
  var keysFunc = isFull ? isFlat ? _getAllKeysIn/* default */.Z : _getAllKeys/* default */.Z : isFlat ? keysIn/* default */.Z : keys/* default */.Z;
  var props = isArr ? undefined : keysFunc(value);
  _arrayEach(props || value, function (subValue, key) {
    if (props) {
      key = subValue;
      subValue = value[key];
    }
    // Recursively populate clone (susceptible to call stack limits).
    (0,_assignValue/* default */.Z)(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  });
  return result;
}
/* harmony default export */ var _baseClone = (baseClone);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/cloneDeep.js


/** Used to compose bitmasks for cloning. */
var cloneDeep_CLONE_DEEP_FLAG = 1,
  cloneDeep_CLONE_SYMBOLS_FLAG = 4;

/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */
function cloneDeep(value) {
  return _baseClone(value, cloneDeep_CLONE_DEEP_FLAG | cloneDeep_CLONE_SYMBOLS_FLAG);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_cloneDeep = (cloneDeep);

/***/ }),

/***/ 5573:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_debounce; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(3648);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_root.js
var _root = __webpack_require__(8751);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/now.js


/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */
var now = function now() {
  return _root/* default */.Z.Date.now();
};
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_now = (now);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toNumber.js + 2 modules
var toNumber = __webpack_require__(6993);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/debounce.js




/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
  nativeMin = Math.min;

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */
function debounce(func, wait, options) {
  var lastArgs,
    lastThis,
    maxWait,
    result,
    timerId,
    lastCallTime,
    lastInvokeTime = 0,
    leading = false,
    maxing = false,
    trailing = true;
  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  wait = (0,toNumber/* default */.Z)(wait) || 0;
  if ((0,isObject/* default */.Z)(options)) {
    leading = !!options.leading;
    maxing = 'maxWait' in options;
    maxWait = maxing ? nativeMax((0,toNumber/* default */.Z)(options.maxWait) || 0, wait) : maxWait;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }
  function invokeFunc(time) {
    var args = lastArgs,
      thisArg = lastThis;
    lastArgs = lastThis = undefined;
    lastInvokeTime = time;
    result = func.apply(thisArg, args);
    return result;
  }
  function leadingEdge(time) {
    // Reset any `maxWait` timer.
    lastInvokeTime = time;
    // Start the timer for the trailing edge.
    timerId = setTimeout(timerExpired, wait);
    // Invoke the leading edge.
    return leading ? invokeFunc(time) : result;
  }
  function remainingWait(time) {
    var timeSinceLastCall = time - lastCallTime,
      timeSinceLastInvoke = time - lastInvokeTime,
      timeWaiting = wait - timeSinceLastCall;
    return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
  }
  function shouldInvoke(time) {
    var timeSinceLastCall = time - lastCallTime,
      timeSinceLastInvoke = time - lastInvokeTime;

    // Either this is the first call, activity has stopped and we're at the
    // trailing edge, the system time has gone backwards and we're treating
    // it as the trailing edge, or we've hit the `maxWait` limit.
    return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
  }
  function timerExpired() {
    var time = _lodash_es_4_17_21_lodash_es_now();
    if (shouldInvoke(time)) {
      return trailingEdge(time);
    }
    // Restart the timer.
    timerId = setTimeout(timerExpired, remainingWait(time));
  }
  function trailingEdge(time) {
    timerId = undefined;

    // Only invoke if we have `lastArgs` which means `func` has been
    // debounced at least once.
    if (trailing && lastArgs) {
      return invokeFunc(time);
    }
    lastArgs = lastThis = undefined;
    return result;
  }
  function cancel() {
    if (timerId !== undefined) {
      clearTimeout(timerId);
    }
    lastInvokeTime = 0;
    lastArgs = lastCallTime = lastThis = timerId = undefined;
  }
  function flush() {
    return timerId === undefined ? result : trailingEdge(_lodash_es_4_17_21_lodash_es_now());
  }
  function debounced() {
    var time = _lodash_es_4_17_21_lodash_es_now(),
      isInvoking = shouldInvoke(time);
    lastArgs = arguments;
    lastThis = this;
    lastCallTime = time;
    if (isInvoking) {
      if (timerId === undefined) {
        return leadingEdge(lastCallTime);
      }
      if (maxing) {
        // Handle invocations in a tight loop.
        clearTimeout(timerId);
        timerId = setTimeout(timerExpired, wait);
        return invokeFunc(lastCallTime);
      }
    }
    if (timerId === undefined) {
      timerId = setTimeout(timerExpired, wait);
    }
    return result;
  }
  debounced.cancel = cancel;
  debounced.flush = flush;
  return debounced;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_debounce = (debounce);

/***/ }),

/***/ 9522:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */
function eq(value, other) {
  return value === other || value !== value && other !== other;
}
/* harmony default export */ __webpack_exports__.Z = (eq);

/***/ }),

/***/ 5621:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */
function identity(value) {
  return value;
}
/* harmony default export */ __webpack_exports__.Z = (identity);

/***/ }),

/***/ 7989:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_isArguments; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGetTag.js + 2 modules
var _baseGetTag = __webpack_require__(1837);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObjectLike.js
var isObjectLike = __webpack_require__(2096);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsArguments.js



/** `Object#toString` result references. */
var argsTag = '[object Arguments]';

/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */
function baseIsArguments(value) {
  return (0,isObjectLike/* default */.Z)(value) && (0,_baseGetTag/* default */.Z)(value) == argsTag;
}
/* harmony default export */ var _baseIsArguments = (baseIsArguments);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArguments.js



/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var isArguments_hasOwnProperty = objectProto.hasOwnProperty;

/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;

/**
 * Checks if `value` is likely an `arguments` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 *  else `false`.
 * @example
 *
 * _.isArguments(function() { return arguments; }());
 * // => true
 *
 * _.isArguments([1, 2, 3]);
 * // => false
 */
var isArguments = _baseIsArguments(function () {
  return arguments;
}()) ? _baseIsArguments : function (value) {
  return (0,isObjectLike/* default */.Z)(value) && isArguments_hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
};
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isArguments = (isArguments);

/***/ }),

/***/ 4263:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var isArray = Array.isArray;
/* harmony default export */ __webpack_exports__.Z = (isArray);

/***/ }),

/***/ 6203:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _isFunction_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5496);
/* harmony import */ var _isLength_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3798);



/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */
function isArrayLike(value) {
  return value != null && (0,_isLength_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(value.length) && !(0,_isFunction_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(value);
}
/* harmony default export */ __webpack_exports__.Z = (isArrayLike);

/***/ }),

/***/ 9131:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_isBuffer; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_root.js
var _root = __webpack_require__(8751);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/stubFalse.js
/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */
function stubFalse() {
  return false;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_stubFalse = (stubFalse);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isBuffer.js



/** Detect free variable `exports`. */
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;

/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;

/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;

/** Built-in value references. */
var Buffer = moduleExports ? _root/* default */.Z.Buffer : undefined;

/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;

/**
 * Checks if `value` is a buffer.
 *
 * @static
 * @memberOf _
 * @since 4.3.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
 * @example
 *
 * _.isBuffer(new Buffer(2));
 * // => true
 *
 * _.isBuffer(new Uint8Array(2));
 * // => false
 */
var isBuffer = nativeIsBuffer || _lodash_es_4_17_21_lodash_es_stubFalse;
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isBuffer = (isBuffer);

/***/ }),

/***/ 5496:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1837);
/* harmony import */ var _isObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3648);



/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
  funcTag = '[object Function]',
  genTag = '[object GeneratorFunction]',
  proxyTag = '[object Proxy]';

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */
function isFunction(value) {
  if (!(0,_isObject_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(value)) {
    return false;
  }
  // The use of `Object#toString` avoids issues with the `typeof` operator
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
  var tag = (0,_baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(value);
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}
/* harmony default export */ __webpack_exports__.Z = (isFunction);

/***/ }),

/***/ 3798:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */
function isLength(value) {
  return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
/* harmony default export */ __webpack_exports__.Z = (isLength);

/***/ }),

/***/ 3648:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */
function isObject(value) {
  var type = typeof value;
  return value != null && (type == 'object' || type == 'function');
}
/* harmony default export */ __webpack_exports__.Z = (isObject);

/***/ }),

/***/ 2096:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */
function isObjectLike(value) {
  return value != null && typeof value == 'object';
}
/* harmony default export */ __webpack_exports__.Z = (isObjectLike);

/***/ }),

/***/ 3550:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1837);
/* harmony import */ var _isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2096);



/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */
function isSymbol(value) {
  return typeof value == 'symbol' || (0,_isObjectLike_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(value) && (0,_baseGetTag_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(value) == symbolTag;
}
/* harmony default export */ __webpack_exports__.Z = (isSymbol);

/***/ }),

/***/ 6957:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_isTypedArray; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseGetTag.js + 2 modules
var _baseGetTag = __webpack_require__(1837);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isLength.js
var isLength = __webpack_require__(3798);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObjectLike.js
var isObjectLike = __webpack_require__(2096);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseIsTypedArray.js




/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
  arrayTag = '[object Array]',
  boolTag = '[object Boolean]',
  dateTag = '[object Date]',
  errorTag = '[object Error]',
  funcTag = '[object Function]',
  mapTag = '[object Map]',
  numberTag = '[object Number]',
  objectTag = '[object Object]',
  regexpTag = '[object RegExp]',
  setTag = '[object Set]',
  stringTag = '[object String]',
  weakMapTag = '[object WeakMap]';
var arrayBufferTag = '[object ArrayBuffer]',
  dataViewTag = '[object DataView]',
  float32Tag = '[object Float32Array]',
  float64Tag = '[object Float64Array]',
  int8Tag = '[object Int8Array]',
  int16Tag = '[object Int16Array]',
  int32Tag = '[object Int32Array]',
  uint8Tag = '[object Uint8Array]',
  uint8ClampedTag = '[object Uint8ClampedArray]',
  uint16Tag = '[object Uint16Array]',
  uint32Tag = '[object Uint32Array]';

/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;

/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */
function baseIsTypedArray(value) {
  return (0,isObjectLike/* default */.Z)(value) && (0,isLength/* default */.Z)(value.length) && !!typedArrayTags[(0,_baseGetTag/* default */.Z)(value)];
}
/* harmony default export */ var _baseIsTypedArray = (baseIsTypedArray);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseUnary.js
var _baseUnary = __webpack_require__(6481);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_nodeUtil.js
var _nodeUtil = __webpack_require__(2975);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isTypedArray.js




/* Node.js helper references. */
var nodeIsTypedArray = _nodeUtil/* default */.Z && _nodeUtil/* default */.Z.isTypedArray;

/**
 * Checks if `value` is classified as a typed array.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 * @example
 *
 * _.isTypedArray(new Uint8Array);
 * // => true
 *
 * _.isTypedArray([]);
 * // => false
 */
var isTypedArray = nodeIsTypedArray ? (0,_baseUnary/* default */.Z)(nodeIsTypedArray) : _baseIsTypedArray;
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_isTypedArray = (isTypedArray);

/***/ }),

/***/ 420:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_keys; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayLikeKeys.js + 1 modules
var _arrayLikeKeys = __webpack_require__(4700);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isPrototype.js
var _isPrototype = __webpack_require__(5298);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_overArg.js
var _overArg = __webpack_require__(4565);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_nativeKeys.js


/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeKeys = (0,_overArg/* default */.Z)(Object.keys, Object);
/* harmony default export */ var _nativeKeys = (nativeKeys);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseKeys.js



/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var _baseKeys_hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeys(object) {
  if (!(0,_isPrototype/* default */.Z)(object)) {
    return _nativeKeys(object);
  }
  var result = [];
  for (var key in Object(object)) {
    if (_baseKeys_hasOwnProperty.call(object, key) && key != 'constructor') {
      result.push(key);
    }
  }
  return result;
}
/* harmony default export */ var _baseKeys = (baseKeys);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLike.js
var isArrayLike = __webpack_require__(6203);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/keys.js




/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */
function keys(object) {
  return (0,isArrayLike/* default */.Z)(object) ? (0,_arrayLikeKeys/* default */.Z)(object) : _baseKeys(object);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_keys = (keys);

/***/ }),

/***/ 964:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_keysIn; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_arrayLikeKeys.js + 1 modules
var _arrayLikeKeys = __webpack_require__(4700);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(3648);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_isPrototype.js
var _isPrototype = __webpack_require__(5298);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_nativeKeysIn.js
/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function nativeKeysIn(object) {
  var result = [];
  if (object != null) {
    for (var key in Object(object)) {
      result.push(key);
    }
  }
  return result;
}
/* harmony default export */ var _nativeKeysIn = (nativeKeysIn);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseKeysIn.js




/** Used for built-in method references. */
var objectProto = Object.prototype;

/** Used to check objects for own properties. */
var _baseKeysIn_hasOwnProperty = objectProto.hasOwnProperty;

/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */
function baseKeysIn(object) {
  if (!(0,isObject/* default */.Z)(object)) {
    return _nativeKeysIn(object);
  }
  var isProto = (0,_isPrototype/* default */.Z)(object),
    result = [];
  for (var key in object) {
    if (!(key == 'constructor' && (isProto || !_baseKeysIn_hasOwnProperty.call(object, key)))) {
      result.push(key);
    }
  }
  return result;
}
/* harmony default export */ var _baseKeysIn = (baseKeysIn);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isArrayLike.js
var isArrayLike = __webpack_require__(6203);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/keysIn.js




/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */
function keysIn(object) {
  return (0,isArrayLike/* default */.Z)(object) ? (0,_arrayLikeKeys/* default */.Z)(object, true) : _baseKeysIn(object);
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_keysIn = (keysIn);

/***/ }),

/***/ 8027:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * This method returns `undefined`.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Util
 * @example
 *
 * _.times(2, _.noop);
 * // => [undefined, undefined]
 */
function noop() {
  // No operation performed.
}
/* harmony default export */ __webpack_exports__.Z = (noop);

/***/ }),

/***/ 2322:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__) {

"use strict";
/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */
function stubArray() {
  return [];
}
/* harmony default export */ __webpack_exports__.Z = (stubArray);

/***/ }),

/***/ 1812:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _debounce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5573);
/* harmony import */ var _isObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3648);



/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';

/**
 * Creates a throttled function that only invokes `func` at most once per
 * every `wait` milliseconds. The throttled function comes with a `cancel`
 * method to cancel delayed `func` invocations and a `flush` method to
 * immediately invoke them. Provide `options` to indicate whether `func`
 * should be invoked on the leading and/or trailing edge of the `wait`
 * timeout. The `func` is invoked with the last arguments provided to the
 * throttled function. Subsequent calls to the throttled function return the
 * result of the last `func` invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the throttled function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.throttle` and `_.debounce`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to throttle.
 * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=true]
 *  Specify invoking on the leading edge of the timeout.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new throttled function.
 * @example
 *
 * // Avoid excessively updating the position while scrolling.
 * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
 *
 * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
 * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
 * jQuery(element).on('click', throttled);
 *
 * // Cancel the trailing throttled invocation.
 * jQuery(window).on('popstate', throttled.cancel);
 */
function throttle(func, wait, options) {
  var leading = true,
    trailing = true;
  if (typeof func != 'function') {
    throw new TypeError(FUNC_ERROR_TEXT);
  }
  if ((0,_isObject_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(options)) {
    leading = 'leading' in options ? !!options.leading : leading;
    trailing = 'trailing' in options ? !!options.trailing : trailing;
  }
  return (0,_debounce_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(func, wait, {
    'leading': leading,
    'maxWait': wait,
    'trailing': trailing
  });
}
/* harmony default export */ __webpack_exports__.Z = (throttle);

/***/ }),

/***/ 1785:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_toInteger; }
});

// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toNumber.js + 2 modules
var toNumber = __webpack_require__(6993);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toFinite.js


/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
  MAX_INTEGER = 1.7976931348623157e+308;

/**
 * Converts `value` to a finite number.
 *
 * @static
 * @memberOf _
 * @since 4.12.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted number.
 * @example
 *
 * _.toFinite(3.2);
 * // => 3.2
 *
 * _.toFinite(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toFinite(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toFinite('3.2');
 * // => 3.2
 */
function toFinite(value) {
  if (!value) {
    return value === 0 ? value : 0;
  }
  value = (0,toNumber/* default */.Z)(value);
  if (value === INFINITY || value === -INFINITY) {
    var sign = value < 0 ? -1 : 1;
    return sign * MAX_INTEGER;
  }
  return value === value ? value : 0;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_toFinite = (toFinite);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toInteger.js


/**
 * Converts `value` to an integer.
 *
 * **Note:** This method is loosely based on
 * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toInteger(3.2);
 * // => 3
 *
 * _.toInteger(Number.MIN_VALUE);
 * // => 0
 *
 * _.toInteger(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toInteger('3.2');
 * // => 3
 */
function toInteger(value) {
  var result = _lodash_es_4_17_21_lodash_es_toFinite(value),
    remainder = result % 1;
  return result === result ? remainder ? result - remainder : result : 0;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_toInteger = (toInteger);

/***/ }),

/***/ 6993:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, {
  Z: function() { return /* binding */ _lodash_es_4_17_21_lodash_es_toNumber; }
});

;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_trimmedEndIndex.js
/** Used to match a single whitespace character. */
var reWhitespace = /\s/;

/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
 * character of `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the index of the last non-whitespace character.
 */
function trimmedEndIndex(string) {
  var index = string.length;
  while (index-- && reWhitespace.test(string.charAt(index))) {}
  return index;
}
/* harmony default export */ var _trimmedEndIndex = (trimmedEndIndex);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/_baseTrim.js


/** Used to match leading whitespace. */
var reTrimStart = /^\s+/;

/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */
function baseTrim(string) {
  return string ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '') : string;
}
/* harmony default export */ var _baseTrim = (baseTrim);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isObject.js
var isObject = __webpack_require__(3648);
// EXTERNAL MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/isSymbol.js
var isSymbol = __webpack_require__(3550);
;// CONCATENATED MODULE: ./node_modules/_lodash-es@4.17.21@lodash-es/toNumber.js




/** Used as references for various `Number` constants. */
var NAN = 0 / 0;

/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;

/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;

/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;

/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */
function toNumber(value) {
  if (typeof value == 'number') {
    return value;
  }
  if ((0,isSymbol/* default */.Z)(value)) {
    return NAN;
  }
  if ((0,isObject/* default */.Z)(value)) {
    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
    value = (0,isObject/* default */.Z)(other) ? other + '' : other;
  }
  if (typeof value != 'string') {
    return value === 0 ? value : +value;
  }
  value = _baseTrim(value);
  var isBinary = reIsBinary.test(value);
  return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
}
/* harmony default export */ var _lodash_es_4_17_21_lodash_es_toNumber = (toNumber);

/***/ }),

/***/ 3682:
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _baseToString_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4937);


/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */
function toString(value) {
  return value == null ? '' : (0,_baseToString_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(value);
}
/* harmony default export */ __webpack_exports__.Z = (toString);

/***/ })

/******/ 	});
/************************************************************************/
/******/ 	// The module cache
/******/ 	var __webpack_module_cache__ = {};
/******/ 	
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/ 		// Check if module is in cache
/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
/******/ 		if (cachedModule !== undefined) {
/******/ 			return cachedModule.exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = __webpack_module_cache__[moduleId] = {
/******/ 			// no module.id needed
/******/ 			// no module.loaded needed
/******/ 			exports: {}
/******/ 		};
/******/ 	
/******/ 		// Execute the module function
/******/ 		__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ 	
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/ 	
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = __webpack_modules__;
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/compat get default export */
/******/ 	!function() {
/******/ 		// getDefaultExport function for compatibility with non-harmony modules
/******/ 		__webpack_require__.n = function(module) {
/******/ 			var getter = module && module.__esModule ?
/******/ 				function() { return module['default']; } :
/******/ 				function() { return module; };
/******/ 			__webpack_require__.d(getter, { a: getter });
/******/ 			return getter;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/create fake namespace object */
/******/ 	!function() {
/******/ 		var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };
/******/ 		var leafPrototypes;
/******/ 		// create a fake namespace object
/******/ 		// mode & 1: value is a module id, require it
/******/ 		// mode & 2: merge all properties of value into the ns
/******/ 		// mode & 4: return value when already ns object
/******/ 		// mode & 16: return value when it's Promise-like
/******/ 		// mode & 8|1: behave like require
/******/ 		__webpack_require__.t = function(value, mode) {
/******/ 			if(mode & 1) value = this(value);
/******/ 			if(mode & 8) return value;
/******/ 			if(typeof value === 'object' && value) {
/******/ 				if((mode & 4) && value.__esModule) return value;
/******/ 				if((mode & 16) && typeof value.then === 'function') return value;
/******/ 			}
/******/ 			var ns = Object.create(null);
/******/ 			__webpack_require__.r(ns);
/******/ 			var def = {};
/******/ 			leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
/******/ 			for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
/******/ 				Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
/******/ 			}
/******/ 			def['default'] = function() { return value; };
/******/ 			__webpack_require__.d(ns, def);
/******/ 			return ns;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/define property getters */
/******/ 	!function() {
/******/ 		// define getter functions for harmony exports
/******/ 		__webpack_require__.d = function(exports, definition) {
/******/ 			for(var key in definition) {
/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 				}
/******/ 			}
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/ensure chunk */
/******/ 	!function() {
/******/ 		__webpack_require__.f = {};
/******/ 		// This file contains only the entry chunk.
/******/ 		// The chunk loading function for additional chunks
/******/ 		__webpack_require__.e = function(chunkId) {
/******/ 			return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
/******/ 				__webpack_require__.f[key](chunkId, promises);
/******/ 				return promises;
/******/ 			}, []));
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/get javascript chunk filename */
/******/ 	!function() {
/******/ 		// This function allow to reference async chunks
/******/ 		__webpack_require__.u = function(chunkId) {
/******/ 			// return url for filenames based on template
/******/ 			return "static/js/" + chunkId + "." + "47309b79" + ".chunk.js";
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/get mini-css chunk filename */
/******/ 	!function() {
/******/ 		// This function allow to reference async chunks
/******/ 		__webpack_require__.miniCssF = function(chunkId) {
/******/ 			// return url for filenames based on template
/******/ 			return undefined;
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/global */
/******/ 	!function() {
/******/ 		__webpack_require__.g = (function() {
/******/ 			if (typeof globalThis === 'object') return globalThis;
/******/ 			try {
/******/ 				return this || new Function('return this')();
/******/ 			} catch (e) {
/******/ 				if (typeof window === 'object') return window;
/******/ 			}
/******/ 		})();
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
/******/ 	!function() {
/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/load script */
/******/ 	!function() {
/******/ 		var inProgress = {};
/******/ 		var dataWebpackPrefix = "tingwu-chrome-extension:";
/******/ 		// loadScript function to load a script via script tag
/******/ 		__webpack_require__.l = function(url, done, key, chunkId) {
/******/ 			if(inProgress[url]) { inProgress[url].push(done); return; }
/******/ 			var script, needAttach;
/******/ 			if(key !== undefined) {
/******/ 				var scripts = document.getElementsByTagName("script");
/******/ 				for(var i = 0; i < scripts.length; i++) {
/******/ 					var s = scripts[i];
/******/ 					if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
/******/ 				}
/******/ 			}
/******/ 			if(!script) {
/******/ 				needAttach = true;
/******/ 				script = document.createElement('script');
/******/ 		
/******/ 				script.charset = 'utf-8';
/******/ 				script.timeout = 120;
/******/ 				if (__webpack_require__.nc) {
/******/ 					script.setAttribute("nonce", __webpack_require__.nc);
/******/ 				}
/******/ 				script.setAttribute("data-webpack", dataWebpackPrefix + key);
/******/ 				script.src = url;
/******/ 			}
/******/ 			inProgress[url] = [done];
/******/ 			var onScriptComplete = function(prev, event) {
/******/ 				// avoid mem leaks in IE.
/******/ 				script.onerror = script.onload = null;
/******/ 				clearTimeout(timeout);
/******/ 				var doneFns = inProgress[url];
/******/ 				delete inProgress[url];
/******/ 				script.parentNode && script.parentNode.removeChild(script);
/******/ 				doneFns && doneFns.forEach(function(fn) { return fn(event); });
/******/ 				if(prev) return prev(event);
/******/ 			}
/******/ 			var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
/******/ 			script.onerror = onScriptComplete.bind(null, script.onerror);
/******/ 			script.onload = onScriptComplete.bind(null, script.onload);
/******/ 			needAttach && document.head.appendChild(script);
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	!function() {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = function(exports) {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/publicPath */
/******/ 	!function() {
/******/ 		__webpack_require__.p = "/";
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/jsonp chunk loading */
/******/ 	!function() {
/******/ 		// no baseURI
/******/ 		
/******/ 		// object to store loaded and loading chunks
/******/ 		// undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ 		// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
/******/ 		var installedChunks = {
/******/ 			179: 0,
/******/ 			998: 0
/******/ 		};
/******/ 		
/******/ 		__webpack_require__.f.j = function(chunkId, promises) {
/******/ 				// JSONP chunk loading for javascript
/******/ 				var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
/******/ 				if(installedChunkData !== 0) { // 0 means "already installed".
/******/ 		
/******/ 					// a Promise means "currently loading".
/******/ 					if(installedChunkData) {
/******/ 						promises.push(installedChunkData[2]);
/******/ 					} else {
/******/ 						if(true) { // all chunks have JS
/******/ 							// setup Promise in chunk cache
/******/ 							var promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });
/******/ 							promises.push(installedChunkData[2] = promise);
/******/ 		
/******/ 							// start chunk loading
/******/ 							var url = __webpack_require__.p + __webpack_require__.u(chunkId);
/******/ 							// create error before stack unwound to get useful stacktrace later
/******/ 							var error = new Error();
/******/ 							var loadingEnded = function(event) {
/******/ 								if(__webpack_require__.o(installedChunks, chunkId)) {
/******/ 									installedChunkData = installedChunks[chunkId];
/******/ 									if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
/******/ 									if(installedChunkData) {
/******/ 										var errorType = event && (event.type === 'load' ? 'missing' : event.type);
/******/ 										var realSrc = event && event.target && event.target.src;
/******/ 										error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
/******/ 										error.name = 'ChunkLoadError';
/******/ 										error.type = errorType;
/******/ 										error.request = realSrc;
/******/ 										installedChunkData[1](error);
/******/ 									}
/******/ 								}
/******/ 							};
/******/ 							__webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
/******/ 						}
/******/ 					}
/******/ 				}
/******/ 		};
/******/ 		
/******/ 		// no prefetching
/******/ 		
/******/ 		// no preloaded
/******/ 		
/******/ 		// no HMR
/******/ 		
/******/ 		// no HMR manifest
/******/ 		
/******/ 		// no on chunks loaded
/******/ 		
/******/ 		// install a JSONP callback for chunk loading
/******/ 		var webpackJsonpCallback = function(parentChunkLoadingFunction, data) {
/******/ 			var chunkIds = data[0];
/******/ 			var moreModules = data[1];
/******/ 			var runtime = data[2];
/******/ 			// add "moreModules" to the modules object,
/******/ 			// then flag all "chunkIds" as loaded and fire callback
/******/ 			var moduleId, chunkId, i = 0;
/******/ 			if(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {
/******/ 				for(moduleId in moreModules) {
/******/ 					if(__webpack_require__.o(moreModules, moduleId)) {
/******/ 						__webpack_require__.m[moduleId] = moreModules[moduleId];
/******/ 					}
/******/ 				}
/******/ 				if(runtime) var result = runtime(__webpack_require__);
/******/ 			}
/******/ 			if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
/******/ 			for(;i < chunkIds.length; i++) {
/******/ 				chunkId = chunkIds[i];
/******/ 				if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ 					installedChunks[chunkId][0]();
/******/ 				}
/******/ 				installedChunks[chunkId] = 0;
/******/ 			}
/******/ 		
/******/ 		}
/******/ 		
/******/ 		var chunkLoadingGlobal = self["webpackChunktingwu_chrome_extension"] = self["webpackChunktingwu_chrome_extension"] || [];
/******/ 		chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
/******/ 		chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
/******/ 	}();
/******/ 	
/******/ 	/* webpack/runtime/nonce */
/******/ 	!function() {
/******/ 		__webpack_require__.nc = undefined;
/******/ 	}();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
!function() {
"use strict";

// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7921);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.22.5@@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(2171);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/index.js
var _react_18_2_0_react = __webpack_require__(9512);
// EXTERNAL MODULE: ./node_modules/_react-dom@18.2.0@react-dom/client.js
var client = __webpack_require__(545);
// EXTERNAL MODULE: ./src/components/index.ts + 359 modules
var components = __webpack_require__(5572);
;// CONCATENATED MODULE: ./src/reportWebVitals.ts
var reportWebVitals=function reportWebVitals(onPerfEntry){if(onPerfEntry&&onPerfEntry instanceof Function){__webpack_require__.e(/* import() */ 923).then(__webpack_require__.bind(__webpack_require__, 2923)).then(function(_ref){var getCLS=_ref.getCLS,getFID=_ref.getFID,getFCP=_ref.getFCP,getLCP=_ref.getLCP,getTTFB=_ref.getTTFB;getCLS(onPerfEntry);getFID(onPerfEntry);getFCP(onPerfEntry);getLCP(onPerfEntry);getTTFB(onPerfEntry);});}};/* harmony default export */ var src_reportWebVitals = (reportWebVitals);
// EXTERNAL MODULE: ./src/utils/index.ts
var utils = __webpack_require__(5340);
;// CONCATENATED MODULE: ./node_modules/_antd@4.24.10@antd/dist/antd.css
// extracted by mini-css-extract-plugin
/* harmony default export */ var antd = ({});
// EXTERNAL MODULE: ./src/index.css
var src = __webpack_require__(4676);
// EXTERNAL MODULE: ./node_modules/_react@18.2.0@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(9386);
;// CONCATENATED MODULE: ./src/index.tsx
function addElement(){return _addElement.apply(this,arguments);}function _addElement(){_addElement=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(){var tab;return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return (0,utils/* getCurrentTab */.nU)();case 2:tab=_context.sent;if(tab.id){chrome.tabs.sendMessage(tab.id,{type:'initElements'});}case 4:case"end":return _context.stop();}},_callee);}));return _addElement.apply(this,arguments);}function startRecord(_x){return _startRecord.apply(this,arguments);}function _startRecord(){_startRecord=(0,asyncToGenerator/* default */.Z)(/*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(enableMicphone){return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return chrome.runtime.sendMessage({type:'desktopCapture',payload:{enableMicphone:enableMicphone}});case 2:window.close();case 3:case"end":return _context2.stop();}},_callee2);}));return _startRecord.apply(this,arguments);}function init(){var root=client.createRoot(document.getElementById('root'));root.render(/*#__PURE__*/(0,jsx_runtime.jsx)(_react_18_2_0_react.StrictMode,{children:/*#__PURE__*/(0,jsx_runtime.jsx)(components/* Popup */.GI,{addElement:addElement,startRecord:startRecord})}));}init();// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
src_reportWebVitals();
}();
/******/ })()
;
//# sourceMappingURL=main.js.map