@para-ui/core 4.0.0-rc.4 → 4.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoBox/index.js +72 -85
- package/AutoTips/index.js +72 -95
- package/Badge/index.js +17 -16
- package/Breadcrumbs/index.js +57 -73
- package/Button/index.js +90 -118
- package/ButtonGroup/index.js +30 -33
- package/Carousel/index.js +29 -33
- package/Cascader/index.js +9 -10
- package/Checkbox/index.js +28 -35
- package/CheckboxGroup/index.js +43 -58
- package/Collapse/index.js +52 -49
- package/CollapseBox/index.js +65 -70
- package/CollapseLayout/index.js +106 -101
- package/ColorPicker/index.js +3 -3
- package/ComboSelect/index.js +260 -337
- package/ComboSelect/lang/en_US.d.ts +1 -0
- package/ComboSelect/lang/index.d.ts +2 -0
- package/ComboSelect/lang/zh_CN.d.ts +1 -0
- package/ComboSelect/utils.d.ts +6 -0
- package/Container/index.js +17 -21
- package/CopyText/index.js +50 -83
- package/DatePicker/index.js +24 -27
- package/Descriptions/index.js +50 -59
- package/Desktop/index.js +161 -180
- package/DragVerify/index.js +77 -113
- package/Drawer/index.js +80 -95
- package/Dropdown/index.js +3 -3
- package/DynamicMultiBox/index.js +222 -224
- package/DynamicMultiBox/interface.d.ts +7 -0
- package/Empty/index.js +26 -28
- package/Form/index.js +70 -74
- package/FormItem/index.js +18 -15
- package/FunctionModal/index.js +7 -14
- package/GlobalContext/index.js +17 -20
- package/Help/index.js +9 -12
- package/HelperText/index.js +11 -11
- package/InputLang/index.js +104 -124
- package/InputNumber/index.js +62 -81
- package/Label/index.js +19 -21
- package/Loading/index.js +11 -10
- package/Menu/index.js +302 -371
- package/Message/index.js +104 -113
- package/Modal/index.js +122 -148
- package/MultiBox/index.d.ts +5 -0
- package/MultiBox/index.js +111 -115
- package/Notification/index.js +105 -103
- package/OperateBtn/index.d.ts +3 -0
- package/OperateBtn/index.js +77 -107
- package/PageHeader/index.js +327 -406
- package/Pagination/index.js +107 -137
- package/ParauiProvider/index.js +20 -22
- package/PasswordRules/index.js +36 -40
- package/PopConfirm/index.js +60 -77
- package/Popover/index.js +12 -12
- package/Progress/index.js +72 -74
- package/Querying/index.js +22 -23
- package/README.md +2 -0
- package/Radio/index.js +27 -34
- package/RadioGroup/index.js +38 -52
- package/Search/index.js +34 -43
- package/Select/index.js +281 -345
- package/SelectInput/index.js +8 -13
- package/Selector/index.js +582 -796
- package/SelectorPicker/index.js +113 -134
- package/SingleBox/index.d.ts +5 -0
- package/SingleBox/index.js +92 -88
- package/Slider/index.js +46 -57
- package/Status/index.js +14 -13
- package/Stepper/index.js +24 -25
- package/Styles/theme.scss +9 -9
- package/Switch/index.js +32 -35
- package/Table/index.js +360 -494
- package/Tabs/index.js +100 -100
- package/Tag/index.js +64 -82
- package/TextEditor/index.js +78 -100
- package/TextField/index.js +142 -183
- package/TimePicker/index.js +29 -28
- package/Timeline/index.js +50 -47
- package/Title/index.js +32 -34
- package/ToggleButton/index.js +29 -29
- package/Tooltip/index.js +52 -56
- package/Transfer/index.js +117 -154
- package/Tree/index.js +9 -10
- package/Upload/index.js +125 -143
- package/Upload/interface.d.ts +2 -0
- package/_verture/{constant-0d9802f7.js → constant-5317fc89.js} +2 -2
- package/_verture/{index-5a7e2438.js → index-3cdaba96.js} +967 -934
- package/_verture/{index-b1f80962.js → index-4fafd0a0.js} +6 -8
- package/_verture/{index-024bbc9b.js → index-775ad32d.js} +29 -25
- package/_verture/{index-05f7bf11.js → index-c568f272.js} +2 -2
- package/_verture/{index-232d890b.js → index-d63bd287.js} +1 -1
- package/_verture/index-da9097d3.js +239 -0
- package/_verture/{index-9331b116.js → index-e0f9064d.js} +125 -134
- package/_verture/intl-f2f27722.js +69 -0
- package/_verture/{modalContext-736ff215.js → modalContext-8534f23d.js} +36 -64
- package/_verture/{slicedToArray-a8206399.js → slicedToArray-75fa4188.js} +15 -2
- package/_verture/{toConsumableArray-8f4c9589.js → toConsumableArray-c7a8028f.js} +1 -1
- package/_verture/{useFormatMessage-703f8b20.js → useFormatMessage-eb13cf56.js} +5 -4
- package/_verture/{useGlobalProps-1b846a65.js → useGlobalProps-1e416658.js} +4 -3
- package/_verture/{usePopupContainer-87febeb9.js → usePopupContainer-635f66f4.js} +16 -15
- package/_verture/{util-7e1fb1e2.js → util-82646c4f.js} +5 -4
- package/_verture/utils-c17b5265.js +97 -0
- package/index.js +24 -23
- package/locale/en-US.d.ts +1 -0
- package/locale/index.d.ts +2 -0
- package/locale/index.js +10 -8
- package/locale/zh-CN.d.ts +1 -0
- package/package.json +11 -10
- package/umd/AutoBox.js +9 -8
- package/umd/AutoTips.js +9 -8
- package/umd/Badge.js +1 -1
- package/umd/Breadcrumbs.js +9 -8
- package/umd/Button.js +9 -8
- package/umd/ButtonGroup.js +9 -8
- package/umd/Carousel.js +5 -5
- package/umd/Cascader.js +9 -8
- package/umd/Checkbox.js +9 -8
- package/umd/CheckboxGroup.js +9 -8
- package/umd/Collapse.js +8 -7
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +9 -8
- package/umd/Container.js +1 -1
- package/umd/CopyText.js +9 -8
- package/umd/DatePicker.js +9 -8
- package/umd/Descriptions.js +9 -8
- package/umd/Desktop.js +9 -8
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +9 -8
- package/umd/Dropdown.js +6 -5
- package/umd/DynamicMultiBox.js +11 -10
- package/umd/Empty.js +1 -1
- package/umd/Form.js +9 -8
- package/umd/FormItem.js +9 -8
- package/umd/FunctionModal.js +9 -8
- package/umd/GlobalContext.js +1 -1
- package/umd/Help.js +9 -8
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +9 -8
- package/umd/InputNumber.js +9 -8
- package/umd/Label.js +9 -8
- package/umd/Loading.js +4 -4
- package/umd/Menu.js +4 -4
- package/umd/Message.js +4 -4
- package/umd/Modal.js +9 -8
- package/umd/MultiBox.js +9 -8
- package/umd/Notification.js +8 -7
- package/umd/OperateBtn.js +9 -8
- package/umd/PageHeader.js +9 -8
- package/umd/Pagination.js +9 -8
- package/umd/ParauiProvider.js +1 -1
- package/umd/PasswordRules.js +4 -4
- package/umd/PopConfirm.js +9 -8
- package/umd/Popover.js +9 -8
- package/umd/Progress.js +5 -5
- package/umd/Querying.js +1 -1
- package/umd/Radio.js +9 -8
- package/umd/RadioGroup.js +9 -8
- package/umd/Search.js +9 -8
- package/umd/Select.js +9 -8
- package/umd/SelectInput.js +9 -8
- package/umd/Selector.js +9 -8
- package/umd/SelectorPicker.js +9 -8
- package/umd/SingleBox.js +9 -8
- package/umd/Slider.js +6 -5
- package/umd/Status.js +4 -4
- package/umd/Stepper.js +9 -8
- package/umd/Switch.js +9 -8
- package/umd/Table.js +9 -8
- package/umd/Tabs.js +9 -8
- package/umd/Tag.js +9 -8
- package/umd/TextEditor.js +22 -21
- package/umd/TextField.js +9 -8
- package/umd/TimePicker.js +9 -8
- package/umd/Timeline.js +1 -1
- package/umd/Title.js +9 -8
- package/umd/ToggleButton.js +9 -8
- package/umd/Tooltip.js +9 -8
- package/umd/Transfer.js +10 -9
- package/umd/Tree.js +9 -8
- package/umd/Upload.js +10 -9
- package/umd/locale.js +1 -1
- package/_verture/index-e9007d6a.js +0 -236
- package/_verture/intl-5c1ec055.js +0 -81
- package/_verture/unsupportedIterableToArray-cb478f24.js +0 -16
- package/_verture/utils-418da0a4.js +0 -73
- /package/_verture/{typeof-c310ee4a.js → typeof-b240b062.js} +0 -0
package/umd/Switch.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","react-dom","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("react-dom"),require("@paraview/lib")):e.ParaUI=t(e.react,e["react-dom"],e["@paraview/lib"])}(self,((e,t,n)=>(()=>{var r={18628:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s});var r=n(8156),o=n.n(r),i=n(69152),a=n(58543),c=n(58013),s=(Object.assign({},c.d.zh),o().createContext({language:(0,a.GetLanguage)(),intlFormat:function(e,t){return function(e,n){var r=(0,a.GetLanguage)();return(0,i.i)({ops:e,i18nData:{},lang:r,params:n,defI18nData:t})}},componentsProps:{}}))},58013:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var r={zh:{cancel:"取消",ok:"确定"},en:{cancel:"Cancel",ok:"Ok"}}},69152:(e,t,n)=>{"use strict";n.d(t,{i:()=>c});var r=n(72337);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){s=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=function(e,t){if(!t)return e;e=e.replace(/\"/g,'\\"');var n=/({[^{}]+})/g;return e.split(n).map((function(e){if(e.match(n)){var r=e.replace(/({|})/g,""),i=function(e,t,n){var r,i=e,a=o(t.replace(/\[(\d+)\]/g,".$1").split("."));try{for(a.s();!(r=a.n()).done;){var c=r.value;if(void 0===(i=Object(i)[c]))return n}}catch(e){a.e(e)}finally{a.f()}return i}(t,r);return void 0===i?r:i}return e}))},c=function(e){var t,n,o,i,c=e.ops,s=e.i18nData,l=e.lang,u=e.params,f=e.defI18nData;if("string"==typeof c)i=c;else if("object"===(0,r._)(c)){if("string"!=typeof c.id)return'i18n intl object "id" is missing';i=c.id}return void 0!==i&&void 0===(o=null===(t=s[l])||void 0===t?void 0:t[i])&&f&&(o=null===(n=f[l])||void 0===n?void 0:n[i]),"string"!=typeof o?"{".concat(i,"}"):a(o,u)}},72337:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{_:()=>r})},30465:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(85893),o=n(97435),i=function(e){return(0,r.jsx)(o.l,Object.assign({dataName:"Forbid",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"Forbid",transform:"translate(-185 -273)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(185 273)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M9.6,0a9.6,9.6,0,1,0,9.6,9.6A9.609,9.609,0,0,0,9.6,0m-8,9.6A7.959,7.959,0,0,1,3.595,4.331L14.433,15.959A7.985,7.985,0,0,1,1.6,9.6m14,5.269L4.767,3.24A7.986,7.986,0,0,1,15.6,14.868",transform:"translate(187.4 275.4)"})]}))})},e))}},61217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(85893),o=n(97435),i=function(e){return(0,r.jsx)(o.l,Object.assign({dataName:"LoadingF",viewBox:"0 0 24 24",path:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("g",Object.assign({id:"LoadingF",transform:"translate(-430 -2399)"},{children:[(0,r.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(430 2399)",fill:"none"}),(0,r.jsx)("path",{id:"icon",d:"M7.2,0H8.885L8.9.15h.089L9,.169h.081l.022,0h0L9.135.2h.007l.022,0h0L9.208.21h0l.007,0h0l.007,0h0L9.252.22h0l.007,0h0l.007,0h0l.007,0h0l.007,0h0l.007,0h0a9.618,9.618,0,0,1,6.676,5.448h0l.012.027h0l.012.026h0L16,5.756h0l0,.006h0l0,.007h0l0,.007h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.005h0l0,.005h0l0,.005h0l0,.005h0l0,.006h0l0,.006h0l0,.006h0l0,.005v0l0,.005h0l0,.006h0l0,.006h0L16.1,6V6L16.1,6h0l0,.006h0l0,.006h0l0,.005v0l0,.005v0l0,.005h0l0,.005h0l0,.005v0l0,.005h0l0,.006h0l0,.005h0l0,.005v0l0,.005v0l0,.005v0l0,.005h0l0,.005v0l0,0v0l0,0v0l0,.005v0l0,0v0l0,0v0l0,0v0l0,.005v0l0,0v0l0,0v0l0,.005v0l0,.005v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0v0l0,0,0,.007,0,.007,0,.007v0l0,0,0,.007,0,.007,0,.007v0l0,0,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007v0l0,.007,0,.007,0,.007,0,.007,0,.007,0,.007,0,.007v.014l0,.007,0,.007,0,.007,0,.007,0,.007v.066l0,0v0l0,0v.016l0,0v0l0,0V6.8l0,.005v0l0,.005v0l0,.005v0l0,.005v0l0,.005v0l0,.005v.016l0,.005v0l0,.005v0l0,.005v0l0,.005v0l0,.005v.016l0,.005h0l0,.006v0l0,.005v.009l0,.005v0l0,.006v0l0,.005v.014h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006v0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006v0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.007h0l0,.006h0l0,.006h0l0,.006h0l0,.006h0l0,.007h0l0,.007h0l0,.007h0l0,.007h0l0,.007h0l0,.007h0l0,.006h0l.005.021h0l0,.014h0l0,.007h0l0,.007h0a9.617,9.617,0,0,1,.29,2.338l-1.333,0A8.278,8.278,0,0,0,7.2,1.333V0Z",transform:"translate(434.8 2401.401)"})]}))})},e))}},97435:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(85893);
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,26 +12,27 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */!function(t
|
|
15
|
+
***************************************************************************** */!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('@charset "UTF-8";\n/**\n* @author Hanz\n* @date 2021/8/25 下午3:16\n* @description icons scss\n*/\n.paraui-v4-icon {\n width: 1em;\n height: 1em;\n fill: currentColor;\n display: inline-block;\n user-select: none;\n flex-shrink: 0;\n}\n.paraui-v4-icon-primary {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-icon-secondary {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-icon-thirdary {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-icon-info {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-icon-warn {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-icon-success {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-icon-error {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-small {\n font-size: 16px;\n}\n.paraui-v4-icon-medium {\n font-size: 18px;\n}\n.paraui-v4-icon-large {\n font-size: 20px;\n}');var o=function(e){var t,n,o=e.path,i=e.className,a=e.color,c=void 0===a?"info":a,s=e.size,l=void 0===s?"small":s,u=e.dataName,f=void 0===u?"":u,p=e.style,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["path","className","color","size","dataName","style"]),h="paraui-v4",v="primary"===c||"secondary"===c||"info"===c||"success"===c||"warn"===c||"error"===c;return(0,r.jsx)("svg",Object.assign({className:(n="".concat(h,"-icon"),n+=" svg-icon",i&&(n+=" "+i),v&&(n+=" ".concat(h,"-icon-").concat(c)),l&&(n+=" ".concat(h,"-icon-").concat(l)),n),viewBox:"0 0 1024 1024","data-name":f,style:(t=Object.assign({},p),c&&!v&&(t.color=c),t)},d,{children:o}))}},94184:(e,t)=>{var n;
|
|
16
16
|
/*!
|
|
17
17
|
Copyright (c) 2018 Jed Watson.
|
|
18
18
|
Licensed under the MIT License (MIT), see
|
|
19
19
|
http://jedwatson.github.io/classnames
|
|
20
|
-
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var
|
|
20
|
+
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},86010:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:()=>o})},7381:(e,t,n)=>{(t=n(23645)(!1)).push([e.id,".paraui-v4-help{display:inline-block;font-weight:500;color:#a1a8b3}.paraui-v4-help:hover{color:#2e65e6}.paraui-v4-help svg{font-size:inherit;color:inherit;font-size:16px}",""]),e.exports=t},84928:(e,t,n)=>{(t=n(23645)(!1)).push([e.id,".paraui-v4-label{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;font-size:14px;font-weight:400;color:#5c6573;margin-bottom:4px;display:inline-block;line-height:1.43;word-break:break-all}.paraui-v4-label>.label-required{margin-left:2px;color:#f44242}.paraui-v4-label>.paraui-v4-help{vertical-align:top;margin-left:4px}.paraui-v4-label>.paraui-v4-help svg{vertical-align:top;position:relative;top:2px}.paraui-v4-label.paraui-v4-label-line.paraui-v4-label-tooltip{border-bottom:1px dashed #a1a8b3;padding-bottom:2px}",""]),e.exports=t},66378:(e,t,n)=>{(t=n(23645)(!1)).push([e.id,'.paraui-v4-switch{position:relative;display:inline-block;width:32px;height:16px;vertical-align:middle;background-color:rgba(0,0,0,0);border:0;cursor:pointer;transition:all .2s;user-select:none}.paraui-v4-switch .component-switch{border:none;cursor:pointer}.paraui-v4-switch:before{position:absolute;top:0px;left:0;width:100%;height:16px;border-radius:8px;background-color:#d4dae3;content:"";transition:all .2s}a .paraui-v4-switch:focus{outline:0;box-shadow:none}.paraui-v4-switch.component-switch-checked:focus{box-shadow:none}.paraui-v4-switch:focus:hover{box-shadow:none}.paraui-v4-switch.component-switch-checked:before{background-color:#2e65e6}.paraui-v4-switch-loading *,.paraui-v4-switch.component-switch-disabled *{box-shadow:none}.paraui-v4-switch-loading .component-switch-inner::before,.paraui-v4-switch.component-switch-disabled .component-switch-inner::before{position:absolute;top:0px;left:0;width:100%;height:16px;background-color:rgba(255,255,255,.5);content:"";z-index:100}.paraui-v4-switch .component-switch-inner{display:block;margin:0 7px 0 25px;font-size:14px;transition:margin .2s}.paraui-v4-switch.component-switch-checked .component-switch-inner{margin:0 25px 0 7px}.paraui-v4-switch .component-switch-handle{position:absolute;top:2px;left:2px;width:12px;height:12px;transition:all .2s ease-in-out}.paraui-v4-switch .component-switch-handle::before{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#fff;border-radius:9px;box-shadow:none;transition:all .2s ease-in-out;content:""}.paraui-v4-switch.component-switch-checked .component-switch-handle{left:calc(100% - 14px)}.paraui-v4-switch.component-switch-checked .component-switch-handle::before{background-color:#fff}.paraui-v4-switch:not(.paraui-v4-switch-disabled):active .component-switch-handle::before{right:-30%;left:0}.paraui-v4-switch:not(.paraui-v4-switch-disabled):active.component-switch-checked .component-switch-handle::before{right:0;left:-30%}.paraui-v4-switch .component-switch-loading-icon{position:relative;top:1px;color:#2e65e6;font-size:10px;vertical-align:top;animation:switchLoadingCircle 1s infinite linear}.paraui-v4-switch.component-switch-checked .component-switch-loading-icon{color:#2e65e6}.paraui-v4-switch-small{min-width:28px;height:14px;line-height:14px}.paraui-v4-switch-small .component-switch-inner{margin:0 5px 0 18px;font-size:14px}.paraui-v4-switch-small .component-switch-handle{width:12px;height:12px;top:3px;left:2px}.paraui-v4-switch-small .component-switch-loading-icon{top:1.5px;font-size:9px}.paraui-v4-switch-small.component-switch-checked .component-switch-inner{margin:0 18px 0 5px}.paraui-v4-switch-small.component-switch-checked .component-switch-handle{left:calc(100% - 12px - 2px)}@keyframes switchLoadingCircle{100%{transform:rotate(360deg)}}.paraui-v4-switch-disabled::before{background-color:#e1e5ec}.paraui-v4-switch-disabled.component-switch-checked::before{background-color:#97b2f2}.component-label-box{display:flex;align-items:center}.component-label-box .sup-text{color:#5c6573;font-size:14px;margin-left:10px;line-height:16px}.component-label-box .sup-text>a{text-decoration:none;cursor:pointer;color:#2e65e6}.component-label-box .sup-text>a:hover{color:#5783eb}.paraui-v4-switch-label{display:inline-flex;align-items:flex-end}.paraui-v4-switch-label .component-disabled-text{color:#5c6573}.paraui-v4-switch-label .component-desc-text{margin-bottom:0;margin-right:10px;line-height:16px;color:#1d2126}.paraui-v4-switch-label .component-desc-text .paraui-v4-help{line-height:1}.paraui-v4-switch-label .component-desc-text .paraui-v4-help svg{top:0}.paraui-v4-switch-label .paraui-v4-label-text-container{display:flex;flex-direction:column}.paraui-v4-switch-desc-end{flex-direction:row-reverse}.paraui-v4-switch-desc-end .component-desc-text{margin-right:0}.component-switch-disabled>div:nth-child(1)::before{transition:all 2s ease-in-out}',""]),e.exports=t},9929:(e,t,n)=>{(t=n(23645)(!1)).push([e.id,".paraui-v4-tooltip{color:#fff;font-size:14px;line-height:1.5715;position:absolute;z-index:1500;display:block;width:max-content;visibility:visible}.paraui-v4-tooltip .component-tooltip-content{position:relative}.paraui-v4-tooltip.component-tooltip-hidden{display:none}.paraui-v4-tooltip .component-tooltip-inner{min-width:30px;min-height:32px;padding:5px 12px;color:#fff;text-align:left;text-decoration:none;word-break:break-all;background-color:rgba(29,33,38,.9);border-radius:4px;line-height:21px}.paraui-v4-tooltip .component-tooltip-inner .disabled-svg{font-size:16px;position:relative;top:3px;margin-right:4px;color:#fff}.component-tooltip-zoom-big-fast-enter,.component-tooltip-zoom-big-fast-appear{animation-duration:.1s;animation-fill-mode:both;animation-play-state:paused}.component-tooltip-zoom-big-fast-leave{animation-duration:.1s;animation-fill-mode:both;animation-play-state:paused}.component-tooltip-zoom-big-fast-enter.component-tooltip-zoom-big-fast-enter-active,.component-tooltip-zoom-big-fast-appear.component-tooltip-zoom-big-fast-appear-active{animation-name:componentTooltipZoomBigIn;animation-play-state:running}.component-tooltip-zoom-big-fast-leave.component-tooltip-zoom-big-fast-leave-active{animation-name:componentTooltipZoomBigOut;animation-play-state:running;pointer-events:none}.component-tooltip-zoom-big-fast-enter,.component-tooltip-zoom-big-fast-appear{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(0.08, 0.82, 0.17, 1)}.component-tooltip-zoom-big-fast-enter-prepare,.component-tooltip-zoom-big-fast-appear-prepare{transform:none}.component-tooltip-zoom-big-fast-leave{animation-timing-function:cubic-bezier(0.78, 0.14, 0.15, 0.86)}@keyframes componentTooltipZoomBigIn{0%{transform:scale(0.8);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes componentTooltipZoomBigOut{0%{transform:scale(1)}100%{transform:scale(0.8);opacity:0}}",""]),e.exports=t},23645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(s," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,c,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&o[s[0]]||(n&&(s[2]?s[2]="".concat(n," and ").concat(s[2]):s[2]=n),t.push(s))}},t}},27418:e=>{"use strict";
|
|
21
21
|
/*
|
|
22
22
|
object-assign
|
|
23
23
|
(c) Sindre Sorhus
|
|
24
24
|
@license MIT
|
|
25
|
-
*/var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,o){for(var i,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var s in i=Object(arguments[u]))n.call(i,s)&&(c[s]=i[s]);if(e){a=e(i);for(var l=0;l<a.length;l++)r.call(i,a[l])&&(c[a[l]]=i[a[l]])}}return c}},15407:function(t,e,n){"use strict";var r=n(4942),o=n(1413),i=n(93324),a=n(71002),c=n(8156),u=n(34203),s=n(42550),l=n(94184),f=n.n(l),p=n(94159),d=n(21279),h=n(72215),v=n(44154),m=n(10179);e.Z=function(t){var e=t;function n(t){return!(!t.motionName||!e)}"object"===(0,a.Z)(t)&&(e=t.transitionSupport);var l=c.forwardRef((function(t,e){var a=t.visible,l=void 0===a||a,b=t.removeOnLeave,y=void 0===b||b,g=t.forceRender,w=t.children,O=t.motionName,E=t.leavedClassName,x=t.eventProps,Z=n(t),S=(0,c.useRef)(),C=(0,c.useRef)();var P=(0,h.Z)(Z,l,(function(){try{return(0,u.Z)(S.current||C.current)}catch(t){return null}}),t),T=(0,i.Z)(P,4),j=T[0],k=T[1],M=T[2],N=T[3],_=c.useRef(N);N&&(_.current=!0);var A=(0,c.useRef)(e);A.current=e;var D,L=c.useCallback((function(t){S.current=t,(0,s.mH)(A.current,t)}),[]),R=(0,o.Z)((0,o.Z)({},x),{},{visible:l});if(w)if(j!==d.ib&&n(t)){var I,H;k===d.yH?H="prepare":(0,m.zh)(k)?H="active":k===d.$D&&(H="start"),D=w((0,o.Z)((0,o.Z)({},R),{},{className:f()((0,p.mL)(O,j),(I={},(0,r.Z)(I,(0,p.mL)(O,"".concat(j,"-").concat(H)),H),(0,r.Z)(I,O,"string"==typeof O),I)),style:M}),L)}else D=N?w((0,o.Z)({},R),L):!y&&_.current?w((0,o.Z)((0,o.Z)({},R),{},{className:E}),L):g?w((0,o.Z)((0,o.Z)({},R),{},{style:{display:"none"}}),L):null;else D=null;return c.createElement(v.Z,{ref:C},D)}));return l.displayName="CSSMotion",l}(p.Cq)},84173:function(t,e,n){"use strict";var r=n(87462),o=n(45987),i=n(1413),a=n(15671),c=n(43144),u=n(60136),s=n(29388),l=n(8156),f=n(15407),p=n(94159),d=n(52378),h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Z,n=function(t){(0,u.Z)(f,t);var n=(0,s.Z)(f);function f(){var t;return(0,a.Z)(this,f),(t=n.apply(this,arguments)).state={keyEntities:[]},t.removeKey=function(e){t.setState((function(t){return{keyEntities:t.keyEntities.map((function(t){return t.key!==e?t:(0,i.Z)((0,i.Z)({},t),{},{status:d.Td})}))}}))},t}return(0,c.Z)(f,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,i=this.props,a=i.component,c=i.children,u=i.onVisibleChanged,s=(0,o.Z)(i,["component","children","onVisibleChanged"]),f=a||l.Fragment,p={};return h.forEach((function(t){p[t]=s[t],delete s[t]})),delete s.keys,l.createElement(f,s,n.map((function(n){var i=n.status,a=(0,o.Z)(n,["status"]),s=i===d.zM||i===d.ff;return l.createElement(e,(0,r.Z)({},p,{key:a.key,visible:s,eventProps:a,onVisibleChanged:function(e){null==u||u(e,{key:a.key}),e||t.removeKey(a.key)}}),c)})))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.keys,r=e.keyEntities,o=(0,d.l4)(n);return{keyEntities:(0,d.uz)(r,o).filter((function(t){var e=r.find((function(e){var n=e.key;return t.key===n}));return!e||e.status!==d.Td||t.status!==d.p4}))}}}]),f}(l.Component);n.defaultProps={component:"div"}}(p.Cq)},44154:function(t,e,n){"use strict";var r=n(15671),o=n(43144),i=n(60136),a=n(29388),c=n(8156),u=function(t){(0,i.Z)(n,t);var e=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),e.apply(this,arguments)}return(0,o.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);e.Z=u},68377:function(t,e,n){"use strict";var r=n(8156),o=n(94159);e.Z=function(t){var e=(0,r.useRef)(),n=(0,r.useRef)(t);n.current=t;var i=r.useCallback((function(t){n.current(t)}),[]);function a(t){t&&(t.removeEventListener(o.SG,i),t.removeEventListener(o.nI,i))}return r.useEffect((function(){return function(){a(e.current)}}),[]),[function(t){e.current&&e.current!==t&&a(e.current),t&&t!==e.current&&(t.addEventListener(o.SG,i),t.addEventListener(o.nI,i),e.current=t)},a]}},10586:function(t,e,n){"use strict";var r=n(8156),o=(0,n(98924).Z)()?r.useLayoutEffect:r.useEffect;e.Z=o},54194:function(t,e,n){"use strict";var r=n(8156),o=n(75164);e.Z=function(){var t=r.useRef(null);function e(){o.Z.cancel(t.current)}return r.useEffect((function(){return function(){e()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;e();var a=(0,o.Z)((function(){i<=1?r({isCanceled:function(){return a!==t.current}}):n(r,i-1)}));t.current=a},e]}},56740:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(93324),o=n(8156);function i(t){var e=(0,o.useRef)(!1),n=(0,o.useState)(t),i=(0,r.Z)(n,2),a=i[0],c=i[1];return(0,o.useEffect)((function(){return function(){e.current=!0}}),[]),[a,function(t){e.current||c(t)}]}},72215:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=n(1413),o=n(4942),i=n(93324),a=n(8156),c=n(21279),u=n(56740),s=n(10586),l=n(10179),f=n(68377);function p(t,e,n,p){var d=p.motionEnter,h=void 0===d||d,v=p.motionAppear,m=void 0===v||v,b=p.motionLeave,y=void 0===b||b,g=p.motionDeadline,w=p.motionLeaveImmediately,O=p.onAppearPrepare,E=p.onEnterPrepare,x=p.onLeavePrepare,Z=p.onAppearStart,S=p.onEnterStart,C=p.onLeaveStart,P=p.onAppearActive,T=p.onEnterActive,j=p.onLeaveActive,k=p.onAppearEnd,M=p.onEnterEnd,N=p.onLeaveEnd,_=p.onVisibleChanged,A=(0,u.Z)(),D=(0,i.Z)(A,2),L=D[0],R=D[1],I=(0,u.Z)(c.ib),H=(0,i.Z)(I,2),F=H[0],z=H[1],V=(0,u.Z)(null),W=(0,i.Z)(V,2),U=W[0],B=W[1],Y=(0,a.useRef)(!1),q=(0,a.useRef)(null),G=(0,a.useRef)(!1),X=(0,a.useRef)(null);function K(){return n()||X.current}var $=(0,a.useRef)(!1);function Q(t){var e,n=K();t&&!t.deadline&&t.target!==n||(F===c.LO&&$.current?e=null==k?void 0:k(n,t):F===c.Df&&$.current?e=null==M?void 0:M(n,t):F===c.jf&&$.current&&(e=null==N?void 0:N(n,t)),!1===e||G.current||(z(c.ib),B(null)))}var J=(0,f.Z)(Q),tt=(0,i.Z)(J,1)[0],et=a.useMemo((function(){var t,e,n;switch(F){case"appear":return t={},(0,o.Z)(t,c.yH,O),(0,o.Z)(t,c.$D,Z),(0,o.Z)(t,c.fh,P),t;case"enter":return e={},(0,o.Z)(e,c.yH,E),(0,o.Z)(e,c.$D,S),(0,o.Z)(e,c.fh,T),e;case"leave":return n={},(0,o.Z)(n,c.yH,x),(0,o.Z)(n,c.$D,C),(0,o.Z)(n,c.fh,j),n;default:return{}}}),[F]),nt=(0,l.ZP)(F,(function(t){if(t===c.yH){var e=et[c.yH];return e?e(K()):l.I5}var n;it in et&&B((null===(n=et[it])||void 0===n?void 0:n.call(et,K(),null))||null);return it===c.fh&&(tt(K()),g>0&&(clearTimeout(q.current),q.current=setTimeout((function(){Q({deadline:!0})}),g))),l.eF})),rt=(0,i.Z)(nt,2),ot=rt[0],it=rt[1],at=(0,l.zh)(it);$.current=at,(0,s.Z)((function(){R(e);var n,r=Y.current;(Y.current=!0,t)&&(!r&&e&&m&&(n=c.LO),r&&e&&h&&(n=c.Df),(r&&!e&&y||!r&&w&&!e&&y)&&(n=c.jf),n&&(z(n),ot()))}),[e]),(0,a.useEffect)((function(){(F===c.LO&&!m||F===c.Df&&!h||F===c.jf&&!y)&&z(c.ib)}),[m,h,y]),(0,a.useEffect)((function(){return function(){clearTimeout(q.current),G.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&F===c.ib&&(null==_||_(L))}),[L,F]);var ct=U;return et[c.yH]&&it===c.$D&&(ct=(0,r.Z)({transition:"none"},ct)),[F,it,ct,null!=L?L:e]}},10179:function(t,e,n){"use strict";n.d(e,{I5:function(){return s},eF:function(){return l},zh:function(){return f}});var r=n(93324),o=n(8156),i=n(21279),a=n(10586),c=n(54194),u=[i.yH,i.$D,i.fh,i.cD],s=!1,l=!0;function f(t){return t===i.fh||t===i.cD}e.ZP=function(t,e){var n=o.useState(i.EQ),l=(0,r.Z)(n,2),f=l[0],p=l[1],d=(0,c.Z)(),h=(0,r.Z)(d,2),v=h[0],m=h[1];return(0,a.Z)((function(){if(f!==i.EQ&&f!==i.cD){var t=u.indexOf(f),n=u[t+1],r=e(f);r===s?p(n):v((function(t){function e(){t.isCanceled()||p(n)}!0===r?e():Promise.resolve(r).then(e)}))}}),[t,f]),o.useEffect((function(){return function(){m()}}),[]),[function(){p(i.yH)},f]}},93587:function(t,e,n){"use strict";var r=n(15407);n(84173);e.Z=r.Z},21279:function(t,e,n){"use strict";n.d(e,{$D:function(){return s},Df:function(){return i},EQ:function(){return c},LO:function(){return o},cD:function(){return f},fh:function(){return l},ib:function(){return r},jf:function(){return a},yH:function(){return u}});var r="none",o="appear",i="enter",a="leave",c="none",u="prepare",s="start",l="active",f="end"},52378:function(t,e,n){"use strict";n.d(e,{Td:function(){return u},ff:function(){return a},l4:function(){return l},p4:function(){return c},uz:function(){return f},zM:function(){return i}});var r=n(1413),o=n(71002),i="add",a="keep",c="remove",u="removed";function s(t){var e;return e=t&&"object"===(0,o.Z)(t)&&"key"in t?t:{key:t},(0,r.Z)((0,r.Z)({},e),{},{key:String(e.key)})}function l(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,u=e.length,s=l(t),f=l(e);s.forEach((function(t){for(var e=!1,s=o;s<u;s+=1){var l=f[s];if(l.key===t.key){o<s&&(n=n.concat(f.slice(o,s).map((function(t){return(0,r.Z)((0,r.Z)({},t),{},{status:i})}))),o=s),n.push((0,r.Z)((0,r.Z)({},l),{},{status:a})),o+=1,e=!0;break}}e||n.push((0,r.Z)((0,r.Z)({},t),{},{status:c}))})),o<u&&(n=n.concat(f.slice(o).map((function(t){return(0,r.Z)((0,r.Z)({},t),{},{status:i})}))));var p={};return n.forEach((function(t){var e=t.key;p[e]=(p[e]||0)+1})),Object.keys(p).filter((function(t){return p[t]>1})).forEach((function(t){(n=n.filter((function(e){var n=e.key,r=e.status;return n!==t||r!==c}))).forEach((function(e){e.key===t&&(e.status=a)}))})),n}},94159:function(t,e,n){"use strict";n.d(e,{Cq:function(){return m},SG:function(){return y},mL:function(){return g},nI:function(){return b}});var r=n(71002),o=n(98924);function i(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}var a,c,u,s=(a=(0,o.Z)(),c="undefined"!=typeof window?window:{},u={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in c||delete u.animationend.animation,"TransitionEvent"in c||delete u.transitionend.transition),u),l={};if((0,o.Z)()){var f=document.createElement("div");l=f.style}var p={};function d(t){if(p[t])return p[t];var e=s[t];if(e)for(var n=Object.keys(e),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(e,i)&&i in l)return p[t]=e[i],p[t]}return""}var h=d("animationend"),v=d("transitionend"),m=!(!h||!v),b=h||"animationend",y=v||"transitionend";function g(t,e){return t?"object"===(0,r.Z)(t)?t[e.replace(/-\w/g,(function(t){return t[1].toUpperCase()}))]:"".concat(t,"-").concat(e):null}},79483:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(87462),o=n(71002),i=n(1413),a=n(45987),c=n(8156),u=n(22117),s={adjustX:1,adjustY:1},l=[0,0],f={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:l}},p=function(t){var e=t.overlay,n=t.prefixCls,r=t.id,o=t.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof e?e():e)},d=function(t,e){var n=t.overlayClassName,s=t.trigger,l=void 0===s?["hover"]:s,d=t.mouseEnterDelay,h=void 0===d?0:d,v=t.mouseLeaveDelay,m=void 0===v?.1:v,b=t.overlayStyle,y=t.prefixCls,g=void 0===y?"rc-tooltip":y,w=t.children,O=t.onVisibleChange,E=t.afterVisibleChange,x=t.transitionName,Z=t.animation,S=t.motion,C=t.placement,P=void 0===C?"right":C,T=t.align,j=void 0===T?{}:T,k=t.destroyTooltipOnHide,M=void 0!==k&&k,N=t.defaultVisible,_=t.getTooltipContainer,A=t.overlayInnerStyle,D=(0,a.Z)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,c.useRef)(null);(0,c.useImperativeHandle)(e,(function(){return L.current}));var R=(0,i.Z)({},D);"visible"in t&&(R.popupVisible=t.visible);var I=!1,H=!1;if("boolean"==typeof M)I=M;else if(M&&"object"===(0,o.Z)(M)){var F=M.keepParent;I=!0===F,H=!1===F}return c.createElement(u.Z,(0,r.Z)({popupClassName:n,prefixCls:g,popup:function(){var e=t.arrowContent,n=void 0===e?null:e,r=t.overlay,o=t.id;return[c.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},n),c.createElement(p,{key:"content",prefixCls:g,id:o,overlay:r,overlayInnerStyle:A})]},action:l,builtinPlacements:f,popupPlacement:P,ref:L,popupAlign:j,getPopupContainer:_,onPopupVisibleChange:O,afterPopupVisibleChange:E,popupTransitionName:x,popupAnimation:Z,popupMotion:S,defaultPopupVisible:N,destroyPopupOnHide:I,autoDestroy:H,mouseLeaveDelay:m,popupStyle:b,mouseEnterDelay:h},R),w)},h=(0,c.forwardRef)(d)},24375:function(t,e){"use strict";e.Ct=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};e.Ct=o},22117:function(t,e,n){"use strict";n.d(e,{Z:function(){return le}});var r=n(1413),o=n(87462),i=n(15671),a=n(43144),c=n(97326),u=n(60136),s=n(29388),l=n(4942),f=n(8156),p=n.n(f),d=n(47111),h=n.n(d),v=n(75164),m=n(94999),b=n(34203),y=n(42550),g=n(64019),w=n(59015),O=n(94184),E=n.n(O);function x(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}var Z=n(93324),S=n(45987),C=n(31131),P=n(93587);function T(t){var e=t.prefixCls,n=t.motion,r=t.animation,o=t.transitionName;return n||(r?{motionName:"".concat(e,"-").concat(r)}:o?{motionName:o}:null)}function j(t){var e=t.prefixCls,n=t.visible,i=t.zIndex,a=t.mask,c=t.maskMotion,u=t.maskAnimation,s=t.maskTransitionName;if(!a)return null;var l={};return(c||s||u)&&(l=(0,r.Z)({motionAppear:!0},T({motion:c,prefixCls:e,transitionName:s,animation:u}))),f.createElement(P.Z,(0,o.Z)({},l,{visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return f.createElement("div",{style:{zIndex:i},className:E()("".concat(e,"-mask"),n)})}))}var k,M=n(71002);function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){D(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function R(){if(void 0!==k)return k;k="";var t=document.createElement("p").style;for(var e in L)e+"Transform"in t&&(k=e);return k}function I(){return R()?"".concat(R(),"TransitionProperty"):"transitionProperty"}function H(){return R()?"".concat(R(),"Transform"):"transform"}function F(t,e){var n=I();n&&(t.style[n]=e,"transitionProperty"!==n&&(t.style.transitionProperty=e))}function z(t,e){var n=H();n&&(t.style[n]=e,"transform"!==n&&(t.style.transform=e))}var V,W=/matrix\((.*)\)/,U=/matrix3d\((.*)\)/;function B(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function Y(t,e,n){var r=n;if("object"!==A(e))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(t.style[e]=r)):V(t,e);for(var o in e)e.hasOwnProperty(o)&&Y(t,o,e[o])}function q(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if("number"!=typeof n){var o=t.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function G(t){return q(t)}function X(t){return q(t,!0)}function K(t){var e=function(t){var e,n,r,o=t.ownerDocument,i=o.body,a=o&&o.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),r=Math.floor(e.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(t),n=t.ownerDocument,r=n.defaultView||n.parentWindow;return e.left+=G(r),e.top+=X(r),e}function $(t){return null!=t&&t==t.window}function Q(t){return $(t)?t.document:9===t.nodeType?t:t.ownerDocument}var J=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),tt=/^(top|right|bottom|left)$/,et="currentStyle",nt="runtimeStyle",rt="left";function ot(t,e){return"left"===t?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function it(t){return"left"===t?"right":"right"===t?"left":"top"===t?"bottom":"bottom"===t?"top":void 0}function at(t,e,n){"static"===Y(t,"position")&&(t.style.position="relative");var r=-999,o=-999,i=ot("left",n),a=ot("top",n),c=it(i),u=it(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var s,l="",f=K(t);("left"in e||"top"in e)&&(l=(s=t).style.transitionProperty||s.style[I()]||"",F(t,"none")),"left"in e&&(t.style[c]="",t.style[i]="".concat(r,"px")),"top"in e&&(t.style[u]="",t.style[a]="".concat(o,"px")),B(t);var p=K(t),d={};for(var h in e)if(e.hasOwnProperty(h)){var v=ot(h,n),m="left"===h?r:o,b=f[h]-p[h];d[v]=v===h?m+b:m-b}Y(t,d),B(t),("left"in e||"top"in e)&&F(t,l);var y={};for(var g in e)if(e.hasOwnProperty(g)){var w=ot(g,n),O=e[g]-f[g];y[w]=g===w?d[w]+O:d[w]-O}Y(t,y)}function ct(t,e){var n=K(t),r=function(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(H());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(t),o={x:r.x,y:r.y};"left"in e&&(o.x=r.x+e.left-n.left),"top"in e&&(o.y=r.y+e.top-n.top),function(t,e){var n=window.getComputedStyle(t,null),r=n.getPropertyValue("transform")||n.getPropertyValue(H());if(r&&"none"!==r){var o,i=r.match(W);i?((o=(i=i[1]).split(",").map((function(t){return parseFloat(t,10)})))[4]=e.x,o[5]=e.y,z(t,"matrix(".concat(o.join(","),")"))):((o=r.match(U)[1].split(",").map((function(t){return parseFloat(t,10)})))[12]=e.x,o[13]=e.y,z(t,"matrix3d(".concat(o.join(","),")")))}else z(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}(t,o)}function ut(t,e){for(var n=0;n<t.length;n++)e(t[n])}function st(t){return"border-box"===V(t,"boxSizing")}"undefined"!=typeof window&&(V=window.getComputedStyle?function(t,e,n){var r=n,o="",i=Q(t);return(r=r||i.defaultView.getComputedStyle(t,null))&&(o=r.getPropertyValue(e)||r[e]),o}:function(t,e){var n=t[et]&&t[et][e];if(J.test(n)&&!tt.test(e)){var r=t.style,o=r[rt],i=t[nt][rt];t[nt][rt]=t[et][rt],r[rt]="fontSize"===e?"1em":n||0,n=r.pixelLeft+"px",r[rt]=o,t[nt][rt]=i}return""===n?"auto":n});var lt=["margin","border","padding"],ft=-1,pt=2,dt=1;function ht(t,e,n){var r,o,i,a=0;for(o=0;o<e.length;o++)if(r=e[o])for(i=0;i<n.length;i++){var c=void 0;c="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(V(t,c))||0}return a}var vt={getParent:function(t){var e=t;do{e=11===e.nodeType&&e.host?e.host:e.parentNode}while(e&&1!==e.nodeType&&9!==e.nodeType);return e}};function mt(t,e,n){var r=n;if($(t))return"width"===e?vt.viewportWidth(t):vt.viewportHeight(t);if(9===t.nodeType)return"width"===e?vt.docWidth(t):vt.docHeight(t);var o="width"===e?["Left","Right"]:["Top","Bottom"],i="width"===e?Math.floor(t.getBoundingClientRect().width):Math.floor(t.getBoundingClientRect().height),a=st(t),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=V(t,e))||Number(c)<0)&&(c=t.style[e]||0),c=Math.floor(parseFloat(c))||0),void 0===r&&(r=a?dt:ft);var u=void 0!==i||a,s=i||c;return r===ft?u?s-ht(t,["border","padding"],o):c:u?r===dt?s:s+(r===pt?-ht(t,["border"],o):ht(t,["margin"],o)):c+ht(t,lt.slice(r),o)}ut(["Width","Height"],(function(t){vt["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],vt["viewport".concat(t)](n))},vt["viewport".concat(t)]=function(e){var n="client".concat(t),r=e.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var bt={position:"absolute",visibility:"hidden",display:"block"};function yt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,o=e[0];return 0!==o.offsetWidth?r=mt.apply(void 0,e):function(t,e,n){var r,o={},i=t.style;for(r in e)e.hasOwnProperty(r)&&(o[r]=i[r],i[r]=e[r]);for(r in n.call(t),e)e.hasOwnProperty(r)&&(i[r]=o[r])}(o,bt,(function(){r=mt.apply(void 0,e)})),r}function gt(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}ut(["width","height"],(function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);vt["outer".concat(e)]=function(e,n){return e&&yt(e,t,n?0:dt)};var n="width"===t?["Left","Right"]:["Top","Bottom"];vt[t]=function(e,r){var o=r;return void 0!==o?e?(st(e)&&(o+=ht(e,["padding","border"],n)),Y(e,t,o)):void 0:e&&yt(e,t,ft)}}));var wt={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var e=t.ownerDocument||t;return e.defaultView||e.parentWindow},getDocument:Q,offset:function(t,e,n){if(void 0===e)return K(t);!function(t,e,n){if(n.ignoreShake){var r=K(t),o=r.left.toFixed(0),i=r.top.toFixed(0),a=e.left.toFixed(0),c=e.top.toFixed(0);if(o===a&&i===c)return}n.useCssRight||n.useCssBottom?at(t,e,n):n.useCssTransform&&H()in document.body.style?ct(t,e):at(t,e,n)}(t,e,n||{})},isWindow:$,each:ut,css:Y,clone:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);if(t.overflow)for(e in t)t.hasOwnProperty(e)&&(n.overflow[e]=t.overflow[e]);return n},mix:gt,getWindowScrollLeft:function(t){return G(t)},getWindowScrollTop:function(t){return X(t)},merge:function(){for(var t={},e=0;e<arguments.length;e++)wt.mix(t,e<0||arguments.length<=e?void 0:arguments[e]);return t},viewportWidth:0,viewportHeight:0};gt(wt,vt);var Ot=wt.getParent;function Et(t){if(wt.isWindow(t)||9===t.nodeType)return null;var e,n=wt.getDocument(t).body,r=wt.css(t,"position");if(!("fixed"===r||"absolute"===r))return"html"===t.nodeName.toLowerCase()?null:Ot(t);for(e=Ot(t);e&&e!==n&&9!==e.nodeType;e=Ot(e))if("static"!==(r=wt.css(e,"position")))return e;return null}var xt=wt.getParent;function Zt(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Et(t),o=wt.getDocument(t),i=o.defaultView||o.parentWindow,a=o.body,c=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===c||"visible"===wt.css(r,"overflow")){if(r===a||r===c)break}else{var u=wt.offset(r);u.left+=r.clientLeft,u.top+=r.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+r.clientWidth),n.bottom=Math.min(n.bottom,u.top+r.clientHeight),n.left=Math.max(n.left,u.left)}r=Et(r)}var s=null;wt.isWindow(t)||9===t.nodeType||(s=t.style.position,"absolute"===wt.css(t,"position")&&(t.style.position="fixed"));var l=wt.getWindowScrollLeft(i),f=wt.getWindowScrollTop(i),p=wt.viewportWidth(i),d=wt.viewportHeight(i),h=c.scrollWidth,v=c.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),t.style&&(t.style.position=s),e||function(t){if(wt.isWindow(t)||9===t.nodeType)return!1;var e=wt.getDocument(t),n=e.body,r=null;for(r=xt(t);r&&r!==n&&r!==e;r=xt(r))if("fixed"===wt.css(r,"position"))return!0;return!1}(t))n.left=Math.max(n.left,l),n.top=Math.max(n.top,f),n.right=Math.min(n.right,l+p),n.bottom=Math.min(n.bottom,f+d);else{var b=Math.max(h,l+p);n.right=Math.min(n.right,b);var y=Math.max(v,f+d);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function St(t){var e,n,r;if(wt.isWindow(t)||9===t.nodeType){var o=wt.getWindow(t);e={left:wt.getWindowScrollLeft(o),top:wt.getWindowScrollTop(o)},n=wt.viewportWidth(o),r=wt.viewportHeight(o)}else e=wt.offset(t),n=wt.outerWidth(t),r=wt.outerHeight(t);return e.width=n,e.height=r,e}function Ct(t,e){var n=e.charAt(0),r=e.charAt(1),o=t.width,i=t.height,a=t.left,c=t.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:c}}function Pt(t,e,n,r,o){var i=Ct(e,n[1]),a=Ct(t,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(t.left-c[0]+r[0]-o[0]),top:Math.round(t.top-c[1]+r[1]-o[1])}}function Tt(t,e,n){return t.left<n.left||t.left+e.width>n.right}function jt(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function kt(t,e,n){var r=[];return wt.each(t,(function(t){r.push(t.replace(e,(function(t){return n[t]})))})),r}function Mt(t,e){return t[e]=-t[e],t}function Nt(t,e){return(/%$/.test(t)?parseInt(t.substring(0,t.length-1),10)/100*e:parseInt(t,10))||0}function _t(t,e){t[0]=Nt(t[0],e.width),t[1]=Nt(t[1],e.height)}function At(t,e,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,u=n.source||t;i=[].concat(i),a=[].concat(a);var s={},l=0,f=Zt(u,!(!(c=c||{})||!c.alwaysByViewport)),p=St(u);_t(i,p),_t(a,e);var d=Pt(p,e,o,i,a),h=wt.merge(p,d);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&Tt(d,p,f)){var v=kt(o,/[lr]/gi,{l:"r",r:"l"}),m=Mt(i,0),b=Mt(a,0);(function(t,e,n){return t.left>n.right||t.left+e.width<n.left})(Pt(p,e,v,m,b),p,f)||(l=1,o=v,i=m,a=b)}if(c.adjustY&&jt(d,p,f)){var y=kt(o,/[tb]/gi,{t:"b",b:"t"}),g=Mt(i,1),w=Mt(a,1);(function(t,e,n){return t.top>n.bottom||t.top+e.height<n.top})(Pt(p,e,y,g,w),p,f)||(l=1,o=y,i=g,a=w)}l&&(d=Pt(p,e,o,i,a),wt.mix(h,d));var O=Tt(d,p,f),E=jt(d,p,f);if(O||E){var x=o;O&&(x=kt(o,/[lr]/gi,{l:"r",r:"l"})),E&&(x=kt(o,/[tb]/gi,{t:"b",b:"t"})),o=x,i=n.offset||[0,0],a=n.targetOffset||[0,0]}s.adjustX=c.adjustX&&O,s.adjustY=c.adjustY&&E,(s.adjustX||s.adjustY)&&(h=function(t,e,n,r){var o=wt.clone(t),i={width:e.width,height:e.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),wt.mix(o,i)}(d,p,f,s))}return h.width!==p.width&&wt.css(u,"width",wt.width(u)+h.width-p.width),h.height!==p.height&&wt.css(u,"height",wt.height(u)+h.height-p.height),wt.offset(u,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:s}}function Dt(t,e,n){var r=n.target||e,o=St(r),i=!function(t,e){var n=Zt(t,e),r=St(t);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return At(t,o,n,i)}Dt.__getOffsetParent=Et,Dt.__getVisibleRectForElement=Zt;var Lt=n(91881),Rt=n(5110),It=n(8410),Ht=n(91033);function Ft(t,e){var n=null,r=null;var o=new Ht.default((function(t){var o=(0,Z.Z)(t,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,c=i.height,u=Math.floor(a),s=Math.floor(c);n===u&&r===s||Promise.resolve().then((function(){e({width:u,height:s})})),n=u,r=s}}));return t&&o.observe(t),function(){o.disconnect()}}function zt(t){return"function"!=typeof t?null:t()}function Vt(t){return"object"===(0,M.Z)(t)&&t?t:null}var Wt=function(t,e){var n=t.children,r=t.disabled,o=t.target,i=t.align,a=t.onAlign,c=t.monitorWindowResize,u=t.monitorBufferTime,s=void 0===u?0:u,l=p().useRef({}),f=p().useRef(),d=p().Children.only(n),h=p().useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var v=function(t,e){var n=p().useRef(!1),r=p().useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),e);else{if(!1===t(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),e)}},function(){n.current=!1,o()}]}((function(){var t=h.current,e=t.disabled,n=t.target,r=t.align,o=t.onAlign,i=f.current;if(!e&&n&&i){var a,c=zt(n),u=Vt(n);l.current.element=c,l.current.point=u,l.current.align=r;var s=document.activeElement;return c&&(0,Rt.Z)(c)?a=Dt(i,c,r):u&&(a=function(t,e,n){var r,o,i=wt.getDocument(t),a=i.defaultView||i.parentWindow,c=wt.getWindowScrollLeft(a),u=wt.getWindowScrollTop(a),s=wt.viewportWidth(a),l=wt.viewportHeight(a),f={left:r="pageX"in e?e.pageX:c+e.clientX,top:o="pageY"in e?e.pageY:u+e.clientY,width:0,height:0},p=r>=0&&r<=c+s&&o>=0&&o<=u+l,d=[n.points[0],"cc"];return At(t,f,_(_({},n),{},{points:d}),p)}(i,u,r)),function(t,e){t!==document.activeElement&&(0,m.Z)(e,t)&&"function"==typeof t.focus&&t.focus()}(s,i),o&&a&&o(i,a),!0}return!1}),s),b=(0,Z.Z)(v,2),w=b[0],O=b[1],E=p().useState(),x=(0,Z.Z)(E,2),S=x[0],C=x[1],P=p().useState(),T=(0,Z.Z)(P,2),j=T[0],k=T[1];return(0,It.Z)((function(){C(zt(o)),k(Vt(o))})),p().useEffect((function(){var t,e;l.current.element===S&&((t=l.current.point)===(e=j)||t&&e&&("pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e&&t.clientX===e.clientX&&t.clientY===e.clientY))&&(0,Lt.Z)(l.current.align,i)||w()})),p().useEffect((function(){return Ft(f.current,w)}),[f.current]),p().useEffect((function(){return Ft(S,w)}),[S]),p().useEffect((function(){r?O():w()}),[r]),p().useEffect((function(){if(c)return(0,g.Z)(window,"resize",w).remove}),[c]),p().useEffect((function(){return function(){O()}}),[]),p().useImperativeHandle(e,(function(){return{forceAlign:function(){return w(!0)}}})),p().isValidElement(d)&&(d=p().cloneElement(d,{ref:(0,y.sQ)(d.ref,f)})),d},Ut=p().forwardRef(Wt);Ut.displayName="Align";var Bt=Ut;function Yt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
26
|
-
Yt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:C(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function b(){}function y(){}function g(){}var w={};s(w,a,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(N([])));E&&E!==n&&r.call(E,a)&&(w=E);var x=g.prototype=b.prototype=Object.create(w);function Z(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==(0,M.Z)(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function C(e,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=P(c,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:d,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function P(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError((0,M.Z)(e)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=s(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},Z(S.prototype),s(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},Z(x),s(x,u,"Generator"),s(x,a,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}var qt=n(15861),Gt=n(30470),Xt=["measure","alignPre","align",null,"motion"],Kt=f.forwardRef((function(t,e){var n=t.visible,i=t.prefixCls,a=t.className,c=t.style,u=t.children,s=t.zIndex,l=t.stretch,p=t.destroyPopupOnHide,d=t.forceRender,h=t.align,m=t.point,b=t.getRootDomNode,y=t.getClassNameFromAlign,g=t.onAlign,w=t.onMouseEnter,O=t.onMouseLeave,x=t.onMouseDown,S=t.onTouchStart,C=t.onClick,j=(0,f.useRef)(),k=(0,f.useRef)(),M=(0,f.useState)(),N=(0,Z.Z)(M,2),_=N[0],A=N[1],D=function(t){var e=f.useState({width:0,height:0}),n=(0,Z.Z)(e,2),r=n[0],o=n[1];return[f.useMemo((function(){var e={};if(t){var n=r.width,o=r.height;-1!==t.indexOf("height")&&o?e.height=o:-1!==t.indexOf("minHeight")&&o&&(e.minHeight=o),-1!==t.indexOf("width")&&n?e.width=n:-1!==t.indexOf("minWidth")&&n&&(e.minWidth=n)}return e}),[t,r]),function(t){var e=t.offsetWidth,n=t.offsetHeight,r=t.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(e-i)<1&&Math.abs(n-a)<1&&(e=i,n=a),o({width:e,height:n})}]}(l),L=(0,Z.Z)(D,2),R=L[0],I=L[1];var H=function(t,e){var n=(0,Gt.Z)(null),r=(0,Z.Z)(n,2),o=r[0],i=r[1],a=(0,f.useRef)();function c(t){i(t,!0)}function u(){v.Z.cancel(a.current)}return(0,f.useEffect)((function(){c("measure")}),[t]),(0,f.useEffect)((function(){"measure"===o&&e(),o&&(a.current=(0,v.Z)((0,qt.Z)(Yt().mark((function t(){var e,n;return Yt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Xt.indexOf(o),(n=Xt[e+1])&&-1!==e&&c(n);case 3:case"end":return t.stop()}}),t)})))))}),[o]),(0,f.useEffect)((function(){return function(){u()}}),[]),[o,function(t){u(),a.current=(0,v.Z)((function(){c((function(t){switch(o){case"align":return"motion";case"motion":return"stable"}return t})),null==t||t()}))}]}(n,(function(){l&&I(b())})),F=(0,Z.Z)(H,2),z=F[0],V=F[1],W=(0,f.useState)(0),U=(0,Z.Z)(W,2),B=U[0],Y=U[1],q=(0,f.useRef)();function G(){var t;null===(t=j.current)||void 0===t||t.forceAlign()}function X(t,e){var n=y(e);_!==n&&A(n),Y((function(t){return t+1})),"align"===z&&(null==g||g(t,e))}(0,It.Z)((function(){"alignPre"===z&&Y(0)}),[z]),(0,It.Z)((function(){"align"===z&&(B<3?G():V((function(){var t;null===(t=q.current)||void 0===t||t.call(q)})))}),[B]);var K=(0,r.Z)({},T(t));function $(){return new Promise((function(t){q.current=t}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(t){var e=K[t];K[t]=function(t,n){return V(),null==e?void 0:e(t,n)}})),f.useEffect((function(){K.motionName||"motion"!==z||V()}),[K.motionName,z]),f.useImperativeHandle(e,(function(){return{forceAlign:G,getElement:function(){return k.current}}}));var Q=(0,r.Z)((0,r.Z)({},R),{},{zIndex:s,opacity:"motion"!==z&&"stable"!==z&&n?0:void 0,pointerEvents:n||"stable"===z?void 0:"none"},c),J=!0;null==h||!h.points||"align"!==z&&"stable"!==z||(J=!1);var tt=u;return f.Children.count(u)>1&&(tt=f.createElement("div",{className:"".concat(i,"-content")},u)),f.createElement(P.Z,(0,o.Z)({visible:n,ref:k,leavedClassName:"".concat(i,"-hidden")},K,{onAppearPrepare:$,onEnterPrepare:$,removeOnLeave:p,forceRender:d}),(function(t,e){var n=t.className,o=t.style,c=E()(i,a,_,n);return f.createElement(Bt,{target:m||b,key:"popup",ref:j,monitorWindowResize:!0,disabled:J,align:h,onAlign:X},f.createElement("div",{ref:e,className:c,onMouseEnter:w,onMouseLeave:O,onMouseDownCapture:x,onTouchStartCapture:S,onClick:C,style:(0,r.Z)((0,r.Z)({},o),Q)},tt))}))}));Kt.displayName="PopupInner";var $t=Kt,Qt=f.forwardRef((function(t,e){var n=t.prefixCls,i=t.visible,a=t.zIndex,c=t.children,u=t.mobile,s=(u=void 0===u?{}:u).popupClassName,l=u.popupStyle,p=u.popupMotion,d=void 0===p?{}:p,h=u.popupRender,v=t.onClick,m=f.useRef();f.useImperativeHandle(e,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var b=(0,r.Z)({zIndex:a},l),y=c;return f.Children.count(c)>1&&(y=f.createElement("div",{className:"".concat(n,"-content")},c)),h&&(y=h(y)),f.createElement(P.Z,(0,o.Z)({visible:i,ref:m,removeOnLeave:!0},d),(function(t,e){var o=t.className,i=t.style,a=E()(n,s,o);return f.createElement("div",{ref:e,className:a,onClick:v,style:(0,r.Z)((0,r.Z)({},i),b)},y)}))}));Qt.displayName="MobilePopupInner";var Jt=Qt,te=["visible","mobile"],ee=f.forwardRef((function(t,e){var n=t.visible,i=t.mobile,a=(0,S.Z)(t,te),c=(0,f.useState)(n),u=(0,Z.Z)(c,2),s=u[0],l=u[1],p=(0,f.useState)(!1),d=(0,Z.Z)(p,2),h=d[0],v=d[1],m=(0,r.Z)((0,r.Z)({},a),{},{visible:s});(0,f.useEffect)((function(){l(n),n&&i&&v((0,C.Z)())}),[n,i]);var b=h?f.createElement(Jt,(0,o.Z)({},m,{mobile:i,ref:e})):f.createElement($t,(0,o.Z)({},m,{ref:e}));return f.createElement("div",null,f.createElement(j,m),b)}));ee.displayName="Popup";var ne=ee,re=f.createContext(null);function oe(){}function ie(){return""}function ae(t){return t?t.ownerDocument:window.document}var ce=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var ue,se,le=(ue=w.Z,se=function(t){(0,u.Z)(n,t);var e=(0,s.Z)(n);function n(t){var r,a;return(0,i.Z)(this,n),r=e.call(this,t),(0,l.Z)((0,c.Z)(r),"popupRef",f.createRef()),(0,l.Z)((0,c.Z)(r),"triggerRef",f.createRef()),(0,l.Z)((0,c.Z)(r),"portalContainer",void 0),(0,l.Z)((0,c.Z)(r),"attachId",void 0),(0,l.Z)((0,c.Z)(r),"clickOutsideHandler",void 0),(0,l.Z)((0,c.Z)(r),"touchOutsideHandler",void 0),(0,l.Z)((0,c.Z)(r),"contextMenuOutsideHandler1",void 0),(0,l.Z)((0,c.Z)(r),"contextMenuOutsideHandler2",void 0),(0,l.Z)((0,c.Z)(r),"mouseDownTimeout",void 0),(0,l.Z)((0,c.Z)(r),"focusTime",void 0),(0,l.Z)((0,c.Z)(r),"preClickTime",void 0),(0,l.Z)((0,c.Z)(r),"preTouchTime",void 0),(0,l.Z)((0,c.Z)(r),"delayTimer",void 0),(0,l.Z)((0,c.Z)(r),"hasPopupMouseDown",void 0),(0,l.Z)((0,c.Z)(r),"onMouseEnter",(function(t){var e=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",t),r.delaySetPopupVisible(!0,e,e?null:t)})),(0,l.Z)((0,c.Z)(r),"onMouseMove",(function(t){r.fireEvents("onMouseMove",t),r.setPoint(t)})),(0,l.Z)((0,c.Z)(r),"onMouseLeave",(function(t){r.fireEvents("onMouseLeave",t),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.Z)((0,c.Z)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,l.Z)((0,c.Z)(r),"onPopupMouseLeave",(function(t){var e;t.relatedTarget&&!t.relatedTarget.setTimeout&&(0,m.Z)(null===(e=r.popupRef.current)||void 0===e?void 0:e.getElement(),t.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,l.Z)((0,c.Z)(r),"onFocus",(function(t){r.fireEvents("onFocus",t),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,l.Z)((0,c.Z)(r),"onMouseDown",(function(t){r.fireEvents("onMouseDown",t),r.preClickTime=Date.now()})),(0,l.Z)((0,c.Z)(r),"onTouchStart",(function(t){r.fireEvents("onTouchStart",t),r.preTouchTime=Date.now()})),(0,l.Z)((0,c.Z)(r),"onBlur",(function(t){r.fireEvents("onBlur",t),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,l.Z)((0,c.Z)(r),"onContextMenu",(function(t){t.preventDefault(),r.fireEvents("onContextMenu",t),r.setPopupVisible(!0,t)})),(0,l.Z)((0,c.Z)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,l.Z)((0,c.Z)(r),"onClick",(function(t){if(r.fireEvents("onClick",t),r.focusTime){var e;if(r.preClickTime&&r.preTouchTime?e=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?e=r.preClickTime:r.preTouchTime&&(e=r.preTouchTime),Math.abs(e-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,t)})),(0,l.Z)((0,c.Z)(r),"onPopupMouseDown",(function(){var t;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(t=r.context).onPopupMouseDown.apply(t,arguments)})),(0,l.Z)((0,c.Z)(r),"onDocumentClick",(function(t){if(!r.props.mask||r.props.maskClosable){var e=t.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,m.Z)(n,e)&&!r.isContextMenuOnly()||(0,m.Z)(o,e)||r.hasPopupMouseDown||r.close()}})),(0,l.Z)((0,c.Z)(r),"getRootDomNode",(function(){var t=r.props.getTriggerDOMNode;if(t)return t(r.triggerRef.current);try{var e=(0,b.Z)(r.triggerRef.current);if(e)return e}catch(t){}return h().findDOMNode((0,c.Z)(r))})),(0,l.Z)((0,c.Z)(r),"getPopupClassNameFromAlign",(function(t){var e=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&i&&e.push(function(t,e,n,r){for(var o=n.points,i=Object.keys(t),a=0;a<i.length;a+=1){var c=i[a];if(x(t[c].points,o,r))return"".concat(e,"-placement-").concat(c)}return""}(i,a,t,c)),u&&e.push(u(t)),e.join(" ")})),(0,l.Z)((0,c.Z)(r),"getComponent",(function(){var t=r.props,e=t.prefixCls,n=t.destroyPopupOnHide,i=t.popupClassName,a=t.onPopupAlign,c=t.popupMotion,u=t.popupAnimation,s=t.popupTransitionName,l=t.popupStyle,p=t.mask,d=t.maskAnimation,h=t.maskTransitionName,v=t.maskMotion,m=t.zIndex,b=t.popup,y=t.stretch,g=t.alignPoint,w=t.mobile,O=t.forceRender,E=t.onPopupClick,x=r.state,Z=x.popupVisible,S=x.point,C=r.getPopupAlign(),P={};return r.isMouseEnterToShow()&&(P.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(P.onMouseLeave=r.onPopupMouseLeave),P.onMouseDown=r.onPopupMouseDown,P.onTouchStart=r.onPopupMouseDown,f.createElement(ne,(0,o.Z)({prefixCls:e,destroyPopupOnHide:n,visible:Z,point:g&&S,className:i,align:C,onAlign:a,animation:u,getClassNameFromAlign:r.getPopupClassNameFromAlign},P,{stretch:y,getRootDomNode:r.getRootDomNode,style:l,mask:p,zIndex:m,transitionName:s,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:c,mobile:w,forceRender:O,onClick:E}),"function"==typeof b?b():b)})),(0,l.Z)((0,c.Z)(r),"attachParent",(function(t){v.Z.cancel(r.attachId);var e,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(e=o(a)):e=i(r.getRootDomNode()).body,e?e.appendChild(t):r.attachId=(0,v.Z)((function(){r.attachParent(t)}))})),(0,l.Z)((0,c.Z)(r),"getContainer",(function(){if(!r.portalContainer){var t=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",r.portalContainer=t}return r.attachParent(r.portalContainer),r.portalContainer})),(0,l.Z)((0,c.Z)(r),"setPoint",(function(t){r.props.alignPoint&&t&&r.setState({point:{pageX:t.pageX,pageY:t.pageY}})})),(0,l.Z)((0,c.Z)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,l.Z)((0,c.Z)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in t?!!t.popupVisible:!!t.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ce.forEach((function(t){r["fire".concat(t)]=function(e){r.fireEvents(t,e)}})),r}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var t,e=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,g.Z)(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,g.Z)(t,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,g.Z)(t,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,g.Z)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var t;return(null===(t=this.popupRef.current)||void 0===t?void 0:t.getElement())||null}},{key:"getPopupAlign",value:function(){var t=this.props,e=t.popupPlacement,n=t.popupAlign,o=t.builtinPlacements;return e&&o?function(t,e,n){var o=t[e]||{};return(0,r.Z)((0,r.Z)({},o),n)}(o,e,n):n}},{key:"setPopupVisible",value:function(t,e){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==t&&("popupVisible"in this.props||this.setState({popupVisible:t,prevPopupVisible:r}),this.props.onPopupVisibleChange(t)),n&&e&&t&&this.setPoint(e)}},{key:"delaySetPopupVisible",value:function(t,e,n){var r=this,o=1e3*e;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(t,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(t,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(t){var e=this.props.children.props,n=this.props;return e[t]&&n[t]?this["fire".concat(t)]:e[t]||n[t]}},{key:"isClickToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var t=this.props.action;return"contextMenu"===t||1===t.length&&"contextMenu"===t[0]}},{key:"isContextMenuToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var t=this.props,e=t.action,n=t.showAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var t=this.props,e=t.action,n=t.hideAction;return-1!==e.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var t;this.state.popupVisible&&(null===(t=this.popupRef.current)||void 0===t||t.forceAlign())}},{key:"fireEvents",value:function(t,e){var n=this.props.children.props[t];n&&n(e);var r=this.props[t];r&&r(e)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,e=this.props,n=e.children,o=e.forceRender,i=e.alignPoint,a=e.className,c=e.autoDestroy,u=f.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,i&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var l=E()(u&&u.props&&u.props.className,a);l&&(s.className=l);var p=(0,r.Z)({},s);(0,y.Yr)(u)&&(p.ref=(0,y.sQ)(this.triggerRef,u.ref));var d,h=f.cloneElement(u,p);return(t||this.popupRef.current||o)&&(d=f.createElement(ue,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&c&&(d=null),f.createElement(re.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.popupVisible,r={};return void 0!==n&&e.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=e.popupVisible),r}}]),n}(f.Component),(0,l.Z)(se,"contextType",re),(0,l.Z)(se,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ie,getDocument:ae,onPopupVisibleChange:oe,afterPopupVisibleChange:oe,onPopupAlign:oe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),se)},64019:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(47111),o=n.n(r);function i(t,e,n,r){var i=o().unstable_batchedUpdates?function(t){o().unstable_batchedUpdates(n,t)}:n;return null!=t&&t.addEventListener&&t.addEventListener(e,i,r),{remove:function(){null!=t&&t.removeEventListener&&t.removeEventListener(e,i,r)}}}},98924:function(t,e,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(e,{Z:function(){return r}})},94999:function(t,e,n){"use strict";function r(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}n.d(e,{Z:function(){return r}})},34203:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(8156),o=n.n(r),i=n(47111),a=n.n(i);function c(t){return function(t){return t instanceof HTMLElement||t instanceof SVGElement}(t)?t:t instanceof o().Component?a().findDOMNode(t):null}},5110:function(t,e){"use strict";e.Z=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},15105:function(t,e){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var e=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||e>=n.F1&&e<=n.F12)return!1;switch(e){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=n.ZERO&&t<=n.NINE)return!0;if(t>=n.NUM_ZERO&&t<=n.NUM_MULTIPLY)return!0;if(t>=n.A&&t<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};e.Z=n},59015:function(t,e,n){"use strict";var r=n(8156),o=n(47111),i=n.n(o),a=n(98924),c=(0,r.forwardRef)((function(t,e){var n=t.didUpdate,o=t.getContainer,c=t.children,u=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(e,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,a.Z)()&&(s.current=o(),u.current=s.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null==n||n(t)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==u.current&&u.current.appendChild(s.current),function(){var t,e;null===(t=s.current)||void 0===t||null===(e=t.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?i().createPortal(c,s.current):null}));e.Z=c},66680:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(8156);function o(t){var e=r.useRef();e.current=t;var n=r.useCallback((function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(r))}),[]);return n}},8410:function(t,e,n){"use strict";n.d(e,{o:function(){return a}});var r=n(8156),o=(0,n(98924).Z)()?r.useLayoutEffect:r.useEffect,i=function(t,e){var n=r.useRef(!0);o((function(){return t(n.current)}),e),o((function(){return n.current=!1,function(){n.current=!0}}),[])},a=function(t,e){i((function(e){if(!e)return t()}),e)};e.Z=i},56982:function(t,e,n){"use strict";n(8156)},21770:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var r=n(93324),o=n(66680),i=n(8410),a=n(30470);function c(t){return void 0!==t}function u(t,e){var n=e||{},u=n.defaultValue,s=n.value,l=n.onChange,f=n.postState,p=(0,a.Z)((function(){return c(s)?s:c(u)?"function"==typeof u?u():u:"function"==typeof t?t():t})),d=(0,r.Z)(p,2),h=d[0],v=d[1],m=void 0!==s?s:h,b=f?f(m):m,y=(0,o.Z)(l),g=(0,a.Z)([m]),w=(0,r.Z)(g,2),O=w[0],E=w[1];return(0,i.o)((function(){var t=O[0];h!==t&&y(h,t)}),[O]),(0,i.o)((function(){c(s)||v(s)}),[s]),[b,(0,o.Z)((function(t,e){v(t,e),E([m],e)}))]}},30470:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(93324),o=n(8156);function i(t){var e=o.useRef(!1),n=o.useState(t),i=(0,r.Z)(n,2),a=i[0],c=i[1];return o.useEffect((function(){return e.current=!1,function(){e.current=!0}}),[]),[a,function(t,n){n&&e.current||c(t)}]}},91881:function(t,e,n){"use strict";var r=n(71002),o=n(80334);e.Z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function t(e,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=i.has(e);if((0,o.ZP)(!u,"Warning: There may be circular references"),u)return!1;if(e===a)return!0;if(n&&c>1)return!1;i.add(e);var s=c+1;if(Array.isArray(e)){if(!Array.isArray(a)||e.length!==a.length)return!1;for(var l=0;l<e.length;l++)if(!t(e[l],a[l],s))return!1;return!0}if(e&&a&&"object"===(0,r.Z)(e)&&"object"===(0,r.Z)(a)){var f=Object.keys(e);return f.length===Object.keys(a).length&&f.every((function(n){return t(e[n],a[n],s)}))}return!1}(t,e)}},31131:function(t,e){"use strict";e.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=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(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==t?void 0:t.substr(0,4))}},75164:function(t,e){"use strict";var n=function(t){return+setTimeout(t,16)},r=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(n=function(t){return window.requestAnimationFrame(t)},r=function(t){return window.cancelAnimationFrame(t)});var o=0,i=new Map;function a(t){i.delete(t)}var c=function(t){var e=o+=1;return function r(o){if(0===o)a(e),t();else{var c=n((function(){r(o-1)}));i.set(e,c)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),e};c.cancel=function(t){var e=i.get(t);return a(e),r(e)},e.Z=c},42550:function(t,e,n){"use strict";n.d(e,{Yr:function(){return c},mH:function(){return i},sQ:function(){return a}});var r=n(71002),o=(n(8156),n(59864));n(56982);function i(t,e){"function"==typeof t?t(e):"object"===(0,r.Z)(t)&&t&&"current"in t&&(t.current=e)}function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter((function(t){return t}));return r.length<=1?r[0]:function(t){e.forEach((function(e){i(e,t)}))}}function c(t){var e,n,r=(0,o.isMemo)(t)?t.type.type:t.type;return!!("function"!=typeof r||null!==(e=r.prototype)&&void 0!==e&&e.render)&&!!("function"!=typeof t||null!==(n=t.prototype)&&void 0!==n&&n.render)}},80334:function(t,e,n){"use strict";var r={},o=[];function i(t,e){}function a(t,e){}function c(t,e,n){e||r[n]||(t(!1,n),r[n]=!0)}function u(t,e){c(i,t,e)}u.preMessage=function(t){o.push(t)},u.resetWarned=function(){r={}},u.noteOnce=function(t,e){c(a,t,e)},e.ZP=u},69921:function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;
|
|
27
|
-
/**
|
|
25
|
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var l in i=Object(arguments[s]))n.call(i,l)&&(c[l]=i[l]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(c[a[u]]=i[a[u]])}}return c}},15407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(4942),o=n(1413),i=n(93324),a=n(71002),c=n(8156),s=n(34203),l=n(42550),u=n(94184),f=n.n(u),p=n(94159),d=n(21279),h=n(72215),v=n(44154),m=n(10179);const b=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var u=c.forwardRef((function(e,t){var a=e.visible,u=void 0===a||a,b=e.removeOnLeave,y=void 0===b||b,g=e.forceRender,w=e.children,O=e.motionName,E=e.leavedClassName,x=e.eventProps,Z=n(e),C=(0,c.useRef)(),S=(0,c.useRef)();var P=(0,h.Z)(Z,u,(function(){try{return(0,s.Z)(C.current||S.current)}catch(e){return null}}),e),T=(0,i.Z)(P,4),j=T[0],k=T[1],M=T[2],N=T[3],_=c.useRef(N);N&&(_.current=!0);var A=(0,c.useRef)(t);A.current=t;var D,L=c.useCallback((function(e){C.current=e,(0,l.mH)(A.current,e)}),[]),R=(0,o.Z)((0,o.Z)({},x),{},{visible:u});if(w)if(j!==d.ib&&n(e)){var I,H;k===d.yH?H="prepare":(0,m.zh)(k)?H="active":k===d.$D&&(H="start"),D=w((0,o.Z)((0,o.Z)({},R),{},{className:f()((0,p.mL)(O,j),(I={},(0,r.Z)(I,(0,p.mL)(O,"".concat(j,"-").concat(H)),H),(0,r.Z)(I,O,"string"==typeof O),I)),style:M}),L)}else D=N?w((0,o.Z)({},R),L):!y&&_.current?w((0,o.Z)((0,o.Z)({},R),{},{className:E}),L):g?w((0,o.Z)((0,o.Z)({},R),{},{style:{display:"none"}}),L):null;else D=null;return c.createElement(v.Z,{ref:S},D)}));return u.displayName="CSSMotion",u}(p.Cq)},84173:(e,t,n)=>{"use strict";var r=n(87462),o=n(45987),i=n(1413),a=n(15671),c=n(43144),s=n(60136),l=n(29388),u=n(8156),f=n(15407),p=n(94159),d=n(52378),h=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Z,n=function(e){(0,s.Z)(f,e);var n=(0,l.Z)(f);function f(){var e;return(0,a.Z)(this,f),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,i.Z)((0,i.Z)({},e),{},{status:d.Td})}))}}))},e}return(0,c.Z)(f,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,i=this.props,a=i.component,c=i.children,s=i.onVisibleChanged,l=(0,o.Z)(i,["component","children","onVisibleChanged"]),f=a||u.Fragment,p={};return h.forEach((function(e){p[e]=l[e],delete l[e]})),delete l.keys,u.createElement(f,l,n.map((function(n){var i=n.status,a=(0,o.Z)(n,["status"]),l=i===d.zM||i===d.ff;return u.createElement(t,(0,r.Z)({},p,{key:a.key,visible:l,eventProps:a,onVisibleChanged:function(t){null==s||s(t,{key:a.key}),t||e.removeKey(a.key)}}),c)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,d.l4)(n);return{keyEntities:(0,d.uz)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==d.Td||e.status!==d.p4}))}}}]),f}(u.Component);n.defaultProps={component:"div"}}(p.Cq)},44154:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(15671),o=n(43144),i=n(60136),a=n(29388),c=n(8156);const s=function(e){(0,i.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component)},68377:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8156),o=n(94159);const i=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var i=r.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(o.SG,i),e.removeEventListener(o.nI,i))}return r.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(o.SG,i),e.addEventListener(o.nI,i),t.current=e)},a]}},10586:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8156);const o=(0,n(98924).Z)()?r.useLayoutEffect:r.useEffect},54194:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8156),o=n(75164);const i=function(){var e=r.useRef(null);function t(){o.Z.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,o.Z)((function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)}));e.current=a},t]}},56740:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(93324),o=n(8156);function i(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),i=(0,r.Z)(n,2),a=i[0],c=i[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[a,function(e){t.current||c(e)}]}},72215:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(1413),o=n(4942),i=n(93324),a=n(8156),c=n(21279),s=n(56740),l=n(10586),u=n(10179),f=n(68377);function p(e,t,n,p){var d=p.motionEnter,h=void 0===d||d,v=p.motionAppear,m=void 0===v||v,b=p.motionLeave,y=void 0===b||b,g=p.motionDeadline,w=p.motionLeaveImmediately,O=p.onAppearPrepare,E=p.onEnterPrepare,x=p.onLeavePrepare,Z=p.onAppearStart,C=p.onEnterStart,S=p.onLeaveStart,P=p.onAppearActive,T=p.onEnterActive,j=p.onLeaveActive,k=p.onAppearEnd,M=p.onEnterEnd,N=p.onLeaveEnd,_=p.onVisibleChanged,A=(0,s.Z)(),D=(0,i.Z)(A,2),L=D[0],R=D[1],I=(0,s.Z)(c.ib),H=(0,i.Z)(I,2),F=H[0],z=H[1],V=(0,s.Z)(null),W=(0,i.Z)(V,2),U=W[0],B=W[1],Y=(0,a.useRef)(!1),q=(0,a.useRef)(null),G=(0,a.useRef)(!1),X=(0,a.useRef)(null);function K(){return n()||X.current}var $=(0,a.useRef)(!1);function Q(e){var t,n=K();e&&!e.deadline&&e.target!==n||(F===c.LO&&$.current?t=null==k?void 0:k(n,e):F===c.Df&&$.current?t=null==M?void 0:M(n,e):F===c.jf&&$.current&&(t=null==N?void 0:N(n,e)),!1===t||G.current||(z(c.ib),B(null)))}var J=(0,f.Z)(Q),ee=(0,i.Z)(J,1)[0],te=a.useMemo((function(){var e,t,n;switch(F){case"appear":return e={},(0,o.Z)(e,c.yH,O),(0,o.Z)(e,c.$D,Z),(0,o.Z)(e,c.fh,P),e;case"enter":return t={},(0,o.Z)(t,c.yH,E),(0,o.Z)(t,c.$D,C),(0,o.Z)(t,c.fh,T),t;case"leave":return n={},(0,o.Z)(n,c.yH,x),(0,o.Z)(n,c.$D,S),(0,o.Z)(n,c.fh,j),n;default:return{}}}),[F]),ne=(0,u.ZP)(F,(function(e){if(e===c.yH){var t=te[c.yH];return t?t(K()):u.I5}var n;ie in te&&B((null===(n=te[ie])||void 0===n?void 0:n.call(te,K(),null))||null);return ie===c.fh&&(ee(K()),g>0&&(clearTimeout(q.current),q.current=setTimeout((function(){Q({deadline:!0})}),g))),u.eF})),re=(0,i.Z)(ne,2),oe=re[0],ie=re[1],ae=(0,u.zh)(ie);$.current=ae,(0,l.Z)((function(){R(t);var n,r=Y.current;(Y.current=!0,e)&&(!r&&t&&m&&(n=c.LO),r&&t&&h&&(n=c.Df),(r&&!t&&y||!r&&w&&!t&&y)&&(n=c.jf),n&&(z(n),oe()))}),[t]),(0,a.useEffect)((function(){(F===c.LO&&!m||F===c.Df&&!h||F===c.jf&&!y)&&z(c.ib)}),[m,h,y]),(0,a.useEffect)((function(){return function(){clearTimeout(q.current),G.current=!0}}),[]),(0,a.useEffect)((function(){void 0!==L&&F===c.ib&&(null==_||_(L))}),[L,F]);var ce=U;return te[c.yH]&&ie===c.$D&&(ce=(0,r.Z)({transition:"none"},ce)),[F,ie,ce,null!=L?L:t]}},10179:(e,t,n)=>{"use strict";n.d(t,{I5:()=>l,ZP:()=>p,eF:()=>u,zh:()=>f});var r=n(93324),o=n(8156),i=n(21279),a=n(10586),c=n(54194),s=[i.yH,i.$D,i.fh,i.cD],l=!1,u=!0;function f(e){return e===i.fh||e===i.cD}const p=function(e,t){var n=o.useState(i.EQ),u=(0,r.Z)(n,2),f=u[0],p=u[1],d=(0,c.Z)(),h=(0,r.Z)(d,2),v=h[0],m=h[1];return(0,a.Z)((function(){if(f!==i.EQ&&f!==i.cD){var e=s.indexOf(f),n=s[e+1],r=t(f);r===l?p(n):v((function(e){function t(){e.isCanceled()||p(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,f]),o.useEffect((function(){return function(){m()}}),[]),[function(){p(i.yH)},f]}},93587:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(15407);n(84173);const o=r.Z},21279:(e,t,n)=>{"use strict";n.d(t,{$D:()=>l,Df:()=>i,EQ:()=>c,LO:()=>o,cD:()=>f,fh:()=>u,ib:()=>r,jf:()=>a,yH:()=>s});var r="none",o="appear",i="enter",a="leave",c="none",s="prepare",l="start",u="active",f="end"},52378:(e,t,n)=>{"use strict";n.d(t,{Td:()=>s,ff:()=>a,l4:()=>u,p4:()=>c,uz:()=>f,zM:()=>i});var r=n(1413),o=n(71002),i="add",a="keep",c="remove",s="removed";function l(e){var t;return t=e&&"object"===(0,o.Z)(e)&&"key"in e?e:{key:e},(0,r.Z)((0,r.Z)({},t),{},{key:String(t.key)})}function u(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(l)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,s=t.length,l=u(e),f=u(t);l.forEach((function(e){for(var t=!1,l=o;l<s;l+=1){var u=f[l];if(u.key===e.key){o<l&&(n=n.concat(f.slice(o,l).map((function(e){return(0,r.Z)((0,r.Z)({},e),{},{status:i})}))),o=l),n.push((0,r.Z)((0,r.Z)({},u),{},{status:a})),o+=1,t=!0;break}}t||n.push((0,r.Z)((0,r.Z)({},e),{},{status:c}))})),o<s&&(n=n.concat(f.slice(o).map((function(e){return(0,r.Z)((0,r.Z)({},e),{},{status:i})}))));var p={};return n.forEach((function(e){var t=e.key;p[t]=(p[t]||0)+1})),Object.keys(p).filter((function(e){return p[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==c}))).forEach((function(t){t.key===e&&(t.status=a)}))})),n}},94159:(e,t,n)=>{"use strict";n.d(t,{Cq:()=>m,SG:()=>y,mL:()=>g,nI:()=>b});var r=n(71002),o=n(98924);function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var a,c,s,l=(a=(0,o.Z)(),c="undefined"!=typeof window?window:{},s={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")},a&&("AnimationEvent"in c||delete s.animationend.animation,"TransitionEvent"in c||delete s.transitionend.transition),s),u={};if((0,o.Z)()){var f=document.createElement("div");u=f.style}var p={};function d(e){if(p[e])return p[e];var t=l[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in u)return p[e]=t[i],p[e]}return""}var h=d("animationend"),v=d("transitionend"),m=!(!h||!v),b=h||"animationend",y=v||"transitionend";function g(e,t){return e?"object"===(0,r.Z)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},79483:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(87462),o=n(71002),i=n(1413),a=n(45987),c=n(8156),s=n(13425),l={adjustX:1,adjustY:1},u=[0,0],f={left:{points:["cr","cl"],overflow:l,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:l,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:l,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:l,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:l,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:l,offset:[-4,0],targetOffset:u}};const p=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)};var d=function(e,t){var n=e.overlayClassName,l=e.trigger,u=void 0===l?["hover"]:l,d=e.mouseEnterDelay,h=void 0===d?0:d,v=e.mouseLeaveDelay,m=void 0===v?.1:v,b=e.overlayStyle,y=e.prefixCls,g=void 0===y?"rc-tooltip":y,w=e.children,O=e.onVisibleChange,E=e.afterVisibleChange,x=e.transitionName,Z=e.animation,C=e.motion,S=e.placement,P=void 0===S?"right":S,T=e.align,j=void 0===T?{}:T,k=e.destroyTooltipOnHide,M=void 0!==k&&k,N=e.defaultVisible,_=e.getTooltipContainer,A=e.overlayInnerStyle,D=(0,a.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),L=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return L.current}));var R=(0,i.Z)({},D);"visible"in e&&(R.popupVisible=e.visible);var I=!1,H=!1;if("boolean"==typeof M)I=M;else if(M&&"object"===(0,o.Z)(M)){var F=M.keepParent;I=!0===F,H=!1===F}return c.createElement(s.Z,(0,r.Z)({popupClassName:n,prefixCls:g,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[c.createElement("div",{className:"".concat(g,"-arrow"),key:"arrow"},n),c.createElement(p,{key:"content",prefixCls:g,id:o,overlay:r,overlayInnerStyle:A})]},action:u,builtinPlacements:f,popupPlacement:P,ref:L,popupAlign:j,getPopupContainer:_,onPopupVisibleChange:O,afterPopupVisibleChange:E,popupTransitionName:x,popupAnimation:Z,popupMotion:C,defaultPopupVisible:N,destroyPopupOnHide:I,autoDestroy:H,mouseLeaveDelay:m,popupStyle:b,mouseEnterDelay:h},R),w)};const h=(0,c.forwardRef)(d)},24375:(e,t)=>{"use strict";t.Ct=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};t.Ct=o},13425:(e,t,n)=>{"use strict";n.d(t,{Z:()=>st});var r=n(1413),o=n(87462),i=n(15671),a=n(43144),c=n(97326),s=n(60136),l=n(29388),u=n(4942),f=n(8156),p=n.n(f),d=n(47111),h=n.n(d),v=n(75164),m=n(94999),b=n(34203),y=n(42550),g=n(64019),w=n(59015),O=n(94184),E=n.n(O);function x(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var Z=n(93324),C=n(45987),S=n(31131),P=n(93587);function T(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function j(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,c=e.maskMotion,s=e.maskAnimation,l=e.maskTransitionName;if(!a)return null;var u={};return(c||l||s)&&(u=(0,r.Z)({motionAppear:!0},T({motion:c,prefixCls:t,transitionName:l,animation:s}))),f.createElement(P.Z,(0,o.Z)({},u,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return f.createElement("div",{style:{zIndex:i},className:E()("".concat(t,"-mask"),n)})}))}var k,M=n(71002);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function R(){if(void 0!==k)return k;k="";var e=document.createElement("p").style;for(var t in L)t+"Transform"in e&&(k=t);return k}function I(){return R()?"".concat(R(),"TransitionProperty"):"transitionProperty"}function H(){return R()?"".concat(R(),"Transform"):"transform"}function F(e,t){var n=I();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function z(e,t){var n=H();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var V,W=/matrix\((.*)\)/,U=/matrix3d\((.*)\)/;function B(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Y(e,t,n){var r=n;if("object"!==A(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):V(e,t);for(var o in t)t.hasOwnProperty(o)&&Y(e,o,t[o])}function q(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function G(e){return q(e)}function X(e){return q(e,!0)}function K(e){var t=function(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=a.clientLeft||i.clientLeft||0,top:r-=a.clientTop||i.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=G(r),t.top+=X(r),t}function $(e){return null!=e&&e==e.window}function Q(e){return $(e)?e.document:9===e.nodeType?e:e.ownerDocument}var J=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",re="left";function oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ae(e,t,n){"static"===Y(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=oe("left",n),a=oe("top",n),c=ie(i),s=ie(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var l,u="",f=K(e);("left"in t||"top"in t)&&(u=(l=e).style.transitionProperty||l.style[I()]||"",F(e,"none")),"left"in t&&(e.style[c]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[s]="",e.style[a]="".concat(o,"px")),B(e);var p=K(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var v=oe(h,n),m="left"===h?r:o,b=f[h]-p[h];d[v]=v===h?m+b:m-b}Y(e,d),B(e),("left"in t||"top"in t)&&F(e,u);var y={};for(var g in t)if(t.hasOwnProperty(g)){var w=oe(g,n),O=t[g]-f[g];y[w]=g===w?d[w]+O:d[w]-O}Y(e,y)}function ce(e,t){var n=K(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(H());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(H());if(r&&"none"!==r){var o,i=r.match(W);i?((o=(i=i[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,z(e,"matrix(".concat(o.join(","),")"))):((o=r.match(U)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,z(e,"matrix3d(".concat(o.join(","),")")))}else z(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function se(e,t){for(var n=0;n<e.length;n++)t(e[n])}function le(e){return"border-box"===V(e,"boxSizing")}"undefined"!=typeof window&&(V=window.getComputedStyle?function(e,t,n){var r=n,o="",i=Q(e);return(r=r||i.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[te]&&e[te][t];if(J.test(n)&&!ee.test(t)){var r=e.style,o=r[re],i=e[ne][re];e[ne][re]=e[te][re],r[re]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[re]=o,e[ne][re]=i}return""===n?"auto":n});var ue=["margin","border","padding"],fe=-1,pe=2,de=1;function he(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o])for(i=0;i<n.length;i++){var c=void 0;c="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(V(e,c))||0}return a}var ve={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function me(e,t,n){var r=n;if($(e))return"width"===t?ve.viewportWidth(e):ve.viewportHeight(e);if(9===e.nodeType)return"width"===t?ve.docWidth(e):ve.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=le(e),c=0;(null==i||i<=0)&&(i=void 0,(null==(c=V(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=Math.floor(parseFloat(c))||0),void 0===r&&(r=a?de:fe);var s=void 0!==i||a,l=i||c;return r===fe?s?l-he(e,["border","padding"],o):c:s?r===de?l:l+(r===pe?-he(e,["border"],o):he(e,["margin"],o)):c+he(e,ue.slice(r),o)}se(["Width","Height"],(function(e){ve["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],ve["viewport".concat(e)](n))},ve["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement[n];return"CSS1Compat"===r.compatMode&&i||o&&o[n]||i}}));var be={position:"absolute",visibility:"hidden",display:"block"};function ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=me.apply(void 0,t):function(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}(o,be,(function(){r=me.apply(void 0,t)})),r}function ge(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}se(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);ve["outer".concat(t)]=function(t,n){return t&&ye(t,e,n?0:de)};var n="width"===e?["Left","Right"]:["Top","Bottom"];ve[e]=function(t,r){var o=r;return void 0!==o?t?(le(t)&&(o+=he(t,["padding","border"],n)),Y(t,e,o)):void 0:t&&ye(t,e,fe)}}));var we={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Q,offset:function(e,t,n){if(void 0===t)return K(e);!function(e,t,n){if(n.ignoreShake){var r=K(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),c=t.top.toFixed(0);if(o===a&&i===c)return}n.useCssRight||n.useCssBottom?ae(e,t,n):n.useCssTransform&&H()in document.body.style?ce(e,t):ae(e,t,n)}(e,t,n||{})},isWindow:$,each:se,css:Y,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ge,getWindowScrollLeft:function(e){return G(e)},getWindowScrollTop:function(e){return X(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)we.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ge(we,ve);var Oe=we.getParent;function Ee(e){if(we.isWindow(e)||9===e.nodeType)return null;var t,n=we.getDocument(e).body,r=we.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:Oe(e);for(t=Oe(e);t&&t!==n&&9!==t.nodeType;t=Oe(t))if("static"!==(r=we.css(t,"position")))return t;return null}var xe=we.getParent;function Ze(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Ee(e),o=we.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,c=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===c||"visible"===we.css(r,"overflow")){if(r===a||r===c)break}else{var s=we.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}r=Ee(r)}var l=null;we.isWindow(e)||9===e.nodeType||(l=e.style.position,"absolute"===we.css(e,"position")&&(e.style.position="fixed"));var u=we.getWindowScrollLeft(i),f=we.getWindowScrollTop(i),p=we.viewportWidth(i),d=we.viewportHeight(i),h=c.scrollWidth,v=c.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(h=i.innerWidth),"hidden"===m.overflowY&&(v=i.innerHeight),e.style&&(e.style.position=l),t||function(e){if(we.isWindow(e)||9===e.nodeType)return!1;var t=we.getDocument(e),n=t.body,r=null;for(r=xe(e);r&&r!==n&&r!==t;r=xe(r))if("fixed"===we.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,f),n.right=Math.min(n.right,u+p),n.bottom=Math.min(n.bottom,f+d);else{var b=Math.max(h,u+p);n.right=Math.min(n.right,b);var y=Math.max(v,f+d);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ce(e){var t,n,r;if(we.isWindow(e)||9===e.nodeType){var o=we.getWindow(e);t={left:we.getWindowScrollLeft(o),top:we.getWindowScrollTop(o)},n=we.viewportWidth(o),r=we.viewportHeight(o)}else t=we.offset(e),n=we.outerWidth(e),r=we.outerHeight(e);return t.width=n,t.height=r,t}function Se(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:c}}function Pe(e,t,n,r,o){var i=Se(t,n[1]),a=Se(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+r[0]-o[0]),top:Math.round(e.top-c[1]+r[1]-o[1])}}function Te(e,t,n){return e.left<n.left||e.left+t.width>n.right}function je(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function ke(e,t,n){var r=[];return we.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Me(e,t){return e[t]=-e[t],e}function Ne(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function _e(e,t){e[0]=Ne(e[0],t.width),e[1]=Ne(e[1],t.height)}function Ae(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a);var l={},u=0,f=Ze(s,!(!(c=c||{})||!c.alwaysByViewport)),p=Ce(s);_e(i,p),_e(a,t);var d=Pe(p,t,o,i,a),h=we.merge(p,d);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&Te(d,p,f)){var v=ke(o,/[lr]/gi,{l:"r",r:"l"}),m=Me(i,0),b=Me(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Pe(p,t,v,m,b),p,f)||(u=1,o=v,i=m,a=b)}if(c.adjustY&&je(d,p,f)){var y=ke(o,/[tb]/gi,{t:"b",b:"t"}),g=Me(i,1),w=Me(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Pe(p,t,y,g,w),p,f)||(u=1,o=y,i=g,a=w)}u&&(d=Pe(p,t,o,i,a),we.mix(h,d));var O=Te(d,p,f),E=je(d,p,f);if(O||E){var x=o;O&&(x=ke(o,/[lr]/gi,{l:"r",r:"l"})),E&&(x=ke(o,/[tb]/gi,{t:"b",b:"t"})),o=x,i=n.offset||[0,0],a=n.targetOffset||[0,0]}l.adjustX=c.adjustX&&O,l.adjustY=c.adjustY&&E,(l.adjustX||l.adjustY)&&(h=function(e,t,n,r){var o=we.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),we.mix(o,i)}(d,p,f,l))}return h.width!==p.width&&we.css(s,"width",we.width(s)+h.width-p.width),h.height!==p.height&&we.css(s,"height",we.height(s)+h.height-p.height),we.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:l}}function De(e,t,n){var r=n.target||t,o=Ce(r),i=!function(e,t){var n=Ze(e,t),r=Ce(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Ae(e,o,n,i)}De.__getOffsetParent=Ee,De.__getVisibleRectForElement=Ze;var Le=n(91881),Re=n(5110),Ie=n(8410);var He=n(91033);function Fe(e,t){var n=null,r=null;var o=new He.default((function(e){var o=(0,Z.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,c=i.height,s=Math.floor(a),l=Math.floor(c);n===s&&r===l||Promise.resolve().then((function(){t({width:s,height:l})})),n=s,r=l}}));return e&&o.observe(e),function(){o.disconnect()}}function ze(e){return"function"!=typeof e?null:e()}function Ve(e){return"object"===(0,M.Z)(e)&&e?e:null}var We=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,s=e.monitorBufferTime,l=void 0===s?0:s,u=p().useRef({}),f=p().useRef(),d=p().Children.only(n),h=p().useRef({});h.current.disabled=r,h.current.target=o,h.current.align=i,h.current.onAlign=a;var v=function(e,t){var n=p().useRef(!1),r=p().useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e(a))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=h.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,i=f.current;if(!t&&n&&i){var a,c=ze(n),s=Ve(n);u.current.element=c,u.current.point=s,u.current.align=r;var l=document.activeElement;return c&&(0,Re.Z)(c)?a=De(i,c,r):s&&(a=function(e,t,n){var r,o,i=we.getDocument(e),a=i.defaultView||i.parentWindow,c=we.getWindowScrollLeft(a),s=we.getWindowScrollTop(a),l=we.viewportWidth(a),u=we.viewportHeight(a),f={left:r="pageX"in t?t.pageX:c+t.clientX,top:o="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},p=r>=0&&r<=c+l&&o>=0&&o<=s+u,d=[n.points[0],"cc"];return Ae(e,f,_(_({},n),{},{points:d}),p)}(i,s,r)),function(e,t){e!==document.activeElement&&(0,m.Z)(t,e)&&"function"==typeof e.focus&&e.focus()}(l,i),o&&a&&o(i,a),!0}return!1}),l),b=(0,Z.Z)(v,2),w=b[0],O=b[1],E=p().useState(),x=(0,Z.Z)(E,2),C=x[0],S=x[1],P=p().useState(),T=(0,Z.Z)(P,2),j=T[0],k=T[1];return(0,Ie.Z)((function(){S(ze(o)),k(Ve(o))})),p().useEffect((function(){var e,t;u.current.element===C&&((e=u.current.point)===(t=j)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Le.Z)(u.current.align,i)||w()})),p().useEffect((function(){return Fe(f.current,w)}),[f.current]),p().useEffect((function(){return Fe(C,w)}),[C]),p().useEffect((function(){r?O():w()}),[r]),p().useEffect((function(){if(c)return(0,g.Z)(window,"resize",w).remove}),[c]),p().useEffect((function(){return function(){O()}}),[]),p().useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),p().isValidElement(d)&&(d=p().cloneElement(d,{ref:(0,y.sQ)(d.ref,f)})),d},Ue=p().forwardRef(We);Ue.displayName="Align";const Be=Ue;function Ye(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
26
|
+
Ye=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),c=new k(r||[]);return o(a,"_invoke",{value:S(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function b(){}function y(){}function g(){}var w={};l(w,a,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(N([])));E&&E!==n&&r.call(E,a)&&(w=E);var x=g.prototype=b.prototype=Object.create(w);function Z(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,c){var s=f(e[o],e,i);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==(0,M.Z)(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=P(c,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=f(t,n,r);if("normal"===l.type){if(o=r.done?v:d,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=v,r.method="throw",r.arg=l.arg)}}}function P(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError((0,M.Z)(t)+" is not iterable")}return y.prototype=g,o(x,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:y,configurable:!0}),y.displayName=l(g,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},Z(C.prototype),l(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},Z(x),l(x,s,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}var qe=n(15861),Ge=n(30470),Xe=["measure","alignPre","align",null,"motion"];var Ke=f.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,c=e.style,s=e.children,l=e.zIndex,u=e.stretch,p=e.destroyPopupOnHide,d=e.forceRender,h=e.align,m=e.point,b=e.getRootDomNode,y=e.getClassNameFromAlign,g=e.onAlign,w=e.onMouseEnter,O=e.onMouseLeave,x=e.onMouseDown,C=e.onTouchStart,S=e.onClick,j=(0,f.useRef)(),k=(0,f.useRef)(),M=(0,f.useState)(),N=(0,Z.Z)(M,2),_=N[0],A=N[1],D=function(e){var t=f.useState({width:0,height:0}),n=(0,Z.Z)(t,2),r=n[0],o=n[1];return[f.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),i=r.width,a=r.height;Math.abs(t-i)<1&&Math.abs(n-a)<1&&(t=i,n=a),o({width:t,height:n})}]}(u),L=(0,Z.Z)(D,2),R=L[0],I=L[1];var H=function(e,t){var n=(0,Ge.Z)(null),r=(0,Z.Z)(n,2),o=r[0],i=r[1],a=(0,f.useRef)();function c(e){i(e,!0)}function s(){v.Z.cancel(a.current)}return(0,f.useEffect)((function(){c("measure")}),[e]),(0,f.useEffect)((function(){"measure"===o&&t(),o&&(a.current=(0,v.Z)((0,qe.Z)(Ye().mark((function e(){var t,n;return Ye().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Xe.indexOf(o),(n=Xe[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,f.useEffect)((function(){return function(){s()}}),[]),[o,function(e){s(),a.current=(0,v.Z)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){u&&I(b())})),F=(0,Z.Z)(H,2),z=F[0],V=F[1],W=(0,f.useState)(0),U=(0,Z.Z)(W,2),B=U[0],Y=U[1],q=(0,f.useRef)();function G(){var e;null===(e=j.current)||void 0===e||e.forceAlign()}function X(e,t){var n=y(t);_!==n&&A(n),Y((function(e){return e+1})),"align"===z&&(null==g||g(e,t))}(0,Ie.Z)((function(){"alignPre"===z&&Y(0)}),[z]),(0,Ie.Z)((function(){"align"===z&&(B<3?G():V((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[B]);var K=(0,r.Z)({},T(e));function $(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=K[e];K[e]=function(e,n){return V(),null==t?void 0:t(e,n)}})),f.useEffect((function(){K.motionName||"motion"!==z||V()}),[K.motionName,z]),f.useImperativeHandle(t,(function(){return{forceAlign:G,getElement:function(){return k.current}}}));var Q=(0,r.Z)((0,r.Z)({},R),{},{zIndex:l,opacity:"motion"!==z&&"stable"!==z&&n?0:void 0,pointerEvents:n||"stable"===z?void 0:"none"},c),J=!0;null==h||!h.points||"align"!==z&&"stable"!==z||(J=!1);var ee=s;return f.Children.count(s)>1&&(ee=f.createElement("div",{className:"".concat(i,"-content")},s)),f.createElement(P.Z,(0,o.Z)({visible:n,ref:k,leavedClassName:"".concat(i,"-hidden")},K,{onAppearPrepare:$,onEnterPrepare:$,removeOnLeave:p,forceRender:d}),(function(e,t){var n=e.className,o=e.style,c=E()(i,a,_,n);return f.createElement(Be,{target:m||b,key:"popup",ref:j,monitorWindowResize:!0,disabled:J,align:h,onAlign:X},f.createElement("div",{ref:t,className:c,onMouseEnter:w,onMouseLeave:O,onMouseDownCapture:x,onTouchStartCapture:C,onClick:S,style:(0,r.Z)((0,r.Z)({},o),Q)},ee))}))}));Ke.displayName="PopupInner";const $e=Ke;var Qe=f.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,c=e.children,s=e.mobile,l=(s=void 0===s?{}:s).popupClassName,u=s.popupStyle,p=s.popupMotion,d=void 0===p?{}:p,h=s.popupRender,v=e.onClick,m=f.useRef();f.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var b=(0,r.Z)({zIndex:a},u),y=c;return f.Children.count(c)>1&&(y=f.createElement("div",{className:"".concat(n,"-content")},c)),h&&(y=h(y)),f.createElement(P.Z,(0,o.Z)({visible:i,ref:m,removeOnLeave:!0},d),(function(e,t){var o=e.className,i=e.style,a=E()(n,l,o);return f.createElement("div",{ref:t,className:a,onClick:v,style:(0,r.Z)((0,r.Z)({},i),b)},y)}))}));Qe.displayName="MobilePopupInner";const Je=Qe;var et=["visible","mobile"],tt=f.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,C.Z)(e,et),c=(0,f.useState)(n),s=(0,Z.Z)(c,2),l=s[0],u=s[1],p=(0,f.useState)(!1),d=(0,Z.Z)(p,2),h=d[0],v=d[1],m=(0,r.Z)((0,r.Z)({},a),{},{visible:l});(0,f.useEffect)((function(){u(n),n&&i&&v((0,S.Z)())}),[n,i]);var b=h?f.createElement(Je,(0,o.Z)({},m,{mobile:i,ref:t})):f.createElement($e,(0,o.Z)({},m,{ref:t}));return f.createElement("div",null,f.createElement(j,m),b)}));tt.displayName="Popup";const nt=tt;const rt=f.createContext(null);function ot(){}function it(){return""}function at(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const st=(lt=w.Z,ut=function(e){(0,s.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r,a;return(0,i.Z)(this,n),r=t.call(this,e),(0,u.Z)((0,c.Z)(r),"popupRef",f.createRef()),(0,u.Z)((0,c.Z)(r),"triggerRef",f.createRef()),(0,u.Z)((0,c.Z)(r),"portalContainer",void 0),(0,u.Z)((0,c.Z)(r),"attachId",void 0),(0,u.Z)((0,c.Z)(r),"clickOutsideHandler",void 0),(0,u.Z)((0,c.Z)(r),"touchOutsideHandler",void 0),(0,u.Z)((0,c.Z)(r),"contextMenuOutsideHandler1",void 0),(0,u.Z)((0,c.Z)(r),"contextMenuOutsideHandler2",void 0),(0,u.Z)((0,c.Z)(r),"mouseDownTimeout",void 0),(0,u.Z)((0,c.Z)(r),"focusTime",void 0),(0,u.Z)((0,c.Z)(r),"preClickTime",void 0),(0,u.Z)((0,c.Z)(r),"preTouchTime",void 0),(0,u.Z)((0,c.Z)(r),"delayTimer",void 0),(0,u.Z)((0,c.Z)(r),"hasPopupMouseDown",void 0),(0,u.Z)((0,c.Z)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,u.Z)((0,c.Z)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,u.Z)((0,c.Z)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,u.Z)((0,c.Z)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,u.Z)((0,c.Z)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,m.Z)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,u.Z)((0,c.Z)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,u.Z)((0,c.Z)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,u.Z)((0,c.Z)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,u.Z)((0,c.Z)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,u.Z)((0,c.Z)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,u.Z)((0,c.Z)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,u.Z)((0,c.Z)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,u.Z)((0,c.Z)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,u.Z)((0,c.Z)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,m.Z)(n,t)&&!r.isContextMenuOnly()||(0,m.Z)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,u.Z)((0,c.Z)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,b.Z)(r.triggerRef.current);if(t)return t}catch(e){}return h().findDOMNode((0,c.Z)(r))})),(0,u.Z)((0,c.Z)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,i=n.builtinPlacements,a=n.prefixCls,c=n.alignPoint,s=n.getPopupClassNameFromAlign;return o&&i&&t.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var c=i[a];if(x(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(i,a,e,c)),s&&t.push(s(e)),t.join(" ")})),(0,u.Z)((0,c.Z)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,a=e.onPopupAlign,c=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,u=e.popupStyle,p=e.mask,d=e.maskAnimation,h=e.maskTransitionName,v=e.maskMotion,m=e.zIndex,b=e.popup,y=e.stretch,g=e.alignPoint,w=e.mobile,O=e.forceRender,E=e.onPopupClick,x=r.state,Z=x.popupVisible,C=x.point,S=r.getPopupAlign(),P={};return r.isMouseEnterToShow()&&(P.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(P.onMouseLeave=r.onPopupMouseLeave),P.onMouseDown=r.onPopupMouseDown,P.onTouchStart=r.onPopupMouseDown,f.createElement(nt,(0,o.Z)({prefixCls:t,destroyPopupOnHide:n,visible:Z,point:g&&C,className:i,align:S,onAlign:a,animation:s,getClassNameFromAlign:r.getPopupClassNameFromAlign},P,{stretch:y,getRootDomNode:r.getRootDomNode,style:u,mask:p,zIndex:m,transitionName:l,maskAnimation:d,maskTransitionName:h,maskMotion:v,ref:r.popupRef,motion:c,mobile:w,forceRender:O,onClick:E}),"function"==typeof b?b():b)})),(0,u.Z)((0,c.Z)(r),"attachParent",(function(e){v.Z.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,i=n.getDocument,a=r.getRootDomNode();o?(a||0===o.length)&&(t=o(a)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,v.Z)((function(){r.attachParent(e)}))})),(0,u.Z)((0,c.Z)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,u.Z)((0,c.Z)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,u.Z)((0,c.Z)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,u.Z)((0,c.Z)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ct.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,g.Z)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,g.Z)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,g.Z)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,g.Z)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),v.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.Z)((0,r.Z)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,i=t.alignPoint,a=t.className,c=t.autoDestroy,s=f.Children.only(n),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,i&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var u=E()(s&&s.props&&s.props.className,a);u&&(l.className=u);var p=(0,r.Z)({},l);(0,y.Yr)(s)&&(p.ref=(0,y.sQ)(this.triggerRef,s.ref));var d,h=f.cloneElement(s,p);return(e||this.popupRef.current||o)&&(d=f.createElement(lt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(d=null),f.createElement(rt.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(f.Component),(0,u.Z)(ut,"contextType",rt),(0,u.Z)(ut,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:it,getDocument:at,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),ut);var lt,ut},64019:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(47111),o=n.n(r);function i(e,t,n,r){var i=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}},98924:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:()=>r})},94999:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:()=>r})},34203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(8156),o=n.n(r),i=n(47111),a=n.n(i);function c(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?a().findDOMNode(e):null}},5110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},15105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},59015:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(8156),o=n(47111),i=n.n(o),a=n(98924);const c=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,c=e.children,s=(0,r.useRef)(),l=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var u=(0,r.useRef)(!1);return!u.current&&(0,a.Z)()&&(l.current=o(),s.current=l.current.parentNode,u.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===l.current.parentNode&&null!==s.current&&s.current.appendChild(l.current),function(){var e;null===(e=l.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(l.current)}}),[]),l.current?i().createPortal(c,l.current):null}))},66680:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8156);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}},8410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,o:()=>a});var r=n(8156),o=(0,n(98924).Z)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])},a=function(e,t){i((function(t){if(!t)return e()}),t)};const c=i},56982:(e,t,n)=>{"use strict";n(8156)},21770:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(93324),o=n(66680),i=n(8410),a=n(30470);function c(e){return void 0!==e}function s(e,t){var n=t||{},s=n.defaultValue,l=n.value,u=n.onChange,f=n.postState,p=(0,a.Z)((function(){return c(l)?l:c(s)?"function"==typeof s?s():s:"function"==typeof e?e():e})),d=(0,r.Z)(p,2),h=d[0],v=d[1],m=void 0!==l?l:h,b=f?f(m):m,y=(0,o.Z)(u),g=(0,a.Z)([m]),w=(0,r.Z)(g,2),O=w[0],E=w[1];return(0,i.o)((function(){var e=O[0];h!==e&&y(h,e)}),[O]),(0,i.o)((function(){c(l)||v(l)}),[l]),[b,(0,o.Z)((function(e,t){v(e,t),E([m],t)}))]}},30470:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(93324),o=n(8156);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.Z)(n,2),a=i[0],c=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||c(e)}]}},91881:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(71002),o=n(80334);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.ZP)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(n&&c>1)return!1;i.add(t);var l=c+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],a[u],l))return!1;return!0}if(t&&a&&"object"===(0,r.Z)(t)&&"object"===(0,r.Z)(a)){var f=Object.keys(t);return f.length===Object.keys(a).length&&f.every((function(n){return e(t[n],a[n],l)}))}return!1}(e,t)}},31131:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},75164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function c(e){a.delete(e)}var s=function(e){var t=i+=1;return function n(o){if(0===o)c(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};s.cancel=function(e){var t=a.get(e);return c(e),o(t)};const l=s},42550:(e,t,n)=>{"use strict";n.d(t,{Yr:()=>c,mH:()=>i,sQ:()=>a});var r=n(71002),o=(n(8156),n(59864));n(56982);function i(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){i(t,e)}))}}function c(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}},80334:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r={},o=[];function i(e,t){}function a(e,t){}function c(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function s(e,t){c(i,e,t)}s.preMessage=function(e){o.push(e)},s.resetWarned=function(){r={}},s.noteOnce=function(e,t){c(a,e,t)};const l=s},69921:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");
|
|
27
|
+
/**
|
|
28
|
+
* @license React
|
|
28
29
|
* react-is.production.min.js
|
|
29
30
|
*
|
|
30
31
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
32
|
*
|
|
32
33
|
* This source code is licensed under the MIT license found in the
|
|
33
34
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/function
|
|
35
|
+
*/function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case c:case a:case p:case d:return e;default:switch(e=e&&e.$$typeof){case u:case l:case f:case v:case h:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isMemo=function(e){return b(e)===h}},59864:(e,t,n)=>{"use strict";e.exports=n(69921)},75251:(e,t,n)=>{"use strict";
|
|
35
36
|
/** @license React v17.0.2
|
|
36
37
|
* react-jsx-runtime.production.min.js
|
|
37
38
|
*
|
|
@@ -39,4 +40,4 @@ Yt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Objec
|
|
|
39
40
|
*
|
|
40
41
|
* This source code is licensed under the MIT license found in the
|
|
41
42
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/n(27418);var r=n(8156),o=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),e.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(t,e,n){var r,i={},s=null,l=null;for(r in void 0!==n&&(s=""+n),void 0!==e.key&&(s=""+e.key),void 0!==e.ref&&(l=e.ref),e)c.call(e,r)&&!u.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:o,type:t,key:s,ref:l,props:i,_owner:a.current}}e.jsx=s,e.jsxs=s},85893:function(t,e,n){"use strict";t.exports=n(75251)},91033:function(t,e,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,s=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&u()}function c(){a(i)}function u(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(c,e);o=t}return u}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;c.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},f=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||i},p=y(0,0,0,0);function d(t){return parseFloat(t)||0}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+d(t["border-"+n+"-width"])}),0)}function v(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=f(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=d(i)}return e}(r),i=o.left+o.right,a=o.top+o.bottom,c=d(r.width),u=d(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==e&&(c-=h(r,"left","right")+i),Math.round(u+a)!==n&&(u-=h(r,"top","bottom")+a)),!function(t){return t===f(t).document.documentElement}(t)){var s=Math.round(c+i)-e,l=Math.round(u+a)-n;1!==Math.abs(s)&&(c-=s),1!==Math.abs(l)&&(u-=l)}return y(o.left,o.top,c,u)}var m="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof f(t).SVGGraphicsElement}:function(t){return t instanceof f(t).SVGElement&&"function"==typeof t.getBBox};function b(t){return o?m(t)?function(t){var e=t.getBBox();return y(0,0,e.width,e.height)}(t):v(t):p}function y(t,e,n,r){return{x:t,y:e,width:n,height:r}}var g=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=b(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),w=function(t,e){var n,r,o,i,a,c,u,s=(r=(n=e).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(c.prototype),l(u,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),u);l(this,{target:t,contentRect:s})},O=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new g(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof f(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new w(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,x=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new O(e,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){x.prototype[t]=function(){var e;return(e=E.get(this))[t].apply(e,arguments)}}));var Z=void 0!==i.ResizeObserver?i.ResizeObserver:x;e.default=Z},62195:function(t,e,n){var r=n(93379),o=n(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},80666:function(t,e,n){var r=n(93379),o=n(84928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},64649:function(t,e,n){var r=n(93379),o=n(66378);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},42560:function(t,e,n){var r=n(93379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);t.exports=o.locals||{}},93379:function(t,e,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function c(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},r=[],o=0;o<t.length;o++){var i=t[o],u=e.base?i[0]+e.base:i[0],s=n[u]||0,l="".concat(u," ").concat(s);n[u]=s+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:m(p,e),references:1}),r.push(l)}return r}function s(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,f=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function p(t,e,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=f(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(t,e){var n,r,o;if(e.singleton){var i=v++;n=h||(h=s(e)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=s(e),r=d.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=u(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=u(t,e),s=0;s<n.length;s++){var l=c(n[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},37464:function(t,e,n){"use strict";n.d(e,{W:function(){return r},Z:function(){return o}});var r="paraui-v4",o="component"},60855:function(t,e,n){"use strict";var r=n(8156),o=n.n(r),i=n(18628);e.Z=function(t,e){var n=o().useContext(i.ZP).intlFormat;return e.zh_CN=e.zh,e["zh-CN"]=e.zh,e.en_US=e.en,e["en-US"]=e.en,n&&n(t,e)}},79389:function(t,e,n){"use strict";n.d(e,{default:function(){return d}});var r=n(8156),o=n.n(r),i=n(77918),a=n(85893),c=n(97435),u=function(t){return(0,a.jsx)(c.l,Object.assign({dataName:"Help",viewBox:"0 0 24 24",path:(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("g",Object.assign({id:"Help",transform:"translate(-140 -499)"},{children:[(0,a.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 499)",fill:"none"}),(0,a.jsx)("path",{id:"icon",d:"M0,9.6a9.6,9.6,0,1,1,9.6,9.6A9.611,9.611,0,0,1,0,9.6Zm1.6,0a8,8,0,1,0,8-8A8.01,8.01,0,0,0,1.6,9.6ZM8.4,14a1,1,0,1,1,1,1A1,1,0,0,1,8.4,14Zm.162-2.6A1.643,1.643,0,0,1,8.7,10.66,3.615,3.615,0,0,1,10.264,9.1c.929-.616,1.538-1.07,1.538-1.746a1.748,1.748,0,0,0-.719-1.346A2.048,2.048,0,0,0,9.42,5.573,2.083,2.083,0,0,0,7.667,7.492a.778.778,0,0,1-.806.788.8.8,0,0,1-.792-.793A3.692,3.692,0,0,1,9.037,4.02a3.645,3.645,0,0,1,3.031.73A3.321,3.321,0,0,1,13.4,7.356c0,1.586-1.3,2.449-2.254,3.08a3.557,3.557,0,0,0-.943.758l-.052.13a.806.806,0,0,1-.771.835H9.355A.789.789,0,0,1,8.558,11.4Z",transform:"translate(142.4 501.4)"})]}))})},t))},s=n(86010),l=n(37464);n(62195);function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var d=function(t){var e=t.title,n=void 0===e?"":e,r=t.children,a=t.arrow,c=void 0===a||a,d=t.className,h=t.placement,v=void 0===h?"top-start":h,m=p(t,["title","children","arrow","className","placement"]);return o().createElement(i.default,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){f(t,e,n[e])}))}return t}({title:n,arrow:c,placement:v},m),o().createElement("span",{className:(0,s.Z)("".concat(l.W,"-help"),d)},r||o().createElement(u,null)))}},50134:function(t,e,n){"use strict";var r=n(8156),o=n.n(r),i=n(79389),a=n(37464);n(80666);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){c(t,e,n[e])}))}return t}function s(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}e.default=function(t){var e=t.className,n=t.helpClassName,r=t.style,c=t.label,l=t.labelSign,f=t.required,p=void 0!==f&&f,d=t.tooltip,h=t.tooltipType,v=void 0===h?"icon":h,m=t.placement,b=t.arrow,y=t.tooltipIcon,g=t.onClick,w=s(t,["className","helpClassName","style","label","labelSign","required","tooltip","tooltipType","placement","arrow","tooltipIcon","onClick"]),O=function(){var t="".concat(a.W,"-label");return v&&(t+=" ".concat(a.W,"-label-").concat(v)),d&&(t+=" ".concat(a.W,"-label-tooltip")),e&&(t+=" ".concat(e)),t},E=function(t){g&&g(t)};return o().createElement(o().Fragment,null,"icon"===v&&o().createElement("label",{className:O(),style:r,onClick:E},o().createElement(o().Fragment,null,c),p&&o().createElement("span",{className:"label-required"},"*"),l&&o().createElement("span",null,l),d&&o().createElement(i.default,u({title:d,placement:m,arrow:b,className:n},w),y)),"line"===v&&o().createElement(i.default,u({title:d||"",placement:m,arrow:b,className:n},w),o().createElement("label",{className:O(),style:r,onClick:E},o().createElement(o().Fragment,null,c),p&&o().createElement("span",{className:"label-required"},"*"),l&&o().createElement("span",null,l))))}},77918:function(t,e,n){"use strict";n.d(e,{default:function(){return S}});var r=n(8156),o=n.n(r),i=n(79483),a=n(24375),c=n(86010),u=n(37464);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){s(t,e,n[e])}))}return t}function f(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}var p={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function h(t){return"boolean"==typeof t?t?p:d:l({},d,t)}function v(t){var e=o().isValidElement(t)?t:o().createElement("span",null,t);if("button"===e.type&&e.props.disabled){var n=function(t,e){var n={},r=l({},t);return e.forEach((function(e){t&&e in t&&(n[e]=t[e],delete r[e])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=f(l({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":null}),s=f(l({},i),{pointerEvents:"none"}),p=o().cloneElement(e,{style:s,className:null});return o().createElement("span",{style:a,className:(0,c.Z)(e.props.className,"".concat(u.Z,"-tooltip-disabled-compatible-wrapper"))},p)}return e}function m(t){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[t]||t}var b=n(30465);n(42560);function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){g(t,e,n[e])}))}return t}function O(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function E(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Z=o().forwardRef((function(t,e){var n,r=x(o().useState(t.defaultVisible),2),s=r[0],p=r[1],d=o().useRef(),y=o().useRef(),g=x(o().useState([0,0]),2),Z=g[0],S=g[1];o().useEffect((function(){var e;("visible"in t||"open"in t)&&p(!!(null!==(e=t.visible)&&void 0!==e?e:t.open))}),[null!==(n=t.visible)&&void 0!==n?n:t.open]);var C=function(){var e=t.title;return!e&&0!==e},P=function(){var e=t.builtinPlacements,n=t.autoAdjustOverflow;return e||function(t){var e=t.horizontalArrowShift,n=void 0===e?16:e,r=t.verticalArrowShift,o=void 0===r?8:r,i=t.autoAdjustOverflow,c={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-o]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-o]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,o]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,o]}};return Object.keys(c).forEach((function(t){var e,n;c[t]=f(l({},a.Ct[t]),{offset:(e=t,n=m(e),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:h(i)}),c[t].ignoreShake=!0})),c}({autoAdjustOverflow:n})},T=t.prefixCls,j=void 0===T?"".concat(u.Z,"-tooltip"):T,k=t.getPopupContainer,M=t.overlayClassName,N=t.overlayInnerStyle,_=t.overlayStyle,A=t.children,D=t.title,L=t.placement,R=t.isPopover,I=t.followCursor,H=t.maxWidth,F=t.disabled,z=E(t,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),V=s;"visible"in t||"open"in t||!C()||(V=!1);var W=(0,c.Z)(!R&&"".concat(u.W,"-tooltip"),M),U=w({},_);return H&&(U.maxWidth=H),o().createElement(i.Z,O(w({},z),{prefixCls:j,placement:I?"top":m(L),overlayClassName:W,getTooltipContainer:k,ref:e||y,builtinPlacements:P(),overlay:o().createElement(o().Fragment,null,F&&o().createElement(b.Z,{className:"disabled-svg"}),D),visible:V,align:{targetOffset:Z},onVisibleChange:function(e){var n;("visible"in t||"open"in t||p(!C()&&e),C())||(null===(n=t.onVisibleChange)||void 0===n||n.call(t,e))},onPopupAlign:function(t,e){var n=P(),r=Object.keys(n).find((function(t){return n[t].points[0]===e.points[0]&&n[t].points[1]===e.points[1]}));if(r){var o=t.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-e.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-e.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-e.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:U,overlayInnerStyle:N,arrowContent:null,motion:{motionName:"".concat(u.Z,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),I?o().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(t){if(d.current){var e,n,r,o,i=(null===(o=y.current)||void 0===o||null===(r=o.popupRef)||void 0===r||null===(n=r.current)||void 0===n||null===(e=n.getElement())||void 0===e?void 0:e.offsetHeight)||0,a=0===i?60:30,c=d.current.getBoundingClientRect(),u=c.x,s=c.y,l=c.width,f=t.clientX-(u+l/2),p=t.clientY-s+i+a;setTimeout((function(){S([-f,-p])}))}}},v(A)):v(A))}));Z.displayName="Tooltip",Z.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};var S=Z},58543:function(t){"use strict";t.exports=n},8156:function(e){"use strict";e.exports=t},47111:function(t){"use strict";t.exports=e},30907:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,{Z:function(){return r}})},83878:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,{Z:function(){return r}})},97326:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{Z:function(){return r}})},15861:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}n.d(e,{Z:function(){return o}})},15671:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return r}})},43144:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(67343);function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(0,r.Z)(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},29388:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var r=n(61120),o=n(78814),i=n(82963);function a(t){var e=(0,o.Z)();return function(){var n,o=(0,r.Z)(t);if(e){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(67343);function o(t,e,n){return(e=(0,r.Z)(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},87462:function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:function(){return r}})},61120:function(t,e,n){"use strict";function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}n.d(e,{Z:function(){return r}})},60136:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(89611);function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,r.Z)(t,e)}},78814:function(t,e,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}n.d(e,{Z:function(){return r}})},31902:function(t,e,n){"use strict";function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}n.d(e,{Z:function(){return r}})},25267:function(t,e,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return r}})},1413:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(4942);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},45987:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(63366);function o(t,e){if(null==t)return{};var n,o,i=(0,r.Z)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},63366:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,{Z:function(){return r}})},82963:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(71002),o=n(97326);function i(t,e){if(e&&("object"===(0,r.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(t)}},89611:function(t,e,n){"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}n.d(e,{Z:function(){return r}})},93324:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n(83878),o=n(31902),i=n(40181),a=n(25267);function c(t,e){return(0,r.Z)(t)||(0,o.Z)(t,e)||(0,i.Z)(t,e)||(0,a.Z)()}},35512:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(71002);function o(t,e){if("object"!==(0,r.Z)(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}},67343:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(71002),o=n(35512);function i(t){var e=(0,o.Z)(t,"string");return"symbol"===(0,r.Z)(e)?e:String(e)}},71002:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,{Z:function(){return r}})},40181:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(30907);function o(t,e){if(t){if("string"==typeof t)return(0,r.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(t,e):void 0}}}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,exports:{}};return r[t](n,n.exports,i),n.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nc=void 0;var a={};return function(){"use strict";i.r(a),i.d(a,{Switch:function(){return Z},default:function(){return S}});var t=i(61217),e=i(4942),n=i(93324),r=i(45987),o=i(8156),c=i.n(o),u=i(94184),s=i.n(u),l=i(21770),f=i(15105),p=o.forwardRef((function(t,i){var a,c=t.prefixCls,u=void 0===c?"rc-switch":c,p=t.className,d=t.checked,h=t.defaultChecked,v=t.disabled,m=t.loadingIcon,b=t.checkedChildren,y=t.unCheckedChildren,g=t.onClick,w=t.onChange,O=t.onKeyDown,E=(0,r.Z)(t,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),x=(0,l.Z)(!1,{value:d,defaultValue:h}),Z=(0,n.Z)(x,2),S=Z[0],C=Z[1];function P(t,e){var n=S;return v||(C(n=t),null==w||w(n,e)),n}var T=s()(u,p,(a={},(0,e.Z)(a,"".concat(u,"-checked"),S),(0,e.Z)(a,"".concat(u,"-disabled"),v),a));return o.createElement("button",Object.assign({},E,{type:"button",role:"switch","aria-checked":S,disabled:v,className:T,ref:i,onKeyDown:function(t){t.which===f.Z.LEFT?P(!1,t):t.which===f.Z.RIGHT&&P(!0,t),null==O||O(t)},onClick:function(t){var e=P(!S,t);null==g||g(e,t)}}),m,o.createElement("span",{className:"".concat(u,"-inner")},S?b:y))}));p.displayName="Switch";var d=p,h=i(86010),v=i(37464),m=i(50134),b=i(77918),y=i(60855),g={zh:{ing:"正在进行中"},en:{ing:"In Progress"}};i(64649);function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){w(t,e,n[e])}))}return t}function E(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function x(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var Z=function(e){var n,r=(0,y.Z)("Switch",g),o=(e.size,e.loading),i=e.disabled,a=e.className,u=e.label,s=e.required,l=void 0!==s&&s,f=e.desc,p=e.labelTooltip,Z=e.descTooltip,S=e.disabledTooltip,C=e.loadingTitle,P=void 0===C?r({id:"ing"}):C,T=e.labelPlacement,j=void 0===T?"top":T,k=e.descPlacement,M=void 0===k?"start":k,N=e.supText,_=x(e,["size","loading","disabled","className","label","required","desc","labelTooltip","descTooltip","disabledTooltip","loadingTitle","labelPlacement","descPlacement","supText"]),A=(0,h.Z)("".concat(v.W,"-switch"),(w(n={},"".concat(v.W,"-switch-loading"),o),w(n,"".concat(v.W,"-switch-disabled"),i),n),a),D=(0,h.Z)("".concat(v.W,"-switch-label"),"".concat(v.W,"-switch-label-").concat(j),"".concat(v.W,"-switch-desc-").concat(M)),L=c().createElement("div",{className:"".concat(v.Z,"-switch-handle")},o&&c().createElement(t.Z,{className:"".concat(v.Z,"-switch-loading-icon")})),R=function(){return i&&S?c().createElement(b.default,O({disabled:!0},S),c().createElement("div",{className:"".concat(v.Z,"-label-box")},c().createElement(d,E(O({className:A},_),{prefixCls:"".concat(v.Z,"-switch"),disabled:i||o,loadingIcon:L})),c().createElement("span",{className:"sup-text"},N&&N))):c().createElement(c().Fragment,null,P&&o?c().createElement(b.default,{disabled:!0,title:P},c().createElement("div",{className:"".concat(v.Z,"-label-box")},c().createElement(d,E(O({},_),{prefixCls:"".concat(v.Z,"-switch"),className:A,disabled:i||o,loadingIcon:L})),c().createElement("span",{className:"sup-text"},N&&N))):c().createElement("div",{className:"".concat(v.Z,"-label-box")},c().createElement(d,E(O({},_),{prefixCls:"".concat(v.Z,"-switch"),className:A,disabled:i||o,loadingIcon:L})),c().createElement("span",{className:"sup-text"},N&&N)))};return u||f?c().createElement("span",{className:D},f&&c().createElement(m.default,E(O({label:f,required:l},Z),{className:"".concat(v.Z,"-desc-text ").concat(i?"".concat(v.Z,"-disabled-text"):"")})),c().createElement("span",{className:"".concat(v.W,"-label-text-container")},u&&c().createElement(m.default,E(O({label:u,required:l},p),{className:"".concat(v.Z,"-switch-text ").concat(i?"".concat(v.Z,"-disabled-text"):"")})),R())):R()},S=Z}(),a}()}));
|
|
43
|
+
*/n(27418);var r=n(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)c.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:a.current}}t.jsx=l,t.jsxs=l},85893:(e,t,n)=>{"use strict";e.exports=n(75251)},91033:(e,t,n)=>{"use strict";n.d(t,{default:()=>Z});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var c=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function c(){a(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(c,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=y(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function v(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=d(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=d(r.width),s=d(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=h(r,"left","right")+i),Math.round(s+a)!==n&&(s-=h(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var l=Math.round(c+i)-t,u=Math.round(s+a)-n;1!==Math.abs(l)&&(c-=l),1!==Math.abs(u)&&(s-=u)}return y(o.left,o.top,c,s)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return o?m(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):v(e):p}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(e,t){var n,r,o,i,a,c,s,l=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),u(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);u(this,{target:e,contentRect:l})},O=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!=typeof WeakMap?new WeakMap:new r,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new O(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));const Z=void 0!==i.ResizeObserver?i.ResizeObserver:x},62195:(e,t,n)=>{var r=n(93379),o=n(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},80666:(e,t,n)=>{var r=n(93379),o=n(84928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},64649:(e,t,n)=>{var r=n(93379),o=n(66378);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},42560:(e,t,n)=>{var r=n(93379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},93379:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],l=n[s]||0,u="".concat(s," ").concat(l);n[s]=l+1;var f=c(u),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:u,updater:m(p,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,f=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=l(t)),r=p.bind(null,n,i,!1),o=p.bind(null,n,i,!0)}else n=l(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=s(e,t),l=0;l<n.length;l++){var u=c(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},37464:(e,t,n)=>{"use strict";n.d(t,{W:()=>r,Z:()=>o});var r="paraui-v4",o="component"},60855:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8156),o=n.n(r),i=n(18628);const a=function(e,t){var n=o().useContext(i.ZP).intlFormat;return t.zh_CN=t.zh,t["zh-CN"]=t.zh,t.en_US=t.en,t["en-US"]=t.en,n&&n(e,t)}},79389:(e,t,n)=>{"use strict";n.d(t,{default:()=>d});var r=n(8156),o=n.n(r),i=n(77918),a=n(85893),c=n(97435),s=function(e){return(0,a.jsx)(c.l,Object.assign({dataName:"Help",viewBox:"0 0 24 24",path:(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("g",Object.assign({id:"Help",transform:"translate(-140 -499)"},{children:[(0,a.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(140 499)",fill:"none"}),(0,a.jsx)("path",{id:"icon",d:"M0,9.6a9.6,9.6,0,1,1,9.6,9.6A9.611,9.611,0,0,1,0,9.6Zm1.6,0a8,8,0,1,0,8-8A8.01,8.01,0,0,0,1.6,9.6ZM8.4,14a1,1,0,1,1,1,1A1,1,0,0,1,8.4,14Zm.162-2.6A1.643,1.643,0,0,1,8.7,10.66,3.615,3.615,0,0,1,10.264,9.1c.929-.616,1.538-1.07,1.538-1.746a1.748,1.748,0,0,0-.719-1.346A2.048,2.048,0,0,0,9.42,5.573,2.083,2.083,0,0,0,7.667,7.492a.778.778,0,0,1-.806.788.8.8,0,0,1-.792-.793A3.692,3.692,0,0,1,9.037,4.02a3.645,3.645,0,0,1,3.031.73A3.321,3.321,0,0,1,13.4,7.356c0,1.586-1.3,2.449-2.254,3.08a3.557,3.557,0,0,0-.943.758l-.052.13a.806.806,0,0,1-.771.835H9.355A.789.789,0,0,1,8.558,11.4Z",transform:"translate(142.4 501.4)"})]}))})},e))},l=n(86010),u=n(37464);n(62195);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const d=function(e){var t=e.title,n=void 0===t?"":t,r=e.children,a=e.arrow,c=void 0===a||a,d=e.className,h=e.placement,v=void 0===h?"top-start":h,m=p(e,["title","children","arrow","className","placement"]);return o().createElement(i.default,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f(e,t,n[t])}))}return e}({title:n,arrow:c,placement:v},m),o().createElement("span",{className:(0,l.Z)("".concat(u.W,"-help"),d)},r||o().createElement(s,null)))}},50134:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var r=n(8156),o=n.n(r),i=n(79389),a=n(37464);n(80666);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const u=function(e){var t=e.className,n=e.helpClassName,r=e.style,c=e.label,u=e.labelSign,f=e.required,p=void 0!==f&&f,d=e.tooltip,h=e.tooltipType,v=void 0===h?"icon":h,m=e.placement,b=e.arrow,y=e.tooltipIcon,g=e.onClick,w=l(e,["className","helpClassName","style","label","labelSign","required","tooltip","tooltipType","placement","arrow","tooltipIcon","onClick"]),O=function(){var e="".concat(a.W,"-label");return v&&(e+=" ".concat(a.W,"-label-").concat(v)),d&&(e+=" ".concat(a.W,"-label-tooltip")),t&&(e+=" ".concat(t)),e},E=function(e){g&&g(e)};return o().createElement(o().Fragment,null,"icon"===v&&o().createElement("label",{className:O(),style:r,onClick:E},o().createElement(o().Fragment,null,c),p&&o().createElement("span",{className:"label-required"},"*"),u&&o().createElement("span",null,u),d&&o().createElement(i.default,s({title:d,placement:m,arrow:b,className:n},w),y)),"line"===v&&o().createElement(i.default,s({title:d||"",placement:m,arrow:b,className:n},w),o().createElement("label",{className:O(),style:r,onClick:E},o().createElement(o().Fragment,null,c),p&&o().createElement("span",{className:"label-required"},"*"),u&&o().createElement("span",null,u))))}},77918:(e,t,n)=>{"use strict";n.d(t,{default:()=>C});var r=n(8156),o=n.n(r),i=n(79483),a=n(24375),c=n(86010),s=n(37464);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function f(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var p={adjustX:1,adjustY:1},d={adjustX:0,adjustY:0};function h(e){return"boolean"==typeof e?e?p:d:u({},d,e)}function v(e){var t=o().isValidElement(e)?e:o().createElement("span",null,e);if("button"===t.type&&t.props.disabled){var n=function(e,t){var n={},r=u({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=f(u({display:"inline-block"},r),{cursor:"not-allowed",width:t.props.block?"100%":null}),l=f(u({},i),{pointerEvents:"none"}),p=o().cloneElement(t,{style:l,className:null});return o().createElement("span",{style:a,className:(0,c.Z)(t.props.className,"".concat(s.Z,"-tooltip-disabled-compatible-wrapper"))},p)}return t}function m(e){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[e]||e}var b=n(30465);n(42560);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}function O(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Z=o().forwardRef((function(e,t){var n,r=x(o().useState(e.defaultVisible),2),l=r[0],p=r[1],d=o().useRef(),y=o().useRef(),g=x(o().useState([0,0]),2),Z=g[0],C=g[1];o().useEffect((function(){var t;("visible"in e||"open"in e)&&p(!!(null!==(t=e.visible)&&void 0!==t?t:e.open))}),[null!==(n=e.visible)&&void 0!==n?n:e.open]);var S=function(){var t=e.title;return!t&&0!==t},P=function(){var t=e.builtinPlacements,n=e.autoAdjustOverflow;return t||function(e){var t=e.horizontalArrowShift,n=void 0===t?16:t,r=e.verticalArrowShift,o=void 0===r?8:r,i=e.autoAdjustOverflow,c={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-n,-8]},leftTop:{points:["tr","cl"],offset:[-8,-o]},topRight:{points:["br","tc"],offset:[n,-8]},rightTop:{points:["tl","cr"],offset:[8,-o]},bottomRight:{points:["tr","bc"],offset:[n,8]},rightBottom:{points:["bl","cr"],offset:[8,o]},bottomLeft:{points:["tl","bc"],offset:[-n,8]},leftBottom:{points:["br","cl"],offset:[-8,o]}};return Object.keys(c).forEach((function(e){var t,n;c[e]=f(u({},a.Ct[e]),{offset:(t=e,n=m(t),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:h(i)}),c[e].ignoreShake=!0})),c}({autoAdjustOverflow:n})},T=e.prefixCls,j=void 0===T?"".concat(s.Z,"-tooltip"):T,k=e.getPopupContainer,M=e.overlayClassName,N=e.overlayInnerStyle,_=e.overlayStyle,A=e.children,D=e.title,L=e.placement,R=e.isPopover,I=e.followCursor,H=e.maxWidth,F=e.disabled,z=E(e,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth","disabled"]),V=l;"visible"in e||"open"in e||!S()||(V=!1);var W=(0,c.Z)(!R&&"".concat(s.W,"-tooltip"),M),U=w({},_);return H&&(U.maxWidth=H),o().createElement(i.Z,O(w({},z),{prefixCls:j,placement:I?"top":m(L),overlayClassName:W,getTooltipContainer:k,ref:t||y,builtinPlacements:P(),overlay:o().createElement(o().Fragment,null,F&&o().createElement(b.Z,{className:"disabled-svg"}),D),visible:V,align:{targetOffset:Z},onVisibleChange:function(t){var n;("visible"in e||"open"in e||p(!S()&&t),S())||(null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},onPopupAlign:function(e,t){var n=P(),r=Object.keys(n).find((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}));if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:U,overlayInnerStyle:N,arrowContent:null,motion:{motionName:"".concat(s.Z,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),I?o().createElement("div",{style:{display:"inline-block"},ref:d,onMouseMove:function(e){if(d.current){var t,n,r,o,i=(null===(o=y.current)||void 0===o||null===(r=o.popupRef)||void 0===r||null===(n=r.current)||void 0===n||null===(t=n.getElement())||void 0===t?void 0:t.offsetHeight)||0,a=0===i?60:30,c=d.current.getBoundingClientRect(),s=c.x,l=c.y,u=c.width,f=e.clientX-(s+u/2),p=e.clientY-l+i+a;setTimeout((function(){C([-f,-p])}))}}},v(A)):v(A))}));Z.displayName="Tooltip",Z.defaultProps={placement:"topLeft",mouseEnterDelay:.1,mouseLeaveDelay:.1,autoAdjustOverflow:!0,defaultVisible:!1,followCursor:!1,maxWidth:500};const C=Z},58543:e=>{"use strict";e.exports=n},8156:t=>{"use strict";t.exports=e},47111:e=>{"use strict";e.exports=t},30907:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83878:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},97326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},15861:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}n.d(t,{Z:()=>o})},15671:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},43144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(67343);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29388:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(61120),o=n(78814),i=n(82963);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(67343);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},61120:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},60136:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(89611);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},78814:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:()=>r})},31902:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}n.d(t,{Z:()=>r})},25267:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},1413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4942);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},45987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(63366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},63366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},82963:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(71002),o=n(97326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},89611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},93324:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(83878),o=n(31902),i=n(40181),a=n(25267);function c(e,t){return(0,r.Z)(e)||(0,o.Z)(e,t)||(0,i.Z)(e,t)||(0,a.Z)()}},35512:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(71002);function o(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},67343:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(71002),o=n(35512);function i(e){var t=(0,o.Z)(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},40181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return(()=>{"use strict";i.r(a),i.d(a,{Switch:()=>Z,default:()=>C});var e=i(61217),t=i(4942),n=i(93324),r=i(45987),o=i(8156),c=i.n(o),s=i(94184),l=i.n(s),u=i(21770),f=i(15105),p=o.forwardRef((function(e,i){var a,c=e.prefixCls,s=void 0===c?"rc-switch":c,p=e.className,d=e.checked,h=e.defaultChecked,v=e.disabled,m=e.loadingIcon,b=e.checkedChildren,y=e.unCheckedChildren,g=e.onClick,w=e.onChange,O=e.onKeyDown,E=(0,r.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),x=(0,u.Z)(!1,{value:d,defaultValue:h}),Z=(0,n.Z)(x,2),C=Z[0],S=Z[1];function P(e,t){var n=C;return v||(S(n=e),null==w||w(n,t)),n}var T=l()(s,p,(a={},(0,t.Z)(a,"".concat(s,"-checked"),C),(0,t.Z)(a,"".concat(s,"-disabled"),v),a));return o.createElement("button",Object.assign({},E,{type:"button",role:"switch","aria-checked":C,disabled:v,className:T,ref:i,onKeyDown:function(e){e.which===f.Z.LEFT?P(!1,e):e.which===f.Z.RIGHT&&P(!0,e),null==O||O(e)},onClick:function(e){var t=P(!C,e);null==g||g(t,e)}}),m,o.createElement("span",{className:"".concat(s,"-inner")},C?b:y))}));p.displayName="Switch";const d=p;var h=i(86010),v=i(37464),m=i(50134),b=i(77918),y=i(60855);const g={zh:{ing:"正在进行中"},en:{ing:"In Progress"}};i(64649);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){w(e,t,n[t])}))}return e}function E(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Z=function(t){var n,r=(0,y.Z)("Switch",g),o=(t.size,t.loading),i=t.disabled,a=t.className,s=t.label,l=t.required,u=void 0!==l&&l,f=t.desc,p=t.labelTooltip,Z=t.descTooltip,C=t.disabledTooltip,S=t.loadingTitle,P=void 0===S?r({id:"ing"}):S,T=t.labelPlacement,j=void 0===T?"top":T,k=t.descPlacement,M=void 0===k?"start":k,N=t.supText,_=x(t,["size","loading","disabled","className","label","required","desc","labelTooltip","descTooltip","disabledTooltip","loadingTitle","labelPlacement","descPlacement","supText"]),A=(0,h.Z)("".concat(v.W,"-switch"),(w(n={},"".concat(v.W,"-switch-loading"),o),w(n,"".concat(v.W,"-switch-disabled"),i),n),a),D=(0,h.Z)("".concat(v.W,"-switch-label"),"".concat(v.W,"-switch-label-").concat(j),"".concat(v.W,"-switch-desc-").concat(M)),L=c().createElement("div",{className:"".concat(v.Z,"-switch-handle")},o&&c().createElement(e.Z,{className:"".concat(v.Z,"-switch-loading-icon")})),R=function(){return i&&C?c().createElement(b.default,O({disabled:!0},C),c().createElement("div",{className:"".concat(v.Z,"-label-box")},c().createElement(d,E(O({className:A},_),{prefixCls:"".concat(v.Z,"-switch"),disabled:i||o,loadingIcon:L})),c().createElement("span",{className:"sup-text"},N&&N))):c().createElement(c().Fragment,null,P&&o?c().createElement(b.default,{disabled:!0,title:P},c().createElement("div",{className:"".concat(v.Z,"-label-box")},c().createElement(d,E(O({},_),{prefixCls:"".concat(v.Z,"-switch"),className:A,disabled:i||o,loadingIcon:L})),c().createElement("span",{className:"sup-text"},N&&N))):c().createElement("div",{className:"".concat(v.Z,"-label-box")},c().createElement(d,E(O({},_),{prefixCls:"".concat(v.Z,"-switch"),className:A,disabled:i||o,loadingIcon:L})),c().createElement("span",{className:"sup-text"},N&&N)))};return s||f?c().createElement("span",{className:D},f&&c().createElement(m.default,E(O({label:f,required:u},Z),{className:"".concat(v.Z,"-desc-text ").concat(i?"".concat(v.Z,"-disabled-text"):"")})),c().createElement("span",{className:"".concat(v.W,"-label-text-container")},s&&c().createElement(m.default,E(O({label:s,required:u},p),{className:"".concat(v.Z,"-switch-text ").concat(i?"".concat(v.Z,"-disabled-text"):"")})),R())):R()};const C=Z})(),a})()));
|